/* CC Tennis Club — bridge site design system
   Tokens extracted from the original Squarespace theme (site.css :root). */
:root {
  --yellow: hsl(50.5, 100%, 72.75%);
  --yellow-soft: hsl(50.5, 100%, 82%);
  --terracotta: hsl(11.72, 76.99%, 55.69%);
  --terracotta-dark: hsl(11.72, 70%, 44%);
  --raspberry: hsl(331.11, 100%, 37.06%);
  --paper: hsl(45, 20%, 96.08%);
  --ink: #000;
  --heading: Verdana, Geneva, sans-serif;
  --body: Georgia, 'Times New Roman', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--yellow);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { font-family: var(--heading); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.5vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 700; }

.wrap { width: min(1160px, 92vw); margin-inline: auto; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--terracotta);
  color: var(--paper);
  text-align: center;
  font-style: italic;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
}

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(180deg, var(--yellow-soft), var(--yellow));
  border-bottom: 3px solid var(--terracotta);
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.6rem 0;
}
.logo img { height: 64px; width: auto; }
.nav-links { display: none; }
.nav-links a {
  font-family: var(--body); font-size: 1.05rem; text-decoration: none;
  padding: 0.35rem 0.15rem; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--ink); }
.header-cta {
  display: flex; align-items: center; gap: 0.75rem;
}
.socials { display: none; gap: 0.65rem; align-items: center; }
.socials svg { width: 26px; height: 26px; fill: var(--ink); }
.btn {
  display: inline-block; background: var(--terracotta); color: var(--paper);
  font-family: var(--heading); font-size: 0.95rem; font-weight: 700;
  text-decoration: none; padding: 0.8rem 1.6rem; border-radius: 999px;
  border: none; cursor: pointer; transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--terracotta-dark); transform: translateY(-1px); }
.btn.secondary { background: var(--ink); }
.menu-toggle {
  background: none; border: 2px solid var(--ink); border-radius: 8px;
  font-family: var(--heading); font-weight: 700; font-size: 0.85rem;
  padding: 0.5rem 0.8rem; cursor: pointer;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0.25rem;
  padding: 0.75rem 0 1.1rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; font-size: 1.15rem; padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); }
.hero video, .hero > img { width: 100%; height: min(78vh, 640px); object-fit: cover; opacity: 0.96; }
.hero .scrim {
  position: absolute; inset: auto 0 0 0; padding: 1.25rem 4vw 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  color: var(--paper); font-style: italic; font-size: 1.05rem;
}

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.on-paper { background: var(--paper); }
.section.on-terracotta { background: var(--terracotta); color: var(--paper); }
.eyebrow {
  font-family: var(--heading); font-size: 0.8rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 0.9rem;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 62ch; }
.split { display: grid; gap: 2rem; align-items: center; }
.stack > * + * { margin-top: 1.1rem; }
.bullets { list-style: none; }
.bullets li { padding-left: 1.4rem; position: relative; margin-top: 0.55rem; }
.bullets li::before { content: "●"; color: var(--terracotta); position: absolute; left: 0; font-size: 0.7rem; top: 0.45em; }
.on-terracotta .bullets li::before { color: var(--yellow); }
.rounded { border-radius: 14px; overflow: hidden; }
.shadow { box-shadow: 0 14px 40px rgba(0,0,0,0.18); }

/* pricing cards */
.cards { display: grid; gap: 1.25rem; margin-top: 2rem; }
.card {
  background: var(--paper); color: var(--ink); border-radius: 14px; padding: 1.8rem 1.6rem;
  border-top: 6px solid var(--terracotta);
}
.card .bullets li::before { color: var(--terracotta); }
.card .price { font-family: var(--heading); font-size: 2rem; font-weight: 700; margin: 0.35rem 0 0.75rem; }
.card .price small { font-size: 0.95rem; font-weight: 400; font-family: var(--body); font-style: italic; }
.card.feature { border-top-color: var(--raspberry); }

/* click-to-play video tiles */
.vid-tile { position: relative; cursor: pointer; }
.vid-tile .play-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,0.25); transition: background 0.2s;
}
.vid-tile:hover .play-badge { background: rgba(0,0,0,0.4); }
.play-badge span {
  width: 74px; height: 74px; border-radius: 50%; background: var(--terracotta);
  display: grid; place-items: center; color: var(--paper); font-size: 1.6rem;
  padding-left: 4px;
}

/* staff grid */
.people { display: grid; gap: 1.5rem; margin-top: 2rem; }
.person { background: var(--paper); border-radius: 14px; overflow: hidden; }
.person img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.person .bio { padding: 1.3rem 1.3rem 1.6rem; }
.person .role { font-style: italic; margin: 0.15rem 0 0.6rem; }

/* events */
.event-row {
  display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem;
  background: var(--paper); border-radius: 14px; padding: 1.4rem; margin-top: 1.2rem;
}
.event-date {
  font-family: var(--heading); text-align: center; align-self: start;
  background: var(--terracotta); color: var(--paper); border-radius: 10px; padding: 0.55rem 0.3rem;
}
.event-date .mon { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.event-date .day { font-size: 1.6rem; font-weight: 700; display: block; }
.event-date .yr { font-size: 0.75rem; display: block; opacity: 0.85; }

/* footer */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: 0.98rem;
}
.site-footer .cols { display: grid; gap: 2rem; }
.site-footer h4 {
  color: var(--yellow); font-size: 0.85rem; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 0.7rem;
}
.site-footer a { color: var(--paper); }
.site-footer .fine { margin-top: 2.5rem; opacity: 0.55; font-size: 0.8rem; font-style: italic; }

/* reveal (progressive enhancement — visible by default) */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  .nav-links { display: flex; gap: 1.6rem; }
  .socials { display: flex; }
  .menu-toggle { display: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .split.rev > :first-child { order: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: repeat(3, 1fr); }
  .logo img { height: 76px; }
}
