:root {
  --forest: #0d3028;
  --forest-2: #174f42;
  --cream: #f7f0df;
  --paper: #fffaf0;
  --lime: #d8ff63;
  --clay: #c86d3f;
  --ink: #13211d;
  --muted: #63716b;
  --line: rgba(19, 33, 29, 0.14);
  --shadow: 0 24px 70px rgba(13, 48, 40, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 250, 240, 0.14);
  background: rgba(13, 48, 40, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  color: var(--paper);
}

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

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  position: relative;
  display: flex;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 240, 0.5);
  border-radius: 14px;
  color: var(--forest);
  background: var(--lime);
  box-shadow: inset 0 0 0 3px rgba(13, 48, 40, 0.12);
  font-size: 0.52rem;
  gap: 4px;
  line-height: 1;
  overflow: hidden;
}

.brand-mark::after {
  position: absolute;
  content: "";
}

.brand-mark::after {
  left: 8px;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: rgba(13, 48, 40, 0.28);
}

.brand-mark span {
  position: relative;
  z-index: 1;
  display: block;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.86);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  background: rgba(255, 250, 240, 0.1);
  color: var(--paper);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--paper);
  background: transparent;
  font: inherit;
  font-weight: 700;
}

.section-pad {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 73px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 9vw, 7.7rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 650px;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button.primary {
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 12px 28px rgba(97, 132, 33, 0.22);
}

.button.primary:hover {
  background: #e4ff84;
  box-shadow: 0 16px 34px rgba(97, 132, 33, 0.3);
  transform: translateY(-1px);
}

.button.primary:active {
  background: #c9ef45;
  box-shadow: 0 8px 20px rgba(97, 132, 33, 0.22);
  transform: translateY(1px);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 250, 240, 0.66);
}

.button.secondary:hover {
  border-color: rgba(13, 48, 40, 0.28);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(13, 48, 40, 0.1);
  transform: translateY(-1px);
}

.button.secondary:active {
  transform: translateY(1px);
}

.hero-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(circle at 80% 20%, rgba(216, 255, 99, 0.52), transparent 28%),
    linear-gradient(135deg, var(--forest), var(--forest-2));
  box-shadow: var(--shadow);
}

.court-lines {
  position: absolute;
  inset: 40px;
  border: 4px solid rgba(255, 250, 240, 0.68);
  border-radius: 26px;
}

.court-lines::before,
.court-lines::after {
  position: absolute;
  content: "";
  background: rgba(255, 250, 240, 0.68);
}

.court-lines::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
}

.court-lines::after {
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
}

.photo-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-card {
  position: absolute;
  z-index: 1;
  right: 28px;
  bottom: 28px;
  width: min(330px, calc(100% - 56px));
  border: 1px solid rgba(255, 250, 240, 0.22);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
}

.score-card p,
.score-card span {
  margin: 0;
}

.score-card strong {
  display: block;
  margin: 6px 0 8px;
  font-size: 1.45rem;
}

.score-card span {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
}

.stats div {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  margin-bottom: 5px;
  font-size: 2rem;
}

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

.split,
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.copy-block {
  padding-top: 22px;
  font-size: 1.06rem;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

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

.feature-card,
.event-item,
.membership-card,
.contact-form {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(13, 48, 40, 0.08);
}

.feature-card {
  min-height: 250px;
  border-radius: 30px;
  padding: 28px;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--clay);
  font-weight: 900;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: -28px auto 0;
}

.photo-card {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--forest);
  box-shadow: 0 18px 55px rgba(13, 48, 40, 0.12);
}

.photo-card.wide {
  min-height: 420px;
}

.photo-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13, 48, 40, 0.68));
  content: "";
}

.photo-card figcaption {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 20px;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--paper);
  background: rgba(13, 48, 40, 0.72);
  font-weight: 800;
}

.events {
  padding-top: 56px;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 26px;
  padding: 24px;
}

.event-item time {
  display: grid;
  min-height: 74px;
  place-items: center;
  border-radius: 20px;
  color: var(--forest);
  background: var(--lime);
  font-weight: 900;
}

.event-item p {
  margin-bottom: 0;
}

.event-item a {
  border-bottom: 2px solid var(--clay);
  color: var(--forest);
  font-weight: 900;
}

.membership-card {
  max-width: 850px;
  margin: 0 auto;
  border-radius: 36px;
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
}

.membership-card p:not(.eyebrow) {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
}

.contact {
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  border-radius: 30px;
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--forest);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fffef9;
  font: inherit;
}

textarea {
  resize: vertical;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr auto auto;
  align-items: start;
  gap: 28px;
  padding: 34px max(16px, calc((100% - 1120px) / 2));
  color: var(--paper);
  background: var(--forest);
}

.footer-title {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-weight: 500;
}

.footer p {
  margin: 0;
  color: rgba(255, 250, 240, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 320px;
}

.footer-links a {
  color: rgba(255, 250, 240, 0.82);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--lime);
}

.login-page {
  display: grid;
  min-height: calc(100vh - 73px);
  place-items: center;
  padding: 64px 16px;
}

.login-panel {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 36px;
  padding: clamp(28px, 6vw, 52px);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
}

.login-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.login-error {
  display: none;
  margin: 22px 0 0;
  border: 1px solid rgba(200, 109, 63, 0.28);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--clay);
  background: rgba(200, 109, 63, 0.08);
  font-weight: 700;
  line-height: 1.55;
}

.login-error.visible {
  display: block;
}

.login-error a {
  border-bottom: 2px solid rgba(200, 109, 63, 0.45);
}

@media (max-width: 840px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-top: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .split,
  .contact,
  .card-grid,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-card {
    min-height: 430px;
  }

  .photo-strip {
    margin-top: -12px;
  }

  .photo-card,
  .photo-card.wide {
    min-height: 320px;
  }

  .stats,
  .event-item {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .event-item {
    align-items: start;
  }

  .event-item time {
    width: 110px;
  }

  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section-pad {
    padding: 68px 0;
  }

  h1 {
    font-size: 3.3rem;
  }

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

  .hero-card {
    min-height: 360px;
    border-radius: 28px;
  }

  .court-lines {
    inset: 24px;
  }
}
