:root {
  --ink: #161616;
  --muted: #60646b;
  --paper: #ffffff;
  --soft: #f5f1e8;
  --line: #ded8ca;
  --gold: #b88a2d;
  --gold-dark: #86621b;
  --red: #8d1f1f;
  --charcoal: #202124;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(20, 20, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.45rem, 4rem, 4.65rem);
}

h2 {
  font-size: clamp(1.85rem, 2.6rem, 3.1rem);
}

h3 {
  font-size: 1.35rem;
}

address {
  font-style: normal;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--gold);
}

.skip-link:focus {
  top: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(222, 216, 202, 0.9);
  backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 7px 20px;
  color: #f8f1df;
  background: var(--charcoal);
  font-size: 0.86rem;
}

.topbar-link {
  color: #f8f1df;
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1200px, calc(100% - 34px));
  margin: 0 auto;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  width: 148px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.site-nav > a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  color: #272727;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav .is-active {
  color: var(--gold-dark);
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 160ms ease;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
}

.nav-menu a:hover {
  background: var(--soft);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: #15110a;
  font-size: 0.91rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.light {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: var(--ink);
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-7px);
}

.nav-toggle-bars::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.77), rgba(0, 0, 0, 0.34) 58%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent 36%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: end;
  gap: 42px;
  padding: 84px 0 70px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy p:not(.eyebrow),
.subhero-content > p:not(.eyebrow),
.image-band p,
.trial-grid p,
.contact-band p {
  max-width: 720px;
  margin-top: 18px;
  font-size: 1.12rem;
}

.eyebrow,
.section-kicker {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-poster {
  width: 100%;
  border: 5px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.subhero {
  display: grid;
  grid-template-columns: minmax(320px, 44vw) minmax(0, 1fr);
  min-height: 520px;
  background: var(--charcoal);
  color: #fff;
}

.subhero-image {
  min-height: 360px;
}

.subhero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subhero-content {
  align-self: center;
  padding: 74px 0 74px 58px;
}

.subhero-content h1 {
  max-width: 790px;
}

.section {
  padding-block: 82px;
}

.band {
  padding-block: 72px;
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 52px;
  align-items: start;
}

.copy-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.copy-stack.spaced {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.card-grid,
.instructor-grid,
.gallery-grid,
.testimonial-grid {
  display: grid;
  gap: 22px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(26, 26, 26, 0.08);
}

.program-card a {
  display: grid;
  height: 100%;
}

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

.program-card div {
  display: grid;
  gap: 11px;
  padding: 20px;
}

.program-card p {
  color: var(--muted);
}

.program-card span {
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
}

.image-band {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18)),
    var(--band-image);
  background-position: center;
  background-size: cover;
}

.image-band-inner {
  padding-block: 80px;
}

.image-band h2,
.image-band p {
  max-width: 650px;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.testimonial blockquote {
  margin: 0;
  color: #363636;
}

.testimonial figcaption {
  margin-top: 18px;
  color: var(--red);
  font-weight: 800;
}

.trial-cta {
  padding-block: 70px;
  background: var(--soft);
}

.trial-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 42px;
  align-items: center;
}

.trial-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-list div {
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
  font-weight: 800;
}

.instructor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.instructor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.instructor-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.instructor-card h2 {
  padding: 18px;
  font-size: 1.35rem;
}

.program-detail-grid {
  display: grid;
  gap: 28px;
}

.program-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.program-detail:last-child {
  border-bottom: 0;
}

.program-detail img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.program-detail p:not(.section-kicker) {
  margin-top: 14px;
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-weight: 800;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}

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

.date-grid span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
  text-align: center;
}

.notice {
  padding: 16px;
  border-left: 4px solid var(--red);
  background: #fff7f2;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.stat-row div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-row strong {
  display: block;
  color: var(--red);
  font-size: 1.4rem;
}

.stat-row span {
  display: block;
  color: var(--muted);
}

.schedule-frame {
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.schedule-frame img {
  width: 100%;
  min-width: 760px;
  border-radius: 4px;
}

.schedule-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px;
  font-size: 1.08rem;
  font-weight: 900;
}

.faq-list p {
  padding: 0 20px 22px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.contact-card {
  display: grid;
  gap: 10px;
  min-height: 144px;
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 1.1rem;
  font-weight: 700;
}

.map-band {
  padding-block: 62px;
  background:
    linear-gradient(90deg, rgba(32, 33, 36, 0.86), rgba(32, 33, 36, 0.5)),
    url("https://infinite-martialarts.com/wp-content/uploads/sites/33/2019/11/The-Studio.jpg");
  background-position: center;
  background-size: cover;
}

.map-link {
  display: inline-flex;
  padding: 14px 18px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.contact-band {
  padding-block: 68px;
  background: var(--soft);
}

.contact-band-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.site-footer {
  background: var(--charcoal);
  color: #f5f1e8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 32px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding-block: 58px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 18px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-top: 8px;
  color: #f5f1e8;
}

.footer-grid p,
.footer-grid address {
  color: #d8d1c4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #cfc7b9;
  font-size: 0.9rem;
}

.not-found {
  min-height: 55vh;
}

@media (max-width: 1060px) {
  .nav-shell {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 20px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

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

  .nav-group {
    display: grid;
  }

  .nav-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
  }

  .nav-cta {
    justify-self: end;
  }

  .hero-inner,
  .split,
  .trial-grid,
  .program-detail,
  .subhero {
    grid-template-columns: 1fr;
  }

  .subhero-content {
    padding: 52px 0;
  }

  .hero-inner {
    align-items: start;
  }

  .hero-poster {
    max-width: 360px;
  }

  .card-grid.four,
  .instructor-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.82rem;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    display: none;
  }

  .nav-shell {
    min-height: 66px;
    gap: 10px;
    width: min(100% - 24px, 1200px);
  }

  .brand img {
    width: 108px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero-inner {
    padding: 56px 0;
  }

  .hero-poster {
    max-width: 260px;
  }

  .section,
  .band {
    padding-block: 56px;
  }

  .section-heading,
  .contact-band-inner,
  .schedule-note,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-grid.four,
  .testimonial-grid,
  .feature-list,
  .gallery-grid,
  .date-grid,
  .stat-row,
  .contact-grid,
  .footer-grid,
  .instructor-grid {
    grid-template-columns: 1fr;
  }

  .subhero {
    min-height: 0;
  }

  .subhero-image {
    min-height: 250px;
  }

  .schedule-frame img {
    min-width: 620px;
  }
}
