/* ==========================================================================
   Bulsajo Taekwondo — Moodukkwan, Belle Glade & Clewiston
   Light, warm, family-facing. Red/blue taeguk palette, geometric sans.
   ========================================================================== */

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

:root {
  --red:      #cc1f1f;
  --red-dark: #a41818;
  --blue:     #1d4ed8;
  --ink:      #16181d;
  --body:     #4a4f57;
  --muted:    #767c85;
  --paper:    #ffffff;
  --sand:     #f6f4f1;
  --line:     #e4e0da;
  --maxw:     1180px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
  color: var(--body); background: var(--paper);
  font-size: 17px; line-height: 1.68; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Poppins', 'Noto Sans', sans-serif; color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 5.6vw, 68px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 21px; font-weight: 700; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.sec { padding: 86px 0; }
.sec--sand { background: var(--sand); }
.sec--ink { background: var(--ink); }
.sec--ink h2, .sec--ink h3 { color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 12px 20px; z-index: 3000; }
.skip-link:focus { left: 0; }

.hangul { font-family: 'Noto Sans KR', 'Noto Sans', sans-serif; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 14px 28px; border-radius: 999px;
  font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ink:hover { background: #000; }
.btn--out { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--out:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }

/* ---------- header ---------- */
.ribbon { background: var(--ink); color: rgba(255,255,255,.75); font-size: 13.5px; }
.ribbon .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 14px; flex-wrap: wrap; }
/* the ribbon carries three credentials now — drop the tagline, then tighten,
   so the credential line still fits on one row on a phone */
@media (max-width: 900px) { .rib-tail { display: none; } }
@media (max-width: 560px) { .ribbon { font-size: 11.5px; } .ribbon .wrap { gap: 2px; min-height: 0; padding-top: 7px; padding-bottom: 7px; } }
.ribbon b { color: #fff; }
.ribbon a { color: #fff; font-weight: 600; }
.ribbon a:hover { color: #ffb3b3; }

.head { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand-txt { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px; color: var(--ink); line-height: 1.05; letter-spacing: -.02em; }
.brand-txt span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-top: 3px; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-size: 15.5px; font-weight: 600; color: var(--ink); padding: 5px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* dropdown for the Programs group */
.has-sub { position: relative; white-space: nowrap; }
.has-sub > a span { font-size: 11px; color: var(--muted); }
.sub {
  position: absolute; top: 100%; left: -18px; min-width: 210px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0,0,0,.10); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a {
  display: block; padding: 10px 20px; border-bottom: none; font-size: 15px; font-weight: 600;
}
.sub a:hover { color: var(--red); background: var(--sand); border-bottom-color: transparent; }
/* group labels inside the Programs dropdown — eight entries of two different
   kinds (classes you enrol in, and everything else) do not scan as one list */
.sub-lbl { margin-top: 8px; padding: 10px 20px 4px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.head-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.head-phone { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--ink); white-space: nowrap; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 20px; height: 2px; background: var(--ink); display: block; }
.mnav { display: none; background: #fff; border-top: 1px solid var(--line); }
.mnav.open { display: block; }
.mnav a { display: block; padding: 15px 26px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mnav .btn { margin: 18px 26px; width: calc(100% - 52px); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero-mark { display: inline-flex; align-items: center; gap: 10px; background: #fdecec; color: var(--red); font-weight: 700; font-size: 13.5px; padding: 7px 16px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lede { font-size: 19px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-note { font-size: 15px; color: var(--muted); }
.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 26px -30px -26px 26px; background: var(--red);
  border-radius: 22px; transform: rotate(2.5deg);
}
.hero-art img { position: relative; display: block; width: 100%; height: clamp(340px, 34vw, 470px); border-radius: 22px; object-fit: cover; object-position: center 40%; }
.hero-watermark {
  position: absolute; right: -20px; top: 4px; z-index: 3;
  font-family: 'Noto Sans KR', sans-serif; font-weight: 900; font-size: 40px; color: #fff;
  background: var(--ink); padding: 10px 18px; border-radius: 14px; line-height: 1;
}

/* trust strip */
.trust { border-block: 1px solid var(--line); background: var(--sand); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 44px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.trust .wrap > div { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.trust .wrap > div::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- section heads ---------- */
.kicker { display: inline-block; font-family: 'Poppins', sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.head-block { max-width: 720px; margin-bottom: 46px; }
.head-block p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.head-block--mid { margin-left: auto; margin-right: auto; text-align: center; }
.head-block--mid p { margin-left: auto; margin-right: auto; }
.sec--ink .head-block p { color: rgba(255,255,255,.7); }

/* ---------- programs ---------- */
.progs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prog { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.prog:hover { box-shadow: 0 14px 34px rgba(0,0,0,.08); transform: translateY(-3px); }
.prog-age { background: var(--ink); color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 18px; }
.prog-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.prog h3 { margin-bottom: 12px; }
.prog ul { list-style: none; margin-bottom: 18px; }
.prog li { position: relative; padding-left: 20px; font-size: 15.5px; margin-bottom: 8px; line-height: 1.5; }
.prog li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #f0d3d3; }
.prog-price { margin-top: auto; font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--ink); font-size: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- belt ladder ---------- */
.belts { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; margin-bottom: 30px; }
.belt { text-align: center; }
.belt-bar { height: 54px; border-radius: 7px; border: 1px solid rgba(0,0,0,.18); margin-bottom: 10px; }
.belt-name { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.belt-time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.belt-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.belt-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.belt-card h4 { font-family: 'Poppins', sans-serif; font-size: 16px; margin-bottom: 5px; }
.belt-card p { font-size: 15px; color: var(--muted); }

/* ---------- schedule ---------- */
.locs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.loc { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.loc-top { background: var(--ink); color: #fff; padding: 22px 24px; }
.loc-top h3 { color: #fff; font-size: 22px; }
.loc-top p { color: rgba(255,255,255,.72); font-size: 14.5px; margin-top: 6px; }
.loc table { width: 100%; border-collapse: collapse; }
.loc td { padding: 13px 24px; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: top; }
.loc tr:last-child td { border-bottom: none; }
.loc td.d { font-weight: 700; color: var(--ink); width: 108px; }
.loc td.c { color: var(--ink); }
.loc td.t { color: var(--muted); text-align: right; white-space: nowrap; }

/* ---------- gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }

/* ---------- instructor ---------- */
.master { display: grid; grid-template-columns: .8fr 1.2fr; gap: 46px; align-items: center; }
.master img { width: 100%; border-radius: 20px; aspect-ratio: 4/5; object-fit: cover; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.chip { font-size: 13.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink); }

/* ---------- pricing ---------- */
.offer { background: var(--red); color: #fff; border-radius: 22px; padding: 46px 44px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.offer h2 { color: #fff; margin-bottom: 12px; }
.offer p { color: rgba(255,255,255,.9); font-size: 18px; }
.offer-price { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 68px; line-height: 1; color: #fff; }
.offer-price small { display: block; font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-top: 8px; }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.extra { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.extra b { display: block; font-family: 'Poppins', sans-serif; font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.extra span { font-size: 15px; color: var(--muted); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 42px 22px 0; position: relative; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--red); font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq .a { padding-bottom: 24px; color: var(--muted); font-size: 16.5px; }

/* ---------- closer / footer ---------- */
.closer { background: var(--ink); color: #fff; padding: 80px 0; text-align: center; }
.closer h2 { color: #fff; margin-bottom: 14px; }
.closer p { color: rgba(255,255,255,.72); font-size: 18.5px; margin: 0 auto 28px; }
.closer-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.foot { background: #0f1114; color: rgba(255,255,255,.66); padding: 56px 0 0; font-size: 15.5px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 42px; }
.foot h4 { font-family: 'Poppins', sans-serif; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; }
.foot a:hover { color: #ff8a8a; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand img { width: 58px; height: 58px; object-fit: contain; background: #fff; border-radius: 50%; padding: 5px; }
.foot-phone { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 26px; color: #fff; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: 13.5px; }
.foot-bar .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16.5px; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 18px 22px; }
.legal li { margin-bottom: 9px; }
.legal a { color: var(--red); }
.legal strong { color: var(--ink); }
.pagetop { background: var(--sand); border-bottom: 1px solid var(--line); padding: 64px 0; }
.pagetop .crumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .head-phone { display: none; }
  .burger { display: flex; }
  .progs { grid-template-columns: repeat(2, 1fr); }
  .belts { grid-template-columns: repeat(6, 1fr); row-gap: 18px; }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art::before { inset: 18px -14px -18px 18px; }
  .locs, .master, .belt-detail { grid-template-columns: 1fr; }
  .master img { aspect-ratio: 4/3; }
  .offer { grid-template-columns: 1fr; text-align: center; padding: 36px 26px; }
  .extras { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .head-cta { display: none; }
  .head .wrap { min-height: 74px; }
  .brand img { width: 46px; height: 46px; }
  .brand-txt { font-size: 16px; }
}

@media (max-width: 600px) {
  .sec { padding: 62px 0; }
  .progs, .belts { grid-template-columns: repeat(2, 1fr); }
  .belts { row-gap: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-watermark { font-size: 30px; right: -6px; }
  .loc td { padding: 11px 16px; font-size: 14.5px; }
  .loc td.d { width: 86px; }
}

/* ==========================================================================
   Photo-led components (homepage)
   ========================================================================== */

/* image on top of a program card */
.prog-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prog:hover .prog-media img { transform: scale(1.04); }
.prog-media .prog-age {
  position: absolute; left: 0; bottom: 0; margin: 0;
  background: var(--red); border-top-right-radius: 10px;
}

/* four-across photo band with a one-word caption */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.band figure { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.band figure:hover img { transform: scale(1.05); }
.band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 22px 18px;
  background: linear-gradient(to top, rgba(10,11,13,.86), transparent);
  color: #fff; font-family: 'Poppins', sans-serif; font-weight: 800;
  font-size: 19px; letter-spacing: -.01em;
}

/* full-width photo with copy over it */
.feature-shot { position: relative; min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.feature-shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(12,13,16,.92) 0%, rgba(12,13,16,.72) 45%, rgba(12,13,16,.35) 100%);
}
.feature-shot .wrap { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.feature-shot h2 { color: #fff; margin-bottom: 14px; }
.feature-shot p { color: rgba(255,255,255,.86); font-size: 18.5px; margin-bottom: 24px; }
.feature-shot .kicker { color: #ff9b9b; }

/* two-up photo pair */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair img { width: 100%; aspect-ratio: 3/2; object-fit: cover; object-position: center 60%; border-radius: 16px; }

@media (max-width: 880px) {
  .band { grid-template-columns: repeat(2, 1fr); }
  .feature-shot { min-height: 380px; }
  .feature-shot::after { background: linear-gradient(to right, rgba(12,13,16,.92), rgba(12,13,16,.78)); }
}
@media (max-width: 600px) {
  .pair { grid-template-columns: 1fr; }
  .band figcaption { font-size: 16px; padding: 22px 14px 14px; }
}

/* ==========================================================================
   Three-tile band + mobile refinements
   ========================================================================== */
.band--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 880px) {
  /* keep the photo band as compact strips rather than tall squares */
  .band, .band--three { grid-template-columns: 1fr; }
  .band figure { aspect-ratio: 16/9; }
  .band figcaption { font-size: 20px; padding: 26px 20px 16px; }
}

@media (max-width: 700px) {
  /* one program card per row — two was too narrow to read */
  .progs { grid-template-columns: 1fr !important; }
  .prog-media { aspect-ratio: 16/9; }

  /* tidy the trust strip: even rows instead of a ragged wrap */
  .trust .wrap { justify-content: flex-start; gap: 10px 20px; }
  .trust .wrap > div { font-size: 14px; width: calc(50% - 12px); align-items: flex-start; }
  .trust .wrap > div::before { margin-top: 8px; }

  /* stop full-width photos from eating a whole screen */
  .master img, .pair img, .mosaic img { max-height: 320px; }
  .feature-shot { min-height: 340px; }

  /* a little less air between sections */
  .sec { padding: 52px 0; }
  .offer { padding: 30px 22px; }
  .offer-price { font-size: 54px; }
}
