/* =========================
   Base & Theme
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #f39c12;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success-color: #28a745;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   Header & Navigation
========================= */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
}

/* =========================
   Buttons
========================= */
.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border: 2px solid var(--white);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* =========================
   Hero
========================= */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================
   About
========================= */
.about {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    background: var(--success-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.about-image {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.placeholder-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, var(--bg-light) 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* =========================
   Services Grid (Homepage)
========================= */
.services {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* =========================
   Service Detail Pages
========================= */
.service-detail {
    padding: 100px 0 80px;
}

.service-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.service-features {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 1rem;
}

/* Default service image container. */
.service-image {
    width: 100%;
    height: 250px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--bg-light) 0%, #e9ecef 100%);
}
.service-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:inherit;
}

/* =========================
   Detail Blocks
========================= */
.detail-block{
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2rem;
    align-items: center;
    margin: 2rem 0;
}
.detail-block.reverse{
    grid-template-columns: .95fr 1.05fr;
}
.detail-text h4{ color: var(--primary-color); margin-bottom: .4rem; }
.detail-text p{ color: var(--text-dark); margin: .35rem 0 .6rem; }
.detail-text ul{ list-style: none; margin-top: .3rem; }
.detail-text ul li{
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .5rem 0;
    border-bottom: 1px solid #eee;
}
.detail-text ul li i{ color: var(--success-color); margin-top: .18rem; }

/* Detail image box */
.detail-img{
    position: relative;
    overflow: hidden;
    background: none;
    border-radius: var(--border-radius);
    padding: 0;
    aspect-ratio: 16 / 10;
}
.detail-img img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius: inherit;
}
.detail-img i{ display:none; }

.emphasis{
    background: var(--bg-light);
    border-left: 5px solid var(--accent-color);
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius);
}

/* =========================
   Why Choose Us
========================= */
.why-choose {
    padding: 80px 0;
    background: var(--bg-light);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}
.feature { text-align: center; padding: 1.5rem; }
.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: var(--white);
}
.feature h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 0.5rem; }
.feature p { color: var(--text-light); font-size: 0.95rem; }

/* =========================
   Contact
========================= */
.contact { padding: 80px 0; }
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}
.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}
.contact-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--white);
}
.ndis-badge {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--success-color);
    color: var(--white);
    border-radius: var(--border-radius);
}
.ndis-badge h4 { margin-bottom: 0.5rem; }
.ndis-badge p { margin: 0; font-size: 0.9rem; }

/* =========================
   Footer
========================= */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h3 { margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.footer-section ul li a:hover { opacity: 1; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* =========================
   Responsive Design
========================= */
@media (max-width: 900px) {
    .service-content { grid-template-columns: 1fr; }
    .detail-block, .detail-block.reverse { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { flex-direction: column; gap: 1rem; }
    .hero h1 { font-size: 2rem; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .badges { flex-direction: column; }
}

/* =========================
   Accessibility & Focus
========================= */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; border-width: 0;
}
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* --- About image: clean photo, no grey, no oversize --- */
.about-image{
    padding: 0 !important;
    background: none !important;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: initial;
}
.about-image img{
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: inherit;
}
@media (min-width: 1024px){
    .about-image img{ height: 360px; }
}
.placeholder-image{ display: none !important; }
.about-badge, .heading-handshake{ display: none !important; }

/* === Brand logo + text in top bar === */
.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo img{
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}
.logo:hover{ color: var(--secondary-color); }

/* === Footer brand logo === */
.footer-logo{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}
.footer-logo img{
    display: block;
    height: 56px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}
@media (min-width: 1200px){
    .footer-logo img{ height: 64px; }
}
.footer-logo span{
    color: #fff;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
}
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a {
    display: inline-flex; width: 40px; height: 40px; border-radius: 50%;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.15);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}
.footer-social a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    opacity: 0.95;
}
.footer-social i { font-size: 1.15rem; color: #fff; line-height: 1; }

/* =========================
   Mobile Navigation (added)
   - Hamburger shows under 900px
   - Slide-in menu from right
========================= */

/* Hide desktop nav & show hamburger on small screens */
@media (max-width: 900px){
    header .cta-button{ display:none !important; }
    header .nav-menu{ display:none !important; }
    #mobile-menu-button{ display:inline-flex !important; }
}

/* Hamburger button (initially hidden on desktop) */
#mobile-menu-button{
    display:none;
    align-items:center;
    justify-content:center;
    width:42px; height:42px;
    border:0;
    border-radius:8px;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    cursor:pointer;
}
#mobile-menu-button i{ font-size:1.1rem; color:var(--primary-color); }

/* Off-canvas panel */
#mobile-menu{
    position:fixed;
    inset:0 0 0 auto;            /* stick to right */
    width:min(86vw, 360px);
    background:#fff;
    box-shadow:-6px 0 24px rgba(0,0,0,.15);
    transform:translateX(100%);
    transition:transform .25s ease;
    z-index: 1200;               /* above header (1000) */
    display:flex;
    flex-direction:column;
    padding:16px;
    overscroll-behavior: contain;
}
#mobile-menu.active{ transform:translateX(0); }

#mobile-menu .mobile-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-bottom:8px;
    border-bottom:1px solid #eee;
    margin-bottom:8px;
}
#mobile-menu .mobile-brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    color:var(--primary-color);
    text-decoration:none;
}
#mobile-menu .mobile-brand img{
    height:32px;
    width:auto;
    border-radius:6px;
    display:block;
}

#mobile-menu .mobile-links{
    list-style:none;
    margin:10px 0 0;
    padding:0;
    display:flex;
    flex-direction:column;
}
#mobile-menu .mobile-links a{
    display:block;
    padding:12px 10px;
    text-decoration:none;
    color:var(--text-dark);
    font-weight:600;
    border-bottom:1px solid #f1f1f1;
}
#mobile-menu .mobile-links a.active,
#mobile-menu .mobile-links a:hover{
    color:var(--primary-color);
}

.mobile-cta-button{
    margin-top:14px;
    display:block;
    text-align:center;
    text-decoration:none;
    background:var(--primary-color);
    color:#fff;
    padding:12px 14px;
    border-radius:8px;
    font-weight:700;
}

/* Dim overlay behind the panel */
#mobile-menu-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.28);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
    z-index:1190;
}
/* When menu is open (sibling) */
#mobile-menu.active + #mobile-menu-overlay{
    opacity:1;
    pointer-events:auto;
}
/* Also show overlay when JS toggles its class directly */
#mobile-menu-overlay.active{
    opacity:1;
    pointer-events:auto;
}

/* Improve touch targets on iOS/Android */
#mobile-menu-button,
#mobile-menu .mobile-links a,
.mobile-cta-button{
    -webkit-tap-highlight-color: transparent;
}
