/* ============================================================
   Inner Dew Counseling PLLC — stylesheet
   One palette (Ochre & Moss) and one type pairing, baked in.
   Layout sizes are % / vw / rem — no fixed pixel widths.
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   1. COLOR THEMES
   ============================================================ */

/* Ochre & Moss — chosen palette. Warm olive brand, ochre accent, oat paper.
   Contrast-verified: ink 13.0:1, ink-soft 6.7:1, brand 8.9:1 on --bg;
   white-on-brand 9.5:1; brand-2 4.6:1; accent 3.5:1 (used only >=24px / UI marks). */
:root {
  --ink: #29271A; --ink-soft: #565033;
  --bg: #FBF8EC; --bg-alt: #F0EBD5; --surface: #FFFDF6;
  --brand: #4C4626; --brand-2: #79714A; --brand-3: #DCD6AE; --brand-wash: #EDE9CF;
  --accent: #B07A2E; --dew: #D2CDA2; --line: #E5DFC2;
}

/* ============================================================
   2. TYPE PAIRINGS
   ============================================================ */
/* --cjk sits in every stack so Chinese glyphs render in Noto Sans TC rather than
   whatever the OS picks — that is what makes CJK and Latin line up. */
:root {
  /* logo height + the nav's .6rem top/bottom padding — derived, not guessed.
     site.js overwrites it with the measured value once it runs. */
  --header-h: calc(clamp(2.75rem, 3.4vw, 4.5rem) + 1.2rem);
  --cjk: "Noto Sans TC", "PingFang TC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  /* Lora, not Fraunces: Fraunces has a WONK axis and a strong opsz axis, so the
     bigger the heading the more its terminals slant and go asymmetric — lively,
     but it reads as unsteady here. Lora is a brushed-curve serif: same warmth,
     no wobble. */
  --font-display: "Lora", Georgia, var(--cjk), serif;
  --font-body: "Karla", system-ui, var(--cjk), sans-serif;
  --display-weight: 500;
  --display-spacing: -0.008em;
}

/* CJK ideographs fill the em box, so at an equal font-size they read larger
   than Latin lowercase. Nudge down + tighten so the two sit on the same line. */
.cjk {
  font-family: var(--cjk);
  font-size: 0.92em;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ============================================================
   3. BASE
   ============================================================ */
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.15;
  letter-spacing: var(--display-spacing);
  color: var(--brand);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.4rem); }

p  { text-wrap: pretty; }
a  { color: var(--brand); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 0 0 .5rem .5rem;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container { width: min(90%, 70rem); margin-inline: auto; }
.container--narrow { width: min(90%, 46rem); margin-inline: auto; }

.section { padding-block: clamp(4rem, 2.5rem + 6vw, 7.5rem); }
.section--alt  { background: var(--bg-alt); }

.stack > * + * { margin-top: 1.15rem; }
.stack-lg > * + * { margin-top: 2rem; }


.split {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 53.75em) {
  .split { grid-template-columns: 0.85fr 1.15fr; }
}


/* ============================================================
   5. TEXT BITS
   ============================================================ */
.lede { font-size: clamp(1.1rem, 1.02rem + 0.45vw, 1.3rem); color: var(--ink-soft); line-height: 1.65; }
.small { font-size: .875rem; color: var(--ink-soft); }

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px var(--brand); }
.btn--primary:hover { background: var(--ink); color: #fff; }


/* ============================================================
   7. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }

/* The header is the one place that must NOT sit inside the 1120px content cap —
   the hero below it is full-bleed, so a capped header leaves the logo floating
   far from the edge on wide screens (365px in at 1850px, 95px at 1311px: two
   completely different layouts). Inset is a % of the viewport instead, with a
   floor so phones don't go edge-to-edge. Body sections keep the 1120px cap,
   because that's a reading-width decision, not an alignment one. */
.site-header .nav {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: max(1.25rem, 4%);
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--brand); }
.brand-mark { height: clamp(2.75rem, 3.4vw, 4.5rem); width: auto; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.1; font-weight: var(--display-weight); }
.brand-sub { display: block; font-family: var(--font-body); font-size: .64rem; letter-spacing: .17em; text-transform: uppercase; color: var(--brand-2); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink); position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--brand); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: .5rem .9rem; cursor: pointer; font-size: .85rem; font-weight: 600;
}
@media (max-width: 55em) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; inset: 100% 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem clamp(1.25rem, 5vw, 2rem) 1.75rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  }

/* ============================================================
   7b. BRAND STATEMENT — explains the practice name
   ============================================================ */
/* Deliberately quiet: sits on the plain --bg between the full-screen photo and
   the --alt About band, so it reads as a breath rather than another pitch.
   Not overlaid on the hero: no region of that photo clears 4.5:1 for body text
   (best is 3.2:1 on the sleeve), and a scrim was ruled out. */
/* The column is centred on the page (.container--narrow), the type inside it is
   ragged-right — so the block reads as one settled object instead of a poster. */
.brand-note { text-align: left; }
.brand-note-mark {
  height: clamp(5.5rem, 7.2vw, 8rem); width: auto;   /* doubled */
  margin: 0 auto clamp(1.1rem, 2vw, 1.6rem);         /* centred over ragged-right type */
}
.brand-note h2 { margin-bottom: .9rem; text-align: center; }
.brand-note p {
  font-size: clamp(1.05rem, .96rem + 0.42vw, 1.25rem);
  line-height: 1.72; color: var(--ink-soft);
}

/* ============================================================
   8. HERO — full bleed, only the bottom is ever trimmed
   ============================================================ */
/* object-position: center top means cover can only ever cut from the BOTTOM;
   the width always fills, so the left and right edges are never cropped.
   Widening the aspect-ratio per breakpoint = "trim more off the bottom". */
.hero-photo { background: var(--bg); }
.hero-figure { position: relative; }
.hero-figure img {
  display: block; width: 100%;
  /* Header + photo = exactly one screen. Driven by viewport HEIGHT, so a short
     laptop window and a tall monitor both get a full first screen — the amount
     trimmed off the bottom adapts by itself. --header-h is measured in site.js. */
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  /* Guard: never so tall that cover would start eating the left/right edges.
     100vw / 1.5 is the height at which the frame is exactly the photo's ratio. */
  max-height: calc(100vw / 1.5);
  object-fit: cover;
  object-position: center top;          /* so cover can only ever eat the bottom */
}
/* Phones are too narrow for a full-height frame without cropping the sides,
   so they get a fixed 4:3 window instead (keeps the top 89%). */
@media (max-width: 43.6875em) {
  .hero-figure img { height: auto; aspect-ratio: 4 / 3; max-height: none; }
  /* One line only works on a wide screen. On a 375px phone the same 41 characters
     would need a ~9px font, and at 320px the nowrap box overflows the viewport
     and produces a horizontal scrollbar. Wrap to two lines instead — and because
     phones show the whole uncropped frame, this lands on the darkest corner
     (p95 luminance 0.10 -> 6.9:1 for white), so smaller type is still fine. */
  .hero-slogan { max-width: 82%; }
  .hero-slogan h1 {
    white-space: normal;
    text-align: right;
    font-size: 1.05rem;
    line-height: 1.4;
  }
}

/* One short line, pushed far right — which is also the darkest strip of the
   frame (blurred grass, p95 luminance 0.14), so it reads without touching the photo. */
.hero-slogan {
  position: absolute; right: 0; bottom: 0;
  padding: clamp(.9rem, 2vw, 1.9rem) clamp(1.25rem, 4vw, 4rem);
}
.hero-slogan h1 {
  font-family: var(--font-body);
  font-style: italic; font-weight: 500;
  /* doubled: was max .85rem. At 27px it counts as WCAG large text (>=24px),
     which only needs 3:1 — and the shadow carries it over the brighter palm. */
  font-size: clamp(.85rem, .45rem + 1.35vw, 1.7rem);
  line-height: 1.35; letter-spacing: .01em;
  white-space: nowrap;
  color: #FFFBF2;
  text-shadow: 0 1px 4px rgba(16,20,8,.7), 0 3px 22px rgba(16,20,8,.8);
}

/* arch-shaped portrait — soft, organic, very "therapy site" */
.arch {
  border-radius: 50% 50% .875rem .875rem / 26% 26% 3% 3%;
  overflow: hidden; background: var(--brand-wash);
  aspect-ratio: 4 / 5; position: relative;
  box-shadow: 0 30px 60px -40px rgba(0,0,0,.45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--sm { max-width: min(100%, 22rem); }


/* ============================================================
   9. CARDS
   ============================================================ */


@media (min-width: 50em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ============================================================
   10. QUOTE / PULL
   ============================================================ */

/* ============================================================
   11. FAQ + FEES
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  color: var(--brand); position: relative; font-weight: var(--display-weight);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--accent); transition: transform .2s; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 68ch; }
.faq details > div > * + * { margin-top: .8rem; }


.notice {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: .75rem; padding: 1.4rem 1.6rem; font-size: .92rem; color: var(--ink-soft);
}
.notice strong { color: var(--brand); }


/* checklist */
.checks { list-style: none; padding: 0; display: grid; gap: .85rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; color: var(--ink-soft); }
.checks li::before {
  content: ""; flex: none; margin-top: .55rem;
  width: .5em; height: .5em; border-radius: 50%; background: var(--dew);
  box-shadow: 0 0 0 .25em color-mix(in srgb, var(--dew) 25%, transparent);
}

/* ============================================================
   12. CTA BAND + FOOTER
   ============================================================ */

.site-footer { background: var(--brand); color: rgba(255,255,255,.8); padding-block: 4rem 2rem; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: var(--brand-3); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-sub { color: var(--brand-3); }
/* ============================================================
   13. DIVIDER + REVEAL
   ============================================================ */

.reveal { opacity: 0; transform: translateY(1.1rem); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   14. ONE-PAGER PIECES
   ============================================================ */

/* ---- specialty list — many short items, balanced columns ------------- */
.spec-items { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 38.75em)  { .spec-items { columns: 2; } }
@media (min-width: 62.5em) { .spec-items { columns: 3; } }
.spec-items li {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .7rem 0; font-size: .99rem; line-height: 1.5;
}
.spec-items li::before {
  content: ""; flex: none; margin-top: .62rem;
  width: .45em; height: .45em; border-radius: 50%; background: var(--dew);
  box-shadow: 0 0 0 .25em color-mix(in srgb, var(--dew) 24%, transparent);
}
/* inside the picture2 split it only has half the width — cap the columns */
.spec-items--split { columns: 1; }
@media (min-width: 67.5em) { .spec-items--split { columns: 2; column-gap: 2rem; } }

/* ---- photography ----------------------------------------------------- */
.photo { position: relative; overflow: hidden; border-radius: 1.375rem; background: var(--brand-wash); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--square { aspect-ratio: 1 / 1; }

/* ---- contact: a centred closing block, no form ------------------------ */
.contact-block { text-align: center; }
.contact-block .lede { margin-inline: auto; max-width: 46ch; }
.contact-email {
  margin-block: clamp(1.5rem, 3vw, 2.25rem) 1rem;
  font-size: clamp(.95rem, .88rem + .3vw, 1.1rem);
  word-break: break-word;
}

/* slimmer footer for the one-pager */
.footer-simple { display: grid; gap: 2.5rem; justify-items: center; text-align: center; }
.footer-contact { display: grid; gap: .5rem; font-size: 1.02rem; }
.footer-contact a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.footer-meta { font-size: .8rem; color: rgba(255,255,255,.6); display: grid; gap: .4rem; }
