:root {
  --black: #050505;
  --ink: #101010;
  --charcoal: #151515;
  --muted: #777;
  --line: rgba(255, 255, 255, 0.18);
  --paper: #f4f1ec;
  --orange: #f05a1a;
  --orange-dark: #c63d08;
  --white: #fff;
  --max: 1180px;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 182px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 13px;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: auto;
}

.brand b {
  display: block;
  margin-top: 2px;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.main-nav a,
.main-nav button {
  position: relative;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-transform: uppercase;
  font: inherit;
  cursor: pointer;
  opacity: 0.86;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav button:hover,
.main-nav button:focus-visible {
  opacity: 1;
  color: var(--orange);
}

.header-actions,
.hero-actions,
.cta-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--orange);
  border-radius: 3px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  cursor: pointer;
}

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

.button-ghost {
  background: transparent;
}

.button-ghost.dark {
  color: var(--ink);
}

.button-small {
  min-height: 38px;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 160px clamp(24px, 5vw, 70px) 90px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.54) 36%, rgba(0, 0, 0, 0.08) 72%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0) 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(62px, 9vw, 116px);
  line-height: 0.9;
  text-transform: uppercase;
  font-weight: 1000;
}

h1 span,
h2 span {
  color: var(--orange);
}

.hero-copy {
  max-width: 430px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 90, 26, 0.16), transparent 28%),
    #111;
}

.stats article {
  padding: 30px clamp(20px, 4vw, 50px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stats strong {
  display: block;
  color: var(--orange);
  font-size: 42px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1.35;
}

.section-dark,
.section-light,
.cta {
  padding: 72px clamp(22px, 5vw, 66px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 42px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.98)),
    var(--charcoal);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  text-transform: uppercase;
}

.intro p,
.gallery-copy p,
.cta p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-auto-rows: 220px;
  gap: 10px;
}

.intro-grid img,
.court-card img,
.event-card img,
.gallery-tile img,
.cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-grid img:first-child {
  grid-row: span 2;
}

.section-light {
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.9)),
    var(--paper);
}

.section-heading {
  max-width: var(--max);
  margin: 0 auto 28px;
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.court-list,
.event-list {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.court-card,
.event-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.court-card img {
  height: 220px;
}

.court-card span {
  display: inline-block;
  margin: 18px 18px 8px;
  color: var(--orange);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 1000;
}

.court-card h3,
.court-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.court-card p {
  margin-bottom: 22px;
  color: #4f4f4f;
  line-height: 1.55;
}

.event-form {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 160px 1fr 1.4fr 1fr;
  gap: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.event-form label {
  display: grid;
  gap: 8px;
  color: #333;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-form input,
.event-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  padding: 11px 12px;
  background: #fff;
}

.event-form .form-actions {
  grid-column: 1 / -1;
}

.event-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 200px;
}

.event-date {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 18px 10px;
  color: #fff;
  background: #171717;
  text-transform: uppercase;
}

.event-date strong {
  font-size: 34px;
}

.event-date span {
  color: var(--orange);
  font-weight: 900;
}

.event-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: 18px;
}

.event-body h3 {
  text-transform: uppercase;
  margin-bottom: 8px;
}

.event-body p {
  color: #555;
  line-height: 1.5;
}

.event-card img {
  height: 118px;
  border-radius: 6px;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(260px, 330px) 1fr;
  gap: 40px;
  background: #080808;
}

.gallery-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.gallery-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.gallery-tabs button.active,
.gallery-tabs button:hover {
  border-color: var(--orange);
  background: var(--orange);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 10px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #fff;
  background: #222;
  cursor: pointer;
}

.gallery-tile:nth-child(1),
.gallery-tile:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 11px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.72);
  text-align: left;
  font-size: 13px;
  font-weight: 900;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.gallery-tile img {
  transition: transform 240ms ease;
}

.cta {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr auto;
  gap: 34px;
  align-items: center;
  background: linear-gradient(90deg, #111, #050505);
  border-top: 1px solid var(--line);
}

.cta img {
  height: 230px;
  border-radius: 8px;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.cta-actions {
  flex-direction: column;
  align-items: stretch;
  min-width: 220px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
  gap: 34px;
  align-items: stretch;
  padding: 72px clamp(22px, 5vw, 66px);
  color: var(--ink);
  background: var(--paper);
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
}

.contact-copy > p {
  color: #4f4f4f;
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
}

.contact-list article {
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 1000;
}

.contact-list p {
  margin: 0;
  color: #333;
  line-height: 1.55;
}

.contact-list a:hover {
  color: var(--orange);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.map-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.map-panel iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.12) contrast(1.04);
}

.map-panel > a {
  position: absolute;
  left: 22px;
  bottom: 22px;
  max-width: 280px;
  padding: 18px 20px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.map-panel strong,
.map-panel span {
  display: block;
}

.map-panel strong {
  margin-bottom: 6px;
  text-transform: uppercase;
}

.map-panel span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr auto auto auto;
  gap: 28px;
  align-items: center;
  padding: 24px clamp(22px, 5vw, 66px);
  color: rgba(255, 255, 255, 0.82);
  background: #050505;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.footer-brand b {
  display: block;
  margin-top: 2px;
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 2px;
}

.site-footer p {
  margin: 0;
}

.footer-social {
  display: flex;
  justify-content: end;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--orange);
  background: var(--orange);
  transform: translateY(-1px);
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.lightbox {
  width: min(1100px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox figure {
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.lightbox figcaption {
  padding: 14px 56px;
  text-align: center;
  font-weight: 900;
}

.lightbox button {
  position: fixed;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.join-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 0;
  border-radius: 8px;
  padding: 34px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.join-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.join-dialog h2 {
  margin-bottom: 12px;
  text-transform: uppercase;
  font-size: clamp(32px, 6vw, 58px);
  line-height: 0.95;
}

.join-dialog p:not(.eyebrow) {
  max-width: 590px;
  color: #555;
  line-height: 1.65;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.join-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.website-field {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.join-form label {
  display: grid;
  gap: 7px;
  color: #252525;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 12px;
  font-weight: 900;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
}

.join-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #555;
  font-size: 13px;
  font-weight: 800;
}

.form-status.success {
  color: #217a33;
}

.form-status.error {
  color: #b3341e;
}

.fees-dialog {
  width: min(820px, calc(100vw - 32px));
}

.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.fees-card {
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.fees-card.accent {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.fees-card h3 {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: 18px;
}

.fees-card h3 span {
  color: #666;
  font-size: 13px;
}

.fees-card dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.fees-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 9px;
}

.fees-card.accent dl div {
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.fees-card dt,
.fees-card dd {
  margin: 0;
}

.fees-card dt {
  color: #555;
}

.fees-card.accent dt {
  color: rgba(255, 255, 255, 0.82);
}

.fees-card dd {
  font-weight: 1000;
}

.fees-card p {
  margin: 0;
  color: #555;
  font-weight: 900;
}

.admin-page {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.94)),
    url("assets/photos/racquet-wall.jpg") center / cover fixed;
}

.admin-page .site-header {
  position: sticky;
  background: rgba(5, 5, 5, 0.94);
}

.admin-nav {
  margin-left: auto;
}

.admin-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 70px;
}

.admin-login,
.admin-panel {
  width: min(780px, 100%);
}

.admin-panel {
  width: min(1040px, 100%);
}

.admin-login h1,
.admin-panel h1 {
  margin: 0 0 14px;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 0.96;
}

.admin-login > p,
.admin-panel > p {
  color: #4f4f4f;
}

.admin-card {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.admin-card label {
  color: #191919;
}

.form-note {
  margin: 12px 0 0;
  color: #555;
  line-height: 1.5;
}

.admin-events {
  margin-top: 46px;
}

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

.admin-event-card {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.admin-event-card img {
  width: 150px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}

.admin-event-card span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  font-weight: 1000;
}

.admin-event-card h3 {
  margin: 5px 0 6px;
  text-transform: uppercase;
}

.admin-event-card p {
  margin: 0;
  color: #555;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: start;
    flex-wrap: wrap;
  }

  .stats,
  .court-list,
  .event-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-form,
  .gallery,
  .cta,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .gallery-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand span {
    display: none;
  }

  .hero {
    min-height: 690px;
    padding: 130px 22px 70px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 72px);
  }

  .hero-actions,
  .header-actions,
  .row-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .stats,
  .intro,
  .court-list,
  .event-list {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .intro-grid img:first-child {
    grid-row: auto;
  }

  .section-dark,
  .section-light,
  .cta,
  .contact-section {
    padding: 54px 18px;
  }

  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .map-panel {
    min-height: 380px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .gallery-tile:nth-child(1),
  .gallery-tile:nth-child(6) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .event-card {
    grid-template-columns: 76px 1fr;
  }

  .join-dialog {
    padding: 28px 18px 22px;
  }

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

  .join-form .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .admin-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 96px;
  }

  .admin-event-card {
    grid-template-columns: 1fr;
  }

  .admin-event-card img {
    width: 100%;
    height: 190px;
  }
}
