:root {
  --ink: #13201c;
  --muted: #5e6b65;
  --line: #dbe6dc;
  --paper: #f7fbf4;
  --white: #ffffff;
  --court: #177e72;
  --court-deep: #0b5f59;
  --lime: #d7ff44;
  --sun: #ffc857;
  --coral: #ff6b5f;
  --shadow: 0 24px 70px rgba(19, 32, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: rgba(247, 251, 244, 0.92);
  border-bottom: 1px solid rgba(19, 32, 28, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  flex: 0 0 auto;
  padding: 3px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
}

nav a:hover {
  color: var(--ink);
  background: #e9f3e8;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: clamp(40px, 8vw, 96px) clamp(18px, 5vw, 80px) 64px;
  gap: clamp(32px, 6vw, 80px);
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--court-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.hero-text,
.section-copy p,
.location-section p,
.play-grid p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-text {
  max-width: 650px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 6px 6px 0 var(--ink);
}

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

.button.danger {
  color: var(--white);
  background: #a93226;
  border-color: #a93226;
}

.button.full {
  width: 100%;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 42px 0 0;
}

.quick-facts div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quick-facts dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.court-visual {
  position: relative;
  min-height: 560px;
}

.court {
  position: absolute;
  inset: 28px 8% 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.85) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(var(--court), var(--court-deep));
  border: 8px solid #f7fff2;
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(19, 32, 28, 0.28);
  transform: perspective(900px) rotateX(58deg) rotateZ(-8deg);
  transform-origin: center;
}

.court span {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.88);
}

.net {
  top: 50%;
  left: 0;
  width: 100%;
  height: 7px;
  transform: translateY(-50%);
}

.kitchen {
  left: 0;
  width: 100%;
  height: 2px;
}

.kitchen.top {
  top: 38%;
}

.kitchen.bottom {
  bottom: 38%;
}

.center-line {
  left: 50%;
  width: 2px;
  height: 38%;
  transform: translateX(-50%);
}

.center-line.top {
  top: 0;
}

.center-line.bottom {
  bottom: 0;
}

.baseline {
  left: 0;
  width: 100%;
  height: 2px;
}

.baseline.top {
  top: 12%;
}

.baseline.bottom {
  bottom: 12%;
}

.paddle {
  position: absolute;
  width: 110px;
  height: 150px;
  border: 4px solid var(--ink);
  border-radius: 48px 48px 42px 42px;
  box-shadow: 10px 12px 0 rgba(19, 32, 28, 0.16);
}

.paddle::after {
  position: absolute;
  left: 50%;
  bottom: -70px;
  width: 26px;
  height: 80px;
  content: "";
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  transform: translateX(-50%);
}

.paddle-left {
  left: 5%;
  bottom: 34px;
  background: var(--sun);
  transform: rotate(-24deg);
}

.paddle-right {
  right: 3%;
  top: 56px;
  background: var(--coral);
  transform: rotate(20deg);
}

.ball {
  position: absolute;
  top: 34%;
  left: 47%;
  width: 74px;
  height: 74px;
  background:
    radial-gradient(circle at 32% 28%, #f8ffbf 0 12%, transparent 13%),
    var(--lime);
  border: 4px solid var(--ink);
  border-radius: 50%;
  box-shadow: 8px 8px 0 rgba(19, 32, 28, 0.18);
}

.ball::before,
.ball::after {
  position: absolute;
  width: 11px;
  height: 11px;
  content: "";
  background: rgba(19, 32, 28, 0.55);
  border-radius: 50%;
}

.ball::before {
  top: 18px;
  right: 18px;
}

.ball::after {
  right: 29px;
  bottom: 16px;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 80px);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-band div {
  padding: 24px;
  background: var(--white);
}

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

.info-band span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.split-section,
.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding: 96px clamp(18px, 5vw, 80px);
}

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

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  content: "";
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.booking-form,
.booking-output,
.bookings-dashboard {
  padding: clamp(20px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-form {
  display: grid;
  gap: 16px;
}

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

.hidden-field {
  display: none;
}

select,
input,
textarea {
  width: 100%;
  padding: 14px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #c8d8cc;
  border-radius: 8px;
  background: #fbfdf9;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--court);
  outline: 3px solid rgba(23, 126, 114, 0.18);
}

textarea {
  resize: vertical;
}

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

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--court-deep);
  font-weight: 700;
}

.booking-output {
  margin: 0 clamp(18px, 5vw, 80px) 96px;
}

.booking-output textarea {
  min-height: 190px;
}

.bookings-dashboard,
.open-play-board {
  margin: 0 clamp(18px, 5vw, 80px) 96px;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.dashboard-heading p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

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

th,
td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  background: #eef6ed;
}

td {
  color: var(--muted);
  line-height: 1.45;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.open-play-board {
  padding: clamp(20px, 4vw, 34px);
  background: #eaf9f5;
  border: 1px solid #bfe7dc;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.player-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid #bfe7dc;
  border-radius: 8px;
}

.player-card strong,
.player-card span {
  display: block;
}

.player-card strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
}

.player-card span {
  color: var(--muted);
  line-height: 1.5;
}

.rates-section,
.play-section {
  padding: 92px clamp(18px, 5vw, 80px);
}

.rates-section {
  background: #fff9e8;
}

.play-section {
  color: var(--white);
  background: var(--ink);
}

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

.play-section .eyebrow {
  color: var(--lime);
}

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

.rates-grid article,
.play-grid article {
  padding: 28px;
  border-radius: 8px;
}

.rates-grid article {
  background: var(--white);
  border: 1px solid #eadfbf;
  box-shadow: 0 18px 42px rgba(85, 67, 27, 0.1);
}

.rates-grid p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.play-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.play-grid p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
}

.location-section {
  align-items: center;
}

.map-card {
  display: grid;
  gap: 18px;
  min-height: 360px;
  padding: 30px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    var(--court-deep);
  background-size: 42px 42px;
  border: 8px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-card iframe {
  width: 100%;
  min-height: 330px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
}

.map-address {
  display: grid;
  justify-items: center;
}

.map-address span,
.map-address em {
  font-size: clamp(24px, 4vw, 40px);
  font-style: normal;
  font-weight: 800;
}

.map-address strong {
  margin: 8px 0;
  color: var(--lime);
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.9;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 80px);
  color: var(--white);
  background: var(--court-deep);
}

footer span {
  color: rgba(255, 255, 255, 0.78);
}

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

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

  .hero,
  .split-section,
  .location-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .court-visual {
    min-height: 430px;
  }

  .info-band,
  .rates-grid,
  .play-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    flex-direction: column;
  }

  .dashboard-actions {
    justify-content: flex-start;
  }

  .players-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  nav a {
    padding-inline: 8px;
  }

  h1 {
    font-size: 42px;
  }

  .quick-facts,
  .form-row {
    grid-template-columns: 1fr;
  }

  .court-visual {
    min-height: 330px;
  }

  .court {
    inset: 20px 4% 10px;
  }

  .paddle {
    width: 78px;
    height: 108px;
  }

  .paddle::after {
    bottom: -50px;
    width: 20px;
    height: 58px;
  }

  .ball {
    width: 56px;
    height: 56px;
  }
}
