/* IJS — shared site shell: tokens, topbar, nav, page hero, trial strip, footer */

:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-deeper: #F2F3F4;
  --ink: #333536;
  --ink-soft: #63666A;
  --text: #333536;
  --text-secondary: #63666A;
  --text-muted: #82868A;
  --border: rgba(51,53,54,0.12);
  --border-hover: rgba(51,53,54,0.28);
  --red: #CC0000;
  --red-hover: #e60000;
  --logo-grey: #63666A;
  --display: 'Bebas Neue', sans-serif;
  --heading: 'Oswald', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius-sm: 2px;
  --radius-md: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Offset hash / deep-link jump targets so the fixed topbar + nav don't cover the
   section top. Values mirror the JS offset (nav 60/68 + topbar 0/36 by breakpoint). */
[id] { scroll-margin-top: 60px; }
@media (min-width: 641px) { [id] { scroll-margin-top: 68px; } }
@media (min-width: 769px) { [id] { scroll-margin-top: 104px; } }
body { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--red); color: #fff; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ===== TOP CONTACT BAR ===== */
.topbar { background: #1a1a1a; border-bottom: 1px solid #000; position: fixed; top: 0; left: 0; right: 0; z-index: 102; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--heading); font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.65); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.topbar-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.topbar-link:hover { color: #fff; }
.topbar-link.whatsapp:hover { color: #25D366; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-social { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); transition: color 0.2s; text-decoration: none; }
.topbar-social svg { width: 13px; height: 13px; }
.topbar-social:hover { color: #fff; }

/* ===== NAV ===== */
.nav { position: fixed; top: 36px; width: 100%; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: background 0.3s; }
.nav.scrolled { background: rgba(255,255,255,1); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: inline-flex; align-items: baseline; text-decoration: none; gap: 0; line-height: 1; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-sub { font-family: var(--heading); font-size: 8px; font-weight: 600; letter-spacing: 0.18em; color: var(--text-muted); margin-left: 12px; align-self: center; text-transform: uppercase; padding-bottom: 4px; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-family: var(--heading); font-size: 12px; font-weight: 500; color: var(--ink-soft); text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; transition: color 0.25s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { color: #fff !important; background: var(--red); padding: 10px 22px !important; letter-spacing: 0.15em !important; transition: background 0.25s !important; border-radius: var(--radius-sm); }
.nav-cta:hover { background: var(--red-hover); }
.burger { display: none; background: none; border: none; cursor: pointer; width: 32px; height: 24px; position: fixed; top: 22px; right: 20px; padding: 0; z-index: 105; }
.burger span { display: block; width: 100%; height: 2px; background: var(--ink); position: absolute; left: 0; transition: all 0.3s var(--ease); transform-origin: center; }
.burger span:nth-child(1) { top: 4px; } .burger span:nth-child(2) { top: 11px; } .burger span:nth-child(3) { top: 18px; }
.burger.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 88%; max-width: 360px; background: #fff; z-index: 104; padding: 90px 32px 40px; transform: translateX(100%); transition: transform 0.35s var(--ease); box-shadow: -8px 0 32px rgba(0,0,0,0.12); overflow-y: auto; pointer-events: none; }
.mobile-drawer.open { transform: translateX(0); pointer-events: auto; }
.mobile-drawer-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 103; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer ul { list-style: none; }
.mobile-drawer ul li { border-bottom: 1px solid var(--border); }
.mobile-drawer ul li:last-child { border-bottom: 0; margin-top: 24px; }
.mobile-drawer ul a { display: block; padding: 18px 0; font-family: var(--heading); font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; }
.mobile-drawer ul a.active { color: var(--red); }
.mobile-drawer ul a.nav-cta { background: var(--red); color: #fff; padding: 16px 24px; text-align: center; letter-spacing: 0.15em; font-size: 13px; }
.mobile-drawer-contact { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.mobile-drawer-contact a { display: inline-flex; align-items: center; gap: 12px; font-family: var(--heading); font-size: 13px; font-weight: 500; color: var(--ink-soft); text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; }
.mobile-drawer-contact a svg { width: 16px; height: 16px; flex-shrink: 0; }
.mobile-drawer-contact a.whatsapp { color: #25D366; }
body.drawer-open { overflow: hidden; }

/* ===== MOBILE BOTTOM CTA ===== */
/* Fixed bottom bar, mobile only (≤768px): a compact "Book Free Trial" button that
   shares the row with a square WhatsApp button. Hidden on desktop, where the red CTA
   already lives in the sticky header. site-shell.js adds .show once the visitor scrolls
   past ~one viewport so it doesn't double the hero CTA. The bottom padding includes
   env(safe-area-inset-bottom) so it clears the iPhone home bar. */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: stretch; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 0.5px solid #e8e8e8;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
  transform: translateY(100%); transition: transform 0.25s var(--ease);
}
.mobile-cta.show { transform: translateY(0); }
@media (max-width: 768px) { .mobile-cta { display: flex; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }
/* Compact trial button — takes the remaining width beside WhatsApp. */
.mcta-trial {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: #262626; color: #fff;
  font-family: var(--heading); font-weight: 700; font-size: 14px;
  letter-spacing: 0.6px; text-transform: uppercase; text-decoration: none;
  border-radius: 10px; padding: 12px 0;
}
.mcta-trial:active { background: #1a1a1a; }
/* Square WhatsApp button — matches the trial button's height & radius. */
.mcta-wa {
  flex: none; width: 48px; display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; border-radius: 10px; text-decoration: none;
}
.mcta-wa:active { background: #1ebe5d; }
.mcta-wa svg { width: 26px; height: 26px; }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; padding-top: 104px; min-height: 480px; overflow: hidden; display: flex; align-items: flex-end; }
.page-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 35%; filter: grayscale(0.15); }
.page-hero-content { position: relative; z-index: 2; padding: 80px 0 70px; color: #fff; width: 100%; }

/* --- Hero scrim (subpages only) --------------------------------------------
   Dark gradient laid over the hero photo so the white hero text stays readable
   over any image — strongest at the bottom, where the bottom-aligned text sits.
   Sits above .page-hero-img but below .page-hero-content (z-index:2). Kept as one
   self-contained block: to move to a frosted-glass (Milchglas) look later, swap
   only this rule (e.g. for a backdrop-filter: blur(...)). The homepage hero
   (.hero) is intentionally NOT affected. */
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.85) 100%);
}
@media (max-width: 768px) {
  /* Bigger text and often brighter crops on phones — darken a touch more. */
  .page-hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.66) 60%, rgba(0,0,0,0.92) 100%);
  }
}
.breadcrumbs { font-family: var(--heading); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 22px; }
.breadcrumbs a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span.sep { margin: 0 10px; color: rgba(255,255,255,0.35); }
.breadcrumbs span.current { color: #fff; }
.page-hero-eyebrow { font-family: var(--heading); font-size: 13px; font-weight: 600; color: #ff6b73; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 18px; }
.page-hero h1 { font-family: var(--heading); font-size: clamp(48px, 7vw, 96px); font-weight: 700; line-height: 0.96; letter-spacing: 0.005em; text-transform: uppercase; margin-bottom: 22px; color: #fff; }
.page-hero h1 span.red { color: var(--red); }
.page-hero-sub { font-size: 17px; max-width: 600px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 32px; }
.page-hero-jumps { display: flex; flex-wrap: wrap; gap: 12px; }
.jump-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-family: var(--heading); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.jump-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.5); transform: translateY(-1px); }
.jump-btn .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 3px rgba(204,0,0,0.25); }

/* ===== ACCENT BAR ===== */
.accent-bar { padding: 22px 0; border-top: 1px solid #000; border-bottom: 1px solid #000; background: var(--ink); }
.accent-bar-inner { max-width: 1180px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: center; gap: 44px; flex-wrap: wrap; align-items: center; }
.accent-item { font-family: var(--heading); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.18em; white-space: nowrap; color: rgba(255,255,255,0.65); }
.accent-item .red { color: #ff6b73; font-weight: 600; }
.accent-item .light { color: #fff; font-weight: 600; }
.accent-item .check { color: var(--red); margin-right: 4px; font-weight: 700; }

/* ===== ACCENT BAR — MARQUEE (wired up by site-shell.js) ===== */
/* Each bar runs as a slow, seamless left-scrolling marquee with soft fade edges,
   pausing on hover. site-shell.js duplicates the content and sets the per-bar
   duration so every bar moves at the same speed regardless of how wide it is. */
.accent-bar.is-marquee .accent-bar-inner {
  display: block;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.accent-bar.is-marquee .marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: ijs-accent-marquee var(--ijs-marquee-dur, 60s) linear infinite;
}
.accent-bar.is-marquee:hover .marquee-track { animation-play-state: paused; }
.accent-bar.is-marquee .marquee-group { display: flex; flex-wrap: nowrap; align-items: center; }
.accent-bar.is-marquee .marquee-group .accent-item { padding: 0; flex-shrink: 0; }
.accent-bar.is-marquee .marquee-sep { display: inline-block; margin: 0 28px; color: rgba(255,255,255,0.32); font-weight: 400; }
@keyframes ijs-accent-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .accent-bar.is-marquee .marquee-track { animation: none; transform: none; }
}

/* ===== SECTION HEADINGS ===== */
.section-heading { font-family: var(--heading); font-size: clamp(32px, 4vw, 56px); font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.005em; line-height: 1.05; }
.section-heading span { color: var(--red); }
.eyebrow { font-family: var(--heading); font-size: 12px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 14px; }

/* ===== TRIAL CTA STRIP ===== */
.trial-strip { padding: 100px 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.trial-strip::before { content: ''; position: absolute; inset: 0; background-image: url('../images/gallery-coach-teaching-mat.jpg'); background-size: cover; background-position: center; opacity: 0.18; filter: grayscale(0.6); }
.trial-strip-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.trial-strip-eyebrow { font-family: var(--heading); font-size: 13px; font-weight: 600; color: #ff6b73; text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 16px; }
.trial-strip h2 { font-family: var(--heading); font-size: clamp(34px, 4.5vw, 60px); font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: 0.005em; margin-bottom: 22px; }
.trial-strip h2 span { color: #ff6b73; }
.trial-strip p { font-size: 17px; color: rgba(255,255,255,0.78); line-height: 1.65; max-width: 540px; }
.trial-strip-actions { display: flex; flex-direction: column; gap: 14px; }
.trial-btn { display: flex; align-items: center; gap: 14px; padding: 22px 28px; text-decoration: none; transition: all 0.25s var(--ease); position: relative; }
.trial-btn-whatsapp { background: #25D366; color: #fff; }
.trial-btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }
.trial-btn-call { background: #fff; color: var(--ink); }
.trial-btn-call:hover { background: #f0f0f0; transform: translateY(-2px); }
.trial-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.trial-btn-text { display: flex; flex-direction: column; line-height: 1.1; }
.trial-btn-label { font-family: var(--heading); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }
.trial-btn-value { font-family: var(--heading); font-size: 18px; font-weight: 700; letter-spacing: 0.04em; }
.trial-btn-arrow { margin-left: auto; opacity: 0.6; }

/* ===== FOOTER ===== */
footer { background: #1a1a1a; color: rgba(255,255,255,0.7); padding: 70px 40px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; max-width: 1180px; margin-left: auto; margin-right: auto; }
.footer-col h4 { font-family: var(--heading); font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.footer-logo { height: 32px; margin-bottom: 16px; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-socials { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.2s; }
.social-link svg { width: 14px; height: 14px; }
.social-link:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .trial-strip-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 900px) {
  .nav { top: 0; }
  .page-hero { padding-top: 76px; min-height: 360px; }
  .page-hero-content { padding: 50px 0 50px; }
  .nav-links { display: none; }
  .burger { display: block; }
  .mobile-drawer, .mobile-drawer-backdrop { display: block; }
  .topbar { display: none; }
  .wrap { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 18px; }
  .accent-bar-inner { gap: 18px; padding: 0 24px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .accent-bar-inner::-webkit-scrollbar { display: none; }
  .accent-item { flex-shrink: 0; }
  .trial-strip { padding: 70px 0; }
  .trial-strip p { font-size: 16px; }
  .trial-btn { padding: 18px 22px; }
  .trial-btn-value { font-size: 16px; }
  footer { padding: 60px 24px 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-inner { height: 60px; }
  .nav-logo img { height: 26px; }
  .nav-logo-sub { display: none; }
  .page-hero { min-height: 320px; padding-top: 68px; }
  .page-hero-content { padding: 40px 0 44px; }
  .page-hero h1 { font-size: 42px; line-height: 0.95; margin-bottom: 16px; }
  .page-hero-sub { font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
  .breadcrumbs { font-size: 10px; margin-bottom: 16px; }
  .page-hero-jumps { gap: 8px; }
  .jump-btn { padding: 10px 16px; font-size: 11px; }
  .section-heading { font-size: 30px; }
  .trial-strip h2 { font-size: 32px; }
}
