/* =========================================
   1. VARIABLES (Luxury Navy & Gold Palette)
   ========================================= */
:root {
    --bg-color: #ffffff;
    --text-color: #1a2633;
    --header-footer-bg: #131d29;   /* DEEP NAVY */
    --accent-primary: #cba568;     /* Metallic Gold */
    --accent-hover: #b38e50;
    --secondary-bg: #f8f9fa;       /* Clean White/Grey */
    --white: #ffffff;
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-width: 1100px;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, h4, a.nav-link { font-family: var(--font-heading); font-weight: 700; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }

/* =========================================
   3. NAVIGATION
   ========================================= */
header {
    background: var(--header-footer-bg);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
nav { display: flex; justify-content: space-between; align-items: center; }

.logo img { 
    height: 90px; 
    width: auto; 
    object-fit: contain; 
    display: block;
}

.nav-links { display: flex; gap: 30px; align-items: center; }

.nav-links a.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}
.nav-links a:hover { color: var(--accent-primary); }

/* Phone Number in Nav */
.nav-phone {
    color: var(--accent-primary) !important;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 10px;
}

/* Smaller Patient Portal Button */
.btn-small {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}
.btn-small:hover {
    background-color: var(--accent-primary);
    color: var(--white);
}

.hidden { display: none !important; }

.btn {
    background-color: var(--accent-primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.btn:hover { background-color: var(--accent-hover); transform: translateY(-1px); }

/* =========================================
   4. HOME PAGE HERO
   ========================================= */
.hero {
    height: 70vh;
    background-color: var(--header-footer-bg);
    background-image: url('images/office.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(19, 29, 41, 0.4);
    z-index: 1;
}
.hero-content {
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}
.hero h1 { 
    display: block;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    color: var(--header-footer-bg); 
    margin-bottom: 15px; 
    line-height: 1.3;
}
.hero p.tagline { 
    font-size: 1.1rem; 
    margin-bottom: 30px; 
    color: var(--text-color); 
    font-weight: 600; 
}

/* =========================================
   5. SECTIONS & CARDS
   ========================================= */
.intro { padding: 80px 0; text-align: center; }
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.help-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.help-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.help-image {
    height: 180px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}
.help-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.help-content h3 { margin-bottom: 15px; color: var(--header-footer-bg); }
.help-btn {
    margin-top: auto;
    color: var(--accent-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Team Grid */
.team-section { background-color: var(--secondary-bg); padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--header-footer-bg); margin-bottom: 15px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--white);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.team-card a { display: block; height: 100%; }

.headshot-placeholder {
    height: 320px;
    background-color: #e0e0e0;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.team-info { padding: 25px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; }
.team-info h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--header-footer-bg); }
.team-info .role { 
    font-size: 0.85rem; color: var(--accent-primary); text-transform: uppercase; 
    font-weight: 700; letter-spacing: 1px; margin-bottom: 15px; display: block;
}
.team-info p { font-size: 0.95rem; color: #666; margin-bottom: 20px; line-height: 1.5; }
.read-bio-btn {
    margin-top: auto; font-weight: 700; color: var(--header-footer-bg);
    text-decoration: underline; text-decoration-color: var(--accent-primary); text-underline-offset: 4px;
}
.team-card:hover .read-bio-btn { color: var(--accent-primary); }

/* =========================================
   6. CONTACT FORM
   ========================================= */
.contact-section { 
    padding: 100px 0; 
    background-color: var(--secondary-bg); 
    scroll-margin-top: 100px; 
}

/* This handles the 2-column layout */
.contact-grid-wrapper {
    display: grid; 
    grid-template-columns: 1.2fr 0.8fr; /* Form takes slightly more space */
    gap: 80px; 
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.contact-info-wrapper {
    padding-top: 20px;
}

/* Make it stack on mobile */
@media (max-width: 900px) {
    .contact-grid-wrapper {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 50px;
    }
    .contact-info-wrapper {
        order: -1; /* Puts map ABOVE form on mobile if you want, or remove this line to keep map below */
    }
}
.contact-container { 
    max-width: 800px; margin: 0 auto; text-align: center; background: var(--white);
    padding: 40px; border: 1px solid #f0f0f0; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--header-footer-bg); }

.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 4px; 
    font-family: inherit; font-size: 1rem; background-color: #fafafa;
}
.form-group textarea { height: 150px; resize: vertical; }

/* =========================================
   7. PAGE HEADER (Fixed Height & Flex Centering)
   ========================================= */
.page-header { 
    background-image: url('images/office.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Removed large padding, using Flexbox to center instead */
    padding: 0 20px;
    text-align: center; 
    position: relative;
    
    /* NEW: Force Consistent Height */
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.page-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(19, 29, 41, 0.85); 
    z-index: 1;
}
.page-header .container { position: relative; z-index: 2; width: 100%; }
.page-header h1 { font-size: 3rem; color: var(--white); margin-bottom: 20px; }
.page-header p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); max-width: 700px; margin: 0 auto; }

/* Mobile Height Adjustment */
@media (max-width: 768px) {
    .page-header {
        min-height: 250px;
    }
    .page-header h1 { font-size: 2rem; }
}

/* =========================================
   8. SERVICE MENU & TABS (Sticky + Swipeable)
   ========================================= */
/* 1. The Sticky Container */
.service-anchor-menu {
    position: sticky;        /* Sticks to top of screen */
    top: 0;                  /* Right at the edge */
    background: #ffffff;     /* White background */
    z-index: 1000;           /* Sits on top of content */
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* 2. The List (Flexbox for Mobile Scroll) */
.service-anchor-menu ul {
    display: flex;
    flex-wrap: nowrap;       /* Forces single line */
    overflow-x: auto;        /* Enables horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iPhone */
    padding: 0 10px;
    margin: 0;
    list-style: none;
    /* Hide Scrollbars */
    scrollbar-width: none;   /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    justify-content: center; /* Center on desktop */
}
/* Left align on mobile so first item isn't cut off */
@media (max-width: 768px) {
    .service-anchor-menu ul { justify-content: flex-start; }
}

.service-anchor-menu ul::-webkit-scrollbar {
    display: none;           /* Chrome/Safari */
}

/* 3. The Links (Buttons) */
.service-anchor-menu ul li a {
    display: inline-block;
    padding: 15px 20px;      /* Large touch target */
    white-space: nowrap;     /* Prevents text breaking */
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 3px solid transparent; /* Invisible border */
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. Active State (The Highlight) */
.service-anchor-menu ul li a.active-tab {
    color: var(--accent-primary); /* Your brand color */
    border-bottom: 3px solid var(--accent-primary);
}

/* 5. Tab Content Logic */
.tab-content {
    display: none;           /* Hidden by default */
    animation: fadeIn 0.4s ease-out; /* Smooth fade in */
}
.tab-content.active {
    display: block;          /* Show only active */
}

/* Service Section Content */
.service-section { 
    padding: 100px 0; 
    border-bottom: 1px solid #eee; 
    scroll-margin-top: 220px; 
}
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.service-content h2 { font-size: 2.5rem; color: var(--header-footer-bg); margin-bottom: 25px; }
.service-content p { margin-bottom: 20px; font-size: 1.05rem; color: #555; }
.service-content ul { margin-bottom: 30px; padding-left: 20px; }
.service-content li { margin-bottom: 10px; color: #555; }

.service-image {
    height: 450px; background-color: #e0e0e0; border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-image:hover img { transform: scale(1.03); }

.service-grid.reverse { direction: rtl; }
.service-grid.reverse .service-content { direction: ltr; }


/* =========================================
   9. TEAM PAGE STYLES (ZIG-ZAG)
   ========================================= */
.team-grid-large { display: grid; grid-template-columns: 1fr; gap: 80px; max-width: 900px; margin: 0 auto; }
.clinician-card-large {
    display: flex; gap: 50px; align-items: flex-start;
    padding-bottom: 80px; border-bottom: 1px solid #eee;
    scroll-margin-top: 140px; 
}
.clinician-card-large:last-child { border-bottom: none; padding-bottom: 0; }
.clinician-large-img {
    width: 350px; height: 450px; flex-shrink: 0;
    background-color: #e0e0e0; background-size: cover; background-position: top center; border-radius: 4px;
}
.clinician-large-info { flex-grow: 1; }
.clinician-large-info h2 { font-size: 2.2rem; color: var(--header-footer-bg); margin-bottom: 5px; }
.clinician-large-info .role { color: var(--accent-primary); font-weight: 700; margin-bottom: 20px; display: block; font-size: 1.1rem; }
.tags { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.tag { background: var(--secondary-bg); padding: 6px 14px; font-size: 0.85rem; font-weight: 600; color: var(--header-footer-bg); border-radius: 4px; }
.bio-text p { margin-bottom: 20px; font-size: 1.05rem; color: #444; line-height: 1.7; }

/* ZIG-ZAG LAYOUT (Desktop Only) */
@media (min-width: 769px) {
    .clinician-card-large:nth-child(even) { flex-direction: row-reverse; }
    .clinician-card-large:nth-child(even) .clinician-large-info { text-align: left; }
}

/* GET STARTED PAGE */
.get-started-hero { background-color: var(--secondary-bg); padding: 80px 0; text-align: center; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin: 60px 0; }
.step-card { background: var(--white); padding: 40px 30px; border: 1px solid #eee; text-align: center; }
.step-number { font-size: 3rem; color: var(--accent-primary); font-weight: 700; opacity: 0.5; margin-bottom: 10px; }

/* FOOTER & MOBILE */
footer {
    background-color: var(--header-footer-bg); color: rgba(255,255,255,0.7);
    padding: 60px 0; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
footer h4 { color: var(--accent-primary); margin-bottom: 20px; text-transform: uppercase; }
footer a:hover { color: var(--accent-primary); }

.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background-color: var(--accent-primary); }

@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--header-footer-bg); flex-direction: column; padding: 20px;
    }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .service-grid, .service-grid.reverse { grid-template-columns: 1fr; gap: 40px; direction: ltr; }
    .clinician-card-large { flex-direction: column; gap: 30px; }
    .clinician-large-img { width: 100%; height: 400px; }
    .contact-container { padding: 20px; width: 100%; }
    .hero h1 { font-size: 1.2rem; }
}

/* =========================================
   10. CALL BACK WIDGET
   ========================================= */
.callback-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--accent-primary); color: var(--white);
    border: none; padding: 15px 25px; border-radius: 50px;
    font-weight: 700; font-size: 0.9rem; letter-spacing: 1px; cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); z-index: 1100; transition: all 0.3s ease;
}
.callback-btn:hover { background-color: var(--accent-hover); transform: translateY(-3px); }

.modal-overlay {
    display: none; position: fixed; z-index: 1200; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7);
    align-items: center; justify-content: center;
}
.modal-content {
    background-color: var(--white); padding: 0; border-radius: 8px; width: 90%;
    max-width: 900px; height: 650px; position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); animation: fadeIn 0.4s; overflow: hidden;
}
.close-modal {
    position: absolute; top: 15px; right: 15px; background: white; width: 35px; height: 35px;
    text-align: center; line-height: 35px; border-radius: 50%; color: #333;
    font-size: 24px; font-weight: bold; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.2); z-index: 10;
}
.close-modal:hover { background: #f0f0f0; }

@keyframes fadeIn { from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);} }
@media (max-width: 480px) { .callback-btn { padding: 12px 20px; font-size: 0.8rem; bottom: 20px; right: 20px; } }

/* =========================================
   11. FAQ ACCORDION STYLES
   ========================================= */
.faq-category { margin-bottom: 60px; }
.faq-category h2 { 
    color: var(--accent-primary); 
    font-size: 1.5rem; 
    margin-bottom: 20px; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px;
    display: inline-block;
}

.accordion { display: flex; flex-direction: column; gap: 15px; }

.accordion-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: 0.3s;
}
.accordion-item:hover { border-color: var(--accent-primary); }

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-footer-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* The Plus/Minus Icon */
.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: 0.3s;
}
.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}
.accordion-header.active { background-color: #f9f9f9; }

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}
.accordion-body p { padding: 20px; color: #555; line-height: 1.6; margin: 0; border-top: 1px solid #eee; }