/* ==========================================================================
   Traditional TaeKwon-Do Center of South Tampa
   Design system — v1
   Palette : dobok white / warm paper / one orange accent / warm near-black
   Type    : Archivo Black (display) · Libre Franklin (body) · IBM Plex Mono (utility)
   ========================================================================== */

/* ---------- Tokens: light (default) ---------- */
:root {
  --paper:        #F7F4F1;
  --surface:      #FFFFFF;
  --surface-2:    #FBF8F5;
  --ink:          #17120D;
  --ink-2:        #4B4238;
  --ink-3:        #82776B;
  --line:         #E6DFD8;
  --line-soft:    #F0EAE4;

  --accent:         #DD4F05;
  --accent-hot:     #F4660E;
  --accent-soft:    #FFF0E6;
  --accent-bright:  #FF8A3D;

  --dark:         #17120D;
  --on-dark:      #FBF8F5;
  --on-dark-2:    #B5A99C;

  /* belt spectrum — the school's actual rank progression */
  --belt-white:   #FFFFFF;
  --rail-white:   #C6CDDA;
  --belt-yellow:  #F2C230;
  --belt-green:   #2F8F52;
  --belt-blue:    #2255C4;
  --belt-red:     #C8102E;
  --belt-black:   #12141C;

  --shadow-sm: 0 1px 2px rgba(35, 22, 12, .06), 0 2px 8px rgba(35, 22, 12, .05);
  --shadow-md: 0 2px 6px rgba(35, 22, 12, .07), 0 12px 32px rgba(35, 22, 12, .09);
  --shadow-lg: 0 4px 12px rgba(35, 22, 12, .09), 0 28px 60px rgba(35, 22, 12, .16);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --ff-display: "Archivo Black", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  color-scheme: light;
}

/* ---------- Tokens: dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #14110E;
    --surface:    #1C1815;
    --surface-2:  #232019;
    --ink:        #F6F1EC;
    --ink-2:      #CFC4B8;
    --ink-3:      #9A8D80;
    --line:       #352F28;
    --line-soft:  #2A2520;

    --accent:         #FF7A33;
    --accent-hot:     #FF9153;
    --accent-soft:    #2C1A0D;
    --accent-bright:  #FF9A5C;

    --dark:       #0E0B09;
    --on-dark:    #FBF8F5;
    --on-dark-2:  #B5A99C;

    --belt-white: #E8EAF0;
    --rail-white: #3B4566;
    --belt-black: #05070E;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .45);
    --shadow-lg: 0 4px 14px rgba(0, 0, 0, .55), 0 32px 70px rgba(0, 0, 0, .55);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:      #14110E;
  --surface:    #1C1815;
  --surface-2:  #232019;
  --ink:        #F6F1EC;
  --ink-2:      #CFC4B8;
  --ink-3:      #9A8D80;
  --line:       #352F28;
  --line-soft:  #2A2520;

  --accent:         #FF7A33;
  --accent-hot:     #FF9153;
  --accent-soft:    #2C1A0D;
  --accent-bright:  #FF9A5C;

  --dark:       #0E0B09;
  --on-dark:    #FBF8F5;
  --on-dark-2:  #B5A99C;

  --belt-white: #E8EAF0;
  --rail-white: #3B4566;
  --belt-black: #05070E;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 4px 14px rgba(0, 0, 0, .55), 0 32px 70px rgba(0, 0, 0, .55);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }

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

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

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }

.section--dark {
  background: var(--dark);
  color: var(--on-dark);
}
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark .eyebrow { color: var(--accent-bright); }
.section--dark .lede { color: var(--on-dark-2); }

/* ---------- The belt rail — rank progression as a structural device ---------- */
.belt-rail {
  height: 4px;
  width: 100%;
  background: var(--accent);
  border: 0;
  margin: 0;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: currentColor;
  flex: none;
}

.h1 { font-size: clamp(36px, 5.6vw, 66px); }
.h2 { font-size: clamp(29px, 4.2vw, 46px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); }
.h4 { font-size: clamp(16px, 1.6vw, 19px); letter-spacing: 0; }

.lede {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.prose p + p { margin-top: 1.05em; }
.prose { max-width: 66ch; color: var(--ink-2); }
.prose strong { color: var(--ink); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head .lede { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease, color .14s ease;
  line-height: 1.1;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hot); border-color: var(--accent-hot); }

.btn--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn--dark:hover { background: #16264f; border-color: #16264f; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--on-dark { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.34); }
.btn--on-dark:hover { border-color: var(--on-dark); background: rgba(255,255,255,.07); }

.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
  margin-right: auto;
}
.brand > span { min-width: 0; }
.brand__mark { height: 42px; width: auto; flex: none; }
.brand__name {
  font-family: var(--ff-display);
  font-size: 13.5px;
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }

/* dropdown */
.nav-drop { position: relative; }
.nav-drop__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.nav-drop[data-open="true"] .nav-drop__panel,
.nav-drop:hover .nav-drop__panel,
.nav-drop:focus-within .nav-drop__panel { display: flex; }
.nav-drop__panel a { padding: 10px 12px; font-weight: 600; }
.nav-drop__toggle {
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600;
  color: var(--ink-2); padding: 9px 12px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-body);
}
.nav-drop__toggle:hover { color: var(--ink); background: var(--surface-2); }
.nav-drop__toggle svg { transition: transform .15s ease; }
.nav-drop[data-open="true"] .nav-drop__toggle svg,
.nav-drop:hover .nav-drop__toggle svg { transform: rotate(180deg); }

.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-weight: 500; font-size: 14px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: 8px 10px; border-radius: var(--r-sm);
}
.header-phone:hover { background: var(--surface-2); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px;
  cursor: pointer; color: var(--ink);
}

@media (max-width: 1040px) {
  .nav, .header-cta .btn, .header-phone span { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: inline-flex; padding: 10px; border: 1px solid var(--line); }
}

@media (max-width: 1180px) { .brand__sub { display: none; } }

@media (max-width: 430px) {
  .brand__name { font-size: 12px; }
  .brand__mark { height: 34px; width: auto; }
  .header-bar { gap: 10px; }
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 14px var(--gutter) 22px;
  background: var(--surface);
  max-height: 72vh;
  overflow-y: auto;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav a {
  display: block; padding: 13px 4px; color: var(--ink);
  text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a.is-sub { padding-left: 20px; font-weight: 500; color: var(--ink-2); font-size: 15px; }
.mobile-nav .mobile-nav__label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); padding: 18px 4px 6px;
}
.mobile-nav .btn { margin-top: 18px; }

/* ---------- Offer ticker ---------- */
.ticker {
  background: var(--accent);
  color: var(--on-dark);
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.ticker__inner {
  display: flex; align-items: center; justify-content: center;
  gap: 6px 18px; flex-wrap: wrap; padding: 9px 0; text-align: center;
}
@media (max-width: 560px) {
  .ticker { font-size: 11.5px; }
  .ticker__inner { gap: 4px 10px; }
  .ticker .ticker__dot { display: none; }
}
.ticker { color: #fff; }
.ticker strong { color: #fff; font-weight: 700; }
.ticker .ticker__dot { color: rgba(255,255,255,.5); }
.ticker a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: #0E0A08;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

/* The photograph is content, not decoration — it ships as an <img> so it loads early. */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

/* Scrim: heavy where the words sit, light where the students do. */
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(14, 10, 8, .92) 0%,
      rgba(14, 10, 8, .80) 34%,
      rgba(14, 10, 8, .44) 60%,
      rgba(14, 10, 8, .24) 100%),
    linear-gradient(to top, rgba(14, 10, 8, .55) 0%, rgba(14, 10, 8, 0) 42%);
}
@media (max-width: 940px) {
  .hero__scrim {
    background:
      linear-gradient(to bottom,
        rgba(14, 10, 8, .82) 0%,
        rgba(14, 10, 8, .60) 45%,
        rgba(14, 10, 8, .86) 100%);
  }
  .hero__media img { object-position: center 45%; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 4.6vw, 76px);
}
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero h1 {
  color: #FFFFFF;
  text-shadow: 0 2px 30px rgba(14, 10, 8, .5);
}
.hero h1 em {
  font-style: normal;
  color: #FF8A3D;
  display: block;
}
.hero__lede {
  margin-top: 20px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: #E6DDD5;
  max-width: 54ch;
  text-shadow: 0 1px 18px rgba(14, 10, 8, .55);
}
.hero .eyebrow { color: #FF8A3D; }
.hero .btn-row { margin-top: 30px; }

.hero__chips {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 30px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .07em;
  text-transform: uppercase; color: #D6CCC3;
}
.chip svg { color: #FF8A3D; flex: none; }

.stars { display: inline-flex; gap: 2px; color: var(--accent-bright); }

/* ---------- Offer card (the gated web special) ---------- */
.offer-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.offer-card__top {
  background: var(--accent);
  color: #fff;
  padding: 18px 24px;
  text-align: center;
}
.offer-card__top .kicker {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; opacity: .92;
}
.offer-card__price {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
  margin-top: 6px;
  text-transform: uppercase;
}
.offer-card__price s { opacity: .62; font-size: .46em; margin-left: 10px; font-family: var(--ff-body); font-weight: 600; }
.offer-card__what {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; opacity: .92; margin-top: 8px;
}
.offer-card__body { padding: 22px 24px 26px; }

.offer-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.offer-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
}
.offer-list svg { color: var(--accent); flex: none; margin-top: 4px; }

.scarcity {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  margin-top: 16px; text-align: center;
}
.scarcity b { color: var(--accent); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
  margin: 14px 0 16px;
}
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }

.form-note {
  font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 12px;
}

.form-success {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-md);
  padding: 20px;
  text-align: center;
}
.form-success h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.form-success--warn { background: var(--surface-2); border-color: var(--ink-3); }
.form-success--warn a { font-weight: 700; }
.form-success p { font-size: 15px; color: var(--ink-2); }

/* GoHighLevel embed slot */
.ghl-slot { min-height: 10px; }
.ghl-slot iframe { width: 100%; border: 0; display: block; }

/* ---------- Full-bleed photo band ---------- */
.photo-band {
  position: relative;
  height: clamp(200px, 30vw, 400px);
  overflow: hidden;
  background: var(--dark);
}
.photo-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.photo-band__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px var(--gutter) 16px;
  background: linear-gradient(transparent, rgba(23,18,13,.82));
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.88);
}
.photo-band__caption span { max-width: var(--container); margin-inline: auto; display: block; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-inline: 1px solid var(--line-soft);
}
@media (max-width: 780px) { .trust-strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.trust-item {
  background: var(--surface);
  padding: 26px 22px;
  text-align: center;
}
.trust-item__num {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.trust-item__label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 10px;
}

/* ---------- Featured program (the new one gets the wide slot) ---------- */
.program-feature {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  margin-bottom: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.program-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
@media (max-width: 720px) { .program-feature { grid-template-columns: 1fr; } }

.program-feature__media {
  position: relative;
  aspect-ratio: 16 / 11;
  max-width: 100%;
  background: var(--dark);
  overflow: hidden;
}
.program-feature__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
@media (max-width: 720px) { .program-feature__media { aspect-ratio: 16 / 10; } }
.program-feature__body {
  padding: clamp(24px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.program-feature__body h3 { font-size: clamp(24px, 2.6vw, 32px); }
.program-feature__body p { font-size: 16px; color: var(--ink-2); max-width: 54ch; }
.program-feature__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 2px;
}
.tag--new { background: var(--accent); color: #fff; }
.tag--age { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }

/* ---------- Program cards ---------- */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.program-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--dark);
  overflow: hidden;
}
.program-card__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  transition: transform .4s ease;
}
.program-card:hover .program-card__media img { transform: scale(1.04); }
.program-card__age {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: var(--accent); color: #fff;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 2px;
}
.program-card__badge {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  background: var(--ink); color: #fff;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 6px 10px; border-radius: 2px;
}
.program-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.program-card__body h3 { font-size: 21px; }
.program-card__body p { font-size: 15px; color: var(--ink-2); }
.program-card__link {
  margin-top: auto; padding-top: 6px;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
}
.program-card:hover .program-card__link svg { transform: translateX(4px); }
.program-card__link svg { transition: transform .18s ease; }

/* image fallback pattern — keeps layout intentional if a photo is unavailable */
.media-fallback {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 2px, transparent 2px 16px),
    linear-gradient(150deg, var(--accent-hot) 0%, var(--dark) 78%);
  display: grid; place-items: center;
}
.media-fallback span {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
}
.media-fallback::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--accent-bright);
}

/* ---------- Tenets (the five tenets of Taekwon-Do) ---------- */
.tenets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.tenet {
  padding: 26px 22px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tenet:last-child { border-right: 0; }
.tenet__ko {
  font-size: 26px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  font-family: var(--ff-body);
  font-weight: 600;
}
.tenet__ko svg { width: 22px; height: 22px; }
.tenet__en {
  font-family: var(--ff-display);
  font-size: 17px;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -0.005em;
}
/* Cells that lead with the name rather than an icon get a rule to sit under. */
.tenet--named .tenet__en { font-size: 19px; }
.tenet--named .tenet__en::before {
  content: "";
  display: block;
  width: 26px; height: 3px;
  background: var(--accent);
  margin-bottom: 14px;
}
.section--dark .tenet--named .tenet__en::before { background: var(--accent-bright); }
.tenet__romaja {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 6px;
}
.tenet p { font-size: 14px; color: var(--ink-2); margin-top: 12px; line-height: 1.55; }

.section--dark .tenets,
.section--dark .tenet { border-color: rgba(255,255,255,.15); }
.section--dark .tenet__ko { color: var(--accent-bright); }
.section--dark .tenet__en { color: #fff; }
.section--dark .tenet__romaja,
.section--dark .tenet p { color: var(--on-dark-2); }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }
@media (max-width: 700px) { .split--reverse > *:first-child { order: 0; } }

.framed {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  background: var(--dark);
}
.framed img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.framed--tall { aspect-ratio: 3 / 4; }

.check-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.check-list svg { color: var(--accent); flex: none; margin-top: 4px; }
.section--dark .check-list li,
.offer-band .check-list li { color: var(--on-dark-2); }
.section--dark .check-list svg,
.offer-band .check-list svg { color: var(--accent-bright); }

/* ---------- Reviews ---------- */
.review-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.rating-block { display: flex; align-items: center; gap: 14px; }
.rating-block__score {
  font-family: var(--ff-display); font-size: 44px; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.rating-block__meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.review p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.review__who {
  margin-top: auto;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Belt path ---------- */
.path {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  counter-reset: belt;
}
@media (max-width: 860px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.path__step { padding: 0 14px 0 0; }
.path__swatch {
  height: 42px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.22);
  position: relative;
}
.path__swatch::after {
  content: ""; position: absolute; right: 8px; top: 8px; bottom: 8px; width: 6px;
  border-radius: 2px; background: rgba(0,0,0,.35);
}
.path__step[data-tip="none"] .path__swatch::after { display: none; }
.path__name {
  font-family: var(--ff-display); font-size: 15px; text-transform: uppercase;
  margin-top: 14px; color: #fff;
}
.path__note { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); margin-top: 6px; }

/* ---------- Document downloads ---------- */
.doc-group + .doc-group { margin-top: clamp(32px, 4vw, 48px); }
.doc-group__title {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.doc-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.doc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.doc-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.doc-card__title {
  display: block;
  font-weight: 700; font-size: 16.5px; color: var(--ink); line-height: 1.3;
}
.doc-card__desc {
  display: block;
  font-size: 14.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.5;
}
.doc-card__meta {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 12px;
  display: flex; align-items: center; gap: 8px;
}
.doc-card:hover .doc-card__meta { color: var(--accent); }

.doc-empty {
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  background: var(--surface);
}
.doc-empty .lede { margin-inline: auto; }

/* ---------- Glossary ---------- */
.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px 28px;
}
.glossary dl { margin: 0; display: grid; gap: 9px; }
.glossary > div { display: block; }
.glossary dl > div {
  display: flex; justify-content: space-between; gap: 14px;
  align-items: baseline;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 7px;
}
.glossary dt {
  font-weight: 700; color: var(--ink); font-size: 15.5px;
}
.glossary dd {
  margin: 0; color: var(--ink-3); font-size: 14px; text-align: right;
  font-family: var(--ff-mono); letter-spacing: .02em;
}
.section--dark .glossary dt { color: #fff; }
.section--dark .glossary dd { color: var(--on-dark-2); }
.section--dark .glossary dl > div { border-bottom-color: rgba(255,255,255,.16); }

/* ---------- Creed ---------- */
.creed {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 26px;
  max-width: 62ch;
}
.creed p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}
.creed p + p { margin-top: .7em; }

/* ---------- Dated list (closures, testing) ---------- */
.dates { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 760px; }
.dates__row {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 18px; padding-block: 16px; border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) { .dates__row { grid-template-columns: 1fr; gap: 4px; } }
.dates__when {
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
}
.dates__what { color: var(--ink-2); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details[open] { background: transparent; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink);
  position: relative;
  display: block;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -9px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -4px; }
.faq details > div { padding: 0 44px 22px 0; color: var(--ink-2); font-size: 16px; }
.faq details > div p + p { margin-top: .9em; }

/* ---------- Offer band ---------- */
.offer-band {
  background:
    radial-gradient(900px 480px at 88% 0%, rgba(221,79,5,.38), transparent 60%),
    var(--dark);
  color: var(--on-dark);
}
.offer-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 900px) { .offer-band__inner { grid-template-columns: 1fr; } }
.offer-band h2 { color: #fff; }

/* ---------- Location ---------- */
.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 820px) { .location-grid { grid-template-columns: 1fr; } }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list svg { color: var(--accent); flex: none; margin-top: 3px; }
.info-list dt {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px;
}
.info-list dd { margin: 0; font-size: 16.5px; color: var(--ink); font-weight: 600; }
.info-list dd a { color: var(--ink); text-decoration: none; }
.info-list dd a:hover { color: var(--accent); }
.info-list dd small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); margin-top: 2px; }

.map-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--surface-2);
}
.map-frame iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.map-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center; align-content: center; gap: 10px;
  text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(0deg, var(--line-soft) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 44px),
    var(--surface-2);
}
.map-fallback strong { font-family: var(--ff-display); font-size: 18px; text-transform: uppercase; color: var(--ink); }
.map-fallback span { font-size: 14px; color: var(--ink-3); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  border-top: 3px solid var(--accent);
}
.team-card h3 { font-size: 16px; letter-spacing: 0; }
.team-card .role {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-top: 8px;
}
.team-card p { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: #0E0A08;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.page-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(14, 10, 8, .92) 0%,
      rgba(14, 10, 8, .80) 40%,
      rgba(14, 10, 8, .44) 70%,
      rgba(14, 10, 8, .22) 100%),
    linear-gradient(to top, rgba(14, 10, 8, .5) 0%, rgba(14, 10, 8, 0) 40%);
}
@media (max-width: 860px) {
  .page-hero__scrim {
    background: linear-gradient(to bottom,
      rgba(14, 10, 8, .86) 0%,
      rgba(14, 10, 8, .68) 50%,
      rgba(14, 10, 8, .88) 100%);
  }
}
.page-hero__inner {
  position: relative; z-index: 2;
  padding-block: clamp(44px, 6vw, 82px);
  max-width: 760px;
}
.page-hero h1 {
  color: #FFFFFF;
  font-size: clamp(30px, 4.4vw, 52px);
  text-shadow: 0 2px 26px rgba(14, 10, 8, .5);
}
.page-hero .lede {
  color: #E6DDD5;
  margin-top: 18px;
  text-shadow: 0 1px 16px rgba(14, 10, 8, .55);
}
.page-hero .eyebrow { color: #FF8A3D; }

.crumbs {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: #BCAFA4; margin-bottom: 18px;
}
.crumbs a { color: #BCAFA4; text-decoration: none; }
.crumbs a:hover { color: #FF8A3D; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-2);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px 28px;
  padding-block: clamp(44px, 6vw, 66px);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--ff-mono); font-weight: 500; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-bright);
  margin-bottom: 14px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: var(--on-dark-2); text-decoration: none; }
.footer-links a:hover { color: #fff; }

.footer-brand__name {
  font-family: var(--ff-display); font-size: 18px; color: #fff;
  text-transform: uppercase; line-height: 1.1;
}
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: 14.5px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: space-between;
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .06em;
  color: #7E8AAC;
}
.footer-bottom a { color: #7E8AAC; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Mobile sticky CTA bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.mobile-bar .btn { flex: 1; padding: 14px 10px; font-size: 13.5px; }
@media (max-width: 780px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Utilities ---------- */
.stack-sm { display: grid; gap: 10px; }
.mt-lg { margin-top: clamp(28px, 4vw, 44px); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }
.center .btn-row { justify-content: center; }
