/* =====================================================
   IRON DRAGON MMA — Stylesheet
   Palette: BLACK + RED primary, YELLOW accent.
   Fonts load from Google Fonts (see <head> in index.html).
   --------------------------------------------------------
   Sections in this file, in order:
     1. Design tokens (:root variables)
     2. Base / reset
     3. Reusable helpers (type, buttons, photo slots, layout)
     4. Header / masthead + hero
     5. Disciplines
     6. Philosophy
     7. Schedule
     8. Instructors
     9. Gallery
    10. Contact
    11. Footer
    12. Responsive (mobile)
   ===================================================== */

/* ============================================================
   1. DESIGN TOKENS
   Change a color or size here and it updates site-wide.
   ============================================================ */
:root {
  /* ----- Colors ----- */
  --black: #0b0b0c; /* main page background */
  --true-black: #000000;
  --ink: #111113; /* alternating section background */
  --coal: #17171a; /* cards */
  --asphalt: #232327; /* strong borders / rules */

  --bone: #f6f2e9; /* primary light text */
  --paper: #ffffff;
  --fog: #c3bcb0; /* secondary / muted text */
  --ash: #807a70; /* captions, fine print */

  /* Red — primary action color */
  --red: #d81e26;
  --red-hover: #ee2630;
  --red-press: #ac1219;

  /* Yellow — accent only */
  --gold: #f6c400;
  --gold-hover: #ffd21e;

  --fg-on-gold: #1a1500; /* text on yellow */

  --border: rgba(246, 242, 233, 0.12);
  --border-strong: rgba(246, 242, 233, 0.26);

  /* ----- Type ----- */
  --font-condensed: "Oswald", sans-serif; /* nav, sub-labels, schedule rows */
  --font-impact: "Archivo Black", "Oswald", sans-serif; /* big headings */
  --font-body: "Inter", system-ui, sans-serif; /* paragraphs */
  --font-mono: "Space Mono", ui-monospace, monospace; /* eyebrows, tags */

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

  /* ----- Radii ----- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-pill: 999px;

  /* ----- Shadows (hard offset = the house style) ----- */
  --shadow-hard-sm: 4px 4px 0 0 var(--true-black);
  --shadow-hard-md: 8px 8px 0 0 var(--true-black);
  --shadow-hard-lg: 12px 12px 0 0 var(--true-black);

  /* ----- Motion ----- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
}

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

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   3. REUSABLE HELPERS
   ============================================================ */

/* ----- Type helpers ----- */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

/* ----- Buttons ----- */
.btn {
  font-family: var(--font-impact);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 15px;
  padding: 17px 26px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow-hard-sm);
}
.btn-red:hover {
  background: var(--red-hover);
}
.btn-gold {
  background: var(--gold);
  color: var(--fg-on-gold);
  box-shadow: var(--shadow-hard-sm);
}
.btn-gold:hover {
  background: var(--gold-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 2px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--true-black);
}
.btn:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 0 var(--true-black);
}
.btn-lg {
  font-size: 17px;
  padding: 20px 32px;
}

/* ----- Photo slots -----
   Placeholder boxes you replace with your own images.
   To use a real photo, swap the whole <div class="photo-slot" …>
   for:  <img src="your-photo.jpg" alt="…" style="width:100%;height:100%;object-fit:cover;">
   The dashed look + camera icon is just placeholder chrome. */
.photo-slot {
  position: relative;
  background-color: var(--coal);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(246, 196, 0, 0.05) 0 14px,
    rgba(246, 196, 0, 0) 14px 28px
  );
  border: 2px dashed rgba(246, 196, 0, 0.28);
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--fog);
  overflow: hidden;
  min-height: 160px;
}
.photo-slot .ps-icon {
  width: 40px;
  height: 40px;
  stroke: var(--gold);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.9;
}
.photo-slot .ps-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  padding: 0 16px;
  max-width: 90%;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-slot:has(img) {
  border: 0;
  background: none;
}

/* ----- Belt-stripe motif (black / red / gold) ----- */
.belt {
  display: flex;
  height: 6px;
  width: 100%;
}
.belt span {
  flex: 1;
}
.belt .b-black {
  background: var(--true-black);
}
.belt .b-red {
  background: var(--red);
}
.belt .b-gold {
  background: var(--gold);
}

/* ----- Section scaffold ----- */
.sec {
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 80px);
}
.lbl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.lbl .n {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--red);
}
.lbl .t {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
}
.lbl .ln {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.h2 {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 0.92;
  margin: 0;
  color: var(--bone);
  max-width: 18ch;
}
.h2 em {
  font-style: normal;
  color: var(--gold);
}
.intro {
  color: var(--fog);
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 18px;
}

/* ----- Reveal-on-scroll (handled by script.js) ----- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   4. MASTHEAD (centered brand, nav underneath) + HERO
   ============================================================ */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  text-align: center;
  padding: 26px clamp(20px, 5vw, 80px) 18px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    padding var(--dur-base),
    border-color var(--dur-base);
}
/* backdrop lives on ::before so backdrop-filter never lands on .mast itself —
   if it did, .mast would become a containing block for position:fixed children
   (the nav drawer), breaking its viewport-relative positioning when scrolled. */
.mast::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--dur-base);
}
/* compact state once you scroll (toggled by script.js) */
.mast[data-scrolled] {
  border-bottom-color: var(--border);
  padding-top: 12px;
  padding-bottom: 12px;
}
.mast[data-scrolled]::before {
  opacity: 1;
}

.mast-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mast-brand .logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #fff;
  font-family: var(--font-impact);
  font-size: 30px;
  letter-spacing: -0.02em;
  overflow: hidden;
  transition:
    width var(--dur-base),
    height var(--dur-base),
    font-size var(--dur-base);
}
.mast-brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mast-brand b {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--bone);
  transition: font-size var(--dur-base);
}
.mast-brand small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  transition:
    opacity var(--dur-base),
    max-height var(--dur-base);
  overflow: hidden;
  max-height: 2em;
}
/* shrink the brand when scrolled */
.mast[data-scrolled] .mast-brand .logo {
  width: 42px;
  height: 42px;
  font-size: 20px;
}
.mast[data-scrolled] .mast-brand b {
  font-size: clamp(20px, 2.6vw, 26px);
}
.mast[data-scrolled] .mast-brand small {
  opacity: 0;
  max-height: 0;
}

.mast-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
  flex-wrap: wrap;
  transition: margin var(--dur-base);
}
.mast[data-scrolled] .mast-nav {
  margin-top: 10px;
}
.mast-nav a:not(.btn) {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-size: 15px;
  color: var(--fog);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast);
}
.mast-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width var(--dur-base) var(--ease-out);
}
.mast-nav a:not(.btn):hover,
.mast-nav a[data-active]:not(.btn) {
  color: var(--bone);
}
.mast-nav a:not(.btn):hover::after,
.mast-nav a[data-active]:not(.btn)::after {
  width: 100%;
}
.mast .burger {
  display: none;
}

/* ----- Hero (centered, faint logo backdrop) ----- */
.hero {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 8vw, 110px) clamp(20px, 5vw, 80px);
  overflow: hidden;
}
/* width changes the size, vw is mobile size, opacity changes the transparency */
.hero .backdrop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1000px, 90vw, 80vh);
  aspect-ratio: 1/1;
  z-index: 0;
  opacity: 0.3;
  background-color: transparent;
}
.hero .backdrop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 50% at 50% 50%,
    rgba(216, 30, 38, 0.18),
    transparent 70%
  );
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}
.hero .eyebrow {
  font-size: 13px;
}
.hero h1 {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.84;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  color: var(--bone);
}
.hero h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--fg-on-gold);
}
.hero h1 .hl::before {
  content: "";
  position: absolute;
  inset: -1% -4% -8%;
  background: var(--gold);
  z-index: -1;
  transform: skewX(-5deg);
}
.hero .tg {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: clamp(16px, 2vw, 24px);
  color: var(--red);
  margin-top: 22px;
}
.hero .lead {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--fog);
  font-size: 18px;
}
.hero .cta-row {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   5. DISCIPLINES (fight-card bands)
   ============================================================ */
.bands {
  margin-top: 52px;
  border-top: 2px solid var(--asphalt);
}
.band {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 2px solid var(--asphalt);
  transition: background var(--dur-base);
}
.band:hover {
  background: linear-gradient(90deg, rgba(216, 30, 38, 0.14), transparent 72%);
}
.band .no {
  font-family: var(--font-impact);
  font-size: clamp(48px, 7vw, 92px);
  color: var(--asphalt);
  line-height: 0.8;
  -webkit-text-stroke: 1px var(--asphalt);
  transition:
    color var(--dur-base),
    -webkit-text-stroke-color var(--dur-base);
}
.band:hover .no {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}
.band .bt h3 {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: 0.9;
  margin: 0;
  color: var(--bone);
}
.band .bt p {
  color: var(--fog);
  max-width: 540px;
  margin: 12px 0 0;
}
.band .bt .chips {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.band .bt .chips span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  color: var(--fog);
  padding: 5px 9px;
  border-radius: var(--r-pill);
}
/* ============================================================
   6. PHILOSOPHY
   ============================================================ */
.philo {
  background: var(--ink);
}
.philo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.philo .photo-slot {
  aspect-ratio: 4/5;
}
.philo .photo-slot img {
  object-fit: contain;
}
.philo .q {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.8vw, 34px);
  color: var(--gold);
  line-height: 1.35;
  margin: 20px 0;
}
.philo p {
  color: var(--fog);
}
.vals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}
.vals .v {
  padding: 22px 18px 0;
  border-right: 1px solid var(--border);
}
.vals .v:last-child {
  border-right: 0;
}
.vals .v b {
  font-family: var(--font-impact);
  font-size: 34px;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.vals .v span {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--fog);
  display: block;
  margin-top: 8px;
}

/* ============================================================
   7. SCHEDULE (tabbed by day — tabs handled by script.js)
   ============================================================ */
.t-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 24px;
}
.t-tabs button {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
  color: var(--fog);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 11px 22px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.t-tabs button:hover {
  color: var(--bone);
  border-color: var(--border-strong);
}
.t-tabs button[data-active] {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.t-panel {
  display: none;
}
.t-panel[data-active] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  animation: fade 0.4s var(--ease-out);
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.t-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.t-row:hover {
  background: rgba(216, 30, 38, 0.05);
}
.t-row .tm {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--gold);
}
.t-row .nm {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 20px;
  color: var(--bone);
}
.t-row .bg {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  border: 1px solid var(--border-strong);
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
/* --- Rank badge colors, keyed to belt curriculum -----------------
   Beginner            White -> Senior White        (solid, no real gradient)
   Novice               Yellow -> Orange              (gradient A: border/outline)
   Intermediate         Green -> Blue                 (gradient B: background fill)
   Advanced              Purple -> Red                 (gradient A: border/outline)
   Black Belt Candidates Red -> Black                  (gradient B: background fill)
   Black Belts           Black                         (solid, gold accent)
   ----------------------------------------------------------------- */
:root {
  --rank-white: #ece7da;
  --rank-yellow: #f6c400;
  --rank-orange: #ff6a00;
  --rank-green: #3ecf6e;
  --rank-blue: #3b82f6;
  --rank-purple: #9b5de5;
  --rank-red: #d81e26;
  --rank-black: #000000;
}

.t-row .bg[data-l="Beginner"] {
  color: var(--rank-white);
  background:
    linear-gradient(var(--coal), var(--coal)) padding-box,
    linear-gradient(90deg, var(--rank-white)) border-box;
}

/* Gradient style A: gradient border/outline, solid dark fill, text = midpoint hue */
.t-row .bg[data-l="Novice"] {
  color: var(--rank-white);
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background:
    linear-gradient(var(--coal), var(--coal)) padding-box,
    linear-gradient(90deg, var(--rank-yellow) 40%, var(--rank-orange) 70%)
      border-box;
}
.t-row .bg[data-l="Advanced"] {
  color: var(--rank-white);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background:
    linear-gradient(var(--coal), var(--coal)) padding-box,
    linear-gradient(90deg, var(--rank-purple) 20%, var(--rank-red) 80%)
      border-box;
}

.t-row .bg[data-l="Intermediate"] {
  color: var(--rank-white);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background:
    linear-gradient(var(--coal), var(--coal)) padding-box,
    linear-gradient(90deg, var(--rank-green) 20%, var(--rank-blue) 80%)
      border-box;
}
.t-row .bg[data-l="Black Belt Candidates"] {
  color: var(--bone);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background:
    linear-gradient(var(--coal), var(--coal)) padding-box,
    linear-gradient(90deg, var(--rank-red), var(--rank-black)) border-box;
}

.t-row .bg[data-l="Black Belts"] {
  color: var(--gold);
  border-color: 1px solid transparent;
  background:
    linear-gradient(var(--coal), var(--coal)) padding-box,
    linear-gradient(90deg, var(--gold)) border-box;
}

/* Belt-system classes open to every rank: outline runs the full spectrum */
.t-row .bg[data-l="All Ranks"] {
  color: var(--bone);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background:
    linear-gradient(var(--coal), var(--coal)) padding-box,
    linear-gradient(
        90deg,
        var(--rank-white),
        var(--rank-yellow),
        var(--rank-orange),
        var(--rank-green),
        var(--rank-blue),
        var(--rank-purple),
        var(--rank-red),
        var(--rank-black)
      )
      border-box;
}
/* Demographic / universal-access badges: solid brand fills instead of
   outlines, so they read as their own category, not a rank color */
.t-row .bg[data-l="4 to 6"],
.t-row .bg[data-l="7 to 13"],
.t-row .bg[data-l="14+"] {
  color: #d6cece;
  background: rgba(216, 30, 38, 0.28);
  border-color: rgba(216, 30, 38, 0.28);
}
.t-row .bg[data-l="All Levels"],
.t-row .bg[data-l="All Classes"] {
  color: var(--true-black);
  background: rgba(246, 196, 0, 0.5);
  border-color: rgba(246, 196, 0, 0.5);
}
.t-row .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================================
   8. INSTRUCTORS (6 cards with bios)
   ============================================================ */
.coach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.coach {
  display: flex;
  flex-direction: column;
  background: var(--coal);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base),
    border-color var(--dur-base);
}
.coach:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hard-md);
  border-color: var(--red);
}
.coach .photo-slot {
  border: 0;
  border-radius: 0;
  aspect-ratio: 1/1;
  min-height: 0;
}
.coach .ci {
  padding: 22px 22px 26px;
}
.coach h3 {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: 21px;
  margin: 0;
  color: var(--bone);
  line-height: 1;
}
.coach .role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}
.coach .bio {
  color: var(--fog);
  font-size: 15px;
  margin-top: 12px;
}

/* ============================================================
   9. GALLERY
   ============================================================ */
.gallery {
  background: transparent;
}
.gal {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 52px;
}
.gal .photo-slot {
  min-height: 0;
}
.gal .g1 {
  grid-column: span 7;
  width: 100%;
  height: auto;
  display: block;
}
.gal .g2 {
  grid-column: span 5;
  width: 100%;
  height: auto;
  display: block;
}
.gal .g3 {
  grid-column: span 4;
  width: 100%;
  height: auto;
  display: block;
}
.gal .g4 {
  grid-column: span 4;
  width: 100%;
  height: auto;
  display: block;
}
.gal .g5 {
  grid-column: span 4;
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   10. CONTACT
   ============================================================ */
.c-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  margin-top: 48px;
  align-items: start;
}
.c-info .ir {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.c-info .ir .il {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  width: 80px;
  flex: none;
  padding-top: 3px;
}
.c-info .ir .iv {
  color: var(--bone);
}
.c-info .photo-slot {
  aspect-ratio: 16/9;
  margin-top: 22px;
}
.c-info .map-embed {
  aspect-ratio: 16/9;
  margin-top: 22px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  filter: grayscale(0.5) contrast(1.1);
  transition: filter 0.25s ease;
}
.c-info .map-embed:hover {
  filter: grayscale(0);
}
.c-info .map-embed iframe {
  display: block;
}
.c-form {
  background: var(--coal);
  border: 1px solid var(--border);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-hard-md);
}
.c-form h3 {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: 24px;
  margin: 0 0 20px;
  color: var(--bone);
}
.c-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 14px;
}
.c-form .fr {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.c-form input,
.c-form select {
  background: var(--ink);
  border: 1px solid var(--border);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--r-sm);
}
.c-form input:focus,
.c-form select:focus {
  outline: none;
  border-color: var(--red);
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.foot {
  background: var(--true-black);
  padding: 60px clamp(20px, 5vw, 80px) 36px;
  border-top: 1px solid var(--border);
}
.foot-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.foot .fbrand b {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: 22px;
  color: var(--bone);
  display: block;
  line-height: 1;
}
.foot .fbrand small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.foot .fcol h4 {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fog);
  font-size: 13px;
  margin: 0 0 12px;
}
.foot .fcol a {
  display: block;
  color: var(--fog);
  font-size: 14px;
  padding: 5px 0;
}
.foot .fcol a:hover {
  color: var(--gold);
}
.foot .copy {
  color: var(--ash);
  font-size: 13px;
}
.foot-bottom {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   12. RESPONSIVE (mobile / tablet)
   ============================================================ */
@media (max-width: 1000px) {
  .band {
    grid-template-columns: 70px 1fr;
  }
  .philo-grid,
  .c-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .coach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .t-panel[data-active] {
    grid-template-columns: 1fr;
  }
  .gal .g1,
  .gal .g2,
  .gal .g3,
  .gal .g4,
  .gal .g5 {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  /* slide-in mobile menu */
  .mast-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out);
    border-left: 3px solid var(--red);
    z-index: 55;
    margin-top: 0;
  }
  .mast-nav[data-open] {
    transform: none;
  }
  .mast-nav a:not(.btn) {
    font-size: 22px;
  }
  .mast .burger {
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 20px;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    z-index: 60;
  }
  .mast .burger span {
    width: 26px;
    height: 3px;
    background: var(--bone);
    display: block;
  }
  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

@media (max-width: 560px) {
  .coach-grid {
    grid-template-columns: 1fr;
  }
  .vals {
    grid-template-columns: 1fr 1fr;
  }
  .c-form .fr {
    grid-template-columns: 1fr;
  }
  .gal .g1,
  .gal .g2,
  .gal .g3,
  .gal .g4,
  .gal .g5 {
    grid-column: span 12;
  }
  .t-row {
    grid-template-columns: 80px 1fr;
  }
  .t-row .bg,
  .t-row .badges {
    grid-column: 2;
    justify-self: start;
  }
}
