/* Fulshear Family Karate */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --mist: #eef1f5;
  --ink: #1a1d26;
  --muted: #555b67;
  --line: #d5dae2;
  --red: #c8202b;
  --red-dark: #a3171f;
  --flame: #f07a1e;
  --mat: #1f57a6;

  --belt-gold: #e8b923;
  --belt-orange: #f07a1e;
  --belt-green: #2e8b3e;
  --belt-blue: #1f57a6;
  --belt-purple: #6b3fa0;
  --belt-red: #c8202b;
  --belt-brown: #6b4226;
  --belt-black: #000000;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  font-stretch: 100%;
}

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

a { color: var(--mat); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3 {
  font-stretch: 72%;
  word-spacing: 0.04em;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.1; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-stretch: 72%; font-weight: 800; font-size: 1.35rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    font: inherit; font-weight: 700; color: var(--ink);
    background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 8px 14px; cursor: pointer;
  }
  .js .nav { display: none; }
  .js .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav { flex-wrap: wrap; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: 16px; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  padding: 14px 22px; border-radius: var(--radius);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.on-light .btn-outline:hover { background: var(--mist); }
.nav .btn-primary { color: #fff; padding: 10px 16px; }
.nav .btn-primary:hover { background: var(--red-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Belt band (the ten ranks, in order) ---------- */
.belt-band { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(10, 1fr); height: 14px; }
.belt-band span:nth-child(1) { background: var(--belt-gold); }
.belt-band span:nth-child(2) { background: var(--belt-orange); }
.belt-band span:nth-child(3) { background: var(--belt-green); }
.belt-band span:nth-child(4) { background: var(--belt-blue); }
.belt-band span:nth-child(5) { background: var(--belt-purple); }
.belt-band span:nth-child(6) { background: var(--belt-red); }
.belt-band span:nth-child(7),
.belt-band span:nth-child(8),
.belt-band span:nth-child(9) { background: var(--belt-brown); }
.belt-band span:nth-child(8) { box-shadow: inset 2px 0 0 rgba(255,255,255,.35); }
.belt-band span:nth-child(9) { box-shadow: inset 2px 0 0 rgba(255,255,255,.35); }
.belt-band span:nth-child(10) { background: var(--belt-black); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: #000; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.72) 78%);
}
.hero .wrap { position: relative; min-height: min(82vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: clamp(36px, 6vw, 72px); }
.hero h1 { font-size: clamp(3rem, 8.5vw, 7rem); font-stretch: 70%; font-weight: 850; line-height: 0.92; word-spacing: 0.06em; max-width: 11ch; margin-bottom: 0.25em; }
.hero p { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 34ch; margin-bottom: 1.4em; }

.page-hero { background: var(--ink); color: #fff; }
.page-hero .wrap { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(36px, 5vw, 56px); }
.page-hero h1 { font-stretch: 70%; word-spacing: 0.04em; max-width: 16ch; margin-bottom: 0.3em; }
.page-hero p { font-size: 1.2rem; color: #d9dde5; max-width: 52ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink a { color: #fff; }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 52ch; }
.muted { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-wide { grid-template-columns: 5fr 7fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* ---------- Schedule ---------- */
.schedule { margin: 8px 0 20px; border-top: 3px solid var(--ink); }
.schedule-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.schedule-group { font-stretch: 72%; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.05; }
.schedule-time { font-stretch: 72%; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.25rem); color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-days { color: var(--muted); font-size: 1rem; grid-column: 1 / -1; margin-top: -4px; }
@media (max-width: 520px) { .schedule-row { grid-template-columns: 1fr; } }

/* ---------- Reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(32px, 6vw, 72px); margin-top: 40px; }
.reasons h3 { margin-bottom: 0.35em; }
.reasons p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .reasons { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); }
.photo figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 10px; }
.photo-pair { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: end; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

/* ---------- Program blocks ---------- */
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.program { background: var(--paper); border-top: 6px solid var(--red); padding: 28px; border-radius: 0 0 var(--radius) var(--radius); }
.program:nth-child(2) { border-top-color: var(--ink); }
.program dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 0; }
.program dt { font-weight: 700; }
.program dd { margin: 0; }
@media (max-width: 760px) { .programs { grid-template-columns: 1fr; } }

/* ---------- Curriculum list ---------- */
.areas { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; }
.areas li { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 8px 32px; padding: 24px 0; border-top: 1px solid var(--line); }
.areas li:last-child { border-bottom: 1px solid var(--line); }
.areas h3 { margin: 0; }
.areas p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .areas li { grid-template-columns: 1fr; } }

/* ---------- Belt ladder ---------- */
.belts { list-style: none; padding: 0; margin: 32px 0 0; max-width: 640px; display: grid; gap: 10px; counter-reset: rank; }
.belts li { display: grid; grid-template-columns: 2.25rem 1fr; align-items: center; gap: 14px; counter-increment: rank; }
.belts li::before { content: counter(rank); font-stretch: 72%; font-weight: 800; font-size: 1.25rem; color: var(--muted); text-align: right; }
.belt {
  position: relative; display: flex; align-items: center; height: 44px; padding: 0 18px;
  border-radius: 4px; color: #fff; font-weight: 700; font-size: 1.05rem;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.14), inset 0 6px 0 rgba(255,255,255,.08);
}
.belt::after { /* the knot */
  content: ""; position: absolute; right: 22%; top: -4px; bottom: -4px; width: 22px;
  background: inherit; border-radius: 3px; box-shadow: 0 0 0 2px rgba(0,0,0,.18);
}
.belt-gold { background: var(--belt-gold); color: #2a2100; }
.belt-orange { background: var(--belt-orange); color: #2a1300; }
.belt-green { background: var(--belt-green); }
.belt-blue { background: var(--belt-blue); }
.belt-purple { background: var(--belt-purple); }
.belt-red { background: var(--belt-red); }
.belt-brown { background: var(--belt-brown); }
.belt-black { background: var(--belt-black); }
.belt .stripes { position: absolute; right: 10px; display: flex; gap: 4px; }
.belt .stripes i { width: 5px; height: 26px; background: #fff; border-radius: 1px; }

/* ---------- People ---------- */
.feature-person { display: grid; grid-template-columns: minmax(220px, 4fr) 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.feature-person img { border-radius: var(--radius); }
@media (max-width: 760px) { .feature-person { grid-template-columns: 1fr; } .feature-person img { max-width: 320px; } }
.honors { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; }
.honors li { padding-left: 22px; position: relative; }
.honors li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--red); border-radius: 50%; }

.people { display: grid; gap: 0; margin-top: 24px; }
.person { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 4vw, 48px); padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.person img { width: 180px; height: 220px; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); background: var(--mist); }
.person .role { font-weight: 700; color: var(--red); margin-bottom: 0.75em; }
@media (max-width: 600px) { .person { grid-template-columns: 1fr; } .person img { width: 140px; height: 170px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-top: 24px; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-stretch: 80%; font-weight: 700; font-size: 1.3rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details > div { padding: 0 0 22px; }
.faq details > div p { margin: 0; }
.faq-all details { border-bottom: 1px solid var(--line); }

/* ---------- Videos ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 32px; }
@media (max-width: 720px) { .videos { grid-template-columns: 1fr; } }
.video { margin: 0; }
.video figcaption { margin-top: 10px; font-weight: 600; }
.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer;
  background: #000 center / cover no-repeat; border-radius: var(--radius); overflow: hidden; color: #fff;
}
.yt::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); transition: background .2s; }
.yt:hover::before { background: rgba(0,0,0,.1); }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
  background: var(--red); border-radius: 12px;
}
.yt .play::after {
  content: ""; position: absolute; left: 29px; top: 14px;
  border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Visit ---------- */
.address { font-style: normal; font-size: 1.35rem; line-height: 1.45; margin: 0 0 20px; }
.address strong { font-stretch: 72%; font-weight: 800; font-size: 1.6rem; display: block; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px; align-items: baseline; }
.contact-list span { color: var(--muted); font-size: 1rem; }
.contact-list a { font-weight: 700; font-size: 1.2rem; overflow-wrap: anywhere; }
.section-ink .contact-list span { color: #b9bfcc; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 18ch; }
.cta-band .btn-primary { background: #fff; color: var(--red); }
.cta-band .btn-primary:hover { background: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9dde5; font-size: 1rem; }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #fff; }
.site-footer strong { color: #fff; font-stretch: 72%; font-weight: 800; font-size: 1.35rem; display: block; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer address { font-style: normal; }
.site-footer .legal { grid-column: 1 / -1; max-width: none; margin: 0; border-top: 1px solid #343a48; padding-top: 20px; color: #9aa2b1; font-size: 0.9rem; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    box-shadow: 0 -2px 12px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom); background: var(--ink);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
  .callbar a:first-child { background: var(--red); }
  body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
