:root {
  /* Layout: dark bands for the hall and visit, cream bands for the club story.
     Brand: logo 5 (Retro, bolder take) in the facade colours: red steel, deep green, cream.
     Courts are terracotta with grey-blue kitchens. */
  --ink: #121212;
  --ink-2: #1c1b1a;
  --ink-line: #302d2b;
  --bone: #f3ede4;
  --bone-2: #e7dfd3;
  --muted: #645d55;
  --muted-on-dark: #aca49b;
  --accent: #c42e28;
  --accent-deep: #a3241f;
  --accent-light: #ec625a;
  --green: #1e4a3a;
  --green-deep: #14352a;
  --court: #b4502c;
  --kitchen: #7f93a6;

  --display: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: 78%;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}
.eyebrow.dark { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .9em 1.5em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 0.95rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-light); outline-offset: 3px;
}
.btn-accent { background: var(--accent); color: var(--bone); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { border-color: rgba(243,239,231,.35); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { padding: .65em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }

/* Logo (option 5, Retro bolder take) */
.logo { display: inline-flex; text-decoration: none; }
.logo-svg { height: 54px; width: auto; overflow: visible; }
.logo-svg text { font-family: var(--display); font-weight: 800; font-stretch: 68%; text-anchor: middle; }
.logo-svg .lg-the { font-size: 19px; font-weight: 700; font-stretch: 100%; }
.lg-name text { font-size: 80px; }
.lg-club text { font-size: 50px; }
.lg-rule { fill: none; stroke-width: 3; stroke-linecap: round; }
/* On dark: cream letters, red depth, red ribbon */
.logo-dark .lg-face, .logo-dark .lg-the { fill: var(--bone); }
.logo-dark .lg-shadow, .logo-dark .lg-ribbon { fill: var(--accent); }
.logo-dark .lg-tail { fill: var(--accent-deep); }
.logo-dark .lg-rule { stroke: var(--accent); }
.logo-dark .lg-diamond { fill: var(--bone); }
/* On cream: red letters with a cream outline, green depth, green ribbon */
.logo-light .lg-face { fill: var(--accent); stroke: var(--bone); stroke-width: 2.5; paint-order: stroke; }
.logo-light .lg-the { fill: var(--bone); }
.logo-light .lg-shadow, .logo-light .lg-ribbon, .logo-light .lg-diamond { fill: var(--green); }
.logo-light .lg-tail { fill: var(--green-deep); }
.logo-light .lg-rule { stroke: var(--green); }
.logo-footer .logo-svg { height: 64px; }
.club-logo { height: auto; width: min(260px, 100%); margin-bottom: 2rem; }

/* Nav */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--ink);
}
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(17,17,17,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a:not(.btn) {
  color: var(--muted-on-dark); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .15s;
}
.nav-links a:not(.btn):hover { color: var(--bone); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--bone);
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 9vw, 110px);
}
.hero-title {
  font-size: clamp(2.6rem, 7.5vw, 6rem);
  font-weight: 900;
  max-width: 13ch;
  margin-bottom: .35em;
}
.hero-title em { font-style: italic; color: var(--accent-light); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted-on-dark); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 3.5rem; }
.hero-img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: 70% 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(17,17,17,.92) 32%, rgba(17,17,17,.55) 62%, rgba(17,17,17,.2) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-lede { color: #d6d0ca; }

.countdown {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(1rem, 3vw, 2.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--ink-line);
}
.countdown div { display: flex; flex-direction: column; }
.countdown span {
  font-family: var(--display); font-stretch: 85%; font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown small { color: var(--muted-on-dark); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-top: .35rem; }
.countdown-label { margin: 0 0 .2rem; color: var(--muted-on-dark); }

/* Stats */
.stats { background: var(--accent); color: var(--bone); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 1.6rem 0; display: flex; align-items: baseline; gap: .6rem; }
.stats-grid strong { font-family: var(--display); font-stretch: 85%; font-weight: 900; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1; }
.stats-grid span { font-weight: 500; font-size: .95rem; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--ink); color: var(--bone); }
.section-accent { background: var(--green); color: var(--bone); }
.section-accent .eyebrow.dark { color: rgba(243,237,228,.75); }
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { font-size: 1.08rem; color: #3a352f; max-width: 60ch; }
.lede { font-size: 1.1rem; max-width: 42ch; }

/* Facilities */
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); }
.facility {
  background: #fff;
  border: 1px solid var(--bone-2);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.facility p { color: var(--muted); font-size: .95rem; margin: 0; }
.facility-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green); display: grid; place-items: center; margin-bottom: 1.25rem;
}
.facility-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--bone); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Section heading with a side note */
.section-head {
  display: grid; grid-template-columns: 5fr 7fr; gap: 1rem clamp(2rem, 6vw, 5rem);
  align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { margin: 0; }
.section-head-note { margin: 0; max-width: 52ch; color: var(--muted); }
.section-dark .section-head-note { color: var(--muted-on-dark); }
.section-tint { background: var(--bone-2); }

/* Indoor gallery */
.gallery { margin: 0; display: grid; gap: .75rem; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--ink-2); aspect-ratio: 16 / 9; max-width: 100%; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.gallery-main img.swapping { opacity: .35; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.thumb {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; background: var(--ink-2); cursor: pointer; aspect-ratio: 16 / 9;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .6; transition: opacity .15s; }
.thumb span {
  position: absolute; left: .5rem; bottom: .4rem;
  font: 600 .75rem/1 var(--body); color: var(--bone); letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.thumb:hover img, .thumb[aria-pressed=true] img { opacity: 1; }
.thumb[aria-pressed=true] { border-color: var(--accent); }
.gallery figcaption, .photo figcaption { color: var(--muted-on-dark); font-size: .85rem; }

/* Photos */
.photo { margin: 0; display: grid; gap: .6rem; min-width: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
#outdoor .photo figcaption { color: var(--muted); }

/* Outdoor */
.outdoor-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 1.25rem; align-items: start; }
.photo-wide { grid-row: span 2; }
.outdoor-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.outdoor-facts li { display: flex; align-items: baseline; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--bone-2); color: var(--muted); }
.outdoor-facts strong {
  font-family: var(--display); font-stretch: 85%; font-weight: 900; font-size: 2.1rem; line-height: 1;
  color: var(--green); min-width: 2.2ch; font-variant-numeric: tabular-nums;
}

/* Visit photo */
.visit-photo { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* Coaching */
.coach-slot {
  margin-top: 2rem; padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
}
.coach-slot-label { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.coach-slot strong { display: block; font-family: var(--display); font-stretch: 85%; font-size: 1.6rem; margin: .2rem 0 .75rem; }
.coach-slot p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Founders Club */

.membership h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.perks { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.perks li { display: flex; gap: .85rem; align-items: baseline; font-size: 1.05rem; }
.perks li::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bone); transform: translateY(-1px);
}
.join-form {
  background: var(--bone); color: var(--ink); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 60px -30px rgba(17,17,17,.45);
  display: grid; gap: 1.1rem;
}
.join-form h3 { font-size: 1.5rem; margin-bottom: .25rem; }
.join-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; }
.join-form input[type=text], .join-form input[type=tel], .join-form select {
  font: 400 1rem var(--body); color: var(--ink);
  padding: .8em .9em; border-radius: 10px;
  border: 1.5px solid var(--bone-2); background: #fff;
  width: 100%;
}
.join-form input[aria-invalid=true] { border-color: #c2412d; }
.join-form fieldset { border: 0; padding: 0; margin: 0; }
.join-form legend { font-size: .88rem; font-weight: 600; margin-bottom: .4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .55em 1.1em; border-radius: 999px;
  border: 1.5px solid var(--bone-2); background: #fff; font-weight: 500;
  transition: background-color .15s, border-color .15s;
}
.chip input:checked + span { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.form-note.error { color: #c2412d; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 5rem); }
.visit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; margin: 0; }
.visit-list dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); font-weight: 600; margin-bottom: .5rem; }
.visit-list dd { margin: 0; font-size: 1.1rem; line-height: 1.5; }
.visit-list a { text-decoration-color: var(--accent-light); text-underline-offset: 3px; }

/* Footer */
.footer { background: var(--ink); color: var(--muted-on-dark); border-top: 1px solid var(--ink-line); padding: 2rem 0; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .facilities { grid-template-columns: repeat(2, 1fr); }
  .two-col, .visit-grid, .section-head, .outdoor-grid { grid-template-columns: 1fr; }
  .photo-wide { grid-row: auto; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--bone); transition: transform .2s; }
  .nav-toggle[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--ink-line);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .85rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--ink-line); }
  .nav-links .btn { margin-top: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div { padding: 1.1rem 0; }
  .hero::after { background: linear-gradient(180deg, rgba(17,17,17,.8) 0%, rgba(17,17,17,.88) 55%, var(--ink) 100%); }
  .gallery-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .facilities, .visit-list { grid-template-columns: 1fr; }
}
