/* ==========================================================================
   BARRIOS NEUROSPORT CENTER — PRODUCTION STYLESHEET
   Brand colors sourced from Barrios_Neurosport_Branding_Page.pdf
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (brand colors, type scale, spacing)
   -------------------------------------------------------------------------- */
:root {
  /* Official brand colors (from brand PDF) */
  --brand-blue: #3eaefc;
  --brand-green: #29ae3c;
  --brand-magenta: #f850fb;
  --brand-gold: #fbb421;

  /* Neutral base derived from brand blue for a lab / clinical feel */
  --navy: #0a1f33;
  --navy-2: #10304d;
  --ink: #10202e;
  --muted: #5c7186;
  --line: #dbe6ef;
  --cream: #f5f9fd;
  --white: #ffffff;

  /* Brand gradient (mirrors the logo's blue → magenta brain mark) */
  --gradient-brand: linear-gradient(120deg, var(--brand-blue), var(--brand-magenta));
  --gradient-hero: linear-gradient(135deg, #0a1f33 0%, #103a5c 60%, #0e4a5c 100%);

  /* Type scale */
  --font-base: "Montserrat", Arial, Helvetica, sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius: 6px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE ELEMENTS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net: no phone should ever be able to scroll horizontally */
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
}

p {
  margin: 0;
}

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--brand-blue);
  color: var(--white);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 6px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

/* Visible focus outline for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   3. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-green);
}

.section {
  padding: 95px 0;
}

.section.alt {
  background: var(--cream);
}

.section h2 {
  font-size: clamp(31px, 3.5vw, 47px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 12px 0 20px;
  color: var(--navy);
}

.section-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
}

.center {
  text-align: center;
}
.center .section-lead {
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: var(--radius);
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.015em;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(62, 174, 252, 0.35);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.btn.dark {
  background: var(--navy);
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(8, 43, 54, 0.08);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__logo img {
  height: 54px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
}

.nav__links a:not(.btn) {
  color: var(--ink);
}
.nav__links a:not(.btn):hover {
  color: var(--brand-blue);
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Morph into an X when open (js/main.js sets aria-expanded on this button) */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 600px;
}

.hero-copy {
  padding: 100px 45px 90px 0;
  align-self: center;
}

.hero .eyebrow {
  color: #7fd8ff;
}

.hero h1 {
  font-size: clamp(43px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 18px 0 24px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand-gold), var(--brand-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: #c7dcec;
  font-size: 17px;
  max-width: 530px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 9% -15% 9% 12%;
  border: 1px solid rgba(62, 174, 252, 0.35);
  border-radius: 50%;
  transform: rotate(-20deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 80, 251, 0.25), transparent 70%);
  left: 17%;
  top: 20%;
}

.metric {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 10%;
  padding: 18px 24px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius) 0 0 var(--radius);
}
.metric b {
  font-size: 26px;
  color: var(--brand-blue);
}
.metric small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   7. TRUST STRIP
   -------------------------------------------------------------------------- */
.trust {
  background: var(--cream);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.trust ul {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--navy-2);
}

/* --------------------------------------------------------------------------
   8. IMAGE PLACEHOLDERS
   (Replace background + text with licensed BNC photography before launch.
   Keep the same class names/dimensions so swapping in <img> is a 1:1 drop-in.)
   -------------------------------------------------------------------------- */
.media,
.photo-placeholder,
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy-2);
  border: 1px dashed rgba(62, 174, 252, 0.45);
  background: linear-gradient(135deg, #eaf5ff, #eafcef);
  font-size: 13px;
  padding: 24px;
}

.media {
  min-height: 400px;
  border-radius: var(--radius);
}

.hero-visual .photo-placeholder {
  position: absolute;
  inset: 18% 12% 18% 8%;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #e6f3ff;
}

.thumb {
  height: 175px;
  border-bottom: 1px dashed rgba(62, 174, 252, 0.45);
  border-radius: 0;
}

/* Real photography — swapped in for the dashed placeholders above.
   Kept as separate classes (rather than reusing .media/.thumb) so the
   photos never inherit the placeholder's dashed border/gradient. */
.section-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* For photos where cropping to fill the box would cut off part of the
   shot (e.g. a portrait-orientation photo in this landscape slot) — shows
   the full, uncropped image, letterboxed on a neutral background. */
.section-photo--contain {
  object-fit: contain;
  background: var(--cream);
}

/* Outer frame handles the inset positioning (a plain box, so it sizes
   predictably); the <img> inside just fills it. Splitting these avoids a
   cross-browser quirk where an absolutely-positioned <img> sized only via
   inset can ignore that box and fall back to its natural pixel size. */
.hero-photo-frame {
  position: absolute;
  inset: 18% 12% 18% 8%;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(2, 12, 20, 0.45);
  overflow: hidden;
}
.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.thumb-photo {
  display: block;
  width: 100%;
  height: 175px;
  object-fit: cover;
  /* Rounded on the image itself (matching .program's border-radius),
     not just relying on the card's overflow:hidden to clip it — some
     browsers skip that clip once the card is also being transformed
     by the entrance animation, which would leave square photo corners
     poking out past the card's rounded ones. */
  border-radius: var(--radius) var(--radius) 0 0;
}

/* --------------------------------------------------------------------------
   9. ABOUT SECTION
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.feature {
  border-top: 2px solid var(--brand-blue);
  padding-top: 15px;
}
.feature b {
  display: block;
  font-size: 14px;
  color: var(--navy);
}
.feature p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}

/* --------------------------------------------------------------------------
   10. PROGRAMS (4-up grid)
   -------------------------------------------------------------------------- */
.programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.program {
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
}
.program .content {
  position: relative;
  padding: 24px 24px 24px 24px;
  padding-top: 44px; /* reserves the space the absolutely-positioned eyebrow sits in below */
  display: flex;
  flex-direction: column;
  flex: 1;
}
.program .eyebrow {
  /* Taken completely out of the flex flow so it can never push the title
     below it down: however tall "PROGRAM 0X" renders (Safari has been
     inconsistent here across identical cards), it has zero effect on
     where h3 starts, because h3 no longer follows it in normal flow. */
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  white-space: nowrap;
  overflow: hidden;
}
.program h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 7px 0 0;
  letter-spacing: -0.03em;
  color: var(--navy);
  /* Intentionally no min-height: title sits right under the eyebrow on every
     card (top-aligned by construction). Content below may wrap differently
     per card — that's acceptable so the titles stay pinned to the top. */
}
.program h4 {
  font-size: 12px;
  line-height: 1.4;
  margin: 4px 0 14px;
  color: var(--brand-blue);
  font-weight: 700;
}
.program p {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}
/* --------------------------------------------------------------------------
   11. DARK SECTIONS (Technology)
   -------------------------------------------------------------------------- */
.dark-section {
  background: var(--navy);
  color: var(--white);
}
.dark-section h2 {
  color: var(--white);
}
.dark-section .section-lead,
.dark-section p {
  color: #b9cede;
}
.dark-section .eyebrow {
  color: var(--brand-gold);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.tech-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 25px;
}
.tech-list span {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 0;
  font-size: 13px;
  display: block;
}
.tech-list span::before {
  content: "\2713";
  color: var(--brand-green);
  margin-right: 10px;
  font-weight: 800;
}

.dark-section .media {
  background: linear-gradient(135deg, #12324a, #0d2338);
  border-color: rgba(62, 174, 252, 0.5);
  color: #bfe3ff;
}

/* --------------------------------------------------------------------------
   12. PHILOSOPHY / BIOENGINEERING
   -------------------------------------------------------------------------- */
.philosophy {
  background: #eef8ff;
}
.quote {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--navy);
  border-left: 4px solid var(--brand-magenta);
  padding-left: 24px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   13. AUDIENCES
   -------------------------------------------------------------------------- */
.audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 35px;
}
.audience article {
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}
.audience b {
  font-size: 15px;
  color: var(--navy);
}
.audience p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   14. PROCESS (3-step)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 35px;
}
.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step .num {
  font-size: 45px;
  color: var(--brand-blue);
  font-weight: 900;
  line-height: 1;
}
.step h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-top: 8px;
  color: var(--navy);
}
.step p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 830px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* Full-width button so the whole question row is tappable (important on phones) */
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  text-align: left;
  padding: 20px 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}

/* Plus icon that morphs into a minus when the panel is open */
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--brand-blue);
  transform: translate(-50%, -50%);
}
.faq-icon::before {
  width: 18px;
  height: 2px;
}
.faq-icon::after {
  width: 2px;
  height: 18px;
  transition: transform 0.25s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg); /* collapses onto ::before to draw a "-" */
}

/* Animated collapse/expand via the 0fr -> 1fr grid-rows technique
   (animates to the panel's natural height without a fixed px value,
   and is supported on iOS Safari 16.4+ / all current Android browsers). */
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-panel.is-open {
  grid-template-rows: 1fr;
}
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-panel-inner p {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 20px;
}

/* --------------------------------------------------------------------------
   16. CTA BAND
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(125deg, var(--navy) 0%, #123a52 55%, #0f4a4f 100%);
  color: var(--white);
  text-align: center;
  padding: 85px 0;
}
.cta h2 {
  font-size: clamp(32px, 4vw, 51px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 12px auto;
  max-width: 730px;
  color: var(--white);
}
.cta p {
  max-width: 620px;
  margin: 20px auto 28px;
  color: #cfe3ef;
}

/* --------------------------------------------------------------------------
   17. CONTACT / GHL LEAD FORM
   -------------------------------------------------------------------------- */
.form-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.contact-details p {
  margin-top: 12px;
}
.contact-details .note {
  margin-top: 18px;
}

/* Container for the Go High Level embedded form (iframe).
   min-height matches the form's own data-height (636px) so it never
   looks cramped/scrolls before the GHL script resizes it. */
.ghl-form-container {
  min-height: 636px;
  padding: 4px;
}
.ghl-form-container iframe {
  width: 100%;
  min-height: 628px;
  border: 0;
  display: block;
}

.note {
  font-size: 11px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   18. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #071620;
  color: #a9bfca;
  padding: 45px 0;
  font-size: 12px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}
.site-footer .container > :first-child {
  text-align: left;
}
.site-footer .container > :last-child {
  text-align: right;
}
.footer-info,
.site-footer .legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
}
.footer-info {
  align-items: flex-start;
}
.site-footer .legal {
  align-items: flex-end;
}
.site-footer img {
  height: 64px;
  width: auto;
}
.site-footer a:hover {
  color: var(--brand-blue);
}

/* --------------------------------------------------------------------------
   19. ENTRANCE ANIMATIONS
   Subtle scroll-reveal: elements start slightly lower + transparent and
   settle into place the first time they enter the viewport. Progressive
   enhancement only — js/main.js adds .is-visible via IntersectionObserver;
   with JS disabled everything is already visible (see the noscript rule
   near the bottom of this section), and prefers-reduced-motion turns it
   off entirely (see section 21).
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.21, 0.6, 0.35, 1), transform 0.7s cubic-bezier(0.21, 0.6, 0.35, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Card grids: children fade up one after another instead of all at once */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* Hero: animates in on page load (it's already in view, so scroll-reveal
   doesn't apply) with a short stagger across copy, then the photo. */
.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-in 0.7s ease forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.4s; }
.hero-visual {
  opacity: 0;
  transform: scale(0.97);
  animation: hero-visual-in 0.8s ease forwards;
  animation-delay: 0.22s;
}
@keyframes hero-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-visual-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   20. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }
  .nav__links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(8, 43, 54, 0.1);
    display: none;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__links .btn {
    margin-top: 14px;
    text-align: center;
  }

  .hero-grid,
  .split,
  .tech-grid,
  .form-wrap {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 75px 0 50px;
  }
  .hero-visual {
    min-height: 370px;
  }
  .programs {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .tech-grid,
  .form-wrap {
    gap: 30px;
  }
  .section {
    padding: 65px 0;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 32px, 1160px);
  }
  .nav {
    height: 76px;
  }
  .nav__logo img {
    height: 46px;
  }
  .nav__links {
    top: 76px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-visual {
    min-height: 300px;
  }
  .programs,
  .audience,
  .steps,
  .features,
  .tech-list {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 55px 0;
  }
  .media {
    min-height: 240px;
  }
  .site-footer .container {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .site-footer .container > :first-child,
  .site-footer .container > :last-child {
    text-align: center;
    align-items: center;
  }
  .site-footer .container > :nth-child(2) {
    order: -1;
  }
}

/* --------------------------------------------------------------------------
   21. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .faq-panel,
  .faq-icon::after {
    transition: none;
  }
  .reveal,
  .reveal-stagger > *,
  .hero-copy > *,
  .hero-visual {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   22. LEGAL PAGES (Privacy Policy / Terms & Conditions)
   -------------------------------------------------------------------------- */
.site-footer .legal-links {
  white-space: nowrap;
}
.legal-page {
  padding: 60px 0 80px;
}
.legal-page .container {
  max-width: 820px;
}
.legal-page h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 10px;
}
.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}
.legal-page p {
  margin: 0 0 14px;
}
.legal-page ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}
.legal-page a {
  color: var(--brand-blue);
  text-decoration: underline;
}
.legal-date {
  color: var(--muted);
}
.legal-page a[href^="tel:"] {
  white-space: nowrap;
}
