/* =========================================================
   East Coast CrossFit - Danvers, MA
   Design system: gritty, disciplined, olive + bone + ink
   ========================================================= */

:root {
  /* Brand palette (sampled from the logo) */
  --ink:        #0d0e0b;   /* near-black background */
  --ink-2:      #14160f;   /* raised surfaces */
  --ink-3:      #1c1e15;   /* cards */
  --bone:       #efece0;   /* primary text on dark */
  --bone-dim:   #b9b7a7;   /* secondary text */
  --olive:      #6a743f;   /* brand olive */
  --olive-2:    #869150;   /* brighter olive (hover/accents) */
  --olive-deep: #3f4626;   /* deep olive */
  --brass:      #c8a24a;   /* warm accent (rope / stars) */
  --line:       rgba(239,236,224,.12);
  --line-2:     rgba(239,236,224,.22);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 4px;

  --ff-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .005em;
  margin: 0 0 .4em;
}
.h-xl, .h-lg, .h-md { font-weight: 500; }
.value h3, .program h3, .step h3, .review__who b { font-weight: 500; }
/* Section headings span up to 80% on desktop (1–2 lines), full width on mobile */
.h-lg:not(.center), .h-md:not(.center) { max-width: 80%; }
/* Centered contexts (CTA band, .center) must not inherit the left-anchored 80% cap */
.cta .h-lg, .cta .h-md, .center.h-lg, .center.h-md { max-width: 100%; }
@media (max-width: 768px) { .h-lg, .h-md { max-width: 100%; } }

p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .8rem;
  color: var(--olive-2);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--olive-2);
  display: inline-block;
}

.h-xl { font-size: clamp(2.6rem, 7vw, 5.4rem); }
.h-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--bone-dim); max-width: 62ch; }

.muted { color: var(--bone-dim); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--olive);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--ff-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .98rem;
  padding: 1rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  will-change: transform;
}
.btn:hover { background: var(--olive-2); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(134,145,80,.6); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(239,236,224,.06); border-color: var(--bone); box-shadow: none; }

.btn--block { width: 100%; }
.btn--lg { padding: 1.15rem 2.2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10,11,8,.86);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { height: 58px; width: auto; }
.brand__txt { font-family: var(--ff-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; line-height: 1; white-space: nowrap; }
.brand__txt small { display: block; font-size: .62rem; letter-spacing: .34em; color: var(--olive-2); font-weight: 500; margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  font-family: var(--ff-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .92rem;
  font-weight: 500;
  color: var(--bone-dim);
  transition: color .2s ease;
  position: relative;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--bone); }

.nav__cta { display: flex; align-items: center; gap: 1.1rem; }
.nav__phone { font-family: var(--ff-display); font-weight: 600; letter-spacing: .04em; font-size: .95rem; white-space: nowrap; }
.nav__phone:hover { color: var(--olive-2); }

.nav__toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.nav__toggle span { display: block; height: 2px; background: var(--bone); margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,8,.55) 0%, rgba(10,11,8,.72) 45%, rgba(10,11,8,.96) 100%),
    linear-gradient(90deg, rgba(10,11,8,.85) 0%, rgba(10,11,8,.35) 60%, rgba(10,11,8,.2) 100%);
}
.hero__inner { padding-block: clamp(40px, 8vh, 90px); max-width: 960px; }
.br-m { display: none; }
@media (max-width: 640px) { .br-m { display: inline; } }
.hero h1 { margin-top: .3rem; }
.hero h1 em { font-style: normal; color: var(--olive-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__trust {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.4rem;
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  color: var(--bone-dim); font-size: .95rem;
}
.stars { color: var(--brass); letter-spacing: .12em; font-size: 1rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 1; font-family: var(--ff-display); text-transform: uppercase;
  letter-spacing: .3em; font-size: .68rem; color: var(--bone-dim);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--olive-2), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity:.3; transform: scaleY(.6);} 50% { opacity:1; transform: scaleY(1);} }

/* ---------- Value blocks ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.value {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  transition: border-color .25s ease, transform .25s ease;
}
.value:hover { border-color: var(--olive); transform: translateY(-4px); }
.value__num { font-family: var(--ff-display); font-weight: 700; color: var(--olive-2); font-size: .9rem; letter-spacing: .2em; }
.value h3 { font-size: 1.5rem; margin-top: .8rem; }
.value p { margin: 0; color: var(--bone-dim); }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow); }
.split__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--olive); color: #fff; padding: 1rem 1.3rem; border-radius: var(--radius);
  font-family: var(--ff-display); text-transform: uppercase; line-height: 1; box-shadow: var(--shadow);
}
.split__badge b { font-size: 2rem; display: block; }
.split__badge span { font-size: .72rem; letter-spacing: .18em; color: rgba(255,255,255,.8); }

.checklist { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--bone); }
.checklist svg { flex: 0 0 auto; margin-top: 3px; color: var(--olive-2); }

/* ---------- Programs ---------- */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.program {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--ink-3);
  display: flex; flex-direction: column; gap: .5rem;
  transition: border-color .25s ease, background .25s ease;
}
.program:hover { border-color: var(--olive); background: var(--ink-2); }
.program__ico { width: 46px; height: 46px; color: var(--olive-2); margin-bottom: .4rem; }
.program h3 { font-size: 1.4rem; margin: 0; }
.program p { margin: 0; color: var(--bone-dim); }
.program__tag { margin-top: .4rem; font-family: var(--ff-display); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); counter-reset: step; }
.step { position: relative; padding-top: 1rem; }
.step__n {
  font-family: var(--ff-display); font-weight: 700; font-size: 3.6rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--olive); text-stroke: 1.5px var(--olive);
  margin-bottom: .6rem;
}
.step h3 { font-size: 1.35rem; }
.step p { margin: 0; color: var(--bone-dim); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; margin-top: 2.5rem; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,11,8,.5));
  opacity: 0; transition: opacity .3s ease;
}
.gallery figure:hover::after { opacity: 1; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ---------- Stats band ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  border-block: 1px solid var(--line);
}
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,11,8,.88), rgba(10,11,8,.82)); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat b { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); display: block; color: var(--bone); line-height: 1; }
.stat span { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); font-family: var(--ff-display); }
.stat b em { font-style: normal; color: var(--olive-2); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.review {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; background: var(--ink-2);
  display: flex; flex-direction: column;
}
.review__stars { color: var(--brass); letter-spacing: .1em; margin-bottom: .9rem; }
.review p { color: var(--bone); font-size: 1.02rem; }
.review__who { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; gap: .8rem; border-top: 1px solid var(--line); }
.review__ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; color: #fff; }
.review__who b { display: block; font-family: var(--ff-display); font-weight: 600; letter-spacing: .01em; font-size: 1rem; }
.review__who span { font-size: .82rem; color: var(--bone-dim); }

.grev { display: inline-flex; align-items: center; gap: .6rem; margin-top: 2.5rem; color: var(--bone-dim); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  color: var(--bone); font-family: var(--ff-display); font-weight: 500;
  letter-spacing: .01em; font-size: 1.15rem; padding: 1.5rem 3rem 1.5rem 0; position: relative;
}
.faq__q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--olive-2); transition: transform .25s ease; font-weight: 400;
}
.faq__item.is-open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding-bottom: 1.5rem; margin: 0; color: var(--bone-dim); }

/* ---------- CTA band ---------- */
.cta {
  text-align: center; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 50% 0%, var(--olive-deep) 0%, var(--ink-2) 60%);
  border: 1px solid var(--olive);
  padding: clamp(48px, 7vw, 90px) var(--gutter);
}
.cta .btn { margin-top: 1.6rem; }
.cta__or { margin-top: 1.2rem; font-size: .95rem; color: var(--bone-dim); }
.cta__or a { color: var(--olive-2); font-weight: 600; }

/* ---------- Lead form ---------- */
.lead {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 60px);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2);
}
.lead__info { padding: clamp(28px, 4vw, 52px); }
.lead__info ul { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1rem; }
.lead__info li { display: flex; gap: .8rem; align-items: flex-start; color: var(--bone-dim); }
.lead__info li b { color: var(--bone); font-weight: 600; }
.lead__info svg { flex: 0 0 auto; color: var(--olive-2); margin-top: 2px; }
.lead__form { padding: clamp(28px, 4vw, 52px); background: var(--ink-3); border-left: 1px solid var(--line); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--bone-dim); margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; background: var(--ink); color: var(--bone);
  border: 1px solid var(--line-2); border-radius: var(--radius); font-family: var(--ff-body); font-size: 1rem;
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--olive-2); }
.form-note { font-size: .82rem; color: var(--bone-dim); margin-top: .4rem; }
.form-thanks { text-align: center; padding: 1.5rem .5rem; }
.form-thanks h3 { font-size: 1.5rem; color: var(--bone); }
.form-thanks p { color: var(--bone-dim); margin: 0; }
.form-thanks a { color: var(--olive-2); font-weight: 600; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(48px, 6vw, 72px); }
.footer-grid h4 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone); }
.footer-grid a { color: var(--bone-dim); transition: color .2s ease; }
.footer-grid a:hover { color: var(--olive-2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-brand img { height: 88px; margin-bottom: 1rem; }
.footer-brand p { color: var(--bone-dim); max-width: 34ch; }
.socials { display: flex; gap: .8rem; margin-top: 1.1rem; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--radius); display: grid; place-items: center; color: var(--bone-dim); transition: all .2s ease; }
.socials a:hover { color: #fff; border-color: var(--olive); background: var(--olive); }
.hours-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; color: var(--bone-dim); }
.hours-list li b { color: var(--bone); font-weight: 500; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--bone-dim); }
.footer-bottom a { color: var(--bone-dim); }

/* ---------- Reveal animation (progressive enhancement) ---------- */
/* Elements are fully visible by default; only hidden once JS is active,
   so the page never stays blank if JS fails or is disabled. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .values, .programs, .steps, .reviews, .stats { grid-template-columns: repeat(2, 1fr); }
  .split, .lead { grid-template-columns: 1fr; }
  .lead__form { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split__media { order: -1; }
  .split__badge { left: 16px; bottom: 16px; }
  .gallery { grid-auto-rows: 150px; }
}

/* Collapse the primary nav to a menu button before the links can crowd the logo */
@media (max-width: 1200px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(10,11,8,.98); backdrop-filter: blur(12px);
    padding: 2rem var(--gutter); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { font-size: 1.2rem; }
}

@media (max-width: 720px) {
  .values, .programs, .steps, .reviews, .stats, .footer-grid { grid-template-columns: 1fr; }
  .stats { gap: 2.2rem; }
  body { font-size: 16px; }
  .hero__ctas .btn { width: 100%; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .g-tall { grid-row: span 2; }
}

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

/* =========================================================
   Nav dropdown (Programs)
   ========================================================= */
.nav__dd { position: relative; }
.nav__dd > a { display: inline-flex; align-items: center; gap: .35rem; }
.nav__dd > a::after {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.nav__dd-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 244px;
  background: rgba(10,11,8,.98); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem;
  display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  box-shadow: var(--shadow);
}
.nav__dd:hover .nav__dd-menu, .nav__dd:focus-within .nav__dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav__dd:hover > a::after, .nav__dd:focus-within > a::after { transform: rotate(225deg) translateY(2px); }
.nav__dd-menu a {
  padding: .7rem .85rem; font-size: .82rem !important; letter-spacing: .08em;
  color: var(--bone-dim); border-radius: 3px; white-space: nowrap;
}
.nav__dd-menu a:hover { background: rgba(239,236,224,.06); color: var(--bone); }
/* Right-align the "More" menu so it never runs off the right edge */
.nav__dd--end .nav__dd-menu { left: auto; right: -12px; }

/* =========================================================
   Interior (service) pages
   ========================================================= */
.pagehero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(76px + clamp(48px, 8vw, 88px)) 0 clamp(48px, 8vw, 88px);
}
.pagehero__bg { position: absolute; inset: 0; z-index: -2; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,8,.78), rgba(10,11,8,.92)),
    linear-gradient(90deg, rgba(10,11,8,.86), rgba(10,11,8,.42) 70%);
}
.pagehero h1 { margin-top: .4rem; }
.pagehero .lede { margin-top: 1.1rem; }
.pagehero .hero__ctas { margin-top: 1.8rem; }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .72rem; color: var(--bone-dim); margin-bottom: 1.3rem;
}
.breadcrumb a { color: var(--olive-2); }
.breadcrumb a:hover { color: var(--bone); }
.breadcrumb span { opacity: .5; }

/* Article + sticky CTA sidebar */
.svc-layout { display: grid; grid-template-columns: 1.65fr .85fr; gap: clamp(32px, 5vw, 68px); align-items: start; }
.prose { max-width: 68ch; }
.prose > p { color: var(--bone-dim); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 2.4rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 1.8rem 0 .5rem; }
.prose .checklist { margin-top: 1.2rem; }

.svc-side {
  position: sticky; top: 100px;
  border: 1px solid var(--olive); border-radius: var(--radius);
  background: radial-gradient(130% 130% at 50% 0%, var(--olive-deep) 0%, var(--ink-2) 65%);
  padding: 2rem 1.8rem;
}
.svc-side h3 { font-size: 1.35rem; }
.svc-side p { color: var(--bone-dim); font-size: .96rem; }
.svc-side .btn { margin-top: .4rem; }
.svc-side ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; font-size: .92rem; }
.svc-side li { display: flex; gap: .6rem; color: var(--bone-dim); }
.svc-side li svg { flex: 0 0 auto; color: var(--olive-2); margin-top: 3px; }

/* "Learn more" on homepage program cards */
.program { text-decoration: none; }
.program__more { margin-top: auto; padding-top: .9rem; font-family: var(--ff-display); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--olive-2); display: inline-flex; align-items: center; gap: .4rem; transition: gap .2s ease; }
.program:hover .program__more { gap: .8rem; color: var(--olive-2); }

@media (max-width: 1200px) {
  /* In the mobile menu, show the Programs submenu inline instead of a floating dropdown */
  .nav.is-open .nav__dd-menu {
    opacity: 1; visibility: visible; transform: none;
    position: static; background: none; border: 0; box-shadow: none; padding: .6rem 0 0 1rem; min-width: 0;
  }
  .nav.is-open .nav__dd > a::after { display: none; }
  .nav.is-open .nav__dd-menu a { padding: .5rem 0; }
}

@media (max-width: 960px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-side { position: static; }
}

/* Compact the header on phones so the CTA fits cleanly next to the logo + menu */
@media (max-width: 560px) {
  .brand__txt { display: none; }        /* logo emblem already reads "East Coast CrossFit" */
  .brand img { height: 50px; }
  .nav__cta { gap: .5rem; }
  .nav__cta .btn { padding: .6rem 1rem; font-size: .78rem; letter-spacing: .06em; }
  .nav__toggle { width: 40px; height: 40px; padding: 9px; margin-right: -6px; }
}

@media (max-width: 360px) {
  .nav__cta .btn { padding: .55rem .85rem; }
}
