/* =========================================================
   HLBPerform — style.css
   Design tokens are grouped at the top. To match the live
   Squarespace site exactly, replace the font names and the
   hex values in :root with the values from Squarespace →
   Styles. Everything else inherits from these.
   ========================================================= */

:root {
  /* ---- Colour ---- */
  --blue-pale:  #c9dbeb;   /* powder-blue section background */
  --blue-btn:   #aecde9;   /* light-blue pill button */
  --blue-btn-h: #98bfe1;   /* button hover */
  --blue-deep:  #1b5aa3;   /* footer band */
  --grey-pale:  #ececeb;   /* light-grey section background */
  --ink:        #141414;   /* text + dark buttons */
  --ink-soft:   #3b3b3b;   /* body text */
  --muted:      #6b6b6b;   /* captions / meta */
  --paper:      #ffffff;
  --line:       rgba(20,20,20,.14);

  /* ---- Type ---- */
  --display: "Playfair Display", "Georgia", serif;   /* headings / display */
  --body:    "Lora", "Georgia", serif;                /* body copy */

  /* ---- Metrics ---- */
  --wrap: 1200px;
  --wrap-narrow: 820px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  /* respect notch/rounded-corner insets in landscape */
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap.narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }

/* Nothing should ever be able to push the page sideways */
h1, h2, h3, h4, p, li, summary, label, a { overflow-wrap: break-word; }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-py: 14px; --btn-px: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  font-family: var(--body); font-size: 1.02rem; font-weight: 500;
  padding: var(--btn-py) var(--btn-px);
  border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: background .2s var(--ease), color .2s var(--ease),
              transform .15s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-lg { --btn-py: 17px; --btn-px: 40px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--blue-btn); color: var(--ink); }
.btn-primary:hover { background: var(--blue-btn-h); }

.btn-dark { background: var(--ink); color: #fff; border-radius: 10px; }
.btn-dark:hover { background: #000; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); border-radius: 10px; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* =========================================================
   Header / nav
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
/* dark scrim behind the bar so white text stays legible over the photo */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  transition: opacity .3s var(--ease);
}
.site-header.scrolled::before { opacity: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand {
  font-family: var(--display); font-weight: 600; font-size: 1.5rem;
  letter-spacing: -.01em; text-decoration: none; color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
/* transparent over hero, solid once scrolled */
.site-header[data-header] { background: transparent; }
.site-header.scrolled { background: rgba(255,255,255,.95); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .brand { color: var(--ink); text-shadow: none; }

/* compressed cluster, pinned right */
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 26px); }
.primary-nav ul { display: flex; align-items: center; gap: clamp(16px, 1.7vw, 26px); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; color: #fff; font-size: 1rem; white-space: nowrap;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
  transition: border-color .2s var(--ease), opacity .2s var(--ease), color .3s var(--ease), text-shadow .3s var(--ease);
}
.primary-nav a:hover { opacity: .7; }
.primary-nav a.active { border-bottom-color: currentColor; }
.site-header.scrolled .primary-nav a { color: var(--ink); text-shadow: none; }
/* Book Now pill keeps dark text on its light-blue background in every state */
.nav-cta { color: var(--ink) !important; text-shadow: none !important; }

.nav-toggle { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: #fff; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 32%, rgba(0,0,0,.28) 70%, rgba(0,0,0,.55) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero-content h1 {
  color: #fff; max-width: 16ch;
  font-size: clamp(2.15rem, 5.4vw, 4.1rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -.015em;
  text-shadow: 0 2px 22px rgba(0,0,0,.35);
  margin-bottom: 1.1em;
}
.hero-content .btn { box-shadow: 0 10px 30px rgba(0,0,0,.22); }

/* =========================================================
   Marquee
   ========================================================= */
.marquee { background: var(--blue-pale); color: var(--ink); overflow: hidden; padding: 22px 0; }
.marquee-track {
  display: flex; align-items: center; gap: 42px; width: max-content;
  font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500;
  animation: marquee 70s linear infinite;
  will-change: transform;
}
.marquee-track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: var(--section-y); }
.section-blue { background: var(--blue-pale); color: var(--ink-soft); }
.section-grey { background: var(--grey-pale); }
.section-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; letter-spacing: -.02em; }
.section-title.center { margin-bottom: 1em; }
.display-title { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 500; line-height: 1.03; letter-spacing: -.02em; margin-bottom: .7em; }
.eyebrow { font-family: var(--body); text-transform: uppercase; letter-spacing: .22em; font-size: .82rem; color: var(--muted); margin-bottom: 1.4em; }
.lead { font-size: 1.18rem; }
.sub-head { font-size: 1.5rem; margin-top: 1.6em; }

/* ---------- My Journey ---------- */
.journey-grid { display: grid; grid-template-columns: minmax(0, .82fr) 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.journey-photo { margin: 0; }
.journey-photo img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(20,40,70,.18); width: 100%; }
.journey-copy p { color: var(--ink-soft); }
.journey-copy .btn { margin-top: .8em; }

/* ---------- What I Offer (carousel) ---------- */
.carousel { position: relative; }
.carousel-track {
  list-style: none; margin: 0; padding: 6px 2px 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  gap: 34px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.offer-card { scroll-snap-align: start; }
.offer-img { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 22px; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.offer-card:hover .offer-img img { transform: scale(1.04); }
.offer-card h3 { font-size: 1.75rem; font-weight: 600; margin-bottom: .5em; }
.offer-card p { color: var(--ink-soft); font-size: 1.02rem; }

.carousel-arrow {
  position: absolute; top: 33%; z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  border: none; background: rgba(20,20,20,.82); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}
.carousel-arrow svg { width: 24px; height: 24px; }
.carousel-arrow:hover { background: #000; }
.carousel-arrow.prev { left: -6px; }
.carousel-arrow.next { right: -6px; }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Why HLBPerform (about) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr minmax(0, .78fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.why-copy p { color: var(--ink-soft); }
.why-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.why-photo img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(20,40,70,.2); width: 100%; }

.stats {
  list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); padding-top: clamp(36px, 5vw, 56px);
}
.stats li { text-align: center; }
.stat-num { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat-label { display: block; margin-top: .5em; font-size: .95rem; color: var(--muted); }

.accolade-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(36px, 5vw, 56px); }
.accolade-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.accolade-strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Coaching ---------- */
#coaching .lead strong { font-family: var(--display); font-weight: 600; }
.expect-list {
  list-style: none; margin: 2.4em 0 2.8em; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 44px;
  text-align: left;
}
.expect-list li { border-left: 2px solid var(--ink); padding-left: 22px; }
.expect-list h4 { font-size: 1.3rem; font-weight: 600; margin-bottom: .35em; }
.expect-list p { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Training Plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: start; margin-top: 1em; }
.plan-card {
  position: relative; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 12px 40px rgba(20,40,70,.10);
  display: flex; flex-direction: column;
}
.plan-card.featured { box-shadow: 0 18px 54px rgba(20,40,70,.20); outline: 2px solid var(--ink); }
.plan-tag {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: var(--ink); color: #fff; font-family: var(--body);
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.plan-img { aspect-ratio: 3 / 2; overflow: hidden; }
.plan-img img { width: 100%; height: 100%; object-fit: cover; }
.plan-body { padding: 30px clamp(22px, 2.4vw, 32px) 32px; display: flex; flex-direction: column; flex: 1; }
.plan-body h3 { font-size: 1.7rem; font-weight: 600; margin-bottom: .15em; }
.price { font-family: var(--display); font-size: 1.5rem; color: var(--ink); margin-bottom: .9em; }
.plan-intro { color: var(--ink-soft); font-size: 1rem; }
.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .55em; font-size: 1rem; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 14px; height: 8px; border-left: 2px solid var(--blue-deep); border-bottom: 2px solid var(--blue-deep);
  transform: rotate(-45deg);
}
.best-for { font-style: italic; color: var(--muted); font-size: .98rem; margin-bottom: 1.4em; }
.plan-body .btn { margin-top: auto; }

/* ---------- Contact form ---------- */
.enquiry-form { margin-top: 2.4em; text-align: left; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--ink); margin-bottom: .5em; }
.req { color: var(--muted); font-family: var(--body); font-size: .82rem; font-weight: 400; }
.opt { color: var(--muted); font-family: var(--body); font-size: .82rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.7); border: 1.5px solid rgba(20,20,20,.28);
  border-radius: 999px; padding: 15px 20px; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { border-radius: 18px; resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); background: #fff; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23141414' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 20px; padding-right: 52px; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.error { color: #b3261e; font-size: .88rem; margin: .45em 0 0; min-height: 0; }
.checkbox { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; cursor: pointer; }
.checkbox input { width: 22px; height: 22px; accent-color: var(--ink); flex: 0 0 auto; }
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: .92rem; color: var(--muted); margin: 0 0 18px; }
.form-consent a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.form-status { margin-top: 18px; font-size: 1.02rem; }
.form-status.success { color: #1c6b3a; font-family: var(--display); }
.form-status.error { color: #b3261e; }
[data-submit][aria-busy="true"] { opacity: .7; pointer-events: none; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--blue-deep); color: #eaf1fb; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 36px; align-items: start; padding-block: clamp(44px, 6vw, 72px); }
.site-footer .brand { color: #fff; font-size: 1.5rem; }
.footer-tag { color: #cddffb; font-size: 1rem; margin-top: .4em; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { text-decoration: none; color: #eaf1fb; opacity: .9; transition: opacity .2s var(--ease); }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-social { display: flex; gap: 14px; }
.social { width: 44px; height: 44px; border: 1.4px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; color: #fff; transition: background .2s var(--ease), color .2s var(--ease); }
.social svg { width: 22px; height: 22px; }
.social:hover { background: #fff; color: var(--blue-deep); }
.footer-base { border-top: 1px solid rgba(255,255,255,.22); padding-block: 22px; }
.footer-base p { margin: 0; font-size: .9rem; color: #cddffb; }

/* =========================================================
   Legal pages (terms / privacy)
   ========================================================= */
/* Pages with no hero need the solid header from the start */
.site-header.header-locked { background: rgba(255,255,255,.95); box-shadow: 0 1px 0 var(--line); }
.site-header.header-locked::before { opacity: 0; }
.site-header.header-locked .brand,
.site-header.header-locked .primary-nav a { color: var(--ink); text-shadow: none; }
.site-header.header-locked .nav-toggle span { background: var(--ink); box-shadow: none; }

.legal-page { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 72px)); padding-bottom: var(--section-y); background: var(--paper); }
.legal-head { margin-bottom: clamp(28px, 4vw, 44px); }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; margin-bottom: .3em; }
.legal-updated { color: var(--muted); font-size: .95rem; margin: 0; }

.legal { max-width: 760px; }
.legal h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 600;
  margin: 2em 0 .5em; padding-top: 1.1em; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { margin-top: 1.2em; }
.legal h3 { font-size: 1.15rem; font-weight: 600; margin: 1.4em 0 .4em; }
.legal p, .legal li { font-size: 1.04rem; color: var(--ink-soft); }
.legal ul { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.legal ul li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.legal ul li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-deep);
}
.legal a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-note {
  background: var(--grey-pale); border-left: 3px solid var(--ink);
  padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 1.6em 0;
}
.legal-note p { margin: 0; font-size: 1rem; }
.legal-back { display: inline-block; margin-top: clamp(32px, 4vw, 52px); }

.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-legal a { color: #cddffb; font-size: .9rem; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-base .footer-base-inner { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0;
  font-family: var(--display); font-weight: 500; color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 13px; height: 13px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 48px 26px 0; }
.faq-a p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .journey-grid { grid-template-columns: 1fr; gap: 34px; }
  .journey-photo { max-width: 460px; margin-inline: auto; }
  .why-grid { grid-template-columns: 1fr; }
  .why-photo { position: static; order: -1; max-width: 520px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .expect-list { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan-card.featured { order: -1; }
}

/* ---- Nav collapses to hamburger below 1080px (the full horizontal
       nav needs ~910px + gutters, so iPad portrait/landscape must
       use the drawer to avoid crushed or clipped links) ---- */
@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: none; background: transparent; cursor: pointer; z-index: 120;
  }
  .nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin-inline: auto; box-shadow: 0 1px 6px rgba(0,0,0,.4); transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease); }
  .site-header.scrolled .nav-toggle span,
  .site-header.header-locked .nav-toggle span,
  .nav-open .nav-toggle span { background: var(--ink); box-shadow: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    background: var(--paper); flex-direction: column; justify-content: flex-start;
    align-items: flex-start; gap: 8px;
    padding: max(90px, calc(var(--header-h) + 20px)) 40px 40px;
    transform: translateX(100%); transition: transform .34s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.18);
    /* short screens (landscape phones): let the drawer scroll rather than clip */
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-right: max(40px, env(safe-area-inset-right));
  }
  .nav-open .primary-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; width: 100%; }
  .primary-nav a { font-size: 1.3rem; color: var(--ink); text-shadow: none; }
  .site-header .primary-nav a.active { border-bottom-color: var(--ink); }
  .nav-cta { margin-top: 12px; }
}

@media (max-width: 760px) {
  .hero-media img { object-position: 62% 30%; }
  .carousel-arrow { top: auto; bottom: -4px; }
  .carousel-arrow.prev { left: calc(50% - 66px); }
  .carousel-arrow.next { right: calc(50% - 66px); }
  .carousel-track { grid-auto-columns: 82%; }
  .accolade-strip { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  body { font-size: 17px; }
}

/* ---- Small phones (iPhone SE / mini) ---- */
@media (max-width: 400px) {
  :root { --header-h: 66px; --gutter: 18px; }
  .brand { font-size: 1.3rem; }
  .btn { --btn-px: 24px; }
  .btn-lg { --btn-px: 28px; }
  .stats { grid-template-columns: 1fr; gap: 26px; }
  .carousel-track { grid-auto-columns: 88%; }
}

/* ---- Landscape phones / very short viewports ----
       Stop the hero locking to full height and pushing content off-screen. */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; padding-block: calc(var(--header-h) + 28px) 48px; }
  .hero-content { padding-top: 0; }
  .hero-content h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); margin-bottom: .8em; }
  .marquee-track { font-size: clamp(1.4rem, 3vw, 2rem); }
  .primary-nav { justify-content: flex-start; }
}

/* ---- Very wide screens: keep the layout from over-stretching ---- */
@media (min-width: 1800px) {
  :root { --wrap: 1320px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .offer-img img { transition: none; }
  * { scroll-behavior: auto !important; }
}
