/* No Limits Taekwondo — palette taken from the logo (taegeuk red and blue) */
:root {
  --red: #c8102e;
  --red-dark: #9e0c24;
  --blue: #0b3d91;
  --ink: #1b2233;        /* blue-black from the logo's navy */
  --slate: #4a5468;
  --mist: #eef1f6;
  --line: #d6dbe4;
  --paper: #ffffff;
  --display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

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

/* ---------- Header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: .95; }
.site-head nav { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-head nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: .3rem 0; border-bottom: 3px solid transparent;
}
.site-head nav a:hover { color: var(--red); }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--red); }

@media (max-width: 720px) {
  .site-head nav { width: 100%; gap: .1rem 1.1rem; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block; padding: .8rem 1.3rem; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; border-radius: 3px; font-size: 1rem; line-height: 1.2; cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: #fff; color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--mist); color: var(--blue); }
.btn-line-white { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-line-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.text-link { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; background: var(--ink); overflow: hidden;
  min-height: clamp(520px, 78vh, 720px); display: flex; align-items: flex-end;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 5% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,26,40,.85) 0%, rgba(20,26,40,.6) 40%, rgba(20,26,40,0) 72%);
}
.hero-text {
  position: relative; z-index: 1; width: 100%;
  max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.5rem clamp(2.5rem, 7vh, 4.5rem);
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.75rem); max-width: 11ch; margin-bottom: .3em; }
.hero p { font-size: 1.2rem; max-width: 34ch; }
@media (max-width: 720px) {
  .hero { min-height: 600px; }
  .hero::after { background: linear-gradient(0deg, rgba(20,26,40,.92) 0%, rgba(20,26,40,.65) 55%, rgba(20,26,40,.15) 100%); }
  .hero-img { object-position: 40% 30%; }
}

/* ---------- Layout blocks ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem;
  padding-top: 4rem; padding-bottom: 4rem; align-items: start;
}
.split > div { max-width: 62ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; } }

.where { background: var(--mist); padding: 1.75rem; border-top: 6px solid var(--blue); }
.where h3 { font-size: 1.1rem; font-family: var(--body); font-weight: 600; color: var(--slate); margin-bottom: .2rem; }
.where .big { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; margin-bottom: .2rem; }
.where dl { margin: 1.25rem 0; border-top: 1px solid var(--line); }
.where dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.where dt { color: var(--slate); }
.where dd { margin: 0; font-weight: 500; }

.band { background: var(--blue); color: #fff; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding-top: 3rem; padding-bottom: 3rem; }
.band h2 { margin-bottom: .2em; }
.band p { margin: 0; opacity: .92; }

.page-head { padding-top: 3.5rem; padding-bottom: 1rem; }
.page-head h1 { max-width: 18ch; }
.lede { font-size: 1.25rem; color: var(--slate); max-width: 52ch; }

.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.6em; font-size: 2rem; }
blockquote {
  margin: 2rem 0; padding: .2rem 0 .2rem 1.4rem; border-left: 5px solid var(--red);
  font-size: 1.3rem; line-height: 1.45; font-style: italic;
}
blockquote cite { display: block; margin-top: .6rem; font-size: 1rem; font-style: normal; font-weight: 600; color: var(--slate); }

.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }
.photo figcaption { font-size: .95rem; color: var(--slate); margin-top: .5rem; }

.meta { color: var(--slate); font-size: .95rem; font-weight: 500; }

/* ---------- Classes ---------- */
.class-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; border-top: 2px solid var(--ink); margin-bottom: 4rem; }
.class-item { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.class-item h2 { font-size: 1.9rem; margin-bottom: .15em; }
.class-item .meta { color: var(--red); font-weight: 600; margin-bottom: .5rem; }
.class-item p:last-child { margin: 0; }
@media (max-width: 720px) { .class-list { grid-template-columns: 1fr; } }

.section-title { margin-bottom: 1rem; }
.price-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); }
.price { padding: 1.75rem; }
.price + .price { border-left: 1px solid var(--line); }
.price h3 { font-family: var(--body); font-weight: 600; font-size: 1.15rem; margin-bottom: .6rem; }
.amount { font-family: var(--display); font-weight: 800; font-size: 4.2rem; line-height: 1; margin-bottom: .8rem; }
.amount span { font-size: 1.8rem; vertical-align: top; margin-right: .1rem; position: relative; top: .35rem; }
.amount small { display: block; font-family: var(--body); font-weight: 500; font-size: .95rem; color: var(--slate); margin-top: .3rem; }
.price p:last-child { margin: 0; }
@media (max-width: 760px) {
  .price-table { grid-template-columns: 1fr; }
  .price + .price { border-left: 0; border-top: 1px solid var(--line); }
}
.enroll { background: var(--mist); padding: 1.25rem 1.5rem; margin: 1.5rem 0 4.5rem; max-width: 72ch; }
.enroll p { margin: 0; }

/* ---------- Forms page ---------- */
.forms-layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; padding-bottom: 4rem; }
.jump { position: sticky; top: 1rem; align-self: start; }
.jump p { font-weight: 600; color: var(--slate); margin-bottom: .4rem; }
.jump ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.jump a { display: block; padding: .28rem 0 .28rem .9rem; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink); font-size: .98rem; }
.jump a:hover { border-left-color: var(--red); color: var(--red); }
@media (max-width: 860px) {
  .forms-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .jump { position: static; }
  .jump ol { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; }
  .jump a { border: 1px solid var(--line); padding: .3rem .7rem; margin: 0; border-radius: 3px; }
}

.form-list { list-style: none; padding: 0; margin: 0; }
.form { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.form:first-child { border-top: 2px solid var(--ink); }
.form-num { font-family: var(--display); font-weight: 800; font-size: 4rem; line-height: .85; color: var(--red); }
.form h3 { font-size: 2rem; }
@media (max-width: 600px) { .form { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .8rem; } .form-num { font-size: 2.6rem; } }

.yt, .yt-frame { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border: 0; }
.yt { position: relative; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt:hover img { opacity: 1; }
.play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; transform: translate(-50%, -50%);
  background: var(--red); border-radius: 12px;
}
.play::after {
  content: ""; position: absolute; left: 29px; top: 14px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}

.drill { padding: 2.5rem 0 1rem; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.more { margin-top: 2rem; }

/* ---------- Blog ---------- */
.post-card { max-width: 70ch; padding: 1.75rem 0 3rem; border-top: 2px solid var(--ink); margin-bottom: 3rem; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--red); }
.post { padding-bottom: 4rem; }
.post .page-head { padding-left: 0; padding-right: 0; }
.post .page-head h1 { max-width: 22ch; font-size: clamp(2.3rem, 5vw, 3.6rem); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; padding-bottom: 4.5rem; align-items: start; }
.contact-card h2 { font-family: var(--body); font-weight: 600; font-size: 1.05rem; color: var(--slate); margin: 0 0 .1rem; }
.contact-card .big { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: 1.6rem; word-break: break-word; }
.contact-card .big a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .3rem; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: .7rem; border: 1px solid var(--slate); border-radius: 3px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #dfe4ee; padding: 3rem 0 1.5rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #ffb3bf; }
.foot-grid { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.foot-name { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: #fff; margin-bottom: .3rem; }
.copy { max-width: var(--wrap); margin: 2rem auto 0; padding: 0 1.5rem; font-size: .9rem; color: #a9b2c4; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
