:root {
  --ink: #16231f;
  --muted: #71807a;
  --lime: #d7f36b;
  --cream: #f7f7f2;
  --line: #dfe5df;
  --orange: #ff704a;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    15px "DM Sans",
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid #e7ebe5;
  background: #f7f7f2;
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 18px "Space Grotesk";
  letter-spacing: -0.04em;
}
.brand-light {
  font-weight: 500;
  color: #8c9992;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 16px;
}
nav {
  display: flex;
  gap: 34px;
  color: #65736d;
  font-size: 14px;
}
nav a:hover,
.text-link:hover {
  color: var(--orange);
}
.header-cta {
  font-weight: 600;
}
.header-cta span,
.text-link span {
  color: var(--orange);
  margin-left: 7px;
  font-size: 18px;
}
.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 43% 57%;
  padding-left: 10vw;
  overflow: hidden;
}
.hero-copy {
  padding: 112px 25px 70px 0;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #819087;
  margin: 0 0 24px;
}
.live-dot {
  display: inline-block;
  background: #70bf65;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 7px 1px 0;
}
.hero h1,
h2 {
  font: 700 clamp(48px, 6vw, 82px) / 0.94 "Space Grotesk";
  letter-spacing: -0.07em;
  margin: 0;
}
.hero h1 em,
h2 em {
  color: var(--orange);
  font-style: normal;
}
.hero-text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 320px;
  margin: 26px 0 30px;
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 15px 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s,
    background 0.2s;
}
.primary-btn:hover {
  background: var(--orange);
  transform: translateY(-2px);
}
.primary-btn span {
  font-size: 20px;
  color: var(--lime);
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 45px;
}
.hero-proof strong {
  color: var(--ink);
}
.avatars {
  display: flex;
}
.avatars span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffad8f;
  border: 2px solid var(--cream);
  margin-left: -6px;
  font-size: 10px;
  color: #fff;
}
.avatars span:first-child {
  margin-left: 0;
  background: #9ac7bc;
}
.avatars span:last-child {
  background: #c2aa92;
}
.hero-art {
  position: relative;
  background: #b4d4cb;
  min-height: 610px;
  overflow: hidden;
}
.sun {
  position: absolute;
  width: 420px;
  height: 420px;
  background: #cde987;
  border-radius: 50%;
  top: -120px;
  right: -100px;
}
.court-lines {
  position: absolute;
  inset: 100px 9% 65px 10%;
  border: 2px solid rgba(22, 35, 31, 0.75);
  transform: rotate(-11deg);
  background: linear-gradient(
    90deg,
    transparent 49.6%,
    rgba(22, 35, 31, 0.7) 49.6%,
    rgba(22, 35, 31, 0.7) 50.4%,
    transparent 50.4%
  );
}
.court-lines:before,
.court-lines:after {
  content: "";
  position: absolute;
  border: 2px solid rgba(22, 35, 31, 0.75);
  width: 33%;
  height: 32%;
  top: 34%;
}
.court-lines:before {
  left: 0;
  border-left: 0;
}
.court-lines:after {
  right: 0;
  border-right: 0;
}
.net {
  position: absolute;
  top: -10px;
  bottom: -10px;
  width: 4px;
  background: var(--orange);
  left: 50%;
  box-shadow: 0 0 0 4px rgba(255, 112, 74, 0.15);
}
.ball {
  position: absolute;
  color: var(--orange);
  font-size: 108px;
  line-height: 1;
}
.ball-one {
  top: 29%;
  left: 12%;
  transform: rotate(20deg);
}
.ball-two {
  bottom: 9%;
  right: 10%;
  color: var(--ink);
  font-size: 70px;
}
.art-label {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--ink);
}
.label-one {
  left: 8%;
  bottom: 35px;
}
.label-two {
  right: 8%;
  bottom: 35px;
}
.booking-section {
  padding: 110px 10vw 120px;
  background: #fff;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 45px;
}
.section-heading h2 {
  font-size: 52px;
}
.section-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.date-picker {
  display: flex;
  gap: 9px;
  margin-bottom: 25px;
  overflow: auto;
  padding-bottom: 4px;
}
.date-btn {
  min-width: 74px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 13px 8px;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
}
.date-btn strong,
.date-btn span {
  display: block;
}
.date-btn strong {
  font: 600 21px "Space Grotesk";
  color: var(--ink);
  margin-top: 5px;
}
.date-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.date-btn.active strong {
  color: var(--lime);
}
.booking-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.court-list {
  display: grid;
  gap: 12px;
}
.court {
  border: 1px solid var(--line);
  padding: 21px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 17px;
  border-radius: 4px;
}
.court h3 {
  margin: 0;
  font: 600 21px "Space Grotesk";
  letter-spacing: -0.04em;
}
.court p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.court-times {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.time-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 11px;
  border-radius: 3px;
  cursor: pointer;
  color: #596760;
  font-size: 12px;
}
.time-btn:hover,
.time-btn.selected {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.price {
  font-weight: 700;
}
.booking-card {
  background: var(--ink);
  color: #fff;
  padding: 25px;
  min-height: 240px;
  border-radius: 4px;
  position: sticky;
  top: 100px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #96a59e;
}
.step {
  color: var(--lime);
}
.empty-booking {
  text-align: center;
  padding: 35px 10px;
}
.racket-icon {
  margin: auto;
  width: 45px;
  height: 45px;
  border: 1px solid #51635b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: var(--lime);
}
.empty-booking h3 {
  margin: 16px 0 6px;
  font: 600 20px "Space Grotesk";
}
.empty-booking p {
  color: #96a59e;
  font-size: 13px;
  margin: 0;
}
.selected-booking {
  padding-top: 37px;
}
.selected-booking h3 {
  font: 600 29px "Space Grotesk";
  margin: 0 0 7px;
  letter-spacing: -0.05em;
}
.selected-booking p {
  color: #b0beb7;
  margin: 0 0 22px;
}
.booking-detail {
  border-top: 1px solid #41524a;
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  color: #c4d0ca;
  font-size: 13px;
}
.booking-detail strong {
  color: #fff;
}
.booking-card .primary-btn {
  width: 100%;
  margin-top: 16px;
  background: var(--lime);
  color: var(--ink);
}
.booking-card .primary-btn span {
  color: var(--ink);
}
.club-section {
  background: var(--lime);
  padding: 90px 10vw;
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 40px;
  align-items: end;
}
.club-section h2 {
  font-size: 52px;
}
.club-section > p {
  line-height: 1.6;
  max-width: 355px;
  margin: 0;
  color: #526044;
}
.text-link {
  font-weight: 700;
  text-align: right;
}
.faq {
  padding: 90px 10vw 110px;
  max-width: 900px;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font: 600 21px "Space Grotesk";
  list-style: none;
}
.faq summary:after {
  content: "+";
  float: right;
  color: var(--orange);
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 550px;
}
footer {
  padding: 28px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #89958e;
  font-size: 12px;
  border-top: 1px solid #e1e7e1;
}
footer .brand {
  color: var(--ink);
  font-size: 15px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 35, 31, 0.65);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 5;
}
.modal {
  background: #fff;
  padding: 34px;
  max-width: 440px;
  width: 100%;
  position: relative;
  border-radius: 5px;
}
.modal h2 {
  font-size: 43px;
  margin-bottom: 23px;
}
.close-btn {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
}
.modal-summary {
  background: var(--cream);
  padding: 13px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.modal-summary strong {
  color: var(--ink);
}
form {
  display: grid;
  gap: 14px;
}
label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 3px;
  font: inherit;
}
form .primary-btn {
  width: 100%;
  margin-top: 5px;
}
@media (max-width: 760px) {
  nav {
    display: none;
  }
  .hero {
    display: block;
    padding-left: 8vw;
  }
  .hero-copy {
    padding: 75px 25px 65px 0;
  }
  .hero-art {
    margin-left: -8vw;
    min-height: 430px;
  }
  .booking-section,
  .club-section,
  .faq {
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .booking-layout,
  .club-section {
    grid-template-columns: 1fr;
  }
  .booking-card {
    position: static;
  }
  .section-heading {
    display: block;
  }
  .section-note {
    margin-top: 20px;
  }
  .club-section .text-link {
    text-align: left;
  }
  footer {
    flex-wrap: wrap;
    gap: 15px;
  }
}
.brand-logo {
  width: 29px;
  height: 29px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.brand .brand-logo + span {
  white-space: nowrap;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
  transition:
    transform 0.2s,
    opacity 0.2s;
}
@media (max-width: 760px) {
  .site-header {
    position: relative;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 10px;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 14px 7vw;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(22, 35, 31, 0.08);
    z-index: 4;
  }
  .site-header nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .site-header nav a {
    padding: 13px 0;
  }
  .header-actions {
    display: none;
  }
  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}
@media (max-width: 480px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }
  .site-header {
    height: 64px;
    padding: 0 18px;
  }
  .brand {
    gap: 7px;
    font-size: 15px;
  }
  .brand-logo {
    width: 27px;
    height: 27px;
  }
  .menu-toggle {
    margin-right: 0;
  }
  .site-header nav {
    top: 64px;
    padding: 10px 20px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-copy {
    padding: 62px 0 50px;
  }
  .hero h1 {
    font-size: clamp(42px, 13vw, 60px);
  }
  .hero-text {
    font-size: 15px;
  }
  .hero-art {
    margin-left: -20px;
    margin-right: -20px;
    min-height: 330px;
  }
  .booking-section,
  .club-section,
  .faq {
    padding-left: 20px;
    padding-right: 20px;
  }
  .booking-section {
    padding-top: 70px;
    padding-bottom: 80px;
  }
  .section-heading h2 {
    font-size: 42px;
  }
  .section-note {
    font-size: 13px;
  }
  .calendar-picker {
    width: 100%;
    max-width: 240px;
  }
  .booking-card {
    min-height: 220px;
  }
  .my-bookings {
    padding: 18px;
  }
  .booking-history {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .booking-history .cancel-booking,
  .cancel-unavailable {
    margin-left: auto;
  }
  footer {
    padding: 24px 20px;
    display: grid;
    gap: 14px;
  }
  footer .brand {
    font-size: 14px;
  }
}
