:root {
    --green-700: #386641;
    /* deep evergreen */
    --green-500: #6b9080;
    /* sage banner */
    --green-300: #9cc5a1;
    /* light leaf */
    --purple-600: #6b56a3;
    /* primary accent */
    --purple-400: #9273cf;
    /* light accent */
    --ink-900: #222222;
    /* text */
    --paper-50: #fdfdfd;
    /* page bg */
    /* Tell browsers this site is light-mode only */
    color-scheme: light;
}

/* Hide visually but keep readable for screen readers (WCAG accessible) */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}



:root {
    /* ...your existing vars... */
    --header-offset: 84px;
    /* adjust if needed */
}

html {
    scroll-behavior: smooth;
}

/* reset / base */
* {
    box-sizing: border-box;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--green-700);
}

body {
    font-family: Lato, system-ui, -apple-system, sans-serif;
    color: var(--ink-900);
    background: var(--paper-50);
    margin: 0;
    line-height: 1.6;
}

/* Typographic rhythm and readability */
:root {
    --max-width: 70ch;
}

section p {
    max-width: var(--max-width);
}

/* Slightly larger default font on big screens */
@media (min-width: 1024px) {
    body {
        font-size: 18px;
    }
}

/* Improve link focus/hover contrast in header */
.site-header nav a {
    padding: .25rem .125rem;
    border-radius: .25rem;
}

.site-header nav a:focus,
.site-header nav a:hover {
    background: rgba(56, 102, 65, 0.08);
    text-decoration: none;
}

/* header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    /* important for dropdown positioning */
    background: #fff;
    color: var(--green-700);
    padding: 0.8rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* logo | title | nav/button */
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #ddd;
}

header h1 {
    margin: 0.5rem 0;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.logo {
    width: 84px;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
}

/* nav (desktop baseline) */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-family: 'Lato', sans-serif;
}

nav a {
    color: var(--green-700);
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    text-decoration: underline;
}

/* images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ===== Happy Valley CTA buttons ===== */
.cta-group {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
}

/* Base button */
.btn {
    --brand: var(--green-700, #386641);
    --brand-600: #4c7a58;
    --on-brand: #ffffff;
    --surface: #f3f7f4;
    --border: rgba(0, 0, 0, .08);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.25rem;
    border-radius: 9999px;
    /* pill shape */
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    min-height: 48px;
    /* ≥ WCAG touch target */
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    transition: background-color .2s ease, border-color .2s ease, transform .06s ease;
    color: #fff;
    /* default text color; variants can override */
    background: var(--brand);
    /* default bg so old .btn uses primary look */
}

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

.btn:focus-visible {
    outline: 3px solid #93c5aa;
    /* accessible focus ring */
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

    .btn,
    .btn:hover {
        transition: none;
        transform: none;
    }
}

/* Variants */
.btn-primary {
    background: var(--brand);
    color: var(--on-brand);
}

.btn-primary:hover {
    background: var(--brand-600);
}

.btn-primary-soft {
    background: #e8f0eb;
    color: var(--brand);
    border-color: #d7e4dc;
}

.btn-primary-soft:hover {
    background: #ddebe3;
}

.btn-outline {
    background: #fff;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

/* Icon sizing */
.btn .i {
    line-height: 0;
    font-size: 1.1em;
}

/* Desktop: place buttons side-by-side with wrapping */
@media (min-width: 700px) {
    .cta-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}





a:focus,
.btn:focus {
    outline: 3px solid var(--purple-400);
    outline-offset: 2px;
    border-radius: .4rem;
}

/* hero */
.hero {
    position: relative;
    min-height: 75vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background: url("images/sunset.jpg") center/cover no-repeat fixed;
    padding: 5rem 1rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
}

/* === Rates & Insurance: page-specific hero === */
#rates-hero {
    background-image: url('/images/hero-rates.jpg');
    background-attachment: scroll;
    /* optional: avoid parallax here */
}


.hero>* {
    position: relative;
    z-index: 1;
}

.hero h1,
.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}



.hero p {
    color: #f0f0f0;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

/* translucent background behind hero text */
.hero-text {
    background: rgba(0, 0, 0, 0.45);
    /* 45% black */
    padding: 1.2rem 1.5rem;
    border-radius: 0.8rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


.hero img {
    display: none;
}

/* sections */
section {
    padding: 4rem 1.5rem;
    text-align: center;
}

section h2 {
    color: var(--green-700);
    font-family: 'Playfair Display', serif;
}

section p {
    max-width: 650px;
    margin: 0.5rem auto;
}

/* Disable parallax on mobile/touch to prevent scroll jank */
@media (max-width: 1024px),
(pointer: coarse) {
    .hero {
        background-attachment: scroll !important;
        background-position: center;
        background-size: cover;
    }
}



/* mobile toggle button (hidden on desktop) */
.nav-toggle {
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: .5rem;
    padding: .4rem .6rem;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--green-700);
    cursor: pointer;
}

/* subtle shadow when scrolling */
.site-header.scrolled {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* smaller title on very small phones */
@media (max-width: 600px) {
    header h1 {
        font-size: 1rem;
        line-height: 1.1;
    }
}

/* MOBILE DROPDOWN (fade/slide) */
@media (max-width: 800px) {
    .nav-toggle {
        display: inline-block;
    }

    /* dropdown panel (always flex, visually collapsed) */
    .site-header nav ul {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 1px);
        margin: 0;
        padding: .75rem 1rem;
        background: #fff;
        border-top: 1px solid #eee;
        display: flex;
        flex-direction: column;
        gap: .75rem;
        text-align: center;
        z-index: 9;

        /* hidden state */
        max-height: 0;
        opacity: 0;
        transform: translateY(-0.5rem);
        overflow: hidden;
        visibility: hidden;

        /* transitions */
        transition:
            max-height .25s ease,
            opacity .25s ease,
            transform .25s ease,
            visibility 0s linear .25s;
        /* delay hiding until fade finishes */
    }

    /* open state */
    .site-header.open nav ul {
        max-height: 240px;
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
        transition:
            max-height .30s ease,
            opacity .30s ease,
            transform .30s ease,
            visibility 0s;
        /* show immediately */
    }

    /* bigger tap targets */
    nav a {
        padding: .5rem .25rem;
    }
}

/* ensure hero doesn’t get covered if menu drops */
@media (max-width: 800px) {
    .site-header.open+.hero {
        padding-top: 1rem;
    }
}

/* ===== Footer ===== */
.site-footer {
    background: #0f1a15;
    color: #e9f3ef;
    padding-top: 2rem;
    margin-top: 2rem;
}

.site-footer a {
    color: #cfe9df;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-top {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-logo {
    width: 48px;
    height: auto;
    border-radius: 0;
    display: block;
    margin-bottom: .5rem;
}

.footer-name {
    margin: 0;
    font-weight: 700;
}

.footer-tag {
    margin: .25rem 0 0;
    opacity: .9;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.footer-nav a {
    font-weight: 600;
}

.footer-contact p {
    margin: .25rem 0;
}

.footer-social {
    margin-top: .5rem;
}




.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 1.5rem;
    padding: .75rem 0;
    text-align: center;
    font-size: .95rem;
}

.footer-bottom a {
    color: #d7f3ea;
}

/* Improved keyboard focus visibility in the footer */
.site-footer a:focus-visible {
    outline: 3px solid #93c5aa;
    /* soft green ring that meets WCAG */
    outline-offset: 2px;
    border-radius: .35rem;
    text-decoration: none;
    /* avoid double underline on focus */
}

/* Visually indicate the current page link in header and footer */
nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

/* Keep footer bottom text aligned with the top grid */
.footer-bottom>p {
    width: min(1100px, 92%);
    margin: 0 auto;
}

/* Mobile footer layout */
@media (max-width: 800px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-nav ul {
        justify-items: center;
    }

    .footer-bottom {
        font-size: .9rem;
    }
}

.pllc {
    font-size: 0.7em;
    font-weight: 400;
    letter-spacing: 0.05em;
    opacity: 0.85;
}

/* Special styling for map link in footer contact info */

.footer-contact a[href*="maps"] {
    color: #cfe9df;
    /* same as other footer links */
    text-decoration: underline;
}

.footer-contact a[href*="maps"]:hover {
    color: #ffffff;
}

/* Style for the 'Copy email address' link */
#copy-email {
    color: #cfe9df;
    text-decoration: underline;
    cursor: pointer;
}

#copy-email:hover {
    color: #ffffff;
}


/* ===== Therapy Services: compact cards (title → image → text) ===== */
.services .section-hero {
    background: linear-gradient(to bottom right, var(--green-700), var(--green-500));
    color: #fff;
    padding: 2.5rem 1.25rem;
    text-align: center;
    border-radius: 0.8rem;
    margin: 0 auto 1.5rem;
    width: min(1100px, 92%);
}

.services .section-hero h2 {
    color: #fff;
    margin: 0 0 .4rem;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.services .section-hero p {
    margin: 0;
    opacity: .95;
}

.service-grid {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1000px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    padding: 1rem 1rem 1.1rem;
    text-align: left;
}

.service-card h3 {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    color: var(--green-700);
    line-height: 1.25;
}

.service-card img {
    width: 100%;
    height: 160px;
    /* ← change to 140px or 120px if you want smaller */
    object-fit: cover;
    border-radius: 0.6rem;
    margin: 0.25rem 0 0.6rem;
}

.service-card p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--ink-900);
}

/* ===== Therapist Bio Page ===== */

/* Center the family photo caption */
.photo-caption {
    text-align: center;
    margin-top: 0.5rem;
    color: #444;
    font-size: 0.95rem;
}

/* Therapist Bio layout polish */
#therapist-bio {
    background-color: #f8f9f8;
    /* soft neutral backdrop for calm contrast */
    padding: 3rem 1rem;
    text-align: center;
}

.bio-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}



.bio-text {
    text-align: left;
    line-height: 1.7;
    font-size: 0.97rem;
    color: #333;
}

.bio-photo {
    width: 360px;
    /* desktop size */
    max-width: 100%;
    /* keeps it responsive if container is smaller */
    height: auto;
    border-radius: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}



/* spacing between therapist and family photo */
.family-photo {
    margin-top: 2rem;
    border-radius: 0.6rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    width: 100%;
    /* ⬅️ override the 360px from .bio-photo */
    max-width: 550px;
    /* ⬅️ controls how big it can get overall */

    display: block;
    margin-left: auto;
    margin-right: auto;
}


/* responsive tweaks for smaller screens */
@media (max-width: 600px) {
    .bio-text {
        font-size: 0.95rem;
    }

    .bio-photo {
        max-width: 180px;
    }
}

/* Keep anchored sections from hiding under the sticky header */
section[id] {
    scroll-margin-top: var(--header-offset);
}

/* Give a little more room on small screens if the header stacks */
@media (max-width: 600px) {
    :root {
        --header-offset: 96px;
    }
}

/* ---------- Rates & Insurance Page ---------- */


.split-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4rem 2rem;
    gap: 2rem;
}

.split-section.alt {
    background-color: #f7f8f7;
}

/* Remove bullet points in the Insurance section */
#insurance ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

#insurance li {
    margin: 0.25rem 0;
    /* optional spacing */
}

.split-image {
    flex: 1 1 45%;
    border-radius: 1rem;
    max-height: 400px;
    object-fit: cover;
}

.split-text {
    flex: 1 1 45%;
    color: #222;
    line-height: 1.6;
}

.split-text h2 {
    color: #386641;
    margin-bottom: 1rem;
}

/* Buttons */
/* Buttons (scoped to Rates page sections so they don't override global .btn) */
.split-section .btn,
.closing-cta .btn {
    background-color: #386641;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

.split-section .btn:hover,
.closing-cta .btn:hover {
    background-color: #6b9080;
}


/* Responsive layout */
@media (max-width: 768px) {
    .split-section {
        flex-direction: column;
    }

    .split-image,
    .split-text {
        flex: 1 1 100%;
    }
}



#rates-hero h1 {
    display: block;
    margin-bottom: 1rem;
}

#rates-hero .hero-text {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 60ch;
}




/* === CTA faint background image === */
.closing-cta {
    position: relative;
    text-align: center;
    padding: 4rem 1.5rem;
    background-color: #fdfdfd;
    /* fallback color */
    color: #222;
    overflow: hidden;
    /* keeps overlay inside section */
}

.closing-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/private-pay.jpg') center/cover no-repeat;
    opacity: 0.25;
    /* 25% opacity */
    z-index: 0;
}

.closing-cta .closing-box {
    position: relative;
    z-index: 1;
    /* keeps text above faint image */
    background: rgba(255, 255, 255, 0.75);
    /* soft white layer for contrast */
    padding: 2rem;
    border-radius: 0.8rem;
    display: inline-block;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Full-width soft lavender background for In-Network section */
.purple-tint {
    background: linear-gradient(to bottom,
            rgba(222, 210, 240, 0.25) 0%,
            rgba(247, 240, 255, 0.45) 100%);
    padding: 4rem 2rem;
    color: var(--green-700);
}

.purple-tint p {
    color: #222;
    /* or var(--ink-900) if you prefer your main text color */
}

/* In-Network section text styling */
.purple-tint p,
.purple-tint ul,
.purple-tint li {
    color: #111;
    /* deep near-black text */
}

.purple-tint ul li {
    font-weight: 800;
    /* extra-bold for maximum clarity */
}

/* ===== What Therapy Feels Like – faint background ===== */
#what-therapy-feels-like {
    position: relative;
    overflow: hidden;
    /* keeps the faint background inside */
}

#what-therapy-feels-like::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/images/sunset-diff.jpg') center / cover no-repeat;
    opacity: 0.15;
    /* soft faint effect */
    z-index: 0;
}



#what-therapy-feels-like .therapy-feels-content {
    position: relative;
    z-index: 1;
    /* keeps text above the faint background */
}








/* ===== Global Dark Mode ===== */
@media (prefers-color-scheme: dark) {

    /* --- palette (uses your existing greens, with safe fallbacks) --- */
    :root {
        --paper-50: #0e1412;
        /* page background */
        --ink-900: #f3f8f6;
        /* primary text */
        --surface: #121a17;
        /* card/section surface */
        --muted: #cfe9df;
        /* link/subtext */
        --border: #2a3a33;
        /* subtle borders */
        /* if you already have --green-700 etc., keep them; otherwise these are fine */
        --green-700: #386641;
        --green-500: #6b9080;
    }

    /* Page + default text */
    html,
    body {
        background-color: var(--paper-50) !important;
        color: var(--ink-900) !important;
    }

    /* Header / nav */
    .site-header {
        background: #101813;
        border-bottom: 1px solid #1e2a25;
    }

    .site-header a {
        color: var(--muted);
    }

    .site-header nav a:focus,
    .site-header nav a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Hero (keep image visible but text readable) */
    .hero {
        color: var(--ink-900);
    }

    .hero::before {
        background: rgba(0, 0, 0, 0.5) !important;
    }

    /* stronger overlay in dark */

    /* Generic sections + common surfaces */
    section,
    .card,
    .service-card,
    .service-item,
    .rates-card,
    .bio-wrap,
    .cta-strip,
    .panel,
    .feature {
        background: var(--surface);
        color: var(--ink-900);
        border: 1px solid var(--border);
    }

    /* Headings, paragraphs, lists in cards/sections */
    section h1,
    section h2,
    section h3,
    .card h1,
    .card h2,
    .card h3,
    .service-card h2,
    .service-card h3,
    .rates-card h2,
    .rates-card h3 {
        color: var(--ink-900);
    }

    section p,
    section li,
    .card p,
    .card li,
    .service-card p,
    .service-card li,
    .rates-card p,
    .rates-card li {
        color: var(--ink-900);
    }

    /* Links */
    a {
        color: var(--muted);
    }

    a:hover,
    a:focus {
        color: #ffffff;
        text-decoration: underline;
    }

    /* Buttons */
    .btn,
    .btn-primary,
    .schedule-btn {
        background: var(--green-700);
        color: #ffffff;
        border: 1px solid #2b4a39;
    }

    .btn:hover,
    .btn:focus,
    .btn-primary:hover,
    .btn-primary:focus,
    .schedule-btn:hover,
    .schedule-btn:focus {
        filter: brightness(1.1);
    }

    /* Forms (if present) */
    input,
    textarea,
    select {
        background: #0f1714;
        color: var(--ink-900);
        border: 1px solid var(--border);
    }

    input::placeholder,
    textarea::placeholder {
        color: #a7c7bc;
    }

    /* Footer */
    .site-footer {
        background: #0b1411;
        color: #e7f2ee;
    }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .footer-nav a,
    .footer-contact a,
    .footer-contact a[href*="maps"] {
        color: var(--muted);
    }

    .footer-contact a[href*="maps"]:hover {
        color: #ffffff;
    }

    /* Lists: make bullets visible if you use inside bullets */
    li::marker {
        color: #8bd4b5;
    }
}

/* Add breathing room between hero heading and subheading */
.hero h1 {
    margin-bottom: 1rem;
}

/* Add space between the subheading and buttons in the hero */
.hero .hero-text {
    margin-bottom: 1.5rem;
}