/* Adam Spencer Counselling — Direction A "Horizon"
   Mobile-first. Tokens → base → layout → components → pages → motion. */

/* ---------- Fonts (self-hosted, Fontshare Zodiak + Switzer) ---------- */
@font-face { font-family: "Zodiak"; src: url("../fonts/Zodiak-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/Zodiak-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/Zodiak-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/Zodiak-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #141514;
  --charcoal: #2A2C29;
  --paper: #F5F2EC;
  --paper-2: #E9E7E1;
  --white: #FFFFFF;
  --line: #D9D6CE;
  --line-dark: #3A3D39;
  --sage: #929990;        /* brand accent: fills, rules, decoration */
  --sage-light: #C9CEC5;  /* accent text on ink */
  --sage-deep: #4F574D;   /* accent text on paper (AA) */
  --sage-ui: #737A71;     /* form borders on paper (≥3:1) */
  --mist: #D5D8D2;        /* body text on ink */
  --muted-dark: #8F938C;  /* inactive text on ink */

  --serif: "Zodiak", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Switzer", "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --max: 1280px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 80px; --header-h: 88px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; }
h1 em, h2 em, h3 em { font-style: italic; }
h1, h2, h3, summary, .eyebrow, .hero__kicker { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sage-light); color: var(--ink); }
.on-ink ::selection, .hero ::selection { background: var(--sage); color: var(--ink); }
input, textarea { caret-color: var(--sage-deep); }
:root { accent-color: var(--ink); }
address { font-style: normal; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-ink :focus-visible, .site-header.is-over-hero :focus-visible, .menu-panel :focus-visible { outline-color: var(--sage-light); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 72px; }
@media (min-width: 1100px) { .section { padding-block: 128px; } }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; } }

.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--sage-deep);
}
.on-ink .eyebrow { color: var(--sage-light); }
.h-xl { font-size: clamp(40px, 6.2vw, 64px); line-height: 1.12; }
.h-lg { font-size: clamp(36px, 5vw, 56px); line-height: 1.1; }
.lede { font-size: 18px; line-height: 1.7; color: var(--charcoal); }
@media (min-width: 900px) { .lede { font-size: 19px; } }
.prose > * + * { margin-top: 1.1em; }
.muted { color: var(--sage-deep); }

.on-ink { background: var(--ink); color: var(--paper); }

/* Drawn underline for key words: matches the text colour (ink on paper, paper on ink) */
.u {
  font-style: italic;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 3px;
  padding-bottom: .06em;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .16s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(.97); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--charcoal); }
.btn--sage { background: var(--sage); color: var(--ink); }
.btn--sage:hover { background: var(--sage-light); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--white); }
.btn--ghost-light { color: var(--paper); border-color: rgba(245, 242, 236, .6); font-weight: 500; }
.btn--ghost-light:hover { background: rgba(245, 242, 236, .12); }
.btn--ghost { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--sage);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.link-arrow:hover { text-decoration-color: var(--ink); }

/* ---------- Scroll progress "horizon line" ---------- */
.horizon {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: var(--sage); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.brand__sub { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-top: 3px; }
@media (min-width: 1100px) { .brand__name { font-size: 26px; } }

.nav-desktop { display: none; }
@media (min-width: 1100px) {
  .nav-desktop { display: flex; align-items: center; gap: 32px; font-size: 15px; }
  .nav-desktop a:not(.btn) { text-decoration: none; padding-block: 8px; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size .3s var(--ease); }
  .nav-desktop a:not(.btn):hover, .nav-desktop a[aria-current="page"] { background-size: 100% 1px; }
  .nav-desktop .nav-phone { font-weight: 500; }
}

/* Home: header floats over hero until scrolled */
.home .site-header { position: fixed; left: 0; right: 0; }
.site-header.is-over-hero { background: transparent; border-color: transparent; color: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-over-hero .btn--ink { background: var(--paper); color: var(--ink); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
}
.menu-toggle__bars { display: grid; gap: 5px; }
.menu-toggle__bars span { display: block; width: 18px; height: 1.5px; background: currentColor; }
@media (min-width: 1100px) { .menu-toggle { display: none; } }

.menu-panel {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column;
  padding: 20px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
  overflow-y: auto;
}
.menu-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.menu-panel__top { display: flex; justify-content: space-between; align-items: center; min-height: calc(var(--header-h) - 20px); }
.menu-panel nav ul { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line-dark); }
.menu-panel nav li { border-bottom: 1px solid var(--line-dark); }
.menu-panel nav a { display: block; padding: 18px 0; font-family: var(--serif); font-size: 34px; font-weight: 300; text-decoration: none; }
.menu-panel nav a[aria-current="page"] { font-style: italic; color: var(--sage-light); }
.menu-panel__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; color: var(--mist); font-size: 15px; }
.menu-panel__foot .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Mobile action bar (booking always reachable) ---------- */
.action-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  display: flex; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--paper); box-shadow: 0 10px 30px rgba(20, 21, 20, .28);
  transform: translateY(0); transition: transform .35s var(--ease);
}
.action-bar a { flex: 1 1 0; min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.action-bar a.primary { flex-grow: 1.8; background: var(--ink); color: var(--paper); }
.action-bar.is-hidden { transform: translateY(140%); }
@media (min-width: 1100px) { .action-bar { display: none; } }
body.has-action-bar .site-footer { padding-bottom: 116px; }
@media (min-width: 1100px) { body.has-action-bar .site-footer { padding-bottom: 40px; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,15,14,.6) 0%, rgba(14,15,14,.3) 22%, rgba(14,15,14,.4) 45%, rgba(14,15,14,.9) 100%);
}
@media (min-width: 900px) {
  .hero__media img { object-position: 62% 38%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(14,15,14,.55) 0%, rgba(14,15,14,0) 18%), linear-gradient(90deg, rgba(14,15,14,.84) 0%, rgba(14,15,14,.58) 42%, rgba(14,15,14,.08) 78%); }
}
.hero__inner {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 36px;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 104px;
}
@media (min-width: 1100px) { .hero__inner { padding-bottom: 36px; } }
.hero__copy { display: grid; gap: 22px; max-width: 880px; }
.hero__kicker { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-light); font-weight: 500; }
.hero h1 { font-size: clamp(48px, 9vw, 104px); line-height: .96; letter-spacing: -0.035em; }
.hero h1 em { color: var(--sage-light); }
.hero__lede { font-size: 17px; line-height: 1.6; max-width: 560px; color: #ECEAE4; }
@media (min-width: 900px) { .hero__lede { font-size: 20px; } }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__creds {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 13px; color: #E4E3DD;
  padding-top: 20px; border-top: 1px solid rgba(146, 153, 144, .45);
}
.hero__creds li { display: flex; align-items: center; gap: 18px; }
.hero__creds li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
@media (max-width: 480px) { .hero__creds li + li::before { display: none; } .hero__creds { flex-direction: column; align-items: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: var(--paper); background: var(--ink); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,14,.55), rgba(14,15,14,.82)); }
.page-hero__inner { position: relative; padding-block: 88px 56px; display: grid; gap: 18px; }
@media (min-width: 1100px) { .page-hero__inner { padding-block: 160px 88px; } }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.page-hero h1 em { color: var(--sage-light); }
.page-hero p { max-width: 620px; font-size: 18px; color: #ECEAE4; }
.page-hero--plain { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-hero--plain h1 em { color: var(--sage-deep); }
.page-hero--plain p { color: var(--charcoal); }

/* ---------- Figures: a counted numeral set into the section it supports ---------- */
.figure { display: flex; align-items: flex-end; gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.figure__num {
  flex: none;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(60px, 6.6vw, 88px); line-height: .86; letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ink);
}
.figure__label { max-width: 30ch; padding-bottom: .3em; font-size: 15px; line-height: 1.45; color: var(--sage-deep); text-wrap: balance; }

/* ---------- About ---------- */
.quote { margin: 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.4; color: var(--charcoal); }
.quote cite { font-style: normal; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-deep); }
.about__left { display: grid; gap: 40px; align-content: start; }

/* ---------- How I help ---------- */
.help__head { display: grid; gap: 20px; margin-bottom: 48px; }
@media (min-width: 900px) { .help__head { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 96px; align-items: end; margin-bottom: 64px; } }
.help__intro { color: var(--mist); font-size: 18px; line-height: 1.7; max-width: 460px; }
.help-cards { display: grid; gap: 48px; }
@media (min-width: 900px) { .help-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.help-card { display: grid; gap: 14px; align-content: start; }
.help-card__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 14px; margin-bottom: 10px; background: var(--charcoal); }
@media (min-width: 900px) { .help-card__media { aspect-ratio: 4 / 3; } }
.help-card__media img { width: 100%; height: 100%; object-fit: cover; }
.help-card h3 { font-size: clamp(28px, 2.6vw, 34px); font-weight: 400; }
.help-card p { color: var(--mist); font-size: 16px; line-height: 1.65; }
.help-card .link-arrow { justify-self: start; color: var(--paper); font-size: 15px; margin-top: 4px; }
.on-ink .link-arrow:hover { text-decoration-color: var(--paper); }

/* ---------- Specialties marquee ---------- */
.marquee { padding-block: 56px 0; display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
/* Centre the strip in the space between the hero and the next section */
.marquee + .section { padding-top: 56px; }
@media (min-width: 1100px) { .marquee { padding-top: 84px; } .marquee + .section { padding-top: 84px; } }
.marquee__track { display: flex; width: max-content; }
.marquee__list { display: flex; align-items: center; gap: 36px; padding-right: 36px; margin: 0; list-style: none; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; white-space: nowrap; }
.marquee__list li:nth-child(4n+1) { font-style: italic; }
.marquee__list li::after { content: "✦"; color: var(--sage); margin-left: 36px; font-style: normal; font-size: .6em; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: drift 60s linear infinite; }
  .marquee:hover .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__list[aria-hidden="true"] { display: none; } .marquee__list { flex-wrap: wrap; white-space: normal; row-gap: 8px; padding-inline: var(--gutter); } .marquee__track { width: auto; } }

/* ---------- Fee cards / insurer chips ---------- */
.fee-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fee-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 4px; }
.fee-card__label { font-size: 14px; color: var(--sage-deep); }
.fee-card__price { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 54px); line-height: 1.05; }
.fee-card__note { font-size: 13px; color: var(--sage-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.chips li, .chip { padding: 7px 14px; border-radius: 999px; background: #E4E6E1; }
.chips .chip--more { background: transparent; border: 1px solid var(--sage-ui); }

/* ---------- FAQ (native details) ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: 720px; color: var(--charcoal); }

/* ---------- Book / location band ---------- */
.band { background: var(--paper-2); }
.session-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.session-picker a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 22px; border-radius: 999px; border: 1px solid var(--sage-ui); text-decoration: none; font-size: 15px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.session-picker a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.small-print { font-size: 14px; color: var(--sage-deep); }

.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #E4E6E1; aspect-ratio: 5 / 3; }
.map svg, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map iframe { filter: grayscale(1) contrast(1.05) brightness(1.02); }
.map__pin { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.map__pin span:first-child { background: var(--ink); color: var(--paper); font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.map__pin span:last-child { width: 16px; height: 16px; border-radius: 50%; background: var(--sage); border: 3px solid var(--ink); }
.map__load { position: absolute; right: 12px; bottom: 12px; }
@media (max-width: 599px) { .map__lake { display: none; } .map__load { left: 12px; right: 12px; } }
.map__lake { position: absolute; left: 18px; bottom: 16px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--sage-deep); }
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist); padding-block: 64px 40px; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; } }
.footer-mark { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--paper); letter-spacing: -0.02em; }
.footer-mark em { color: var(--sage-light); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-list a { display: inline-block; padding-block: 3px; }
.crisis {
  margin-top: 48px; padding: 20px 0; border-block: 1px solid var(--line-dark);
  font-size: 15px; color: var(--paper);
}
.crisis strong { color: var(--sage-light); font-weight: 600; }
.footer-base { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

/* ---------- Services page ---------- */
.top3 { display: grid; gap: 12px; }
@media (min-width: 900px) { .top3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.top3 article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; align-content: start; }
.top3 .num { font-size: 13px; color: var(--sage-deep); }
.top3 h3 { font-size: 34px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 28px; }
.filter-bar button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--sage-ui); background: transparent; cursor: pointer; font-size: 15px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.filter-bar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.expertise { display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.expertise li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; margin-right: 24px; }
.expertise li[hidden] { display: none; }
.expertise li .tag { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); margin-top: 2px; }
.approaches { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.approaches div { display: grid; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .approaches div { grid-template-columns: 5fr 7fr; gap: 48px; } }
.approaches dt { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); color: var(--paper); }
.approaches dd { margin: 0; color: var(--mist); }
.focus-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .focus-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.focus-grid h3 { font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--sage-deep); margin-bottom: 12px; }

/* ---------- Fees page ---------- */
.search-field { display: grid; gap: 10px; }
.search-field label { font-weight: 600; font-size: 15px; }
.search-field input {
  min-height: 56px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--sage-ui); background: var(--white); font-size: 17px;
}
.insurers { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.insurers li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-right: 24px; }
.insurers li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); flex: 0 0 auto; }
.insurers li[hidden] { display: none; }
.result-note { margin-top: 16px; font-size: 15px; min-height: 1.6em; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.pay-list li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--sage-ui); font-size: 15px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--serif); font-size: 22px; color: var(--sage-deep); }
.steps strong { display: block; font-weight: 600; margin-bottom: 4px; }

/* ---------- Booking form ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 700px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; }
.field label, .field legend, fieldset legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--sage-deep); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--sage-ui); background: var(--white); font-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #9B2C1F; }
.field .error { color: #9B2C1F; font-size: 14px; font-weight: 500; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--sage-ui); background: var(--white); font-size: 15px;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--sage-deep); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 20px; border-radius: 12px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.is-error { background: #F6E3DF; color: #7A2217; }
.form-status.is-info { background: #E4E6E1; color: var(--ink); }
.aside-card { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 32px 28px; display: grid; gap: 18px; align-content: start; align-self: start; }
.aside-card .steps li::before, .on-ink .steps li::before { color: var(--sage-light); }
.aside-card a:not(.btn) { color: var(--paper); }
.aside-card .muted { color: var(--mist); }
@media (min-width: 1100px) { .book-layout { grid-template-columns: 7fr 4fr; } .aside-card { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- Motion (progressive enhancement; content visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal][data-delay="1"] { transition-delay: .08s; }
  .js [data-reveal][data-delay="2"] { transition-delay: .16s; }
  .js [data-reveal][data-delay="3"] { transition-delay: .24s; }

  /* Grouped cards: each item reveals when it enters; photos settle from a slight zoom inside their frame */
  .js [data-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js [data-stagger] > .is-in { opacity: 1; transform: none; }
  .js [data-stagger] .help-card__media img { transform: scale(1.06); transition: transform 1.2s var(--ease); }
  .js [data-stagger] > .is-in .help-card__media img { transform: none; }
  @media (min-width: 900px) {
    .js [data-stagger] > :nth-child(2), .js [data-stagger] > :nth-child(2) img { transition-delay: .08s; }
    .js [data-stagger] > :nth-child(3), .js [data-stagger] > :nth-child(3) img { transition-delay: .16s; }
  }

  .js [data-lines] .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
  .js [data-lines] .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
  .js [data-lines].is-in .line > span { transform: none; }
  .js [data-lines].is-in .line:nth-child(2) > span { transition-delay: .12s; }
  .js [data-lines].is-in .line:nth-child(3) > span { transition-delay: .24s; }

  .js .u { background-size: 0 3px; transition: background-size 1.2s var(--ease) .5s; }
  .js .is-in .u, .js .u.is-in { background-size: 100% 3px; }

  .hero__media img { animation: kenburns 18s var(--ease) both; }
  @keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
  .js .hero [data-lines] .line > span { transition-duration: 1.3s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .horizon { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
