:root {
  --ink: #17211c;
  --muted: #59675f;
  --line: #d7ded8;
  --paper: #fbfcf9;
  --soft: #eef5ef;
  --green: #0f5b3f;
  --green-dark: #083727;
  --gold: #c8942e;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(12, 38, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 252, 249, 0.94);
  border-bottom: 1px solid rgba(15, 91, 63, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 3vw, 1.6rem);
  font-weight: 700;
}

nav a {
  color: var(--green-dark);
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(86vh - 72px);
  padding: clamp(4rem, 12vh, 8rem) clamp(1.25rem, 5vw, 5rem);
  overflow: hidden;
  color: var(--white);
  background-image: linear-gradient(90deg, rgba(8, 55, 39, 0.9), rgba(8, 55, 39, 0.42)), url("assets/images/high-five.jpg");
  background-position: center;
  background-size: cover;
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(3.4rem, 13vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  margin-bottom: 1.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--green-dark);
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band div {
  min-height: 112px;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  background: var(--white);
}

.intro-band strong,
.intro-band span {
  display: block;
}

.intro-band strong {
  margin-bottom: 0.4rem;
  color: var(--green);
  font-size: 1.05rem;
}

.intro-band span {
  color: var(--muted);
}

.section {
  padding: clamp(3.2rem, 8vw, 6rem) clamp(1.25rem, 5vw, 5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

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

.section-copy p,
.section-heading p,
.course-card p,
.services p,
.contact-section p,
.legal {
  color: var(--muted);
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading.compact {
  margin-bottom: 1.4rem;
}

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

.course-card {
  min-height: 280px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.course-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 1.25rem;
}

.levels {
  background: var(--soft);
}

.level-control {
  display: grid;
  grid-template-columns: repeat(6, minmax(44px, 1fr));
  max-width: 720px;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 91, 63, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.level-control button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid rgba(15, 91, 63, 0.16);
  color: var(--green-dark);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.level-control button:last-child {
  border-right: 0;
}

.level-control button[aria-selected="true"] {
  color: var(--white);
  background: var(--green);
}

.level-panel {
  max-width: 720px;
  min-height: 136px;
  padding: 1.35rem;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(12, 38, 27, 0.08);
}

.level-panel h3 {
  margin-bottom: 0.4rem;
  color: var(--green);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.services article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  min-height: 230px;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--white);
}

.services img {
  width: 54px;
  height: 54px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr) minmax(260px, 360px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3.2rem, 8vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  color: var(--white);
  background: var(--green-dark);
}

.contact-section .eyebrow {
  color: #f0bd56;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form > input[name="website"] {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(240, 189, 86, 0.35);
  border-color: #f0bd56;
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin-bottom: 0;
  font-size: 0.82rem;
}

address {
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.08);
}

address a {
  color: var(--white);
  font-weight: 800;
}

.site-footer {
  padding: 1.4rem clamp(1.25rem, 5vw, 5rem);
  background: #071e17;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer summary {
  cursor: pointer;
  font-weight: 800;
}

.legal {
  max-width: 760px;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.74);
}

.legal a {
  color: var(--white);
}

.message-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1.25rem;
  background: var(--soft);
}

.message-card {
  width: min(620px, 100%);
  padding: clamp(2rem, 6vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.message-card h1 {
  color: var(--green-dark);
  font-size: clamp(2.2rem, 8vw, 4.2rem);
}

.message-card p:not(.eyebrow) {
  color: var(--muted);
}

.message-card .button {
  margin-top: 1rem;
  color: var(--white);
  background: var(--green);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 78vh;
  }

  .intro-band,
  .split,
  .course-grid,
  .services,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .services {
    gap: 1px;
  }
}

@media (max-width: 520px) {
  nav {
    font-size: 0.92rem;
  }

  .hero {
    min-height: 72vh;
    padding-top: 3.2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .level-control {
    grid-template-columns: repeat(3, 1fr);
  }

  .level-control button:nth-child(3) {
    border-right: 0;
  }

  .level-control button:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(15, 91, 63, 0.16);
  }

  .services article {
    grid-template-columns: 1fr;
  }
}
