/* ==========================================================================

   1. GLOBAL STYLES

   ========================================================================== */

:root {

    --forest-green: #4A5D4E;

    --gold: #B89B5E;

    --sage-bg: #E9EDDE;

    --off-white: #fbfbf9;

    --white: #ffffff;

}
.hamburger {
    display: none; /* Hidden on Desktop */
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--forest-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}


* { box-sizing: border-box; margin: 0; padding: 0; }



body {

    font-family: 'Montserrat', sans-serif;

    color: #333;

    line-height: 1.8;

    background-color: var(--off-white);

}



/* ==========================================================================

   2. HEADER & NAVIGATION (STICKY ON DESKTOP)

   ========================================================================== */

header {

    padding: 20px 5%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: var(--white);

    position: sticky;

    top: 0;

    z-index: 1000;

    border-bottom: 1px solid rgba(0,0,0,0.05);

    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 120px;

}



/* Enlarged Logo - Staying Left */

.logo-container img {

    height: 160px;

    width: auto;

    display: block;
    max-width: 100%;

}



.nav-container {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 8px;

}



nav a, .action-link {

    text-decoration: none;

    color: var(--forest-green);

    font-weight: 600;

    text-transform: uppercase;

    font-size: .92rem;

    letter-spacing: 1.2px;

    margin-left: 25px;

    transition: color 0.3s ease;

}



nav a:hover, .action-link:hover, nav a.active {

    color: var(--gold);

}



/* ==========================================================================

   3. FOOTER STYLES

   ========================================================================== */



footer {

    padding: 25px 0 15px 0; /* Significantly reduced vertical padding */

    background: var(--forest-green);

    color: white;

    margin-top: 40px;

    text-align: center;

    width: 100%;

}



.footer-grid {

    max-width: 1000px;

    margin: 0 auto 20px auto; /* Reduced bottom margin */

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    padding: 0 5%;

}



.footer-col h4 {

    font-family: 'Playfair Display', serif;

    color: var(--gold);

    margin-bottom: 5px; /* Tighter heading space */

    font-size: 0.9rem; /* Smaller font */

    text-transform: uppercase;

    letter-spacing: 1px;

}



.footer-col p {

    font-size: 0.8rem; /* Compact text size */

    line-height: 1.4; /* Tighter line spacing */

    color: rgba(255, 255, 255, 0.9);

}



/* Full Width Emergency Notice - Height Optimized */

.emergency-footer-notice {

    width: 100%;

    margin: 0;

    padding: 10px 5%; /* Thinner bar height */

    background: rgba(0, 0, 0, 0.15);

}



.emergency-footer-notice p {

    font-size: 0.75rem !important;

    color: #fff !important;

    font-style: italic;

    line-height: 1.3;

    margin-bottom: 0;

}



.footer-bottom {

    padding-top: 15px; /* Reduced padding */

    margin: 0 5%;

}



.copyright-text {

    font-size: 0.65rem !important;

    color: rgba(255, 255, 255, 0.4) !important;

    text-transform: uppercase;

    letter-spacing: 1px;

}



/* Maintain stacking for mobile */

@media (max-width: 900px) {

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 15px;

        margin-bottom: 15px;

    }

    footer {

        padding-top: 20px;

    }

}



/* ==========================================================================

   4. INDEX (HOME) PAGE

   ========================================================================== */

.hero {

    height: 450px;

    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)),

                url('../images/background.png');

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

}



.hero-text-box {

    background: rgba(255, 255, 255, 0.95);

    padding: 30px 50px; /* Reduced from 50px 70px (zooms the photo in more) */

    border: 5px solid var(--gold);

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

}



.hero-text-box h1 {

    font-family: 'Playfair Display', serif;

    font-size: 3rem;

    color: var(--forest-green);

    margin-bottom: 10px;

}



.hero-text-box p {

    color: var(--gold);

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 3px;

    margin-bottom: 25px;

}



.btn {

    display: inline-block;

    background-color: var(--forest-green);

    color: white;

    padding: 15px 35px;

    text-decoration: none;

    font-weight: 600;

    text-transform: uppercase;

    font-size: 0.85rem;

    letter-spacing: 2px;

    border-radius: 4px;

    transition: all 0.3s ease;

    border: 1px solid var(--forest-green);

}



.btn:hover { background-color: transparent; color: var(--forest-green); }



.main-grid {

    max-width: 1200px;

    margin: 80px auto;

    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 60px;

    padding: 0 5%;

}



.blurb h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--forest-green); margin-bottom: 20px; }



.practice-info { padding: 100px 5%; background-color: var(--off-white); }



.section-intro { text-align: center; margin-bottom: 60px; }

.section-intro h2 { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--forest-green); }

.section-intro .subtitle { color: var(--gold); text-transform: uppercase; letter-spacing: 4px; font-weight: 600; font-size: 0.75rem; display: block; }



.info-grid {

    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

    gap: 35px;

}



.info-card {

    background: #ffffff;

    padding: 50px 40px;

    border: 1px solid var(--gold);

    border-radius: 8px;

    transition: all 0.3s ease;

    display: flex;

    flex-direction: column;

}



.info-card:hover {

    border: 4px solid var(--gold);

    transform: translateY(-8px);

    box-shadow: 0 15px 40px rgba(0,0,0,0.05);

}



.card-accent { width: 35px; height: 2px; background-color: var(--gold); margin-bottom: 25px; }

.info-card h3 { font-family: 'Playfair Display', serif; color: var(--forest-green); font-size: 1.6rem; margin-bottom: 30px; }



/* ==========================================================================

   5. MEET THE TEAM PAGE

   ========================================================================== */

.main-container { max-width: 1200px; margin: 60px auto; padding: 0 5%; }



.full-page-divider {

    border: 0;

    height: 4px;

    background-color: var(--forest-green);

    width: 100%;

    margin: 10px 0 35px 0;

}



.bio-intro-wrapper { display: flex; gap: 40px; margin-bottom: 50px; align-items: stretch; }

.doctor-photo-cropped { flex: 0 0 320px; }



.doctor-photo-cropped img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 4px;

    border: 5px solid var(--sage-bg);

}



.intro-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.lead-text-pop { margin-bottom: 20px; border-left: 4px solid var(--gold); padding-left: 15px; }

.title-bold { font-weight: 700; color: var(--forest-green); font-size: 1.25rem; line-height: 1.2; }



.med-management-italics {

    font-style: italic;

    font-weight: 400;

    text-align: center;

    color: var(--forest-green);

    display: block;

    margin-top: 5px;

    width: 100%;

}



.split-content-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: start; }



.sidebar-container { display: flex; flex-direction: column; gap: 25px; }



.sidebar-card {

    background-color: var(--sage-bg);

    padding: 35px;

    border-radius: 8px;

    border: 1px solid var(--forest-green);

    transition: all 0.3s ease;

}



.sidebar-card:hover { border: 4px solid var(--forest-green); transform: translateY(-5px); }



.sidebar-card h3 {

    color: var(--forest-green) !important;

    text-transform: uppercase;

    font-size: 1.1rem;

    margin-bottom: 15px;

    border-bottom: 1px solid rgba(0,0,0,0.1) !important;

    padding-bottom: 10px;

}



/* ==========================================================================

   6. LIST STYLING (SHARED)

   ========================================================================== */

.sidebar-list, .custom-list { list-style: none; padding: 0; }

.sidebar-list li, .custom-list li { margin-bottom: 10px; position: relative; padding-left: 25px; }



/* Qualifications Bullets (Forest Green) */

.sidebar-list li::before {

    content: '•';

    color: var(--forest-green);

    font-weight: bold;

    position: absolute;

    left: 0;

    font-size: 1.2rem;

}



/* Standard Bullets (Gold) */

.custom-list li::before {

    content: '•';

    color: var(--gold);

    font-weight: bold;

    position: absolute;

    left: 0;

    font-size: 1.2rem;

}



/* ==========================================================================

   7. RESOURCES PAGE

   ========================================================================== */

.resource-stack { max-width: 800px; margin: 0 auto 100px auto; }



.resource-section-header {

    font-family: 'Playfair Display', serif;

    color: var(--forest-green);

    font-size: 1.5rem;

    margin-bottom: 25px;

    border-bottom: 1px solid var(--gold);

    padding-bottom: 10px;

}



.contact-strip {

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: var(--white);

    padding: 20px 30px;

    margin-bottom: 10px;

    border-radius: 4px;

    border: 1px solid rgba(0,0,0,0.05);

    transition: all 0.3s ease;

}



.contact-strip:hover { border-color: var(--gold); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }



.service-name { font-weight: 600; color: var(--forest-green); font-size: 1rem; }

.contact-link { color: var(--gold); text-decoration: none; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }



.org-link-card {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 25px 30px;

    background: var(--white);

    margin-bottom: 15px;

    border-radius: 4px;

}



.org-info strong { display: block; color: var(--forest-green); font-size: 1.1rem; }

.org-info span { font-size: 0.85rem; color: #888; }



.visit-btn {

    padding: 10px 20px;

    border: 1px solid var(--forest-green);

    color: var(--forest-green);

    text-decoration: none;

    font-size: 0.75rem;

    text-transform: uppercase;

    font-weight: 600;

    letter-spacing: 1px;

    transition: all 0.3s ease;

}



/* Hover effect: Fills the box with green and makes text white */

.visit-btn:hover, .crisis-btn:hover {

    background-color: var(--forest-green);

    color: white !important;

}

/* This targets BOTH Crisis and Visit Website buttons */

.visit-btn, .crisis-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 15px 25px;

    border: 2px solid var(--forest-green) !important; /* The dark green outline */

    color: var(--forest-green) !important;

    text-decoration: none;

    font-weight: 700;           /* Makes the text bold inside the box */

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    background: transparent;

    transition: all 0.3s ease;

    min-width: 220px;          /* Ensures consistent box sizes */

    text-align: center;

}



/* Specific adjustment for the Crisis Section to ensure they stack nicely */

.crisis-btn {

    min-width: 280px; /* Slightly wider for the longer phone numbers */

}





/* ==========================================================================

   8. CONTACT PAGE

   ========================================================================== */

.contact-hero { text-align: center; margin-bottom: 60px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 950px; margin: 0 auto 100px auto; padding: 0 20px; }



.contact-method-card {

    background: var(--white);

    padding: 60px 40px;

    border-radius: 8px;

    border: 1px solid var(--gold);

    text-align: center;

    transition: all 0.3s ease;

}



.contact-method-card:hover { border: 5px solid var(--gold); transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.05); }

.contact-method-card h3 { font-family: 'Playfair Display', serif; color: var(--forest-green); margin-bottom: 15px; font-size: 1.6rem; }

.contact-method-card p { font-size: 0.95rem; color: #666; margin-bottom: 35px; line-height: 1.8; }



.contact-action-btn {

    display: inline-block;

    padding: 15px 35px;

    background-color: var(--forest-green);

    color: white;

    text-decoration: none;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 2px;

    border-radius: 4px;

    font-size: 0.8rem;

    transition: all 0.3s ease;

    border: 1px solid var(--forest-green);

}



.contact-action-btn:hover { background-color: var(--gold); border-color: var(--gold); color: white; }



/* ==========================================================================

   9. INSURANCE & POLICY PAGE

   ========================================================================== */

.policy-stack { max-width: 850px; margin: 0 auto 100px auto; display: flex; flex-direction: column; gap: 40px; padding: 0 20px; }



.policy-card {

    background: var(--white);

    padding: 50px;

    border-radius: 8px;

    border: 1px solid var(--gold);

    transition: all 0.3s ease;

}



.policy-card:hover { border: 5px solid var(--gold); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.policy-card h3 { font-family: 'Playfair Display', serif; color: var(--forest-green); font-size: 1.8rem; margin-bottom: 20px; }

.policy-card p { margin-bottom: 15px; line-height: 1.8; }



.fee-row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #eee; }

.fee-row:last-of-type { border-bottom: none; }

.fee-row span { font-weight: 600; color: var(--forest-green); }

.fee-row strong { color: var(--gold); font-size: 1.1rem; }



.policy-card ul.custom-list { margin-left: 10px; }



/* ==========================================================================

   10. CONSOLIDATED RESPONSIVE DESIGN (BOTTOM)

   ========================================================================== */



/* Tablet & Mobile (900px and down) */

@media (max-width: 900px) {

    /* --- HEADER LAYOUT --- */
    header {
        display: flex;
        justify-content: space-between; /* Hamburger left, spacing for logo */
        align-items: center;
        min-height: 80px; /* Reduced for mobile */
    }


    /* --- HAMBURGER VISIBLE --- */
    .hamburger {
        display: flex;
    }

    /* --- CENTER LOGO --- */
    .logo-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        z-index: 1002;
    }

    /* Adjust logo size for mobile bar */
    .logo-container img {
        height: 70px; /* Smaller height to fit in the bar */
        width: auto;
    }

    /* --- SLIDING MENU (THE DRAWER) --- */
    .nav-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;

    /* FIXES START HERE */
    max-height: 0;         /* Start closed */
    overflow: hidden;      /* Hide the links when closed */
    display: flex;         /* Keep flex but height 0 hides it */
    transition: all 0.4s ease-in-out;
    pointer-events: none;  /* Prevent clicking links when hidden */
}


    /* The class JavaScript will add to show the menu */
    .nav-container.active {
    max-height: 800px;     /* Large enough to show all links */
    padding-bottom: 20px;
    pointer-events: auto;  /* Re-enable clicking */
}

    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
    }

    nav a {
        margin: 0;
        padding: 20px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* --- ACTION BUTTONS --- */
    .header-actions, .nav-container > div:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 20px;
    }

    .action-link {
        width: 100%;
        text-align: center;
        padding: 15px;
        margin: 10px 0 !important;
    }

    /* --- OTHER MOBILE STACKING (Kept from your original) --- */
    .footer-grid,
    .main-grid,
    .split-content-grid,
    .bio-intro-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .doctor-photo-cropped {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 20px auto;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-container { order: 2; }
}


/* Small Phone Adjustments */

@media (max-width: 600px) {

    .hero-text-box {

        padding: 40px 20px;

        width: 95%;

    }



    .hero-text-box h1 {

        font-size: 1.8rem;

    }



    .policy-card {

        padding: 30px 15px;

    }



    .fee-row {

        flex-direction: column;

        gap: 5px;

        padding: 15px 0;

    }

}



/* ==========================================================================

   11. LOCATION PAGE SPECIFIC STYLES

   ========================================================================== */

.location-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    align-items: center;

    margin-bottom: 80px;

}



.map-container {

    border: 5px solid var(--sage-bg);

    border-radius: 8px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

}



.address-box h3 {

    font-family: 'Playfair Display', serif;

    color: var(--forest-green);

    font-size: 2rem;

    margin-bottom: 15px;

}



.address-text {

    font-size: 1.2rem;

    color: var(--gold);

    font-weight: 600;

    line-height: 1.4;

    margin-bottom: 20px;

}



.location-note {

    font-style: italic;

    color: #666;

    margin-top: 15px;

}



.booking-cta {

    margin-top: 40px;

    padding: 30px;

    background-color: var(--white);

    border-left: 4px solid var(--gold);

    box-shadow: 0 5px 15px rgba(0,0,0,0.02);

}



.booking-cta h4 {

    color: var(--forest-green);

    margin-bottom: 10px;

}



.booking-cta p {

    margin-bottom: 20px;

    font-size: 0.95rem;

}



/* Ensure mobile layout for location page */

@media (max-width: 900px) {

    .location-grid {

        grid-template-columns: 1fr;

        gap: 30px;

    }



    .map-container {

        order: 2; /* Puts address first on mobile */

    }

}



/* Social Media Icons Styling */

.social-links {

    display: inline-flex;

    align-items: center;

    margin-left: 15px;

    gap: 15px;

}



.social-links a {

    margin-left: 0; /* Resets the default nav margin */

    font-size: 1.2rem; /* Makes icons slightly larger than text */

    color: var(--forest-green);

    transition: color 0.3s ease;

}



.social-links a:hover {

    color: var(--gold);

}



/* Ensure they stack properly on mobile */

@media (max-width: 900px) {

    .social-links {

        margin-left: 0;

        margin-top: 15px;

        justify-content: center;

        width: 100%;

    }



    .social-links a {

        padding: 10px;

        border: none; /* Prevents them from looking like the action buttons */

    }

}



/* ==========================================================================

   PHONE VIEW ONLY FIX (Screens 600px or smaller)

   ========================================================================== */



@media (max-width: 600px) {

    /* 1. Force the side-by-side layout to stack vertically */

    .contact-strip,

    .org-link-card {

        flex-direction: column !important;

        align-items: center !important;

        text-align: center;

        padding: 25px 20px !important;

        gap: 15px;

    }



    /* 2. Fix the text and button width so they don't overlap or cut off */

    .service-name,

    .org-info {

        margin-bottom: 5px;

        width: 100%;

    }



    /* 3. Override the fixed widths that are pushing boxes off-screen */

    .visit-btn,

    .crisis-btn {

        width: 100% !important;   /* Makes button fill the box width */

        min-width: 0 !important;   /* Removes the 280px restriction */

        max-width: 100% !important;

        box-sizing: border-box;    /* Keeps padding inside the width */

        font-size: 0.8rem;         /* Keeps text from being too bulky */

        padding: 12px 10px !important;

        display: flex !important;

    }



    /* 4. Adjust the main heading so it doesn't look too large on a phone */

    .resources-intro h1 {

        font-size: 2.2rem !important;

    }



    /* 5. Reduce large bottom margins to keep things tight on mobile */

    .resource-stack {

        margin-bottom: 50px !important;

    }

}

/* Apply the gold border hover effect to Organization cards */

.org-link-card:hover {

    border: 1px solid var(--gold); /* Matches the border thickness of crisis cards */

    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Optional: adds subtle depth */

    transform: translateY(-2px); /* Optional: gives a slight lift effect */

}



/* Layout for the two hero buttons on index page */

.hero-btns {

    display: flex;

    gap: 15px;            /* Space between buttons */

    justify-content: center;

    margin-top: 20px;

    flex-wrap: wrap;      /* Allows buttons to stack on small mobile screens */

}



.hero-btns .btn {

    min-width: 160px;     /* Keeps buttons a consistent size */

}



.hero-btns i {

    margin-right: 8px;    /* Spaces the icon from the text */

}