/* birthgrounded.com css/style.css (generated by deploy/build.sh)
   Birth Grounded Doula
   Palette: guidance/Birth Grounded Colors.pdf
   Mobile-first; desktop tweaks live in the media queries near each section. */

/* --- Tokens --- */
:root {
    /* Brand palette */
    --bark: #55321A;        /* headings, footer bg */
    --forest: #475327;      /* buttons, links */
    --sage: #8BA664;        /* accents only (not body text on cream) */
    --sand: #C6B38E;        /* borders, tints */
    --moss-gray: #7D7C64;   /* large secondary text only */

    /* Supporting neutrals */
    --cream: #F9F7F2;       /* page background */
    --sand-tint: #EFE8DA;   /* alternating section bg (light sand) */
    --text: #2E2219;        /* body text (deep bark) */
    --text-soft: #5C5446;   /* captions / small secondary text (AA on cream) */
    --white: #FFFFFF;

    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 10px;
    --shadow: 0 4px 20px rgba(85, 50, 26, 0.08);
    --container: 1100px;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    background-color: var(--cream);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--bark);
    line-height: 1.25;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }

a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--bark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }

.section-alt { background-color: var(--sand-tint); }
.narrow { max-width: 720px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--forest);
    margin-bottom: 0.75rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--forest);
    color: var(--white);
    padding: 8px 16px;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--forest); color: var(--white); border: 1px solid var(--forest); }
.btn-primary:hover { background: var(--bark); border-color: var(--bark); color: var(--white); }
.btn-outline { border: 1px solid var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }

a:focus-visible, .btn:focus-visible, summary:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 3px;
}

/* --- Header & Navigation --- */
.site-header {
    z-index: 50;
    padding: 0.9rem 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(85, 50, 26, 0.08);
}

.flex-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo { height: 52px; width: auto; }

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--bark);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
}
.main-nav a:hover { color: var(--forest); }
.main-nav .btn { padding: 7px 18px; font-size: 0.85rem; color: var(--white); }

@media (min-width: 768px) {
    .site-header { position: sticky; top: 0; } /* sticky only where the header is one short row */
    .flex-header { flex-direction: row; justify-content: space-between; }
    .logo-text { font-size: 1.25rem; }
    .main-nav { gap: 1.75rem; }
}

/* --- Hero --- */
.hero { text-align: center; padding: 72px 0 80px; }
.hero h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    max-width: 820px;
    margin: 0 auto 1rem;
}
.hero .tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--forest);
    margin: 0 0 1rem;
}
.hero .lede { max-width: 620px; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.insurance-badges {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-soft);
    letter-spacing: 0.5px;
}

.hero-quote {
    max-width: 620px;
    margin: 3rem auto 0;
}
.hero-quote::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--sage);
    margin: 0 auto 1.5rem;
}
.hero-quote blockquote {
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--bark);
}
.hero-quote blockquote::before { content: "\201C"; }
.hero-quote blockquote::after { content: "\201D"; }
.hero-quote figcaption {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-soft);
}
.hero-quote figcaption::before { content: "— "; }

/* --- Split layout (text + photo) --- */
.split-grid {
    display: flex;
    flex-direction: column-reverse; /* image on top on mobile */
    gap: 40px;
}
@media (min-width: 768px) {
    .split-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 72px;
        align-items: center;
    }
    .split-grid.reverse > :first-child { order: 2; }
}

.photo-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.photo-square { aspect-ratio: 1 / 1; }

/* --- Lists & stats --- */
.text-content ul { padding-left: 20px; margin: 1rem 0; }
.text-content li { margin-bottom: 0.6rem; }
.text-content li::marker { color: var(--sage); }

.stat-list { list-style: none; padding: 0 !important; }
.stat-list li {
    padding-left: 1.4rem;
    position: relative;
}
.stat-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
}

.source-note { font-size: 0.8rem; color: var(--text-soft); }

/* --- Cards (values, services) --- */
.card-grid {
    display: grid;
    gap: 20px;
    margin-top: 2rem;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid.four { grid-template-columns: repeat(4, 1fr); } }

.card {
    background: var(--white);
    border: 1px solid rgba(198, 179, 142, 0.6); /* --sand */
    border-top: 4px solid var(--sage);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; font-size: 0.95rem; }

.mission {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--bark);
    margin: 2.5rem auto 0;
}
.mission::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: var(--sage);
    margin: 0 auto 1.25rem;
}

.offer-highlight {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.45;
    color: var(--bark);
    text-align: center;
    padding: 1.25rem 0;
    margin: 1.75rem 0;
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.callout {
    background: var(--white);
    border-left: 4px solid var(--forest);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonial-grid { display: grid; gap: 20px; margin-top: 2rem; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }

.testimonial {
    margin: 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.testimonial blockquote {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--bark);
}
.testimonial figcaption { font-size: 0.85rem; color: var(--text-soft); }

/* --- FAQ --- */
.faq details {
    border-bottom: 1px solid var(--sand);
    padding: 1rem 0;
}
.faq summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--bark);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--forest); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }

.text-content .contact-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-list li { margin-bottom: 0.75rem; }
.contact-list span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-soft); }

.form-embed {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    min-height: 200px;
}
/* DoulaDo form: sized to the full form so visitors scroll the page, not a box inside it.
   Re-measured 2026-10-30 after deploy (bottom of the Terms/Privacy line): 2038px on phones (<=319px wide),
   1906px on desktop (506px wide). Heights add ~60px of slack. Re-check if form fields change. */
.form-embed iframe { display: block; border: 0; height: 2100px; }
@media (min-width: 768px) { .form-embed iframe { height: 1970px; } }
@media (max-width: 767px) { .form-embed { padding: 0.5rem; } } /* give the form more width on phones */

/* --- Footer --- */
.site-footer {
    background: var(--bark);
    color: var(--cream);
    padding: 40px 0;
    font-size: 0.875rem;
    text-align: center;
}
.site-footer a { color: var(--cream); }
.site-footer p { margin: 0.3rem 0; }
