/* A Life Worth Flourishing: Bita Bardi
   Layout concept: two doors from one calm home: Psychotherapy (light, sage) and Coaching (deep teal, gold).
   Arched photo frames echo a doorway; the white-on-teal tree logo anchors every page. */

:root {
  --bg: #F7F4EE;        /* warm linen */
  --paper: #FFFDF9;
  --soft: #EDE6D9;      /* warm sand */
  --line: #DCD3C3;
  --ink: #1C3231;
  --muted: #5B6662;
  --teal: #0F6365;      /* from the logo */
  --teal-hover: #0B4D4F;
  --sun: #B9822C;       /* warm sunlight accent, used sparingly */
  --deep: #0D4547;      /* coaching section ground */
  --on-deep: #EEF5F2;
  --on-deep-muted: #B8CFCA;
  --gold: #E2B565;
  --logo-filter: none;

  --display: "Marcellus", "Palatino Linotype", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.7rem;
  --step-3: 2.3rem;
  --step-4: clamp(2.4rem, 5vw, 3.4rem);

  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1B1B; --paper: #152524; --soft: #1C3231; --line: #2A4442;
    --ink: #E3ECE8; --muted: #A4B8B3; --teal: #7CC2BE; --teal-hover: #9AD3CF;
    --sun: #E2B565; --deep: #0A2F30; --on-deep: #EEF5F2; --on-deep-muted: #B8CFCA; --gold: #E9C27D; --logo-filter: brightness(0) invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1B1B; --paper: #152524; --soft: #1C3231; --line: #2A4442;
  --ink: #E3ECE8; --muted: #A4B8B3; --teal: #7CC2BE; --teal-hover: #9AD3CF;
  --sun: #E2B565; --deep: #0A2F30; --on-deep: #EEF5F2; --on-deep-muted: #B8CFCA; --gold: #E9C27D; --logo-filter: brightness(0) invert(1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.eyebrow { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); font-weight: 600; }
.lead { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 50; }

/* Draft notes: visible only in the draft, remove before going live */
.draft-note { background: #FFF4D6; color: #5B4310; border: 1px dashed #C9A24B; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 54px; height: auto; filter: var(--logo-filter); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.brand-text span { white-space: nowrap; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a { text-decoration: none; color: var(--ink); padding: 0.45rem 0.7rem; border-radius: 999px; font-size: 0.95rem; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.4rem 0.9rem; font: inherit; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.4rem; border-radius: 999px; background: var(--teal); color: var(--paper); text-decoration: none; font-weight: 600; border: 2px solid var(--teal); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--soft); color: var(--teal); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1B2A29; }
.btn.gold:hover { background: var(--on-deep); border-color: var(--on-deep); color: #1B2A29; }
.nav .btn { padding: 0.5rem 1.1rem; margin-left: 0.4rem; color: var(--paper); white-space: nowrap; }
.nav .btn:hover { background: var(--teal-hover); color: var(--paper); }

@media (max-width: 1100px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.75rem var(--gutter) 1.25rem; }
  .nav.open { display: flex; }
  .nav .btn { margin: 0.5rem 0 0; }
}

/* ---------- Sections ---------- */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-soft { background: var(--soft); }
.section-head { display: grid; gap: 0.75rem; margin-bottom: 2.25rem; max-width: 62ch; }

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-copy h1 em { font-style: normal; color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; box-shadow: 0 30px 60px -30px rgba(15, 60, 60, .45); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.hero-figure figcaption { margin-top: 0.8rem; font-size: var(--step--1); color: var(--muted); text-align: center; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-figure { max-width: 320px; } }

.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero .wrap { display: grid; gap: 1rem; }

/* Two doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.door { border-radius: 220px 220px var(--radius) var(--radius); padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.75rem) 2.25rem; display: grid; gap: 1rem; align-content: start; text-align: center; justify-items: center; min-width: 0; }
.door.therapy { background: var(--paper); border: 1px solid var(--line); }
.door.coaching { background: var(--deep); color: var(--on-deep); }
.door.coaching .eyebrow { color: var(--gold); }
.door.coaching p { color: var(--on-deep-muted); }
.door ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; }
.door li { font-size: var(--step--1); padding: 0.25rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); }
.door.coaching li { border-color: rgba(238, 245, 242, .3); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Grids and cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.card h3 { color: var(--teal); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.steps li::before { content: "Step " counter(step); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); font-weight: 600; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Facts list (fees, credentials) */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(8rem, 0.6fr) 1fr; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 0.15rem; } }

/* Coaching (deep) section */
.deep { background: var(--deep); color: var(--on-deep); }
.deep .eyebrow { color: var(--gold); }
.deep .lead, .deep .muted, .deep p { color: var(--on-deep-muted); }
.deep h2, .deep h3 { color: var(--on-deep); }
.deep a:not(.btn) { color: var(--gold); }
.deep .card { background: rgba(255, 255, 255, .05); border-color: rgba(238, 245, 242, .18); }
.deep .card h3 { color: var(--gold); }
.deep .steps li { background: rgba(255, 255, 255, .05); border-color: rgba(238, 245, 242, .18); }
.deep .facts, .deep .facts div { border-color: rgba(238, 245, 242, .18); }
.deep .facts dt { color: var(--on-deep-muted); }
.deep .facts dd { color: var(--on-deep); }
.deep p.draft-note, .draft-note { color: #5B4310; }

.media-card { display: grid; gap: 0.75rem; text-decoration: none; color: inherit; }
.media-card img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; width: 100%; }
.media-thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--deep); display: grid; place-items: center; position: relative; }
.media-thumb img { width: 46%; aspect-ratio: auto; object-fit: contain; opacity: .9; border-radius: 0; }
.media-thumb::after { content: "▶ Watch"; position: absolute; bottom: 12px; right: 14px; font-size: 0.8rem; letter-spacing: .08em; color: var(--gold); }
.media-card .tag { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.media-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-pair figure { margin: 0; display: grid; gap: 0.5rem; }
.photo-pair img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.photo-pair figcaption { font-size: var(--step--1); }

/* Retreat announcement */
.announce { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.announce .badge { font-family: var(--display); font-size: var(--step-2); color: var(--teal); border: 1px solid var(--line); border-radius: 50%; width: 7.5rem; height: 7.5rem; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.announce .badge small { display: block; font-family: var(--body); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .announce { grid-template-columns: 1fr; } }

/* Notice (non-therapy, crisis) */
.notice { border-left: 4px solid var(--sun); background: var(--paper); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.97rem; }
.deep .notice { background: rgba(255, 255, 255, .06); color: var(--on-deep); }
.crisis { border-left-color: #B5473A; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
.signup { display: grid; gap: 0.75rem; }
.signup .row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup input[type="email"], .signup input[type="text"] { flex: 1 1 14rem; min-width: 0; padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.signup label.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); }
.signup label.consent input { margin-top: 0.3rem; }
.form-msg { font-size: var(--step--1); color: var(--teal); min-height: 1.2em; }

.issue { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1rem; max-width: 70ch; }
.issue h3 { font-size: var(--step-2); }
.issue .practice { background: var(--soft); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 0.5rem; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding-block: 3rem 2rem; font-size: 0.95rem; }
.site-footer a { color: var(--on-deep); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; display: grid; gap: 0.6rem; align-content: start; }
.footer-grid h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.1rem; color: var(--on-deep); }
.footer-logo { width: 150px; }
.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border: 1px solid rgba(238, 245, 242, .3); border-radius: 999px; text-decoration: none; font-size: 0.9rem; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(238, 245, 242, .18); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: var(--step--1); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s ease both; }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 600px) { .brand-text span { white-space: normal; } }

/* Coaching practices chips */
.practice-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.25rem 0 0; }
.practice-chips li { border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 0.3rem 0.9rem; font-size: var(--step--1); letter-spacing: 0.04em; }

/* Consultation request form */
.consult-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .consult-grid { grid-template-columns: 1fr; } }
.consult-form { display: grid; gap: 1.1rem; }
.consult-form .field { display: grid; gap: 0.35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.consult-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .consult-form .field-row { grid-template-columns: 1fr; } }
.consult-form label, .consult-form legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0; }
.consult-form label span, .consult-form legend span { color: var(--teal); }
.consult-form input[type="text"], .consult-form input[type="email"], .consult-form input[type="tel"], .consult-form textarea { width: 100%; padding: 0.75rem 0.95rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.consult-form textarea { resize: vertical; min-height: 6.5rem; }
.consult-form input:focus, .consult-form textarea:focus, .signup input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.consult-form .choices { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.3rem; }
.consult-form .choices label { font-weight: 400; display: inline-flex; gap: 0.45rem; align-items: center; }
.consult-form label.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: var(--step--1); color: var(--muted); }
.consult-form label.consent input { margin-top: 0.3rem; }
.consult-form small { font-size: var(--step--1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg.error { color: #B5473A; }

/* Prominent contact band (above footer) and footer contact button */
.contact-band { background: #0F6365; color: #fff; padding-block: clamp(2rem, 5vw, 3rem); }
.contact-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.contact-band .eyebrow { color: #E9C27D; }
.contact-band h2 { color: #fff; font-size: var(--step-2); margin: 0.2rem 0 0.4rem; }
.contact-band .contact-lines { margin: 0; font-size: 1.05rem; }
.contact-band .contact-lines a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn.light { background: transparent; border-color: #fff; color: #fff; }
.btn.light:hover { background: #fff; color: #0F6365; }
.site-footer a.footer-cta { color: #1B2A29; text-decoration: none; }
.site-footer a.footer-cta:hover { color: #1B2A29; }
.contact-band .contact-lines a { white-space: nowrap; }
/* Keep heads fully visible in the photos with Dr. Peterson */
.photo-pair img[src*="peterson"], .media-card img[src*="peterson"] { object-position: center top; }
