/* ==========================================================================
   Onyx Fight Club — Taekwondo & Kickboxing, Longford
   Design: committed dark identity (matches the club badge — not theme-switched)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@400;500;600;700&family=Barlow:wght@400;500;600&display=swap');

:root {
  --void:        #0b0b0c;
  --void-2:      #0f0e0d;
  --char:        #171413;
  --char-2:      #201c1a;
  --hairline:    #322b27;
  --bone:        #f3ede0;
  --bone-dim:    #d9d2c4;
  --ash:         #b3a99c;
  --red:         #c31f2f;
  --red-deep:    #6e131e;
  --red-bright:  #e6394a;

  --display: "Anton", "Arial Narrow", sans-serif;
  --label:   "Oswald", "Arial Narrow", sans-serif;
  --body:    "Barlow", "Segoe UI", sans-serif;

  --measure: 62ch;
  --edge: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; margin: 0; }

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--edge);
}

.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 2px;
  background: var(--red);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.04;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}
.section-head p {
  color: var(--ash);
  margin-top: 0.9rem;
  max-width: var(--measure);
  font-size: 1.05rem;
}

/* ---------- belt-stripe divider ----------
   Echoes the belt icon in the club badge: a solid bar with
   rank notches. Used between major sections instead of a
   generic rule or numbered marker. */
.belt {
  height: 10px;
  width: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red) 45%, var(--red-bright) 100%);
  position: relative;
  overflow: hidden;
}
.belt::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(11,11,12,0.85) 0 3px,
    transparent 3px 34px
  );
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand img { height: 46px; width: 46px; object-fit: contain; }
.brand-word {
  font-family: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1rem;
  color: var(--bone);
  line-height: 1.15;
}
.brand-word span {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--red-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--bone-dim);
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--red-bright); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.83rem;
  padding: 0.85em 1.6em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }
.btn-primary {
  background: var(--red);
  color: var(--bone);
}
.btn-primary:hover { background: var(--red-bright); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--hairline);
  color: var(--bone);
}
.btn-outline:hover { border-color: var(--red-bright); color: var(--red-bright); transform: translateY(-2px); }
.btn-block { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1rem; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--bone);
  width: 42px; height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 30% 25%;
  filter: saturate(0.85) contrast(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(11,11,12,0.98) 5%, rgba(11,11,12,0.65) 42%, rgba(11,11,12,0.35) 65%, rgba(11,11,12,0.55) 100%),
    linear-gradient(100deg, rgba(11,11,12,0.9) 0%, rgba(11,11,12,0.35) 46%, rgba(11,11,12,0.15) 70%);
}

.hero-hex {
  position: absolute;
  right: clamp(-6rem, 4vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  aspect-ratio: 1;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: clamp(6rem, 14vh, 8rem) clamp(3.5rem, 8vh, 5rem);
  width: 100%;
}
.hero-tag {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.3rem;
}
.hero-tag svg { width: 14px; height: 14px; color: var(--red-bright); flex: none; }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(3.2rem, 9.5vw, 7.2rem);
  line-height: 0.92;
  color: var(--bone);
  letter-spacing: 0.005em;
}
.hero .sub {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--red-bright);
  margin-top: 0.6rem;
}
.hero p.lede {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: var(--bone-dim);
  font-size: 1.1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.6rem;
  right: var(--edge);
  writing-mode: vertical-rl;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  display: none;
  align-items: center;
  gap: 0.7em;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: var(--hairline);
}

/* ---------- about ---------- */
.about {
  padding-block: clamp(4.5rem, 9vw, 7rem);
  background: var(--void);
}
.about .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-copy p {
  color: var(--bone-dim);
  max-width: var(--measure);
  margin-top: 1.1rem;
  font-size: 1.08rem;
}
.about-copy p + p { margin-top: 1rem; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 0.4rem;
}
.stat {
  background: var(--char);
  padding: 1.5rem 1.4rem;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.1rem;
  color: var(--bone);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- programs ---------- */
.programs { padding-block: clamp(4.5rem, 9vw, 7rem); background: var(--void-2); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
.program-card {
  position: relative;
  background: var(--char);
  border: 1px solid var(--hairline);
  padding: 1.9rem 1.6rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.program-card:hover { border-color: var(--red); transform: translateY(-4px); }

.program-hex {
  width: 56px; height: 56px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background: linear-gradient(145deg, var(--red-deep), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
}
.program-hex svg { width: 26px; height: 26px; color: var(--bone); }

.program-card h3 {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.08rem;
  color: var(--bone);
}
.program-card p {
  color: var(--ash);
  font-size: 0.96rem;
  flex: 1;
}
.program-tag {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-bright);
}

/* ---------- why us ---------- */
.why { padding-block: clamp(4.5rem, 9vw, 7rem); background: var(--void); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.why-item {
  padding: 2rem 1.7rem 2rem 0;
  border-right: 1px solid var(--hairline);
}
.why-item:last-child { border-right: none; }
.why-item b {
  display: block;
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: var(--bone);
  margin-bottom: 0.6rem;
}
.why-item p { color: var(--ash); font-size: 0.95rem; margin: 0; }
.why-item .mark {
  font-family: var(--display);
  color: var(--red);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------- location ---------- */
.location { padding-block: clamp(4.5rem, 9vw, 7rem); background: var(--void-2); }
.location .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.map-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(rgba(11,11,12,0.55), rgba(11,11,12,0.75)),
    repeating-linear-gradient(0deg, rgba(243,237,224,0.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(243,237,224,0.05) 0 1px, transparent 1px 42px),
    var(--char);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}
.map-pin svg { width: 40px; height: 40px; color: var(--red-bright); }
.map-pin .coords {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ash);
}
.location-copy .btn { margin-top: 1.8rem; }
.addr-line {
  font-family: var(--label);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--bone);
  margin-top: 1rem;
}
.addr-line + .addr-line { margin-top: 0.3rem; color: var(--ash); font-size: 0.95rem; }

/* ---------- contact / cta ---------- */
.contact { padding-block: clamp(4.5rem, 9vw, 7rem); background: var(--void); }
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.contact-copy p { color: var(--ash); max-width: 30rem; margin-top: 1rem; }
.contact-list { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-list li { list-style: none; display: flex; gap: 0.9rem; align-items: flex-start; font-size: 0.95rem; color: var(--bone-dim); }
.contact-list svg { width: 18px; height: 18px; color: var(--red-bright); flex: none; margin-top: 0.15em; }

form.trial-form {
  background: var(--char);
  border: 1px solid var(--hairline);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.field input, .field select, .field textarea {
  background: var(--void);
  border: 1px solid var(--hairline);
  color: var(--bone);
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.75em 0.85em;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-bright);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.form-note { font-size: 0.8rem; color: var(--ash); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--void-2);
  border-top: 1px solid var(--hairline);
  padding-block: 2.6rem;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { height: 34px; width: 34px; object-fit: contain; }
.footer-brand span {
  font-family: var(--label);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.footer-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ash);
}
.footer-links a:hover { color: var(--red-bright); }
.footer-fine { font-size: 0.78rem; color: var(--ash); width: 100%; margin-top: 1.6rem; text-align: center; }

/* ---------- responsive ---------- */
@media (min-width: 900px) {
  .hero-scroll { display: flex; }
}

@media (max-width: 899px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .about .container,
  .location .container,
  .contact .container { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { border-bottom: 1px solid var(--hairline); padding-right: 1.2rem; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .location .map-card { order: -1; }
}

@media (max-width: 560px) {
  .program-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; }
  .site-footer .container { justify-content: center; text-align: center; }
}

/* mobile nav drawer */
body.nav-open .nav-links {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: var(--void-2);
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem var(--edge) 1.4rem;
}
body.nav-open .nav-links a { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--hairline); }
