/* ==========================================================================
   EG Waterfalls — Estate Planning
   Homepage stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base & reset
   3.  Utilities
   4.  Typography
   5.  Buttons & links
   6.  Header + mobile nav
   7.  Hero
   8.  Why waterfalls
   9.  Client journey
   10. Core services
   11. About Eva
   12. Video series
   13. CTA band
   14. Footer
   15. Responsive
   ========================================================================== */

/* 1. Design tokens ======================================================== */

:root {
  /* Palette */
  --slate:        #2c4c5d;  /* primary: header, journey band, footer, buttons, body text */
  --slate-dark:   #223b49;  /* link hover on light backgrounds (derived, 10.6:1) */
  --slate-hover:  #34586b;  /* subtle hover on dark surfaces (derived) */
  --bg:           #f2f4f4;  /* page background */
  --light:        #f7f9f9;  /* light text on dark */
  --yellow:       #f3e308;  /* accent */
  --yellow-hover: #f5e72d;  /* accent hover (derived) */
  --grey:         #b8bfc1;  /* muted grey: nav links, borders, secondary text on dark */
  --muted:        #6c8494;  /* muted slate: kicker, arrows, button hover */
  /* --light at 20%. The homepage handoff quotes rgba(244,246,246,.2) and the
     contact handoff rgba(247,249,249,.2); they differ by under 1/255 once
     composited, so one token covers both. */
  --border-dark:  rgba(247, 249, 249, 0.2);
  --error:        #9d2f24;  /* form validation only — not a brand colour */

  /* Type families */
  --serif-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --serif-body:    'Spectral', Georgia, 'Times New Roman', serif;
  --sans:          'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --pad-x: 56px;   /* section side padding */
  --pad-y: 96px;   /* section vertical padding */
  --maxw: 1600px;  /* design was drawn at 1440–1600px */

  --ease: .18s ease;
}

/* 2. Base & reset ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; margin: 0; padding: 0; }

blockquote { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--yellow);
  color: var(--slate);
}

/* Focus: currentColor reads correctly on both light and dark bands. */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* 3. Utilities ============================================================ */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--pad-y) var(--pad-x);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--yellow);
  color: var(--slate);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
}

.skip-link:focus {
  left: 0;
  color: var(--slate);
}

/* 4. Typography =========================================================== */

.h1 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 68px;
  line-height: 1.06;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15;
  text-wrap: pretty;
}

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.kicker--yellow { color: var(--yellow); }

.prose {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.85;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prose p {
  margin: 0;
  text-wrap: pretty;
}

/* Heading row shared by the Services and Videos sections */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

/* 5. Buttons & links ====================================================== */

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease);
}

/* Hover deepens the slate rather than going yellow — yellow on the light page
   background is about 1.2:1 and effectively unreadable. Yellow is kept for the
   dark bands below, where it reads at 6.9:1.

   Buttons and the logo are excluded: buttons set their own hover colours (a
   yellow button would otherwise get yellow text on a yellow fill), and the
   logo should never recolour wholesale. */
a:not(.btn, .logo):hover { color: var(--slate-dark); }

.site-header a:not(.btn, .logo):hover,
.mobile-nav a:not(.btn, .logo):hover,
.journey a:not(.btn, .logo):hover,
.steps a:not(.btn, .logo):hover,
.site-footer a:not(.btn, .logo):hover { color: var(--yellow); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 16px;
  padding: 17px 30px;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}

.btn--dark {
  background: var(--slate);
  color: var(--light);
}

.btn--dark:hover {
  background: var(--muted);
  color: var(--light);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--slate);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
}

.btn--yellow:hover {
  background: var(--yellow-hover);
  color: var(--slate);
}

/* Outlined header button — contact page only. Sits on the dark bar, so the
   yellow hover is fine here. */
.btn--outline {
  border: 1px solid var(--grey);
  color: var(--light);
  font-size: 15px;
  padding: 11px 22px;
  transition: border-color var(--ease), color var(--ease);
}

.btn--outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.link-arrow {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
}

/* 6. Header + mobile nav ================================================== */

.site-header {
  background: var(--slate);
  color: var(--light);
}

.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 26px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
}

.logo:hover { color: inherit; }

.logo__name {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
}

.logo__eg { color: var(--yellow); }

.logo__tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grey);
}

.logo--sm .logo__name { font-size: 20px; }

/* Handoff specified Spectral 15px/400 in grey. Bumped to 16px/500 on review —
   at 15px/400 the nav sat too quietly against the logo and the two buttons. */
.nav {
  font-family: var(--serif-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--grey);
}

/* WordPress wraps menu items in a <ul>, so the flex row lives on the list. */
.nav__list {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li { margin: 0; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--ease);
}

.nav-toggle:hover { color: var(--yellow); }

.nav-toggle__bars { position: relative; }

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after  { transform: translateY(7px); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--slate);
  color: var(--light);
  padding: 26px var(--pad-x) 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .22s ease;
}

.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; }

.mobile-nav__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.nav-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--ease);
}

.nav-close:hover { color: var(--yellow); }

.mobile-nav__links {
  font-family: var(--serif-display);
  font-size: 32px;
  line-height: 1.2;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__links a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
}

.mobile-nav__cta { align-self: flex-start; }

/* 7. Hero ================================================================= */

/* Full-bleed: the hero spans the viewport rather than being capped at --maxw
   like the content sections below it. The image half would otherwise stop short
   on wide screens and show page background either side. */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}

/* The text column keeps a measure, though, so the composition survives the
   extra width — without it the h1 pulls onto one line on a wide monitor.
   680px is chosen deliberately: wide enough for "Generational Wealth" (624px at
   68px) to sit on one line, narrow enough that "Cascading Generational" (719px)
   cannot — which is what holds the intended two-line break. */
.hero__text > * {
  max-width: 680px;
}

.hero__media {
  position: relative;
  border-right: 1px solid var(--grey);
  overflow: hidden;
}

.hero__media img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pause/play control for the hero video. Kept small and low-contrast so it
   doesn't compete with the composition, but it is a real focusable button with
   a 44px target. Only rendered when a video source is configured. */
.video-toggle {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  background: rgba(44, 76, 93, 0.72);
  color: var(--light);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background-color var(--ease);
}

.video-toggle:hover { background: var(--slate); color: var(--light); }

/* Two bars = pause; swaps to a triangle once paused. */
.video-toggle__icon {
  width: 10px;
  height: 12px;
  flex: none;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.video-toggle[aria-pressed='true'] .video-toggle__icon {
  border: 0;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

@media (max-width: 480px) {
  .video-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Both columns carry the divider, so the two 1px borders sit adjacent and read
   as a single 2px line between image and text. */
.hero__text {
  padding: 80px 72px;
  border-left: 1px solid var(--grey);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.hero__kicker {
  margin: 0;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

.hero__lead {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.75;
  max-width: 480px;
  text-wrap: pretty;
}

/* Left-aligned with the rest of the text column. The handoff drew this
   right-aligned, but that was changed on review. */
.hero__actions {
  display: flex;
  justify-content: flex-start;
}

/* Page-hero variant (contact page): shorter band, smaller h1, no button. */
.hero--page .hero__inner { min-height: 440px; }
.hero--page .hero__text  { gap: 26px; }
.hero--page .h1          { font-size: 60px; }
.hero--page .hero__lead  { max-width: 470px; }

/* 8. Why waterfalls ======================================================= */

.why { border-top: 1px solid var(--grey); }

.why__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 72px;
}

.why__kicker { margin-bottom: 18px; }

/* 9. Client journey ======================================================= */

.journey {
  background: var(--slate);
  color: var(--light);
}

.journey__kicker { margin-bottom: 16px; }
.journey__title { margin-bottom: 48px; }

.journey__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
}

.stage {
  background: var(--slate);
  color: inherit;
  text-align: left;
  padding: 28px 24px;
  min-height: 110px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color var(--ease);
}

.stage:hover { background: var(--slate-hover); }

.stage__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage__num {
  font-family: var(--serif-body);
  font-size: 14px;
  color: var(--yellow);
}

.stage__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
  transition: opacity var(--ease);
}

.stage[aria-selected='true'] .stage__dot { opacity: 1; }

.stage__name {
  font-family: var(--serif-display);
  font-size: 24px;
  line-height: 1.2;
}

.journey__panel {
  border: 1px solid var(--border-dark);
  border-top: none;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  min-height: 150px;
}

.journey__detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.journey__line {
  margin: 0;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--light);
}

.journey__desc {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--grey);
  text-wrap: pretty;
}

.journey__outputs {
  display: flex;
  flex-direction: column;
}

.outputs__label {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-dark);
}

.outputs__list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-dark);
  font-family: var(--sans);
  font-size: 15px;
}

/* 10. Core services ======================================================= */

.services__head {
  border-bottom: 2px solid var(--slate);
  padding-bottom: 16px;
}

.services__list {
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--grey);
  color: var(--slate);
}

/* Keep the whole row from shifting — accent the name and arrow only.
   Typed selector so it outranks the generic a:not(...):hover rule. */
a.service:hover { color: var(--slate); }

.service__num {
  font-family: var(--serif-body);
  font-size: 14px;
}

.service__name {
  font-family: var(--serif-display);
  font-size: 24px;
  line-height: 1.2;
  transition: color var(--ease);
}

.service__desc {
  font-family: var(--sans);
  font-size: 15px;
}

.service__arrow {
  color: var(--muted);
  transition: color var(--ease), transform var(--ease);
}

.service:hover .service__name,
.service:focus-visible .service__name,
.service:hover .service__arrow,
.service:focus-visible .service__arrow { color: var(--slate-dark); }

.service:hover .service__arrow { transform: translateX(4px); }

/* 11. About Eva =========================================================== */

.about { border-bottom: 1px solid var(--grey); }

.about__grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: center;
}

.about__portrait { height: 440px; }

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.about__quote {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.3;
  text-wrap: pretty;
}

.about__text {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.8;
  max-width: 560px;
  text-wrap: pretty;
}

/* 12. Video series ======================================================== */

.videos__head { margin-bottom: 44px; }

.videos__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.video {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--slate);
}

a.video:hover { color: var(--slate); }

.video__thumb {
  display: block;
  height: 170px;
  overflow: hidden;
}

.video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.video:hover .video__thumb img { transform: scale(1.04); }

.video__ep {
  font-family: var(--serif-body);
  font-size: 13px;
}

.video__title {
  font-family: var(--serif-display);
  font-size: 20px;
  line-height: 1.35;
  transition: color var(--ease);
}

.video:hover .video__title,
.video:focus-visible .video__title { color: var(--slate-dark); }

/* 12b. Contact form + details sidebar ====================================== */

.contact { border-top: 1px solid var(--grey); }

.contact__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 80px;
  align-items: start;
}

.form-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form__head {
  border-bottom: 2px solid var(--slate);
  padding-bottom: 16px;
}

.form__note {
  font-family: var(--serif-body);
  font-size: 14px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field__label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.field__hint {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
}

/* Underline inputs — bottom border only, transparent background. */
.field__input {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--slate);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey);
  border-radius: 0;
  padding: 12px 2px;
  outline: none;
  min-height: 44px;
  transition: border-color var(--ease);
}

/* The spec calls for a yellow focus underline, but yellow on this background
   is ~1.2:1 — the focus indicator would be invisible, which fails WCAG 2.4.11.
   Deepened slate at 2px instead: unmistakable, and consistent with the link
   hover treatment. */
.field__input:focus {
  border-bottom: 2px solid var(--slate-dark);
  padding-bottom: 11px;
}

.field__textarea {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--light);
  border: 1px solid var(--grey);
  border-radius: 0;
  padding: 16px;
  outline: none;
  resize: vertical;
  transition: border-color var(--ease);
}

.field__textarea:focus { border-color: var(--muted); }

/* Only flag a problem once the visitor has actually interacted. */
.field__input:user-invalid {
  border-bottom-color: var(--error);
}

.field__input:user-invalid:focus {
  border-bottom-color: var(--error);
}

/* Topic chips ------------------------------------------------------------- */

/* Deliberately a block, not flex: a <legend> is taken out of the fieldset's
   normal flow, so a flex `gap` would stack on top of its margin and double the
   spacing below the label. Block + margin gives exactly the 12px specified. */
.chips-group {
  border: 0;
  margin: 0;
  padding: 0;
  display: block;
}

.chips-group legend {
  display: block;
  padding: 0;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--grey);
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  /* No transition — the spec calls for an instant style swap on selection. */
}

/* The checkbox stays in the accessibility tree and the tab order — it is only
   visually hidden, so Space toggles the chip and the value posts normally. */
.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

/* :has() drives the selected look; .is-selected is the JS fallback. */
.chip:has(input:checked),
.chip.is-selected {
  background: var(--yellow);
  border-color: var(--yellow);
}

.chip:hover { border-color: var(--slate); }

.chip:has(input:focus-visible),
.chip.has-focus {
  outline: 2px solid var(--slate-dark);
  outline-offset: 2px;
}

/* Form footer ------------------------------------------------------------- */

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.form__privacy {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 14px;
  max-width: 380px;
  text-wrap: pretty;
}

.form__privacy a { text-decoration: underline; }

.form__foot .btn { flex: none; }

.form__status {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--light);
  border-left: 3px solid var(--slate);
  padding: 16px 18px;
}

.form__status[hidden] { display: none; }

.form__noscript {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 16px;
  background: var(--light);
  border-left: 3px solid var(--slate);
  padding: 16px 18px;
}

.form__noscript a { text-decoration: underline; }

/* Validation ------------------------------------------------------------- */

.form__errors {
  background: var(--light);
  border-left: 3px solid var(--error);
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

.form__errors-title {
  margin: 0 0 8px;
  font-weight: 600;
}

.form__errors ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.form__errors a { text-decoration: underline; }

.field__error {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--error);
}

.field__input--error { border-bottom-color: var(--error); }

/* Honeypot: off-screen rather than display:none, since some bots skip
   anything hidden. aria-hidden and tabindex="-1" keep it away from real users. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Details sidebar --------------------------------------------------------- */

.details {
  display: flex;
  flex-direction: column;
}

.details__row {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--grey);
}

.details__row:first-child { border-top: 2px solid var(--slate); }

.details__label {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.details__value {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 24px;
  line-height: 1.2;
}

.details__text {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.7;
  text-wrap: pretty;
}

.eva-card {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--light);
  border: 1px solid var(--grey);
  padding: 22px;
}

.eva-card__photo {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
}

/* The source is a portrait crop (see egw-avatar in functions.php), so the square
   circle trims the bottom rather than the sides — keeping the face large. */
.eva-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.eva-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.eva-card__name {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 20px;
  line-height: 1.2;
}

.eva-card__role {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
}

.eva-card__quote {
  margin: 0;
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}

/* 12b-ii. Thank-you page =================================================== */

.confirm__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 720px;
}

.confirm__title { font-size: 60px; }

.confirm__lead {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.75;
  text-wrap: pretty;
}

.confirm__notice { align-self: stretch; }

.confirm__actions { margin-top: 6px; }

.confirm__aside {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--muted);
}

.confirm__aside a { text-decoration: underline; }

@media (max-width: 1100px) {
  .confirm__title { font-size: 48px; }
}

@media (max-width: 480px) {
  .confirm__title { font-size: 40px; }
}

/* 12c. What happens next =================================================== */

.steps {
  background: var(--slate);
  color: var(--light);
}

.steps__kicker { margin-bottom: 16px; }
.steps__title  { margin-bottom: 48px; }

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  background: var(--slate);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__num {
  font-family: var(--serif-body);
  font-size: 14px;
  color: var(--yellow);
}

.step__title {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
}

.step__desc {
  margin: 0;
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--grey);
  text-wrap: pretty;
}

/* 12d. FAQ accordion ======================================================= */

.faq__head {
  border-bottom: 2px solid var(--slate);
  padding-bottom: 16px;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

/* Built on <details name="faq">, so the browser enforces one-open-at-a-time
   and it still works with JavaScript disabled. */
.faq__item { border-bottom: 1px solid var(--grey); }

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker { display: none; }
.faq__summary::marker { content: ''; }

.faq__q {
  font-family: var(--serif-display);
  font-size: 26px;
  line-height: 1.25;
  transition: color var(--ease);
}

.faq__summary:hover .faq__q { color: var(--slate-dark); }

.faq__mark {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  flex: none;
}

.faq__mark::after { content: '+'; }
.faq__item[open] .faq__mark::after { content: '\2013'; }

/* The open/close animation is driven by main.js, not CSS.
   A ::details-content transition was tried first, but combined with native
   <details name> exclusivity it produced jitter — the browser closes the
   previous panel in one frame while CSS eases the new one open, so two height
   changes hit the same layout with different curves. One JS-owned animation
   gives a single duration and easing in every browser. */

.faq__a {
  margin: 0;
  padding-bottom: 26px;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.8;
  max-width: 820px;
  text-wrap: pretty;
}

/* 13. CTA band ============================================================ */

.cta { border-top: 1px solid var(--grey); }

.cta__inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta .h2 { max-width: 640px; }

.cta .btn { flex: none; }

/* 14. Footer ============================================================== */

.site-footer {
  background: var(--slate);
  color: var(--grey);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 56px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__brand .logo__name { color: var(--light); }

.footer__tagline {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
}

.footer__nav {
  display: flex;
  gap: 64px;
  font-family: var(--sans);
  font-size: 14px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__meta {
  font-family: var(--sans);
  font-size: 14px;
  text-align: right;
  line-height: 1.6;
}

/* 15. Responsive ========================================================== */

/* --- ≤1100px ------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root {
    --pad-x: 32px;
    --pad-y: 72px;
  }

  .h1 { font-size: 52px; }

  .hero--page .h1 { font-size: 48px; }

  .hero__text { padding: 56px 40px; }

  .why__grid { gap: 48px; }

  /* Sidebar drops below the form; steps stay 3-up until 820px. */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* Description drops under the name */
  .service {
    grid-template-columns: 40px 1fr auto;
    column-gap: 24px;
    row-gap: 6px;
    align-items: baseline;
  }

  .service__num   { grid-column: 1; grid-row: 1; }
  .service__name  { grid-column: 2; grid-row: 1; }
  .service__arrow { grid-column: 3; grid-row: 1; }
  .service__desc  { grid-column: 2; grid-row: 2; }

  .journey__panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__grid { gap: 48px; }
}

/* --- ≤820px -------------------------------------------------------------- */
@media (max-width: 820px) {
  .nav { display: none; }

  .nav-toggle { display: inline-flex; }

  /* Hero stacks: image above text */
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__media {
    min-height: 320px;
    border-right: none;
    border-bottom: 1px solid var(--grey);
  }

  /* Stacked, so the divider moves to the horizontal edges — border-left would
     otherwise run down the side of the text block. */
  .hero__text {
    padding: 56px var(--pad-x);
    border-left: none;
    border-top: 1px solid var(--grey);
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .journey__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .journey__panel { padding: 28px; }

  /* Number + name + arrow only */
  .service {
    grid-template-columns: 40px 1fr auto;
    align-items: center;
  }

  .service__desc { display: none; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__portrait {
    max-width: 360px;
    width: 100%;
  }

  .videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .videos__head { margin-bottom: 32px; }

  /* Contact page */
  .field-grid { grid-template-columns: 1fr; }

  .steps__grid { grid-template-columns: 1fr; }

  .faq__q { font-size: 22px; }

  .faq__summary { gap: 20px; }

  /* Outlined Contact Eva moves into the overlay; Get Started stays visible. */
  .site-header__actions .btn--outline { display: none; }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__meta { text-align: left; }
}

/* --- ≤480px -------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --pad-x: 24px;
    --pad-y: 56px;
  }

  .h1 { font-size: 40px; }
  .h2 { font-size: 32px; }
  .hero--page .h1 { font-size: 40px; }

  .about__quote { font-size: 28px; }

  /* Contact page */
  .details__value { font-size: 20px; }

  .eva-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .mobile-nav__links { font-size: 28px; }

  .videos__grid { grid-template-columns: 1fr; }

  .journey__tabs { grid-template-columns: 1fr; }

  .journey__panel { padding: 24px; }

  .stage { min-height: 0; padding: 22px 20px; }

  .btn { padding: 15px 22px; font-size: 15px; }

  .btn--yellow { padding: 11px 18px; font-size: 14px; }

  .footer__nav { gap: 40px; }
}

/* --- Very narrow header -------------------------------------------------- */
@media (max-width: 380px) {
  .logo__name { font-size: 19px; }
  .btn--yellow { padding: 10px 14px; font-size: 13px; }
  .site-header__inner { gap: 12px; }
}

/* --- Motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .service:hover .service__arrow,
  .video:hover .video__thumb img { transform: none; }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header__actions,
  .mobile-nav,
  .skip-link { display: none !important; }

  body { background: #fff; }

  .journey,
  .site-footer {
    background: #fff;
    color: #000;
  }
}

/* 16. Generic page / article / archive templates ============================
   Used by pages and posts that have no bespoke design yet (The Journey,
   About Eva, Insights, privacy notice). Same tokens and rhythm as the designed
   sections, with a single readable measure for prose.
   ========================================================================== */

.page-body__inner { max-width: 820px; }

.page-body__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 26px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--slate);
}

.page-body__media { margin-bottom: 40px; }

.page-body__media img {
  width: 100%;
  height: auto;
}

/* Prose from the block editor. Kept deliberately narrow in scope — these are
   the only blocks the editor is allowed to insert (see inc/editor.php). */
.prose-content {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.85;
}

.prose-content > * + * { margin-top: 22px; }

.prose-content h2 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  margin-top: 48px;
}

.prose-content h3 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.25;
  margin-top: 36px;
}

.prose-content p { margin: 0; text-wrap: pretty; }

.prose-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content ul,
.prose-content ol {
  padding-left: 22px;
  list-style: disc;
}

.prose-content ol { list-style: decimal; }

.prose-content li + li { margin-top: 8px; }

.prose-content blockquote {
  padding-left: 24px;
  border-left: 2px solid var(--yellow);
  font-size: 22px;
  line-height: 1.5;
}

.prose-content img { height: auto; }

.prose-content figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.prose-content hr {
  border: 0;
  border-top: 1px solid var(--grey);
  margin: 44px 0;
}

.prose-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.prose-content th,
.prose-content td {
  padding: 12px 0;
  border-bottom: 1px solid var(--grey);
  text-align: left;
  vertical-align: top;
}

/* Wide content must scroll inside itself, never the page. */
.prose-content figure.wp-block-table { overflow-x: auto; }

/* Pagination ------------------------------------------------------------- */

.pagination {
  margin-top: 44px;
  font-family: var(--sans);
  font-size: 15px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--grey);
}

.pagination .page-numbers.current {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--light);
}

@media (max-width: 480px) {
  .prose-content h2 { font-size: 26px; }
  .prose-content blockquote { font-size: 19px; }
}
