/* ==========================================================
   MTM Momentum - black & gold champions theme
   Mobile-first. Dark: header/hero/programs/gallery/footer.
   Cream: about/faq/contact.
   ========================================================== */

:root {
  --black: #0B0B0B;
  --charcoal: #161616;
  --gold: #D4A62A;
  --gold-light: #F5D77A;
  --gold-dark: #B8860B;
  --cream: #FAF7F0;
  --text-dark: #1A1A1A;
  --text-light: #F2F2F2;
  --gold-gradient: linear-gradient(135deg, #F5D77A, #D4A62A 50%, #B8860B);

  /* Extras */
  --cream-alt: #F1EBDB;           /* second cream band */
  --gold-ink: #7A5800;            /* gold dark enough for text on cream (AA) */
  --muted-light: #B9B9B9;         /* secondary text on dark (AA on black) */
  --muted-dark: #4A4A4A;          /* secondary text on cream */
  --error: #B00020;
  --radius: 14px;
  --header-h: 68px;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--black);
  overflow-x: hidden;
  padding-bottom: 76px; /* room for the mobile CTA bar */
}
img, iframe { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
address { font-style: normal; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.container-narrow { max-width: 820px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: visible gold outline everywhere (dark outline pair on cream for contrast) */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.cream :focus-visible { outline-color: var(--gold-dark); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.accent {
  color: var(--gold); /* fallback */
  background: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* On cream, the pale gradient is low-contrast: use darker gold ink for headline accents */
.cream .accent { background: none; -webkit-text-fill-color: currentColor; color: var(--gold-ink); }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}
.cream .eyebrow { color: var(--gold-ink); }

.lead { font-size: 1.05rem; color: var(--muted-light); max-width: 62ch; }
.cream .lead { color: var(--muted-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-sm { min-height: 40px; padding: 8px 20px; font-size: .95rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--gold-gradient); color: var(--black); box-shadow: 0 4px 16px rgba(212, 166, 42, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 166, 42, .45); }
.btn-outline { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn-outline:hover { background: rgba(212, 166, 42, .14); transform: translateY(-2px); }
.btn-dark { background: var(--black); color: var(--gold-light); margin-top: .75rem; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.btn:active { transform: translateY(0); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(11, 11, 11, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 166, 42, .35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 56px; width: auto; min-width: 0; object-fit: contain; }
.brand-text { font-family: var(--font-display); font-weight: 800; color: var(--gold); letter-spacing: .06em; font-size: 1.05rem; }
.brand-text span { color: var(--gold-light); }
.brand-text[hidden] { display: none; }
@media (max-width: 480px) { .brand-text { font-size: .85rem; line-height: 1.15; } .brand-text span { display: block; } }

.nav-toggle {
  width: 48px; height: 48px; border: 1px solid rgba(212, 166, 42, .5); border-radius: 10px;
  background: transparent; color: var(--gold); cursor: pointer; display: grid; place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel (only hidden when JS is available) */
.site-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--black); border-bottom: 1px solid rgba(212, 166, 42, .35); padding: 8px 16px 20px; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; }
.site-nav a:not(.btn) { display: block; padding: 14px 4px; color: var(--text-light); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-nav a:not(.btn):hover { color: var(--gold-light); }
.nav-cta { margin-top: 16px; }
.nav-cta .btn { width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; position: static; background: none; border: 0; padding: 0; }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px; }
  .site-nav a:not(.btn) { border: 0; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
  .nav-cta { margin: 0 0 0 12px; }
  .nav-cta .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; min-height: min(86vh, 760px);
  padding: 72px 0; text-align: left;
  /* Layers (top to bottom): dark overlay, photo, gold glow fallback, black */
  background:
    linear-gradient(180deg, rgba(11,11,11,.6) 0%, rgba(11,11,11,.88) 100%),
    url("images/hero.jpg") center / cover no-repeat,
    radial-gradient(ellipse at 75% 20%, rgba(212,166,42,.35), transparent 55%),
    linear-gradient(135deg, #1b1608, #0B0B0B 60%);
  background-color: var(--black);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-gradient); }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.25rem, 9vw, 4.5rem); font-weight: 800; margin-bottom: .4em; text-wrap: balance; }
.hero-sub { font-size: clamp(1.05rem, 3.5vw, 1.3rem); max-width: 40ch; color: #E4E4E4; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.hero-badges li {
  font-size: .85rem; font-weight: 600; color: var(--gold-light);
  border: 1px solid rgba(212,166,42,.5); border-radius: 999px; padding: 6px 14px; background: rgba(11,11,11,.55);
}
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.dark { background: var(--charcoal); color: var(--text-light); }
.section.dark#programs { background: linear-gradient(180deg, var(--charcoal), var(--black)); }
.section.cream { background: var(--cream); color: var(--text-dark); }
.section.cream.alt { background: var(--cream-alt); }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold-gradient); margin-top: 14px; }
.sub-heading { font-size: 1.5rem; margin: 3rem 0 1.25rem; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .section { padding: 96px 0; } }

/* Icon badge used by cards + tiles */
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem;
  background: var(--gold-gradient); color: var(--black);
}
.icon svg { width: 30px; height: 30px; }

/* ---------- Program cards (dark) ---------- */
.card {
  background: var(--black); border: 1px solid rgba(212,166,42,.3); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(212,166,42,.18); border-color: var(--gold); }
.card h3 { font-size: 1.5rem; color: var(--gold-light); }
.card p { color: #D6D6D6; }
.check-list { margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: .5rem; font-size: .95rem; color: #E4E4E4; }
.check-list a { color: var(--gold-light); font-weight: 600; text-underline-offset: 3px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg) scale(.9);
}

/* ---------- Value tiles (cream) ---------- */
.tile {
  background: #fff; border: 1px solid #E6DFC9; border-radius: var(--radius); padding: 24px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04); transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(0,0,0,.12); }
.tile h3 { font-size: 1.2rem; }
.tile p { margin: 0; color: var(--muted-dark); font-size: .97rem; }

/* ---------- Coaches ---------- */
.coach { display: flex; flex-direction: column; gap: 18px; background: var(--black); color: var(--text-light); border-radius: var(--radius); padding: 20px; border: 1px solid rgba(212,166,42,.4); }
.coach h4 { font-size: 1.3rem; color: var(--gold-light); margin-bottom: .1em; }
.coach .role { color: var(--gold); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.coach p:last-child:not(.role) { margin: 0; color: #D6D6D6; }
.coach-photo { width: 100%; max-width: 160px; aspect-ratio: 1; flex: none; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 480px) { .coach { flex-direction: row; align-items: center; } .coach-photo { width: 140px; } }

/* Image fallback: dark box with gold tint behind every photo container */
.coach-photo, .gallery-item, .lb-figure {
  background:
    radial-gradient(circle at 30% 25%, rgba(212,166,42,.35), transparent 60%),
    linear-gradient(135deg, #24200f, #0B0B0B);
}
.is-missing { visibility: hidden; } /* JS adds this to broken images; container gradient shows through */

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery-item {
  display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid rgba(212,166,42,.35);
  border-radius: 12px; overflow: hidden; cursor: zoom-in; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(212,166,42,.22); }
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox (native <dialog>) */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: rgba(0,0,0,.94); color: var(--text-light);
}
.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lb-figure { grid-column: 2; margin: 0; justify-self: center; text-align: center; max-width: 100%; border-radius: 8px; }
.lb-img { max-width: 100%; max-height: 80dvh; width: auto; height: auto; margin-inline: auto; border-radius: 8px; min-width: 200px; min-height: 150px; }
.lb-figure.lb-missing { min-width: min(80vw, 600px); min-height: 40vh; }
.lb-figure.lb-missing .lb-img { visibility: hidden; }
.lb-caption { padding: 12px 8px; color: #D6D6D6; font-size: .95rem; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(11,11,11,.85);
  color: var(--gold-light); font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px;
  transition: background-color .2s, transform .2s;
}
.lb-btn:hover { background: var(--gold); color: var(--black); }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }
.lb-close { position: absolute; top: 12px; right: 12px; z-index: 2; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid #DCD2B5; border-radius: 12px; margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { border-color: var(--gold-dark); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--gold-light);
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1; padding-bottom: 2px; transition: transform .2s;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--gold-ink); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; } }
.contact-info h3 { font-size: 1.4rem; }
.contact-list li { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid #DCD2B5; }
.contact-list .label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-ink); }
.contact-list a { font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--text-dark); padding: 4px 0; word-break: break-word; }
.contact-list a:hover { color: var(--gold-ink); text-decoration: underline; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); color: var(--gold-light); transition: transform .2s, background-color .2s, color .2s;
}
.social a:hover { transform: translateY(-3px); background: var(--gold); color: var(--black); }
.social svg { width: 24px; height: 24px; }

.form-card { background: #fff; border: 1px solid #DCD2B5; border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
@media (min-width: 600px) { .form-card { padding: 32px; } }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req { font-weight: 400; font-size: .85rem; color: var(--muted-dark); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--text-dark);
  background: #fff; border: 1.5px solid #6B6B6B; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--black); }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFF6F6; }
.error { color: var(--error); font-size: .9rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }

.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { width: 100%; }
.radio {
  display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; font-weight: 500 !important;
  min-height: 48px; padding: 8px 18px; border: 1.5px solid #6B6B6B; border-radius: 999px; cursor: pointer; background: #fff;
}
.radio:has(input:checked) { border-color: var(--black); background: var(--black); color: var(--gold-light); }
.radio input { accent-color: var(--gold); width: 18px; height: 18px; }
.radio:has(input:focus-visible) { outline: 3px solid var(--gold-dark); outline-offset: 2px; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin: 4px 0 18px; min-height: 65px; max-width: 100%; overflow: hidden; }

.form-status { margin-top: 16px; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status.is-success { background: #E7F6EA; color: #0E5A22; border: 1.5px solid #2E8B4A; }
.form-status.is-error { background: #FDECEC; color: #8A0018; border: 1.5px solid var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 3px solid var(--gold); padding: 48px 0 0; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { height: 84px; width: auto; margin-bottom: 12px; object-fit: contain; }
.footer-brand p { color: var(--gold-light); font-family: var(--font-display); font-weight: 700; }
.footer-title { font-family: var(--font-body); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-list li { margin-bottom: 8px; color: var(--muted-light); }
.footer-list a { color: var(--text-light); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-list a:hover { color: var(--gold-light); text-decoration: underline; }
.footer-bottom { margin-top: 36px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom p { margin: 0; font-size: .85rem; color: var(--muted-light); }

/* ---------- Mobile fixed CTA bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,11,11,.96); border-top: 1px solid rgba(212,166,42,.5);
  transition: transform .3s ease;
}
.mobile-cta.is-hidden { transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
@media (min-width: 768px) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Cards keep a snappy hover once revealed */
.js .card.reveal.is-visible, .js .tile.reveal.is-visible { transition: opacity .6s ease, transform .25s ease, box-shadow .25s ease, border-color .25s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .tile:hover, .btn:hover, .gallery-item:hover, .gallery-item:hover img, .social a:hover { transform: none; }
}
