/* ACE Taekwondo — tokens from the ACE Taekwondo design system */
:root {
  --surface-100: #f7f5f1;
  --surface-200: #ece8e1;
  --white: #ffffff;
  --line: #d9d4cb;
  --field: #8a867f;
  --ink: #141416;
  --ink-muted: #5d5b57;
  --ace-red: #c8102e;
  --ace-red-hover: #9e0c24;
  --ace-navy: #0f2a5c;
  --navy-muted: #dfe6f3;
  --belt-gold: #e8a317;
  --ok: #1f7a45;
  --warn: #b4540a;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-10: 40px;
  --space-20: 80px;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ace-red); }
a:hover { color: var(--ace-red-hover); }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; color: var(--ace-navy); }
h1 { font-size: clamp(48px, 7vw, 72px); line-height: .95; }
h2 { font-size: clamp(34px, 4.5vw, 44px); line-height: 1.05; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
p { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--ace-navy); outline-offset: 2px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-20); display: flex; flex-direction: column; gap: var(--space-10); }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--radius-pill);
  font: inherit; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--ace-red); color: var(--white); }
.btn-primary:hover { background: var(--ace-red-hover); color: var(--white); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 241, .96); backdrop-filter: blur(6px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 12px; }
.brand img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:not(.btn):hover { color: var(--ace-red); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 48px; height: 48px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface-100); border-bottom: 1px solid var(--line); padding: 8px var(--space-6) var(--space-6);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: var(--space-4); }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-10); padding-block: var(--space-10) var(--space-20); }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }
.pill { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.lead { max-width: 500px; font-size: 19px; line-height: 29px; color: var(--ink-muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); }
.hero-collage { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.hero-collage img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg); }
.hero-collage img.tall { grid-row: span 2; height: 456px; }
.since { height: 220px; border-radius: var(--radius-lg); background: var(--ace-navy); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; gap: 4px; font-size: 14px; line-height: 20px; color: var(--navy-muted); }
.since-year { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 46px; color: var(--white); }
@media (max-width: 520px) {
  .hero-collage img.tall { height: 320px; }
  .hero-collage img, .since { height: 152px; }
  .since-year { font-size: 32px; line-height: 34px; }
}

/* Benefits */
.benefits { background: var(--white); border-block: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-block: 56px; }
.benefit { display: flex; flex-direction: column; gap: var(--space-2); }
.benefit svg { color: var(--ace-red); }
.benefit p { color: var(--ink-muted); }

/* Programs */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.program-card { text-decoration: none; color: var(--ink); background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.program-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 42, 92, .10); }
.program-card img { width: 100%; height: 180px; object-fit: cover; }
.program-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.program-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 34px; }
.program-body p { color: var(--ink-muted); }
.tag { align-self: flex-start; background: var(--belt-gold); color: var(--ink); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 13px; line-height: 16px; font-weight: 600; }
.muted strong { color: var(--ink); }

/* Navy band */
.band-navy { background: var(--ace-navy); color: var(--white); }
.band-navy h2 { color: var(--white); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6); }
.steps li { display: flex; flex-direction: column; gap: var(--space-2); }
.steps p { color: var(--navy-muted); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 56px; color: var(--belt-gold); }

/* Split layouts */
.split { flex-direction: row; flex-wrap: wrap; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.master-photo { height: 400px; border-radius: var(--radius-lg); background: var(--surface-200); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; flex: 1 1 320px; }
.master-photo img { height: 380px; width: auto; }
.review { margin: 0; padding: var(--space-6); background: var(--white); border-radius: var(--radius-lg); }
.review footer { margin-top: 8px; color: var(--ink-muted); font-size: 14px; }

/* Cards + forms */
.band-white { background: var(--white); }
.band-warm { background: var(--surface-200); }
.band-warm-2 { background: var(--surface-200); border-top: 1px solid var(--line); }
.card { background: var(--surface-100); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: var(--space-6); }
.trial-form { background: var(--white); border: 0; gap: var(--space-4); }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; line-height: 20px; color: var(--ink); }
input, select {
  font: inherit; font-weight: 400; font-size: 17px; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--field); border-radius: var(--radius-sm); background: var(--white);
}
input:focus, select:focus { outline: 3px solid rgba(15, 42, 92, .35); border-color: var(--ace-navy); }
input[aria-invalid="true"] { border-color: var(--ace-red); }
.inline-field { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-field label { flex: 1 1 220px; }
.inline-field .form-status { flex-basis: 100%; }
.form-status { font-size: 14px; line-height: 20px; min-height: 20px; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--ace-red); }

.eyebrow { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ace-red); }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge-gold { background: var(--belt-gold); color: var(--ink); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.badge-soon { align-self: flex-start; background: var(--surface-200); color: var(--ink-muted); border-radius: var(--radius-pill); padding: 4px 12px; font-size: 13px; line-height: 18px; font-weight: 600; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 8px; align-items: center; }
.checklist li::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: var(--ace-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Attendance week */
.week { border-top: 1px solid var(--line); padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.week-head { display: flex; justify-content: space-between; gap: var(--space-4); font-weight: 600; }
.week-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; text-align: center; }
.day { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; line-height: 16px; color: var(--ink-muted); }
.day::after { content: ""; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); }
.day.on::after {
  background: var(--ace-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--ace-navy);
}
.progress-label { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 14px; color: var(--ink-muted); }
.progress-label strong { color: var(--ink); }
.progress { height: 10px; border-radius: 999px; background: var(--surface-200); overflow: hidden; }
.progress > div { height: 100%; background: var(--belt-gold); }

/* AI coach */
.mini-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-4); }
.mini-steps li { display: flex; flex-direction: column; gap: 4px; }
.mini-steps .step-num { font-size: 32px; line-height: 32px; }
.ai-preview { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.ai-frame img { width: 100%; height: 360px; object-fit: cover; opacity: .85; }
.ai-chip-top { position: absolute; top: 16px; left: 16px; background: rgba(18, 18, 20, .85); color: #f4f2ee; border-radius: var(--radius-sm); padding: 6px 10px; font-size: 13px; font-weight: 600; }
.ai-chips { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ai-chip { display: inline-flex; align-items: center; gap: 8px; background: #f4f2ee; color: var(--ink); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; line-height: 20px; }
.ai-chip::before { content: ""; width: 10px; height: 10px; border-radius: 999px; flex: none; }
.ai-chip.ok::before { background: var(--ok); }
.ai-chip.warn::before { background: var(--warn); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: 32px; }
.site-footer img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: 14px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ace-red); }
.site-footer > p { flex-basis: 100%; }
