/* ==========================================================================
   DKS Advanced Educational Solutions — local recreation
   Palette + type sampled from the live Showit build.
   ========================================================================== */

:root {
  /* Brand palette */
  /* Palette adopted from The Practitioner's Pivot (Dina's sister brand) */
  --navy:        #1B2B4B;
  --navy-deep:   #0F1A33;
  --cream:       #F8F5F0;
  --white:       #FFFFFF;
  /* accent (formerly teal) → Practitioner's Pivot burnt orange + warm neutrals */
  --teal:        #C4622D;   /* accent: borders, figures, small highlights */
  --teal-light:  #ECE5D8;   /* soft warm band background */
  --teal-deep:   #9C4C1E;   /* accent text (eyebrows, cites) — AA on cream + warm band */
  --blue:        #2A3A5C;   /* navy-soft */
  --blue-light:  #EAEEF3;   /* soft cool band background, pairs with the warm teal-light band */
  --accent-btn:  #B45A28;   /* orange for solid buttons (AA with white text) */
  --accent-on-dark: #E8783A; /* brighter orange for small text on navy (AA) */
  --ink:         #14213D;
  --ink-soft:    #5A6680;
  --cream-soft:  rgba(248, 245, 240, 0.82);

  /* Type families */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:    'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Lato', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', 'Andale Mono', monospace;

  /* Type scale (17px base, ~1.25 ratio) — one system, used everywhere */
  --fs-eyebrow: 0.78rem;
  --fs-fine:    0.85rem;
  --fs-cite:    0.92rem;
  --fs-body:    1.0625rem;                     /* 17px */
  --fs-lead:    1.2rem;
  --fs-h3:      1.3rem;                          /* every card / step / service title */
  --fs-h2:      clamp(1.6rem, 4.6vw, 2.6rem);   /* every section title */
  --fs-h1:      clamp(2rem, 6vw, 3.4rem);
  --fs-quote:   clamp(1.25rem, 3.4vw, 1.9rem);  /* every pull quote */
  --fs-stat:    clamp(1.6rem, 5vw, 2.8rem);

  /* Line-heights */
  --lh-tight:   1.14;   /* h1 / h2 */
  --lh-title:   1.28;   /* h3 / card titles */
  --lh-body:    1.65;
  --lh-lead:    1.55;

  /* Spacing scale (8px base) */
  --sp-1: 0.5rem;    /*  8px */
  --sp-2: 1rem;      /* 16px */
  --sp-3: 1.5rem;    /* 24px */
  --sp-4: 2rem;      /* 32px */
  --sp-5: 3rem;      /* 48px */
  --sp-6: 4rem;      /* 64px */
  --sp-7: 6rem;      /* 96px */

  /* Radius scale — rounded corners throughout */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --container: 1140px;
  --shadow:    0 18px 44px -24px rgba(27, 43, 75, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(27, 43, 75, 0.4);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 var(--sp-3);
  font-weight: 500;
  text-wrap: balance;   /* fewest, evenly-filled lines — no lone trailing word */
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-title); font-weight: 600; }
h4 { font-size: var(--fs-h3); line-height: var(--lh-title); }

p { margin: 0 0 var(--sp-2); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}

.section {
  padding-block: var(--sp-7);
}

.section--tight { padding-block: var(--sp-6); }

/* Eyebrow / kicker labels (Andale Mono vibe) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 var(--sp-2);
  display: inline-block;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  color: var(--ink-soft);
}

.measure { max-width: 62ch; }
.measure-narrow { max-width: 48ch; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.75rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent-btn);    /* burnt orange, darkened just enough for WCAG AA on white */
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--teal-deep); }

.btn--light {
  background: var(--cream);
  color: var(--navy);
}
.btn--light:hover { background: var(--white); }

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--cream); }

.textlink {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.textlink:hover { border-color: var(--navy); }

.note {
  font-style: italic;
  color: var(--ink-soft);
  font-size: var(--fs-cite);
  line-height: 1.5;
  max-width: 48ch;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-soft);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 43, 75, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.24rem;
  color: var(--navy);
  line-height: 1.05;
}
.brand-mark { width: 72px; height: 72px; flex: 0 0 auto; display: block; }
.brand-word { color: var(--navy); white-space: nowrap; }   /* title stays on one line */
.brand-word span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a {
  color: var(--navy);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease;
}
.nav-links a:hover { border-color: var(--teal); }
.nav-links .btn { padding: 0.6rem 1.25rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% -10%, var(--teal-light) 0%, rgba(236, 229, 216, 0) 55%),
    var(--cream);
  padding-block: var(--sp-4);
  overflow-x: clip;   /* contain the image's right-edge shadow */
}
.hero .eyebrow { color: var(--navy); }
.hero-badge-mobile { display: none; }   /* mobile-only; desktop uses the badge on the photo */

/* Homepage hero: brand line as the headline, value proposition beneath it */
.hero-title {
  letter-spacing: -0.005em;
  margin-bottom: var(--sp-3);
  text-wrap: normal;   /* fill each line rather than "balance" into an odd break */
}
.hero-statement { max-width: 48ch; margin-bottom: 0; }

.hero h1 {
  max-width: 24ch;
  margin-bottom: var(--sp-4);
}

/* Two-column hero: copy + a contained image card (not a full-bleed background) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr;   /* give the copy column more room */
  gap: var(--sp-5);
  align-items: stretch;                /* both columns share the same height */
  /* break out of the centered 1140 column and run full width */
  max-width: none;
  padding-right: 0;                    /* image bleeds to the right edge */
  padding-left: max(var(--sp-4), 5vw); /* smaller left gutter so the copy spans further left */
}
.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-media {
  position: relative;       /* anchor for the mobile scrim */
  margin: 0;
  border-radius: var(--r-xl) 0 0 var(--r-xl);   /* rounded on the left, flush right edge */
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;             /* fill the row height set by the text block */
  min-height: 300px;
  max-height: 400px;        /* don't let the photo's aspect ratio inflate the hero */
  background: var(--teal-light);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;   /* keep faces in frame */
  display: block;
}

/* Compact hero (About page): shorter, with a smaller image column */
.hero--compact { padding-block: var(--sp-5); }
.hero--compact .hero-grid { grid-template-columns: 1.15fr 1fr; gap: var(--sp-4); }
.hero--compact .hero-media { min-height: 0; max-height: 320px; }
/* per-image focal points (override the default `center 35%`) */
.hero-media img.focus-high { object-position: center 22%; }   /* show more of the top — keeps faces in frame */
.hero-media img.focus-low  { object-position: center 58%; }   /* show more of the bottom */

@media (max-width: 860px) {
  /* image fills the whole hero; copy sits on top of a gradient scrim */
  .hero,
  .hero--compact { padding-block: 0; }
  .hero-grid,
  .hero--compact .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .hero-media,
  .hero--compact .hero-media {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }
  .hero-media::after {          /* scrim so the copy stays readable */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 26, 51, 0.62) 0%, rgba(15, 26, 51, 0.80) 55%, rgba(15, 26, 51, 0.92) 100%);
  }
  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
    min-height: 52vh;
    padding: var(--sp-5) var(--sp-3);
  }
  .hero h1 {
    max-width: 20ch;
    color: var(--cream);
    font-size: clamp(1.65rem, 6.4vw, 2.15rem);   /* a touch smaller over the photo */
  }
  .hero .lead { font-size: 1.05rem; }
  .hero-actions { margin-top: var(--sp-3); }
  /* light badge reads on the dark scrim */
  .hero-badge-mobile {
    display: block;
    width: 116px;
    height: 116px;
    margin: 0 auto var(--sp-4);   /* centred above the headline */
    border-radius: 50%;
    box-shadow: 0 12px 28px -8px rgba(15, 26, 51, 0.6);
  }
  .hero-copy .eyebrow { color: var(--teal); }
  .hero-copy .lead,
  .hero-copy .note { color: var(--cream-soft); }
  .hero-copy .textlink { color: var(--cream); }
}
@media (min-width: 861px) {
  .hero h1 { max-width: none; }   /* let the title fill the wider copy column */
}
.hero .lead { max-width: 56ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  align-items: center;
}

/* --------------------------------------------------------------------------
   Generic surfaces
   -------------------------------------------------------------------------- */
.bg-white  { background: var(--white); }
.bg-cream  { background: var(--cream); }
.bg-teal   { background: var(--teal-light); }
.bg-blue-light { background: var(--blue-light); }
.bg-navy   { background: var(--navy); color: var(--cream); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--cream); }
.bg-navy .eyebrow { color: var(--accent-on-dark); }
.bg-navy .lead { color: var(--cream-soft); }

.section-head { margin-bottom: var(--sp-5); }
.section-head h2 { max-width: none; }          /* flow to natural width = fewest lines */
.section-head .lead { max-width: 58ch; }       /* readable measure for the intro line */
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.32;
  border-left: 4px solid var(--teal);
  padding-left: var(--sp-3);
  margin: var(--sp-5) 0;
  max-width: 30ch;
}

/* Problem section */
.prose p { max-width: 62ch; }
.prose .highlight { color: var(--navy); font-weight: 700; }

/* Widened text blocks: homepage problem section + every section on the About page */
#problem .prose p,
#problem .section-head .lead,
.page-about .prose p,
.page-about .section-head .lead,
.page-about .final-cta .lead { max-width: none; }
#problem .pull-quote,
.page-about .pull-quote { max-width: 48ch; }

/* CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}
.cta-band .btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
}

/* --------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */
.section-banner {
  margin: var(--sp-5) 0 var(--sp-4);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 1;
  background: var(--teal-light);
}
.section-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;   /* keep the faces in frame */
  display: block;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.benefit-card {
  background: var(--white);
  border: 1px solid rgba(27, 43, 75, 0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.benefit-card h3 {
  margin-bottom: var(--sp-2);
}
.benefit-card p { margin-bottom: 0; color: var(--ink-soft); }
.benefit-card .num {
  font-family: var(--font-mono);
  color: var(--teal-deep);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   Stats / social proof
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin: var(--sp-5) 0 var(--sp-4);
}
.stat-card {
  background: rgba(248, 245, 240, 0.06);
  border: 1px solid rgba(196, 98, 45, 0.28);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.stat-card .figure {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  color: var(--accent-on-dark);
  line-height: 1.12;
  margin-bottom: var(--sp-1);
  white-space: nowrap;   /* figure never breaks mid-value */
}
.stat-card .figure small {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  color: var(--cream);
  margin-top: 0.25rem;
  white-space: nowrap;
}
.stat-card .caption { color: var(--cream-soft); font-size: 0.98rem; margin: 0; }

/* --------------------------------------------------------------------------
   Service cards
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1px solid rgba(27, 43, 75, 0.08);
  display: flex;
  gap: var(--sp-3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--teal);
  line-height: 1;
  flex: 0 0 auto;
}
.service-card h3 { margin-bottom: var(--sp-1); }
@media (min-width: 600px) {
  /* short card titles stay on one line */
  .service-card h3,
  .step-card h3 { white-space: nowrap; }
}
.service-card p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--sp-6);
  align-items: center;
}
.about-portrait {
  margin: 0;
  border-radius: var(--r-xl);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-light), var(--teal));
  box-shadow: var(--shadow);
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;   /* keep Dina's face in frame */
  display: block;
}
.credentials {
  color: var(--navy);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.step-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1px solid rgba(27, 43, 75, 0.08);
}
.step-card .num {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.step-card h3 { margin-bottom: var(--sp-1); }
.step-card p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.review-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1px solid rgba(27, 43, 75, 0.08);
  box-shadow: var(--shadow-sm);
}
.review-card blockquote {
  margin: 0 0 var(--sp-3);
  font-style: italic;
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.review-card .cite {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-cite);
  color: var(--teal-deep);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Free resource
   -------------------------------------------------------------------------- */
.resource-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-5);
  align-items: center;
  box-shadow: var(--shadow);
}
.resource-card h2,
.resource-card h3 { color: var(--cream); }

/* Resource card with a cover thumbnail: cover | copy | form — the hero offer, so it runs larger */
.resource-card--cover {
  grid-template-columns: 0.85fr 1.6fr;   /* cover | (copy stacked above form) */
  gap: var(--sp-5);
  padding: clamp(2.25rem, 5vw, 4rem);
  border: 1px solid rgba(196, 98, 45, 0.4);
  box-shadow: 0 26px 60px -22px rgba(15, 26, 51, 0.65);
}
.resource-cover {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(196, 98, 45, 0.35);
  transition: transform 0.25s ease;
}
.resource-card--cover:hover .resource-cover { transform: translateY(-4px); }
.resource-cover img { width: 100%; height: auto; display: block; }
.resource-body {                 /* copy stacks above the form */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-3);
}
@media (max-width: 900px) {
  .resource-card--cover { grid-template-columns: 1fr; }
  .resource-cover { max-width: 260px; margin-inline: auto; }
}
.resource-card .eyebrow { color: var(--accent-on-dark); }
.resource-card p { color: var(--cream-soft); }
.signup {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: rgba(248, 245, 240, 0.08);
  border: 1px solid rgba(196, 98, 45, 0.3);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.signup input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(196, 98, 45, 0.5);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}
.signup input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.signup .fineprint { font-size: var(--fs-fine); color: var(--cream-soft); margin: 0; }

.form-note { font-weight: 600; color: var(--navy); margin: 0; }

/* line break that only applies on mobile */
.br-mobile { display: none; }
@media (max-width: 700px) {
  .br-mobile { display: inline; }
}

/* Visually hidden (labels for screen readers) */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inline signup that sits inside a light card (protocol cards) */
.signup--inline {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: auto;          /* pin to the bottom so cards line up */
  padding-top: var(--sp-3);
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
}
.signup--inline input {
  flex: 1 1 150px;
  min-width: 0;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  background: var(--cream);
  border: 1px solid rgba(27, 43, 75, 0.22);
}
.signup--inline input:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.signup--inline .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: none;
}
/* let the form pin to the card bottom */
.benefit-card { display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   Final CTA + tagline
   -------------------------------------------------------------------------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: var(--fs-h1); margin-inline: auto; max-width: none; }
.final-cta p { margin-inline: auto; max-width: none; }   /* let the line breaks do the work */

.tagline {
  text-align: center;
  padding-block: var(--sp-6);
  background: var(--teal-light);
}
.tagline p {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 4.4vw, 3rem);   /* scales down so it always fits one line */
  color: var(--navy);
  letter-spacing: 0.08em;
  margin: 0;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream-soft);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer-brand {
  text-align: center;
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(196, 98, 45, 0.18);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: var(--sp-4);
}
.site-footer .container { max-width: 1320px; }   /* footer runs wider than the page column */
.footer-mark { width: 88px; height: 88px; display: block; margin: 0 auto var(--sp-3); }
.footer-brand .brand { margin: 0; justify-content: center; }

/* Social */
.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-3) 0 0;
  padding: 0;
}
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(196, 98, 45, 0.5);
  color: var(--cream-soft);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.social a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.social svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.footer-brand .brand-word { color: var(--cream); }
.footer-brand .brand-word span { color: var(--accent-on-dark); }   /* orange accent, AA on navy */
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin-bottom: var(--sp-2);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--cream-soft); transition: color 0.18s ease; }
.footer-col a:hover { color: var(--cream); }
.footer-col .also strong { color: var(--cream); display: block; }
.footer-bottom {
  border-top: 1px solid rgba(196, 98, 45, 0.18);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* copyright | legal (centred) | credit */
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.88rem;
  color: var(--cream-soft);
}
.footer-bottom > :first-child  { justify-self: start; }
.footer-bottom > :nth-child(2) { justify-self: center; text-align: center; }
.footer-bottom > :last-child   { justify-self: end; text-align: right; }
.footer-bottom a { color: var(--cream-soft); }
.footer-bottom a:hover { color: var(--cream); }

/* --------------------------------------------------------------------------
   Motion: reveal + parallax
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* frames whose image drifts on scroll (JS adds the class) */
.has-parallax { overflow: hidden; }
.has-parallax > img {
  will-change: transform;
  transform: scale(1.10);          /* pre-scaled so the drift never shows an edge */
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   About page: two-column splits + media frames
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--sp-6);
  align-items: center;
}
.split .prose p { max-width: none; }
.media-frame {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--teal-light);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame.ratio-54 { aspect-ratio: 5 / 4; }
.media-frame.ratio-45 { aspect-ratio: 4 / 5; }

/* Floated image: copy wraps around it */
.media-float {
  float: right;
  width: 300px;
  margin: 0.35rem 0 var(--sp-3) var(--sp-5);
}
.prose::after { content: ""; display: block; clear: both; }   /* contain the float */
.prose .pull-quote { clear: both; }                            /* quote never squeezed beside it */

@media (max-width: 700px) {
  .media-float { float: none; width: 100%; margin: 0 0 var(--sp-3); }
}

@media (max-width: 860px) {
  /* stack in natural reading order (heading -> copy -> image) */
  .split { grid-template-columns: 1fr; gap: var(--sp-4); }
  .split .media-frame { max-width: 460px; margin-inline: auto; }
}

/* --------------------------------------------------------------------------
   Services page: topic chips, numbers callout, 4-up steps
   -------------------------------------------------------------------------- */
/* Topics as a tidy two-column list */
.topic-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem var(--sp-4);
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) 0 0;
  border-top: 1px solid rgba(196, 98, 45, 0.28);
}
.topic-list li {
  position: relative;
  padding-left: 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--navy);
}
.topic-list li::before {          /* small orange marker */
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background: var(--teal);
}
@media (max-width: 640px) {
  .topic-list { grid-template-columns: 1fr; }
}

.callout {
  background: rgba(196, 98, 45, 0.07);
  border: 1px solid rgba(196, 98, 45, 0.28);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: var(--sp-4);
  align-self: start;
}
.callout p:last-child { margin-bottom: 0; }
.callout .eyebrow { color: var(--teal-deep); }

.step-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) {
  .step-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Contact page: form + details
   -------------------------------------------------------------------------- */
/* photo | form | details */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 0.85fr;
  gap: var(--sp-4);
  align-items: stretch;          /* photo, form and details all share one height */
}
.contact-grid .media-frame {
  aspect-ratio: auto;            /* height comes from the row, not a fixed ratio */
  height: 100%;
  min-height: 340px;
}
.contact-grid .callout { align-self: stretch; }
@media (max-width: 1040px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .callout { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .media-frame { display: none; }   /* photo is desktop-only */
}
.contact-form { display: grid; gap: var(--sp-3); align-content: start; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(27, 43, 75, 0.22);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }

/* Legal pages (scoped — must not touch prose headings elsewhere) */
.legal-list { margin: 0 0 var(--sp-2); padding-left: 1.2rem; max-width: 62ch; }
.legal-list li { margin-bottom: 0.5rem; }
.page-legal .prose h2 { font-size: 1.5rem; margin-top: var(--sp-5); }

.contact-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: var(--sp-2) 0;
  border-top: 1px solid rgba(196, 98, 45, 0.22);
}
.contact-list li:first-child { border-top: 0; }
.contact-list a { color: var(--navy); font-weight: 600; }
.contact-list a:hover { color: var(--teal-deep); }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .benefit-grid,
  .stat-grid,
  .step-grid,
  .review-grid,
  .service-grid { grid-template-columns: 1fr; }
  .section-banner { aspect-ratio: 16 / 10; }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .about-portrait { max-width: 360px; }
  .resource-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .brand { font-size: 0.98rem; }
  .brand-mark { width: 48px; height: 48px; }
  .nav { padding-block: var(--sp-2); }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
    background: var(--cream);
    padding: var(--sp-3);
    border-bottom: 1px solid rgba(27, 43, 75, 0.1);
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 700px) {
  /* tighter vertical rhythm between sections */
  .section { padding-block: var(--sp-5); }
  .section--tight { padding-block: var(--sp-4); }
  .section-head { margin-bottom: var(--sp-4); }
  .tagline { padding-block: var(--sp-4); }
  .section-banner { margin: var(--sp-4) 0 var(--sp-3); }
  .resource-card { padding: var(--sp-4); }
  .pull-quote { padding-left: var(--sp-2); margin: var(--sp-4) 0; }
}

@media (max-width: 700px) {
  /* mobile footer: no link columns (they're in the menu) — just brand, social, legal */
  .footer-grid { display: none; }
  .site-footer { text-align: center; padding-block: var(--sp-5) var(--sp-4); }
  .footer-brand {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: var(--sp-3);
  }
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
  }
  .footer-bottom > :first-child,
  .footer-bottom > :nth-child(2),
  .footer-bottom > :last-child { justify-self: center; text-align: center; }
}

/* keep the one-line wordmark from crowding the menu button on small phones */
@media (max-width: 420px) {
  .brand { font-size: 0.84rem; gap: 0.45rem; }
  .brand-mark { width: 36px; height: 36px; }
  .footer-mark { width: 72px; height: 72px; }
}
