/* Mohammed Tae Kwon Do
   Layout: black header and hero panel beside a big class photo, a gold schedule band,
   then plain white sections. The nine belt colors are the one repeated motif
   (strip under the header, above the footer, and the Student Videos page). */
:root {
  --ink: #17140d;
  --ink-soft: #4d493d;
  --paper: #ffffff;
  --mist: #f1f0ec;
  --line: #d9d6cc;
  --night: #100e08;
  --gold: #ffc90a;
  --gold-hover: #ffd94a;
  --gold-text: #8a6500;
  --red: #c9302c;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body); -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 {
  font-family: var(--display); font-stretch: 112%; font-weight: 800;
  line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 65ch; }
.muted { color: var(--ink-soft); }
.wrap {
  width: 100%; max-width: 1120px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.section :focus-visible, .form :focus-visible { outline-color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; font: 700 1rem var(--body); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 6px; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2e2a1d; }
.section .btn-line:hover { background: var(--mist); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* announcement */
.announce { background: var(--gold); color: var(--ink); font-weight: 600; }
.announce[hidden] { display: none; }
.announce p { margin: 0; padding: 10px 0; max-width: none; }
.announce a { font-weight: 700; }

/* header */
.site-header { background: var(--night); color: #fff; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 84px; padding-block: 10px; }
.brand { display: block; line-height: 0; }
.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 0; border-bottom: 3px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: rgba(255,201,10,.6); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); border-radius: 6px; font: 700 1rem var(--body); cursor: pointer; }

/* belt strip */
.belts { display: flex; height: 8px; }
.belts span { flex: 1; }
.belts span:nth-child(1) { background: #f4f4f1; }
.belts span:nth-child(2) { background: #ffc90a; }
.belts span:nth-child(3) { background: #f28a1b; }
.belts span:nth-child(4) { background: #2e9e4f; }
.belts span:nth-child(5) { background: #6b3fa0; }
.belts span:nth-child(6) { background: #2b5fb8; }
.belts span:nth-child(7) { background: #d6322f; }
.belts span:nth-child(8) { background: #7a4a2b; }
.belts span:nth-child(9) { background: #111; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--night); color: #fff; }
.hero-text {
  align-self: center; padding-block: clamp(40px, 6vw, 84px); padding-right: clamp(20px, 4vw, 56px);
  padding-left: max(16px, calc((100vw - 1120px) / 2 + 16px), env(safe-area-inset-left, 0px));
}
.hero .lead { font-size: 1.15rem; color: #ebe7d8; }
.hero-photo { position: relative; min-height: 460px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }

/* schedule band */
.sched { background: var(--gold); color: var(--ink); }
.sched-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 32px; padding-block: 20px; align-items: baseline; }
.sched-in p { margin: 0; line-height: 1.3; }
.sched-in strong { display: block; font: 800 1.2rem var(--display); font-stretch: 112%; }

/* sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.alt { background: var(--mist); }
.section.dark { background: var(--night); color: #fff; }
.section.dark p { color: #ebe7d8; }
.section-head { margin-bottom: 32px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; }
.class-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.class-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 18px; }
.class-card .meta { font-weight: 700; color: var(--gold-text); margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin: 24px 0 0; }
.faq dt { font-weight: 700; margin-bottom: 4px; }
.faq dd { margin: 0; max-width: 60ch; }
.split.trial { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-text); font-weight: 800; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px clamp(24px, 4vw, 48px); margin-top: 32px; }
.quote { margin: 0; border-top: 3px solid var(--gold); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; color: #f4f1e4; }
.quote figcaption { font-weight: 700; color: var(--gold); margin-top: auto; }
.facts p { margin: 0; }
.facts h3 { font-size: 1.15rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
.page-head { background: var(--night); color: #fff; padding-block: clamp(36px, 5vw, 64px); }
.page-head p { color: #ebe7d8; font-size: 1.1rem; margin-bottom: 0; }
.page-head h1 { margin-bottom: .3em; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose ul { padding-left: 1.2em; max-width: 65ch; }
.prose li { margin-bottom: .4em; }
.info-list { display: grid; gap: 22px; margin: 0 0 24px; }
.info-list dt { font-weight: 700; color: var(--gold-text); }
.info-list dd { margin: 0; font-size: 1.15rem; }

/* forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; max-width: 760px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .legend { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 10px 12px; border: 1.5px solid #8f8b7e; border-radius: 6px;
  font: inherit; background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--mist); max-width: none; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e3f3e6; }
.form-status.err { background: #fbe5e3; }
.small { font-size: .92rem; color: var(--ink-soft); }
.todo { border: 2px dashed var(--red); background: #fff2f0; padding: 14px 16px; margin: 0 0 28px; max-width: 65ch; font-size: .95rem; }
.todo p { margin: 0; }

/* gallery */
.gallery { column-count: 3; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; }
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.lb::backdrop { background: rgba(0,0,0,.88); }
dialog.lb img { max-width: 96vw; max-height: 84vh; width: auto; margin-inline: auto; }
dialog.lb button { display: block; margin: 0 auto 10px; }

/* videos */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 600; background: #fff; }
.chip:hover { border-color: var(--ink); }
.swatch { display: inline-block; width: 26px; height: 10px; border: 1px solid rgba(0,0,0,.35); flex: none; }
.belt-block { padding-block: 28px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.belt-block h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video p { margin: 8px 0 0; font-weight: 600; }

/* footer */
.site-footer { background: var(--night); color: #ebe7d8; }
.foot { display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 28px; padding-block: 48px 24px; }
.foot h2 { font-size: 1rem; color: var(--gold); margin-bottom: .6em; }
.foot p { margin: 0 0 1em; line-height: 1.7; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.fine { padding-block: 0 32px; }
.fine p { font-size: .9rem; color: #b9b4a2; margin: 0; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-bottom: 14px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav .btn { margin-top: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero-photo { min-height: 0; aspect-ratio: 3 / 2; }
  .sched-in, .split, .split.trial, .class-list { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { column-count: 2; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .nav .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* access-code gate */
.vault-form { max-width: 560px; margin: 0 auto; padding: clamp(20px, 4vw, 32px); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; }
.vault-form h2 { font-size: 1.5rem; margin: 0 0 8px; }
.vault-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vault-row input { flex: 1 1 180px; min-width: 0; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* label/value rows (program details) */
.info-list.rows { grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; align-items: baseline; }
.info-list.rows dd { font-size: 1.05rem; }
@media (max-width: 560px) { .info-list.rows { grid-template-columns: minmax(0, 1fr); gap: 2px; } .info-list.rows dd { margin-bottom: 12px; } }
