/* ==========================================================================
   Breathe & Restore Therapy — stylesheet
   Palette + typography per CLAUDE_CODE_BRIEF.md
   ========================================================================== */

:root {
    --c-sage:        #8BAF9E;
    --c-sage-dark:   #5E8A72;
    --c-sage-light:  #D4E4DA;
    --c-button:      #4A6E58; /* darker sage for AA contrast (5.8:1 with white) */
    --c-button-hover:#3D5C49;
    --c-cream:       #F9F6F0;
    --c-sand:        #E8DDD3;
    --c-rose:        #C9A398;
    --c-rose-light:  #E8D5CF;
    --c-terracotta:  #B87B6A;
    --c-text:        #3A3632;
    --c-text-2:      #6B6560;
    --c-text-3:      #9B9590;
    --c-white:       #FFFFFF;

    --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body:    'Source Serif 4', Georgia, 'Times New Roman', serif;

    --container:    1100px;
    --container-narrow: 720px;

    --shadow-soft:  0 6px 24px rgba(58, 54, 50, 0.08);
    --shadow-card:  0 10px 30px rgba(58, 54, 50, 0.12);
    --radius:       6px;
    --radius-lg:    14px;

    --header-h:     72px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    background: var(--c-cream);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--c-sage-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-terracotta); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--c-text);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5em;
    letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

p  { margin: 0 0 1em; }

/* ---------- skip link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--c-sage-dark);
    color: var(--c-white);
    padding: 0.75rem 1rem;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(249, 246, 240, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-sand);
    z-index: 100;
}
.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-text);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.primary-nav a {
    color: var(--c-text-2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 150ms ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible { color: var(--c-sage-dark); }
.primary-nav .nav-cta {
    background: var(--c-button);
    color: var(--c-white);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
}
.primary-nav .nav-cta:hover { background: var(--c-button-hover); color: var(--c-white); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--c-text);
    margin: 5px 0;
    transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .primary-nav {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--c-cream);
        border-bottom: 1px solid var(--c-sand);
        padding: 0.5rem 1.25rem 1.25rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 240ms ease, padding 240ms ease;
    }
    .primary-nav.is-open { max-height: 80vh; padding-top: 1rem; }
    .primary-nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--c-sand);
        width: 100%;
    }
    .primary-nav .nav-cta {
        margin-top: 0.75rem;
        text-align: center;
        padding: 0.85rem 1.1rem;
        border-bottom: 0;
    }
}

/* ---------- containers / sections ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: 6rem 0; }
.section-cream { background: var(--c-cream); }
.section-sand  { background: var(--c-sand); }

.center { text-align: center; }
.cta-row { margin-top: 2rem; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 120ms ease;
    line-height: 1.1;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--c-button);
    color: var(--c-white);
    border-color: var(--c-button);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--c-button-hover);
    border-color: var(--c-button-hover);
    color: var(--c-white);
}
.btn-ghost {
    background: transparent;
    color: var(--c-white);
    border-color: rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--c-white);
    color: var(--c-white);
}

/* focus ring */
:focus-visible {
    outline: 3px solid var(--c-sage-dark);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==========================================================================
   PARALLAX — three "window" sections with autoplay video backgrounds
   Concept: things in nature that breathe (murmuration, grass, milky way)
   ========================================================================== */

.parallax {
    position: relative;
    color: var(--c-white);
    background-color: var(--c-sage-dark); /* fallback while video loads */
    overflow: hidden;
}

.parallax-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.parallax .overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(58, 54, 50, 0.62) 0%,
        rgba(58, 54, 50, 0.50) 35%,
        rgba(94, 138, 114, 0.42) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
}

.parallax-mid .overlay   { min-height: 55vh; padding: 5rem 1.5rem; }
.parallax-close .overlay { min-height: 70vh; padding: 6rem 1.5rem; }

.parallax h1, .parallax h2, .parallax h3 { color: var(--c-white); }
.parallax p { color: rgba(255, 255, 255, 0.94); }
.parallax a:not(.btn) { color: var(--c-sage-light); }
.parallax a:not(.btn):hover { color: var(--c-rose-light); }

/* respect reduced-motion: keep video visible but JS skips autoplay (paused first frame) */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ---------- HERO ---------- */
.hero-content {
    max-width: 760px;
    text-align: center;
}
.hero-content h1 {
    font-style: italic;
    font-weight: 400;
    margin-bottom: 0.4em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-content .lede {
    font-size: clamp(1.15rem, 1.6vw, 1.4rem);
    font-style: italic;
    margin-bottom: 1.5em;
    color: rgba(255, 255, 255, 0.95);
}
.hero-content .subhead {
    font-size: 1.1rem;
    margin-bottom: 2.2em;
}
.hero-content .meta {
    display: inline-block;
    margin-top: 0.4em;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
}
.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- MID CTA BAND ---------- */
.cta-band-content {
    max-width: 720px;
    text-align: center;
}
.cta-band-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--c-white);
    margin-bottom: 1.6rem;
}

/* ---------- WHAT TO EXPECT (parallax close) ---------- */
.parallax-close h2 {
    text-align: center;
    margin-bottom: 1.2em;
}
.parallax-close p { text-align: center; }

/* ---------- EMPATHY ---------- */
#empathy h2 {
    text-align: center;
    margin-bottom: 1.5em;
    font-style: italic;
    font-weight: 400;
}
#empathy p { font-size: 1.08rem; margin-bottom: 1.4em; }
#empathy .pull {
    font-size: 1.2rem;
    color: var(--c-terracotta);
    text-align: center;
    border-left: 3px solid var(--c-rose);
    padding: 0.5em 0 0.5em 1.2em;
    margin: 2em auto;
    max-width: 580px;
}

/* ---------- HOW I HELP ---------- */
#how-i-help h2 { text-align: center; margin-bottom: 0.8em; }
#how-i-help h3 {
    text-align: center;
    margin-top: 2.5em;
    color: var(--c-text-2);
    font-style: italic;
    font-weight: 400;
}
.specialty-list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem 1.5rem;
}
.specialty-list li {
    padding: 0.65rem 1rem;
    background: var(--c-white);
    border-radius: var(--radius);
    border-left: 3px solid var(--c-sage);
    color: var(--c-text);
    font-size: 0.98rem;
    box-shadow: var(--shadow-soft);
}

/* ---------- ABOUT ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3.5rem;
    align-items: start;
}
.col-photo img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    background: var(--c-sand);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .col-photo { max-width: 380px; margin: 0 auto; }
}

/* ---------- INSURANCE ---------- */
#insurance h2 { text-align: center; }
.insurance-list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}
.insurance-list li {
    background: var(--c-white);
    color: var(--c-text);
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1.5px solid var(--c-sage);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ---------- FAQ accordion ---------- */
#faq h2 { text-align: center; margin-bottom: 1.5em; }
.accordion { margin-top: 1rem; }
.faq-item {
    background: var(--c-white);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 3rem 1.15rem 1.4rem;
    position: relative;
    display: block;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary h3 {
    display: inline;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--c-text);
    margin: 0;
}
.faq-item > summary::after {
    content: "";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--c-sage-dark);
    border-bottom: 2px solid var(--c-sage-dark);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 200ms ease;
}
.faq-item[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item > p {
    padding: 0 1.4rem 1.3rem;
    margin: 0;
    color: var(--c-text-2);
}

/* ---------- CONTACT ---------- */
#contact h2 { text-align: center; }
.contact-meta {
    text-align: center;
    margin: 1.5em 0 2.5em;
    color: var(--c-text-2);
}
.contact-meta a { color: var(--c-sage-dark); font-weight: 600; }

.contact-form {
    background: var(--c-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border-top: 4px solid var(--c-sage);
}
.contact-form .field {
    margin-bottom: 1.25rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--c-text);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--c-text);
    padding: 0.75rem 0.9rem;
    background: var(--c-cream);
    border: 1px solid var(--c-sand);
    border-radius: var(--radius);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-sage);
    box-shadow: 0 0 0 3px rgba(139, 175, 158, 0.25);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn { width: 100%; margin-top: 0.5rem; }
.form-status {
    margin: 1rem 0 0;
    text-align: center;
    font-weight: 600;
    min-height: 1.5em;
}
.form-status.is-success { color: var(--c-sage-dark); }
.form-status.is-error   { color: var(--c-terracotta); }

/* honeypot anti-spam */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--c-text);
    color: var(--c-sand);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
}
.site-footer a { color: var(--c-sage-light); }
.site-footer a:hover { color: var(--c-white); }
.site-footer strong { color: var(--c-white); }
.footer-meta {
    margin-top: 1.5rem;
    color: var(--c-text-3);
    font-size: 0.85rem;
}

/* ---------- responsive helpers ---------- */
@media (max-width: 600px) {
    .section { padding: 4rem 0; }
    .contact-form { padding: 1.75rem; }
    .hero-actions .btn { width: 100%; }
    .insurance-list { gap: 0.5rem; }
    .insurance-list li { font-size: 0.88rem; padding: 0.5rem 0.85rem; }
}
