/* ==========================================================================
   COACH YSY — GLOBAL DESIGN SYSTEM
   Editorial luxury personal-brand system.
   Sections: Variables / Reset / Typography / Layout / Header / Buttons /
   Hero / Sections / Components / Forms / Footer / Responsive
   ========================================================================== */

/* ---------- 1. CSS VARIABLES ---------- */
:root {
  --accent: #FF7D1F;
  --light-gray: #DBE1E9;
  --warm-gray: #D6D4CD;
  --white: #FFFFFF;
  --black: #000000;
  --ink: #121212;
  --muted: #5c5c5c; /* darkened from #6b6b6b — meets 4.5:1 AA on both white and warm-gray */
  --accent-ink: #B8560A; /* AA-compliant text/button shade of --accent, ~5.1:1 on white */
  --line: rgba(18, 18, 18, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.16);

  --container-width: 1440px;

  --font-primary: "Space Grotesk", "Stolzl", "Helvetica Neue", Arial, sans-serif;

  --font-size-body: 18px;
  --font-size-primary: 48px;
  --font-size-secondary: 24px;
  --font-size-large: 80px;
  --font-size-display: 104px;

  --section-padding-desktop: 120px;
  --section-padding-desktop-lg: 160px;
  --section-padding-tablet: 80px;
  --section-padding-mobile: 60px;
  --section-padding-mobile-sm: 70px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-weight: 400;
  color: var(--ink);
}

.h-display {
  font-size: var(--font-size-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.h-large {
  font-size: var(--font-size-large);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

/* .h-primary / .h-secondary intentionally omitted here — the tokens
   (--font-size-primary, --font-size-secondary) are kept in :root and the
   responsive breakpoints as documented type-scale values, but no page
   currently uses a class built on them; add one if a future section needs
   that exact size rather than reaching for inline styles. */

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}
.section--dark .label { color: rgba(255,255,255,0.6); }
.conversion .label { color: rgba(255,255,255,0.6); }

/* Spacing utilities — replace one-off inline margin-bottom overrides
   used to vary rhythm between headings and the content that follows. */
.mb-xs { margin-bottom: 8px; }
.mb-sm { margin-bottom: 20px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 40px; }
.mb-xl { margin-bottom: 56px; }

/* Constrained prose used for statement/lede paragraphs outside the
   standard component classes (e.g. the Our Events copy). */
.prose-lg { font-size: 20px; max-width: 62ch; }
.prose-muted { color: var(--muted); max-width: 40ch; }

/* ---------- 4. LAYOUT ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.section {
  padding-top: var(--section-padding-desktop);
  padding-bottom: var(--section-padding-desktop);
}

.section--lg {
  padding-top: var(--section-padding-desktop-lg);
  padding-bottom: var(--section-padding-desktop-lg);
}

.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.72); }

.section--tint {
  background: var(--warm-gray);
}

/* ---------- 5. HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 32px 0;
  transition: background-color 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 18px 0;
  border-bottom-color: var(--line);
}

.site-header.on-dark:not(.is-scrolled) .nav-link,
.site-header.on-dark:not(.is-scrolled) .header-cta,
.site-header.on-dark:not(.is-scrolled) .menu-toggle {
  color: var(--white);
}
/* .header-cta lives outside .hero in the DOM, so it doesn't get the
   .hero .btn-primary:hover override — without this it fell back to
   --accent-ink (tuned for white backgrounds) while transparent over
   the dark hero video, which is both dimmer than intended and
   borderline on contrast against a dark backdrop. */
.site-header.on-dark:not(.is-scrolled) .header-cta:hover {
  color: var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}
.menu-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; }
.menu-toggle span:nth-child(3) { top: 100%; }

.menu-toggle.is-open span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 50%; transform: rotate(-45deg); }

/* The full-screen mobile-nav overlay is always black, but .menu-toggle only
   turns white via .on-dark, which only exists on the homepage hero. Force
   white here so the close icon stays visible against the overlay on every page. */
.menu-toggle.is-open span { background: var(--white); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--white);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0.45s;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-list a {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.mobile-nav-social {
  display: flex;
  gap: 24px;
  margin-top: 56px;
}
.mobile-nav-social a {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 3px;
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 34px;
  border-radius: 2px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), gap 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-ink);
  color: var(--white);
  border: 1px solid var(--accent-ink);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent-ink);
  gap: 16px;
}
.section--dark .btn-primary:hover,
.hero .btn-primary:hover,
.conversion .btn-primary:hover {
  color: var(--accent);
}

/* .btn-outline relies on currentColor to adapt to light/dark contexts.
   Hover state is set explicitly per context below — background: currentColor
   cannot be combined with a color change in the same rule, since currentColor
   resolves to the rule's own final color value and collapses text/background
   to the same color. */
.btn-outline {
  background: transparent;
  color: currentColor;
  border: 1px solid currentColor;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.section--dark .btn-outline:hover,
.hero .btn-outline:hover,
.conversion .btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link:hover { color: var(--accent-ink); }
.text-link:hover .btn-arrow { transform: translateX(4px); }

/* Reusable inline text link for prose (e.g. legal-page mailto links),
   replacing one-off inline style="" attributes in the markup. */
.inline-link {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.inline-link:hover { color: var(--accent-ink); border-color: currentColor; }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 200px;
  padding-bottom: 96px;
}

.hero-eyebrow {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.hero-heading {
  color: var(--white); /* h1 is targeted directly by the global h1–h4 rule
    below, which otherwise beats the white inherited from .hero */
  /* Fixed clamp bounds — deliberately independent of --font-size-display,
     which gets redefined at each breakpoint and would otherwise push the
     max below the min (44px), locking the heading at a fixed size on
     small screens instead of scaling with viewport width. */
  font-size: clamp(30px, 9vw, 104px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

/* Paragraph + CTAs sit below the heading as one row, rather than a
   second grid column bottom-aligned against it — with a short heading
   the two columns matched up fine, but with a multi-line heading the
   whole side block would get pushed down to align its bottom edge,
   leaving a large dead gap above the copy. */
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.16);
}

.hero-copy {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 38ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
}
.hero-scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.35);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ---------- 8. AUTHORITY / STAT-LEAD SECTION ---------- */
.authority {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.authority-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
}
.authority-number {
  font-size: clamp(90px, 12vw, 180px);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.authority-number span { color: var(--accent-ink); }
.authority-caption {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 8px;
}
.authority-text {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.authority-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.authority-tags span {
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
}

/* ---------- 9. EDITORIAL SPLIT (Intro / Why Choose) ---------- */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 7fr 5fr; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }

.split-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--warm-gray);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.split-media:hover img { transform: scale(1.04); }

.split-text .h-large { margin-bottom: 28px; }
.split-text p + p { margin-top: 18px; }
.split-text .btn { margin-top: 40px; }

/* Why choose alternating rows */
.why-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.why-row:last-child { border-bottom: 1px solid var(--line); }
/* Modifiers to drop the border/padding on a row that opens or closes a
   section, instead of the one-off inline style="" overrides used before. */
.why-row.why-row--flush-top { border-top: none; padding-top: 0; }
.why-row.why-row--flush-bottom { border-bottom: none; }
.why-row.reverse { grid-template-columns: 7fr 5fr; }
.why-row.reverse .why-media { order: 2; }
.why-row.reverse .why-text { order: 1; }

.why-media { aspect-ratio: 5 / 4; overflow: hidden; background: var(--light-gray); }
.why-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.why-media:hover img { transform: scale(1.04); }

.why-index { font-size: 14px; color: var(--accent-ink); letter-spacing: 0.08em; margin-bottom: 18px; display: block; }
.why-text h3 { font-size: 40px; letter-spacing: -0.01em; margin-bottom: 18px; }
.why-text p { color: var(--muted); max-width: 42ch; }

/* ---------- 10. SERVICES ---------- */
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.4s var(--ease);
}
.services-list .service-row:last-child { border-bottom: 1px solid var(--line); }

.service-index {
  font-size: 18px;
  color: var(--muted);
  font-weight: 400;
}
.service-body h3 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease);
}
.service-body p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 52ch;
}
.service-arrow {
  font-size: 28px;
  transition: transform 0.4s var(--ease);
}
.service-row:hover { background: var(--warm-gray); }
.service-row:hover .service-arrow { transform: translateX(10px); }
.service-row:hover .service-body h3 { transform: translateX(6px); }

/* ---------- 11. STATEMENT SECTION ---------- */
.statement {
  text-align: left;
}
.statement .h-display {
  max-width: 16ch;
}

/* ---------- 12. STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.stat-item { text-align: left; }
.stat-number {
  font-size: clamp(64px, 7vw, 100px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  margin-top: 16px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
}

/* ---------- 13. CONVERSION CTA ---------- */
.conversion {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
/* Same fix as .hero-heading / .section--dark: h1–h4 are targeted directly
   by the global heading rule, which otherwise beats the white inherited
   from .conversion — this is why "Ready to find a clear path forward?"
   was rendering in near-black on top of the dark image background. */
.conversion h1, .conversion h2, .conversion h3, .conversion h4 { color: var(--white); }
.conversion-bg { position: absolute; inset: 0; z-index: 0; }
.conversion-bg img { width: 100%; height: 100%; object-fit: cover; }
.conversion-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.88) 20%, rgba(0,0,0,0.55) 100%);
}
.conversion-inner { position: relative; z-index: 1; }
.conversion .h-large { max-width: 16ch; margin-bottom: 24px; }
.conversion p { max-width: 46ch; color: rgba(255,255,255,0.78); margin-bottom: 44px; }
.conversion-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 14. CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
}
.contact-info-item { padding: 28px 0; border-top: 1px solid var(--line); }
.contact-info-item:first-child { border-top: none; padding-top: 0; }
.contact-info-item:last-child { border-bottom: 1px solid var(--line); }
.contact-info-item .label { display: block; margin-bottom: 10px; }
.contact-info-item a, .contact-info-item p { font-size: 22px; font-weight: 400; }
.contact-info-item a { transition: color 0.3s var(--ease); }
.contact-info-item a:hover { color: var(--accent-ink); }

.social-row { display: flex; gap: 20px; margin-top: 40px; }
.social-row a {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.social-row a:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--white); }
.section--dark .social-row a { border-color: var(--line-on-dark); }

.form-field { margin-bottom: 28px; }
.form-field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 2px;
  font-size: 18px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--ink);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.form-success {
  display: none;
  padding: 18px 22px;
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  margin-top: 20px;
}
.form-success.is-visible { display: block; }

/* ---------- 15. FOOTER ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding-top: var(--section-padding-desktop);
}
.footer-top {
  display: grid;
  grid-template-columns: 4fr 2fr 3fr 2fr;
  gap: 40px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand .logo img { height: 40px; }
.footer-brand p {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 26ch;
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 14px; }
.footer-col a, .footer-col p {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- 16. PAGE HERO (inner pages) ---------- */
.page-hero {
  padding-top: 200px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
/* .page-hero .label previously duplicated display/margin now set as the
   .label default above — removed as dead weight, no visual change. */
.page-hero .h-large { max-width: 22ch; }
.page-hero p { margin-top: 24px; max-width: 50ch; color: var(--muted); font-size: 20px; }

/* Photo variant — used on About/Service/Events/Contact for a hero that
   matches the homepage's visual weight without reusing its video. Each
   page gets its own still image rather than a repeated background. */
.page-hero--media {
  position: relative;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  border-bottom: none;
  padding-bottom: 72px;
}
.page-hero--media h1, .page-hero--media h2 { color: var(--white); }
.page-hero--media .label { color: rgba(255,255,255,0.65); }
.page-hero--media p { color: rgba(255,255,255,0.8); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.88) 100%);
}
.page-hero--media .container { position: relative; z-index: 1; }

@media (max-width: 767px) {
  .page-hero--media { min-height: 48vh; padding-bottom: 48px; }
}

/* Simple content blocks for legal pages */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 30px; margin-top: 56px; margin-bottom: 18px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted); margin-bottom: 16px; }
.legal-content ul { margin-bottom: 16px; }
.legal-content li { color: var(--muted); padding-left: 20px; position: relative; margin-bottom: 10px; }
.legal-content li::before { content: "—"; position: absolute; left: 0; color: var(--accent-ink); }

/* Detail list for service sub-points (e.g. Transformational Workshops'
   focus areas) — replaces reusing .legal-content, which is scoped for the
   legal pages and gave <strong> labels no visual distinction from the
   surrounding muted body copy. */
.detail-list { margin-top: 8px; margin-bottom: 16px; }
.detail-list li {
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 12px;
  max-width: 52ch;
}
.detail-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent-ink); }
.detail-list li strong { color: var(--ink); font-weight: 500; }

/* Compact 3-up variant of the "Why Choose" content, used where the full
   alternating .why-row treatment (already on the homepage) would be
   repetitive — e.g. the bottom of the Service page. */
.why-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-compact h3 { font-size: 26px; margin-bottom: 12px; letter-spacing: -0.01em; }
.why-compact p { color: var(--muted); }

/* Blog post preview tiles — reuses the why-compact grid at a wider gap,
   with its own media/title/excerpt spacing rather than inline styles. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}
.blog-post-media { aspect-ratio: 5 / 4; overflow: hidden; background: var(--warm-gray); margin-bottom: 24px; }
.blog-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.blog-post:hover .blog-post-media img { transform: scale(1.04); }
.blog-post h3 { font-size: 28px; letter-spacing: -0.01em; margin-bottom: 12px; }
.blog-post p { color: var(--muted); }

@media (max-width: 1199px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Service page detail rows */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.service-detail:last-child { border-bottom: 1px solid var(--line); }
.service-detail.reverse .service-detail-media { order: 2; }
.service-detail.reverse .service-detail-text { order: 1; }
.service-detail-media { aspect-ratio: 1 / 1; background: var(--warm-gray); overflow: hidden; }
.service-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-text .service-index {
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 20px;
  color: var(--light-gray); /* fallback for browsers without text-stroke support */
}
@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) {
  .service-detail-text .service-index {
    -webkit-text-stroke: 1px var(--ink);
    text-stroke: 1px var(--ink);
    color: transparent;
  }
}
.service-detail-text h3 { font-size: 40px; letter-spacing: -0.01em; margin-bottom: 18px; }
.service-detail-text p { color: var(--muted); max-width: 42ch; margin-bottom: 14px; }

/* About page */
.about-block { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.about-block .split-media { aspect-ratio: 3/4; position: sticky; top: 140px; }
.about-copy p { color: var(--muted); font-size: 20px; margin-bottom: 24px; max-width: 58ch; }
.about-copy p:first-child { font-size: 26px; color: var(--ink); font-weight: 400; line-height: 1.4; }

/* ---------- 17. REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ---------- 16b. FAQ ACCORDION ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent-ink);
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-answer {
  color: var(--muted);
  max-width: 68ch;
  padding-bottom: 28px;
  font-size: 17px;
}

/* ---------- 16c. EVENT LANDING PAGES ---------- */
.event-hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  padding-bottom: 96px;
}
.event-hero h1, .event-hero h2 { color: var(--white); }
.event-hero p { color: rgba(255,255,255,0.8); }
.event-hero .label { color: var(--accent); }
.event-hero-bg { position: absolute; inset: 0; z-index: 0; }
.event-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.event-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.9) 100%);
}
.event-hero .container { position: relative; z-index: 1; }
.event-hero .h-display { max-width: 18ch; margin-bottom: 24px; }
.event-hero p { max-width: 52ch; margin-bottom: 40px; font-size: 20px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid .gallery-item { aspect-ratio: 4 / 5; overflow: hidden; background: var(--warm-gray); }
.gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery-grid .gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 767px) {
  .event-hero { min-height: 64vh; padding-bottom: 56px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 16c-2. TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.testimonial-stars { color: var(--accent-ink); font-size: 15px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-quote { color: var(--ink); font-size: 17px; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.testimonial-quote::before { content: "\201C"; }
.testimonial-quote::after { content: "\201D"; }
.testimonial-name { font-size: 15px; font-weight: 500; }
.testimonial-role { font-size: 13px; color: var(--muted); margin-top: 2px; }

.rating-picker { display: flex; gap: 6px; margin-bottom: 4px; }
.rating-picker input { display: none; }
.rating-picker label {
  font-size: 26px;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color 0.2s ease;
}
.rating-picker input:checked ~ label,
.rating-picker label:hover,
.rating-picker label:hover ~ label { color: var(--accent-ink); }
/* Stars are laid out in reverse DOM order with row-reverse so the
   :checked ~ label / :hover ~ label sibling selectors above can light
   up "this star and everything before it" using only CSS. */
.rating-picker { flex-direction: row-reverse; justify-content: flex-end; }

@media (max-width: 1199px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- 16d. WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.32);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: whatsappPulse 2.4s ease-out infinite;
  z-index: -1;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before { animation: none; display: none; }
}

@media (max-width: 767px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

/* ---------- 18. RESPONSIVE ---------- */
@media (max-width: 1199px) {
  :root {
    --font-size-display: 62px;
    --font-size-large: 46px;
    --font-size-primary: 36px;
    --font-size-secondary: 18px;
    --font-size-body: 16px;
    --section-padding-desktop: var(--section-padding-tablet);
    --section-padding-desktop-lg: 110px;
  }
  .container { padding-left: 30px; padding-right: 30px; }
  .hero-inner { padding-top: 150px; }
  .hero-foot { align-items: flex-start; }
  .authority-grid,
  .split, .split.reverse,
  .why-row, .why-row.reverse,
  .why-compact,
  .contact-grid,
  .about-block,
  .service-detail, .service-detail.reverse {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media,
  .why-row.reverse .why-media,
  .service-detail.reverse .service-detail-media { order: -1; }
  .about-block .split-media { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .main-nav { gap: 30px; }
}

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 767px) {
  :root {
    --font-size-display: 38px;
    --font-size-large: 30px;
    --font-size-primary: 26px;
    --font-size-secondary: 17px;
    --font-size-body: 15px;
    --section-padding-desktop: var(--section-padding-mobile);
    --section-padding-desktop-lg: var(--section-padding-mobile-sm);
  }
  .container { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding-top: 130px; padding-bottom: 60px; }
  .hero-scroll { display: none; }
  .hero-ctas .btn, .conversion-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas, .conversion-ctas { flex-direction: column; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 24px; margin-top: 40px; padding-top: 24px; }
  .hero-ctas { width: 100%; }
  .authority-number { font-size: 90px; }
  .stats-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-row { grid-template-columns: 50px 1fr; }
  .service-arrow { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .service-detail-text .service-index { font-size: 44px; }
}
