:root {
  --black: #08090b;
  --panel: #12151a;
  --panel-light: #1c2027;
  --text: #f4f6f8;
  --muted: #a9b0ba;
  --red: #d42531;
  --red-dark: #8f151e;
  --line: rgba(255, 255, 255, 0.13);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", Arial, sans-serif;
  background: var(--black);
  color: var(--text);
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(8, 9, 11, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--red);
  background: #111;
  color: #fff;
  font-size: 14px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  color: #e8edf2;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #111;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("assets/hero-mma-jiujitsu.png");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.94), rgba(8, 9, 11, 0.62) 45%, rgba(8, 9, 11, 0.18)),
    linear-gradient(0deg, var(--black), rgba(8, 9, 11, 0) 35%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding-top: 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ff6f77;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  font-weight: 900;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: #d9dee5;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
}

.intro-grid,
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.lead {
  margin-top: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.55;
  font-weight: 800;
}

.intro p:not(.lead),
.contact-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.stats {
  display: grid;
  gap: 12px;
}

.stats div,
.coach-card,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
}

.stats strong {
  display: block;
  color: var(--red);
  font-size: 28px;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: #f4f6f8;
  font-weight: 800;
}

.coach-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.coach-card {
  min-height: 230px;
}

.coach-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: var(--red-dark);
  color: #fff;
  font-weight: 900;
}

.coach-card h3 {
  margin: 22px 0 10px;
  font-size: 24px;
}

.coach-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.gallery-grid figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 16px;
  color: #e7ebef;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
}

thead th {
  background: #20242c;
  color: #fff;
}

tbody th {
  color: #ff838a;
  background: #151922;
}

td {
  color: #d9dee5;
  font-weight: 700;
}

.map-panel {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(212, 37, 49, 0.25), transparent 35%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #151922;
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(45deg);
}

.map-pin::first-line {
  transform: rotate(-45deg);
}

.contact-panel h3 {
  margin: 0 0 18px;
  font-size: 30px;
}

.site-footer {
  padding: 32px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 80px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px;
    background: rgba(12, 14, 18, 0.96);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
  }

  .hero {
    min-height: 88vh;
    background-position: 60% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 9, 11, 0.92), rgba(8, 9, 11, 0.72)),
      linear-gradient(0deg, var(--black), rgba(8, 9, 11, 0) 35%);
  }

  .intro-grid,
  .location-grid,
  .coach-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    display: block;
  }
}
