/* =====================================================================
   Infinity Xtreme Elite TX — global stylesheet
   All design tokens come from BRAND-KIT.md (derived from assets/logos/).
   Edit tokens here; do not hard-code colors in page HTML.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Core neutrals (gym mark: black + chrome silver) */
  --black: #000000;
  --ink: #0B0B0E;
  --panel: #16161B;
  --panel-2: #1F1F26;
  --line: #2C2C34;
  --silver: #B9B8BB;
  --silver-dim: #8C8B90;
  --chrome-hi: #FFFFFF;
  --text: #E9E9EC;
  --text-dim: #A8A7AC;

  /* Chrome / foil gradient (brushed-metal lettering) */
  --grad-chrome: linear-gradient(180deg, #FFFFFF 0%, #D7D6D9 38%, #B9B8BB 60%, #7E7E85 100%);

  /* Team accents (Teams page only) */
  --stardust: #EA2191;  --stardust-deep: #6F073A;
  --legacy:   #19CF82;  --legacy-deep:   #005B2C;
  --reckless: #AA41E7;  --reckless-deep: #390667;
  --savage:   #B9B8BB;  --savage-deep:   #000000;

  /* Per-page accent (defaults to house silver; team pages override) */
  --accent: var(--silver);
  --accent-deep: #3a3a42;

  /* Typography */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale (8px base) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* Shape */
  --r-card: 14px;
  --r-btn: 8px;
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 40px);
  --section-y: clamp(56px, 9vw, 128px);

  --shadow: 0 18px 50px -12px rgba(0,0,0,.75);
  --shadow-sm: 0 6px 20px -8px rgba(0,0,0,.7);
  --ring: 0 0 0 2px rgba(185,184,187,.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--silver); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--chrome-hi); }
ul { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Typography helpers ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: .01em; color: var(--chrome-hi); }
.h-display { font-weight: 700; font-size: clamp(2.75rem, 7vw, 6rem); text-transform: uppercase; letter-spacing: -0.01em; line-height: .98; }
h1, .h1 { font-weight: 700; font-size: clamp(2.25rem, 5vw, 3.5rem); text-transform: uppercase; }
h2, .h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); text-transform: uppercase; }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { color: var(--text); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text); }
.muted { color: var(--text-dim); }
.small { font-size: .9rem; color: var(--text-dim); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent);
  display: inline-block; margin-bottom: var(--sp-3);
}
.chrome-text {
  background: var(--grad-chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.05);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Star-field backdrop ---------- */
.starfield {
  position: relative;
  background-color: var(--black);
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,.5), transparent),
    radial-gradient(1200px 500px at 50% -10%, rgba(185,184,187,.10), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-fg: #0B0B0E;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem; line-height: 1;
  padding: 14px 26px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { background: var(--grad-chrome); color: var(--btn-fg); box-shadow: var(--shadow-sm); }
.btn--primary:hover { color: #000; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255,255,255,.25); }
.btn--secondary { background: transparent; color: var(--silver); border-color: var(--silver); }
.btn--secondary:hover { color: var(--chrome-hi); border-color: var(--chrome-hi); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #0B0B0E; }
.btn--accent:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,10,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem; color: var(--chrome-hi); line-height: 1; }
.brand-name span { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--silver-dim); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: var(--sp-2); }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .06em; font-size: .82rem; color: var(--text-dim);
  padding: 10px 12px; border-radius: 6px; position: relative;
}
.nav-links a:hover { color: var(--chrome-hi); }
.nav-links a.active { color: var(--chrome-hi); }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--grad-chrome); border-radius: 2px; }
.nav-cta { margin-left: var(--sp-3); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--silver); margin: 4px 0; transition: .2s; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--ink); border-bottom: 1px solid var(--line);
    padding: var(--sp-3) var(--gutter) var(--sp-5); transform: translateY(-120%);
    transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; font-size: .95rem; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-cta { margin: var(--sp-3) 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; padding-block: clamp(72px, 12vw, 168px); }
.hero-inner { max-width: 820px; }
.hero .lead { margin-top: var(--sp-4); max-width: 620px; color: var(--text); }
.hero .btn-row { margin-top: var(--sp-6); }
.hero-meta { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-5); color: var(--silver-dim); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.hero-meta strong { color: var(--silver); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--sp-6); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: var(--panel-2); }
.card h3 { margin-bottom: var(--sp-2); color: var(--chrome-hi); }
.card p { color: var(--text-dim); }
.card .price { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.6rem; margin-top: var(--sp-3); }
.card .price small { font-size: .8rem; color: var(--silver-dim); font-weight: 500; letter-spacing: .04em; }
.card-tag { display: inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 999px; padding: 4px 12px; margin-bottom: var(--sp-3); }
.card--link { cursor: pointer; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.5vw, 2.6rem); color: var(--chrome-hi); }
.stat span { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--silver-dim); font-family: var(--font-display); }

/* Feature split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,5vw,72px); align-items: center; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; } }
.split.reverse .split-media { order: -1; }
.split-media { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--black); }

/* ---------- Page banner (interior hero) ---------- */
.page-banner { text-align: center; }
.page-banner .container { padding-block: clamp(56px, 9vw, 120px); position: relative; z-index: 2; }
.page-banner p { max-width: 620px; margin: var(--sp-3) auto 0; color: var(--text-dim); }

/* ---------- Team cards ---------- */
.team-card { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--black); box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease; }
.team-card:hover { transform: translateY(-4px); border-color: var(--team, var(--silver)); }
.team-card .team-logo { padding: var(--sp-5); background:
  radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--team,#333) 22%, #000) 0%, #000 70%); }
.team-card .team-logo img { margin-inline: auto; max-height: 190px; width: auto; }
.team-card .team-body { padding: var(--sp-5); border-top: 1px solid var(--line); }
.team-card .team-body h3 { color: var(--chrome-hi); }
.team-card .team-div { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--team, var(--silver)); margin-top: 2px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
table.pricing { width: 100%; border-collapse: collapse; min-width: 560px; }
table.pricing th, table.pricing td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
table.pricing thead th { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--silver); background: var(--panel); }
table.pricing tbody tr:hover { background: var(--panel); }
table.pricing td.price-col { font-family: var(--font-display); font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ---------- Notice / stub banner ---------- */
.notice { border: 1px dashed color-mix(in srgb, var(--silver) 45%, var(--line)); background: var(--panel); border-radius: var(--r-card); padding: var(--sp-5); }
.notice strong { color: var(--chrome-hi); font-family: var(--font-display); letter-spacing: .04em; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); }
@media (max-width: 760px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--black); display: grid; place-items: center; }
.gallery-item img { width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.gallery-item.placeholder { color: var(--silver-dim); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; background:
  repeating-linear-gradient(135deg, #0f0f14 0 12px, #101017 12px 24px); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 620px){ .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; color: var(--silver); }
.field input, .field textarea, .field select {
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn);
  color: var(--text); padding: 12px 14px; font: inherit; font-size: 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--silver); box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Contact info ---------- */
.info-list { display: grid; gap: var(--sp-4); }
.info-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.info-list .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--silver-dim); min-width: 84px; padding-top: 2px; }
.info-list .v { color: var(--text); }
.map-embed { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6); padding-block: var(--sp-8) var(--sp-6); }
@media (max-width: 780px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 52px; margin-bottom: var(--sp-3); }
.footer-brand p { color: var(--text-dim); max-width: 34ch; }
.footer-col h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--silver); margin-bottom: var(--sp-3); }
.footer-col a { display: block; color: var(--text-dim); padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: var(--chrome-hi); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--silver-dim); font-size: .84rem; }
.tagline { font-family: var(--font-display); color: var(--silver); letter-spacing: .04em; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.stack > * + * { margin-top: var(--sp-4); }
.badge-soft { display:inline-block; font-family: var(--font-display); text-transform: uppercase; letter-spacing:.12em; font-size:.72rem; color: var(--silver); border:1px solid var(--line); border-radius:999px; padding:5px 14px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ---------- Interest form (posts to Google Form) ---------- */
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
@media (max-width: 520px){ .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 11px 13px; cursor: pointer; font-size: .95rem; color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.checkbox-item:hover { border-color: var(--silver); }
.checkbox-item.checked { border-color: var(--silver); background: var(--panel-2); }
.checkbox-item input { width: 18px; height: 18px; accent-color: var(--silver); flex: none; }
.field .req { color: var(--silver); }
.form-error { color: #ff8f8f; font-size: .9rem; min-height: 1.1em; }
.form-success {
  border: 1px solid color-mix(in srgb, var(--legacy) 55%, var(--line));
  background: color-mix(in srgb, var(--legacy) 12%, var(--panel));
  border-radius: var(--r-card); padding: var(--sp-6);
}
.form-success h3 { color: var(--chrome-hi); margin-bottom: var(--sp-2); }
.ixtx-sink { display: none; }
.dob-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 10px; margin-top: 6px; }
@media (max-width: 400px){ .dob-grid { grid-template-columns: 1fr; } }

/* ---------- Social video embed (TikTok/Facebook) ---------- */
.video-embed { display: flex; justify-content: center; margin-block: var(--sp-2) var(--sp-5); }
.video-embed .promo-video {
  width: 100%; max-width: 360px; aspect-ratio: 9 / 16; height: auto;
  display: block; margin: 0 auto; border-radius: var(--r-card);
  border: 1px solid var(--line); background: #000; box-shadow: var(--shadow);
}
