/* ==========================================================================
   June Sayer · "Sage morning" design system (prototype)
   Mobile first. Built on the default style (white/cool-grey canvas, one action colour,
   pastel surfaces, pills, light display type) with Oevra's sage wash and
   Fruitful's portrait-led layout. See plan.md §4.
   ========================================================================== */

:root {
  /* Colour */
  --canvas: #ffffff;
  --band: #f5f6f8;
  --ink: #333333;
  --slate: #535768;
  --iron: #62657a;              /* 5.6:1 on white, 5.1:1 on the grey band */
  --hairline: #dfe2e8;
  --action: #0b7443;
  --action-deep: #054f31;
  --sage: #778643;
  --sage-deep: #5b6a2c;

  /* Pastel surfaces (never text, borders or icons) */
  --sage-mist: #e6edd9;
  --mint: #d1fadf;
  --lavender: #eddff7;
  --apricot: #fee9d1;

  /* Type */
  --font: "Poppins", "Manrope", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: clamp(2.6rem, 6.6vw, 5.5rem);
  --heading-lg: clamp(2.1rem, 4.4vw, 3.5rem);
  --heading: clamp(1.6rem, 2.6vw, 2.25rem);

  /* Shape and depth */
  --r-card: 24px;
  --r-image: 16px;
  --r-small: 6px;
  --r-pill: 999px;
  --shadow: 0 2px 48px rgba(205, 208, 223, .4);
  --shadow-raised: 0 12px 48px rgba(60, 70, 50, .14);

  /* Layout */
  --max: 1200px;
  --gutter: 16px;
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; } /* keeps focused/anchored items clear of the sticky header (WCAG 2.4.11) */
main:focus { outline: none; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;         /* 17px on phones, 18px from 641px */
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.03em; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Prototype ribbon ---------- */
.proto {
  background: var(--ink); color: #fff; text-align: center;
  font-size: .78rem; letter-spacing: .02em; padding: 7px 16px; line-height: 1.4;
}

/* ---------- Eyebrow, pills, buttons ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.plain::before { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 1rem/1 var(--font); letter-spacing: 0;
  padding: 16px 26px; border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 8px 24px rgba(11, 116, 67, .22); }
.btn-primary:hover { background: var(--action-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(51, 51, 51, .55); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-small { padding: 11px 18px; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 1rem; text-decoration: none; color: var(--ink);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { color: var(--action); }

.tag {
  display: inline-block; font-size: .8rem; font-weight: 500; line-height: 1.2;
  padding: 6px 12px; border-radius: var(--r-pill); background: #fff; color: var(--ink);
  border: 1px solid var(--hairline);
}

/* ---------- Navigation (mobile first: menu button, links in a drop-down) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.nav-inner { display: flex; align-items: center; gap: 16px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-name { display: block; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.brand-sub { display: block; font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
.nav-menu { display: none; width: 100%; order: 3; }
.nav-links { display: grid; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block; text-decoration: none; color: var(--slate); font-weight: 500;
  font-size: 1.1rem; padding: 12px 4px; border-bottom: 1px solid var(--hairline);
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: none; align-items: center; gap: 10px; }
.nav-phone { white-space: nowrap; }
.nav-toggle {
  display: block; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(51, 51, 51, .25); background: rgba(255, 255, 255, .7); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; position: relative; transition: transform .3s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav.is-open { background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.nav.is-open .nav-inner { flex-wrap: wrap; padding-bottom: 20px; }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav.is-open .nav-menu { display: block; }
.nav.is-open .nav-actions { display: flex; flex-wrap: wrap; width: 100%; order: 4; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -84px; padding: calc(84px + clamp(56px, 9vw, 120px)) 0 clamp(150px, 16vw, 210px);
}
.hero::before {
  content: ""; position: absolute; inset: -25% -15% -10%; z-index: -2;
  background:
    radial-gradient(ellipse 55% 50% at 50% 46%, rgba(119, 134, 67, .34), rgba(119, 134, 67, .10) 52%, transparent 74%),
    radial-gradient(ellipse 34% 30% at 84% 16%, rgba(214, 190, 240, .55), transparent 70%),
    radial-gradient(ellipse 30% 26% at 12% 78%, rgba(209, 250, 223, .7), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::after { /* fine paper grain for depth */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.04); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.02); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow); font-size: .85rem; font-weight: 500; color: var(--slate);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 4px rgba(11, 116, 67, .15); }
.hero h1 { font-size: var(--display); line-height: 1.04; letter-spacing: -0.045em; font-weight: 300; max-width: 15ch; margin: 28px 0 0; }
.hero h1 .accent, .contact h2 .accent {
  background: linear-gradient(100deg, var(--sage-deep) 0%, var(--action) 60%, var(--sage) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.inset {
  display: inline-block; vertical-align: -0.08em;
  width: .92em; height: .92em; margin: 0 .06em;
  border-radius: .28em; overflow: hidden;
  box-shadow: 0 10px 30px rgba(60, 70, 50, .18);
  transform: rotate(-3deg);
}
.inset img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-sub { max-width: 40rem; margin: 28px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--slate); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-ctas .btn { width: 100%; justify-content: center; }
.hero-trust { margin-top: 26px; font-size: .88rem; color: var(--slate); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--action); }

.scroll-cue {
  display: none; position: absolute; left: max(18px, calc((100vw - var(--max)) / 2 - 40px)); bottom: 210px;
  flex-direction: column; align-items: center; gap: 14px;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--slate);
}
.scroll-cue span { writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-cue i { width: 1px; height: 56px; background: linear-gradient(var(--slate), transparent); }

/* ---------- Doors (three audiences) ---------- */
.doors { position: relative; z-index: 2; margin-top: clamp(-140px, -12vw, -96px); }
.door-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 560px; margin: 0 auto; }
.door {
  display: flex; flex-direction: column; border-radius: var(--r-card); padding: 14px 14px 26px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-raised); }
.door--sage { background: var(--sage-mist); }
.door--lavender { background: var(--lavender); }
.door--apricot { background: var(--apricot); }
.door-media { border-radius: var(--r-image); overflow: hidden; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .5); }
.door-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.door:hover .door-media img { transform: scale(1.04); }
.door-body { padding: 22px 12px 0; display: flex; flex-direction: column; flex: 1; }
.door-num { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
.door h2 { font-size: 1.85rem; line-height: 1.15; font-weight: 400; letter-spacing: -0.025em; margin: 10px 0 10px; }
.door p { font-size: 1rem; line-height: 1.6; color: #45485a; margin: 0 0 20px; }
.door .link-arrow { margin-top: auto; }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section) 0; }
.section--band { background: var(--band); }
.section--tight { padding-top: 0; }
.section-head { max-width: 44rem; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: var(--heading-lg); line-height: 1.08; margin-top: 18px; }
.section-head p { margin-top: 20px; color: var(--slate); font-size: 1.125rem; }
.rule { display: inline-block; width: .9em; height: 1px; background: currentColor; vertical-align: .32em; margin: 0 .18em; opacity: .5; }

/* ---------- Meet June ---------- */
.meet { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.portrait-card { position: relative; max-width: 460px; margin: 0 auto; background: var(--sage-mist); border-radius: calc(var(--r-card) + 8px); padding: 16px 16px 20px; box-shadow: var(--shadow); }
.portrait-frame { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(to top, rgba(24, 30, 18, .74), rgba(24, 30, 18, .35) 55%, transparent); }
.portrait-name { position: absolute; left: 22px; bottom: 18px; right: 22px; z-index: 1; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.portrait-name strong { display: block; font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; }
.portrait-name span { font-size: .9rem; opacity: .92; }
.portrait-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.seal {
  position: absolute; top: -40px; right: -6px; width: 112px; height: 112px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-raised); display: grid; place-items: center;
}
.seal svg.ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.seal svg.ring text { font: 600 9.4px var(--font); letter-spacing: .24em; fill: var(--slate); text-transform: uppercase; }
.seal .seal-core { font-size: 1.5rem; font-weight: 300; letter-spacing: -0.03em; color: var(--action); line-height: 1; text-align: center; }
.seal .seal-core small { display: block; font-size: .58rem; font-weight: 600; letter-spacing: .18em; color: var(--slate); margin-bottom: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.meet-copy blockquote { margin: 22px 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.22; font-weight: 300; letter-spacing: -0.03em; }
.meet-copy blockquote .q { color: var(--sage); }
.meet-copy p { margin-top: 24px; color: var(--slate); }
.meet-copy .sig { margin-top: 6px; font-size: .95rem; color: var(--iron); }
.meet-copy .btn { margin-top: 12px; }

/* ---------- Credentials ---------- */
.creds { display: grid; grid-template-columns: 1fr; gap: 36px 0; margin-top: 56px; }
.cred { text-align: center; padding: 8px 22px; position: relative; }
.cred::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--hairline); display: none; }
.cred svg { width: 92px; height: 57px; color: var(--sage); margin: 0 auto 10px; }
.cred strong { display: block; font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.cred span { display: block; margin-top: 8px; font-size: .95rem; line-height: 1.5; color: var(--slate); max-width: 17rem; margin-inline: auto; }

/* ---------- First visit ---------- */
.visit { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 1fr; gap: 6px; align-items: start; padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow); }
.step-num { font-size: 3.4rem; line-height: .9; font-weight: 300; letter-spacing: -0.05em; color: var(--sage); }
.step h3 { font-size: 1.4rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { margin: 0; color: var(--slate); font-size: 1rem; }
.step .tag { margin-top: 14px; background: var(--mint); border-color: transparent; }
.gp-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 18px 22px; border-radius: 18px; background: rgba(255, 255, 255, .7); border: 1px solid var(--hairline); font-size: .95rem; color: var(--slate); line-height: 1.55; }
.gp-note svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--action); margin-top: 1px; }

/* ---------- Learn ---------- */
.learn-top { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.learn-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.learn-media img { width: 100%; height: 100%; object-fit: cover; }
.learn-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.learn-facts .tag { background: var(--apricot); border-color: transparent; padding: 8px 14px; }
.paths { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
.path { border-radius: var(--r-card); background: var(--band); padding: 22px; }
.path-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 6px 18px; }
.path-head h3 { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.02em; }
.path-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.course {
  position: relative; display: flex; flex-direction: column; background: var(--apricot); border-radius: 18px; padding: 20px 20px 18px;
  text-decoration: none; color: var(--ink); min-height: 236px; transition: transform .3s ease, box-shadow .3s ease;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-raised); }
.course.course--ask { background: transparent; border: 1px dashed rgba(51, 51, 51, .28); justify-content: center; min-height: 0; }
.course--ask h4 { font-weight: 400; }
.course--ask .link-arrow { margin-top: 6px; }
.course .level { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #6b5440; }
.course h4 { font-size: 1.25rem; line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; margin: 10px 0 8px; }
.course p { font-size: .92rem; line-height: 1.5; color: #4e4a45; margin: 0 0 16px; }
.course .meta { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(51, 51, 51, .12); }
.course .price { font-size: 1.35rem; font-weight: 400; letter-spacing: -0.02em; }
.course .when { font-size: .8rem; color: #5d574f; text-align: right; }
.path-row .course + .course::before { /* pathway connector between levels, wide screens only */
  content: ""; display: none; position: absolute; left: -12px; top: 32px; width: 12px; height: 1px; background: rgba(51, 51, 51, .35);
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 560px; margin: 48px auto 0; }
.quote { position: relative; margin: 0; padding: 34px 30px 26px; border-radius: var(--r-card); display: flex; flex-direction: column; }
.quote--sage { background: var(--sage-mist); }
.quote--mint { background: var(--mint); }
.quote--apricot { background: var(--apricot); }
.quote--lavender { background: var(--lavender); }
.quote::before { content: "“"; position: absolute; top: 6px; left: 24px; font-size: 5.5rem; line-height: 1; font-weight: 300; color: var(--sage); opacity: .55; }
.quote blockquote { margin: 34px 0 26px; font-size: 1.2rem; line-height: 1.5; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .92rem; font-weight: 500; color: var(--slate); }
.quote figcaption .tag { border: 0; }
.quote-example { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); background: rgba(255, 255, 255, .75); padding: 4px 10px; border-radius: var(--r-pill); }

/* ---------- Blog cards ---------- */
.blog-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.posts { display: grid; grid-template-columns: 1fr; gap: 32px 24px; max-width: 560px; margin-top: 44px; }
.post { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.post-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 11; background: var(--band); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.post:hover .post-media img { transform: scale(1.04); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 18px; font-size: .82rem; color: var(--slate); }
.post-meta .tag { border: 0; }
.tag--sage { background: var(--sage-mist); }
.tag--lavender { background: var(--lavender); }
.tag--mint { background: var(--mint); }
.tag--apricot { background: var(--apricot); }
.post h3 { font-size: 1.4rem; line-height: 1.3; font-weight: 400; letter-spacing: -0.02em; margin-top: 12px; }
.post:hover h3 { color: var(--action); }
.post-excerpt { color: var(--slate); font-size: 1rem; margin: 8px 0 0; }

/* ---------- Contact band ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 150px) 0; }
.contact::before {
  content: ""; position: absolute; inset: -20%; z-index: -1;
  background:
    radial-gradient(ellipse 50% 55% at 50% 55%, rgba(119, 134, 67, .30), rgba(119, 134, 67, .08) 55%, transparent 76%),
    radial-gradient(ellipse 30% 30% at 18% 25%, rgba(254, 233, 209, .8), transparent 70%),
    radial-gradient(ellipse 28% 28% at 85% 80%, rgba(237, 223, 247, .8), transparent 70%);
  animation: drift 30s ease-in-out infinite alternate-reverse;
}
.contact h2 { font-size: var(--display); line-height: 1.02; letter-spacing: -0.045em; }
.contact p.lead { max-width: 34rem; margin: 24px 0 0; color: var(--slate); font-size: 1.2rem; }
.contact .hero-ctas { margin-top: 34px; }
.visit-facts { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 520px; margin: 56px 0 0; }
.fact { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fact svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--action); margin-top: 2px; }
.fact strong { display: block; font-weight: 500; font-size: 1rem; }
.fact span { display: block; font-size: .92rem; color: var(--slate); line-height: 1.5; margin-top: 2px; }

/* ---------- Affiliate links (home page) ---------- */
.affiliates { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 560px; }
.affiliate { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 26px; border-radius: var(--r-card); background: var(--mint); box-shadow: var(--shadow); }
.affiliate--sage { background: var(--sage-mist); }
.affiliate--lavender { background: var(--lavender); }
.affiliate--apricot { background: var(--apricot); }
.affiliate h3 { margin: 0; font-size: 1.35rem; font-weight: 500; }
.affiliate p { margin: 0; color: var(--ink); }
.affiliate .btn { margin-top: auto; }
.affiliate .btn svg, .footer-partners a svg { transform: rotate(-45deg); } /* points up and out: leaves the site */
.affiliate .btn:hover svg { transform: rotate(-45deg) translateX(3px); }
.affiliate-note { max-width: 40rem; margin: 28px auto 0; text-align: center; color: var(--slate); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.footer p { color: var(--slate); font-size: .95rem; max-width: 22rem; margin-top: 18px; }
.footer-title { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { text-decoration: none; color: var(--ink); font-size: .98rem; }
.footer ul a:hover { color: var(--action); }
.footer-partners a svg { width: 14px; height: 14px; display: inline-block; vertical-align: -1px; }
.footer .footer-note { font-size: .85rem; margin-top: 14px; }
.socials { display: flex; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--slate); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--action); border-color: var(--action); }
.socials svg { width: 18px; height: 18px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hairline); font-size: .85rem; color: var(--iron); }
.footer-legal a { color: var(--iron); }

/* ---------- Reveal on scroll ---------- */
/* Only hide content for the fade-in when JavaScript can reveal it again. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Larger screens (mobile first: each block only adds to the one before)
   ========================================================================== */
@media (min-width: 641px) {
  :root { --gutter: 20px; }
  body { font-size: 1.125rem; }               /* 18px body for an older audience */
  .hero { text-align: center; }
  .hero h1, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero-ctas .btn { width: auto; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(even)::before { display: block; }
  .step { grid-template-columns: 96px 1fr; gap: 20px; padding: 28px 28px 26px; }
  .path-row { grid-template-columns: repeat(2, 1fr); }
  .contact { text-align: center; }
  .contact p.lead { margin-left: auto; margin-right: auto; }
  .visit-facts { margin: 56px auto 0; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .affiliates { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; max-width: none; }
}

@media (min-width: 901px) {
  :root { --gutter: 24px; }
  .nav-inner { gap: 24px; height: 84px; flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav-menu, .nav.is-open .nav-menu { display: block; margin: 0 auto; width: auto; order: 0; }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a { padding: 10px 10px; border-radius: var(--r-pill); border-bottom: 0; font-size: .9rem; }
  .nav-links a:hover { background: rgba(119, 134, 67, .12); }
  .nav-actions, .nav.is-open .nav-actions { display: flex; width: auto; order: 0; margin: 0; }
  .nav-phone { display: none; }
  .nav.is-open { background: transparent; box-shadow: none; }
  .nav.is-open .nav-inner { padding-bottom: 0; }
  .scroll-cue { display: flex; }
  .door-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .meet { grid-template-columns: 5fr 6fr; }
  .portrait-card { max-width: none; margin: 0; }
  .seal { top: -34px; right: -30px; width: 132px; height: 132px; }
  .creds { grid-template-columns: repeat(4, 1fr); row-gap: 0; }
  .cred + .cred::before { display: block; }
  .visit { grid-template-columns: 4fr 7fr; }
  .learn-top { grid-template-columns: 6fr 5fr; }
  .path-row { grid-template-columns: repeat(3, 1fr); }
  .path-row .course + .course::before { display: block; }
  .quotes { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .posts { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .visit-facts { grid-template-columns: repeat(3, 1fr); max-width: 980px; }
  .footer { padding-top: 80px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-grid--partners { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
}

@media (min-width: 1081px) {
  .nav-links a { padding: 10px 14px; font-size: .95rem; }
  .nav-phone { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
