/* ============================================================
   THE CHANGANACHERRY CLUB — Luxury Heritage Design System
   ============================================================ */

:root {
  --green-950: #081f16;
  --green-900: #0c2a1e;
  --green-800: #123727;
  --green-700: #1a4633;
  --gold: #c6a75e;
  --gold-light: #e6d3a3;
  --gold-dark: #a4853f;
  --cream: #f7f2e8;
  --cream-dark: #efe7d6;
  --ink: #22281f;
  --ink-soft: #4d564c;
  --white: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow-lg: 0 24px 60px -18px rgba(8, 31, 22, 0.35);
  --shadow-md: 0 14px 36px -14px rgba(8, 31, 22, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--green-950); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.eyebrow::before, .eyebrow.lined::after {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 0.55rem 0 1.1rem;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-dark);
}

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

.center { text-align: center; }
.center .eyebrow::after { content: ""; width: 42px; height: 1px; background: var(--gold); }
.center .lead { margin-inline: auto; }

/* ---------- Layout ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section.dark { background: var(--green-900); }
.section.dark h2, .section.dark h3 { color: var(--cream); }
.section.dark .lead { color: rgba(247, 242, 232, 0.72); }
.section.alt { background: var(--cream-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 2.4rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--green-950);
  background: var(--gold);
  cursor: pointer;
  transition: all 0.45s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(198, 167, 94, 0.55); }
.btn.ghost { background: transparent; color: var(--cream); }
.btn.ghost:hover { background: var(--gold); color: var(--green-950); }
.btn.ghost-dark { background: transparent; color: var(--green-900); border-color: var(--green-800); }
.btn.ghost-dark:hover { background: var(--green-900); color: var(--cream); box-shadow: var(--shadow-md); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.5s var(--ease);
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(8, 31, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.6);
  padding: 10px 0;
}
.site-header .container { width: min(1560px, 95vw); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream);
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(198, 167, 94, 0.6);
  transition: transform 0.5s var(--ease);
}
.brand:hover img { transform: rotate(8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif);
  font-size: clamp(0.95rem, 0.55vw + 0.62rem, 1.12rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cream);
  white-space: nowrap;
}
.brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.4vw, 1.8rem);
}
.nav-links a {
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.85);
  padding: 6px 2px;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--gold) !important;
  padding: 10px 22px !important;
  color: var(--gold-light) !important;
  transition: all 0.4s var(--ease) !important;
}
.nav-cta:hover { background: var(--gold); color: var(--green-950) !important; }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1102;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--cream);
  transition: all 0.4s var(--ease);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Tighten nav before collapsing */
@media (max-width: 1460px) {
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.12em; }
  .nav-cta { padding: 9px 16px !important; }
  .brand { gap: 10px; }
  .brand img { width: 48px; height: 48px; }
}

@media (max-width: 1220px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: linear-gradient(160deg, var(--green-950), var(--green-800));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease);
    z-index: 1100;
  }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero.inner { min-height: 62svh; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  animation: kenburns 22s var(--ease) infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}
/* Keep the illuminated facade clear on the right; text reads over a
   directional scrim on the left */
.hero > .hero-bg { background-position: 34% center; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(80deg, rgba(8,31,22,0.94) 0%, rgba(8,31,22,0.78) 32%, rgba(8,31,22,0.38) 60%, rgba(8,31,22,0.12) 85%),
    linear-gradient(to bottom, rgba(8,31,22,0.4) 0%, transparent 32%, rgba(8,31,22,0.72) 100%);
}
.hero-content { width: min(1180px, 92vw); padding: 8rem 0 5rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.74rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
}
.hero-badge::before, .hero-badge::after {
  content: "";
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-badge::after { background: linear-gradient(90deg, var(--gold), transparent); }
.hero h1 {
  font-size: clamp(2.8rem, 7.2vw, 5.6rem);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.4rem;
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 2px 34px rgba(8, 31, 22, 0.6);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.hero p.sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(247, 242, 232, 0.85);
  max-width: 52ch;
  margin: 0 0 2.6rem;
}
.hero-actions { display: flex; gap: 1.2rem; justify-content: flex-start; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.6);
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ---------- Story split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
@media (max-width: 880px) { .split, .split.flip { grid-template-columns: 1fr; } }

.frame {
  position: relative;
}
.frame img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold);
  z-index: -1;
  transition: inset 0.6s var(--ease);
}
.frame:hover::before { inset: 14px -14px -14px 14px; }
.frame .badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: var(--green-900);
  color: var(--cream);
  padding: 1.3rem 1.7rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.frame .badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-light);
  line-height: 1;
}
.frame .badge span { font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; }

.blockquote {
  margin-top: 1.8rem;
  padding: 1.4rem 1.8rem;
  border-left: 2px solid var(--gold);
  background: rgba(198, 167, 94, 0.08);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  color: var(--green-800);
}

/* ---------- Stats band ---------- */
.stats-band {
  background:
    linear-gradient(rgba(8, 31, 22, 0.88), rgba(8, 31, 22, 0.92)),
    var(--stats-bg, none) center / cover fixed;
  color: var(--cream);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.stat .num sup { font-size: 55%; color: var(--gold); }
.stat .label {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(247, 242, 232, 0.7);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.card {
  background: var(--white);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card .thumb { overflow: hidden; aspect-ratio: 16 / 10.5; position: relative; }
.card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .thumb img { transform: scale(1.08); }
.card .thumb .tag {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(8, 31, 22, 0.82);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 14px;
  backdrop-filter: blur(6px);
}
.card .body { padding: 1.8rem 1.9rem 2rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card .more {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card .more::after { content: "→"; transition: transform 0.4s var(--ease); }
.card:hover .more::after { transform: translateX(6px); }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 0.9rem; margin-top: 1.6rem; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "◆";
  font-size: 0.55rem;
  color: var(--gold);
  flex-shrink: 0;
  transform: translateY(-2px);
}
.section.dark .feature-list li { color: rgba(247, 242, 232, 0.78); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 3rem;
}
.gallery-grid a {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: zoom-in;
}
.gallery-grid a.wide { grid-column: span 2; }
.gallery-grid a.tall { grid-row: span 2; }
@media (max-width: 640px) { .gallery-grid a.wide { grid-column: span 1; } }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter 1s var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.07); filter: brightness(0.75); }
.gallery-grid a::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(circle, transparent 30%, rgba(8,31,22,0.35));
}
.gallery-grid a:hover::after { opacity: 1; }

/* Gallery slideshow (gallery page) — one large photo + scrolling thumbnails */
.gallery-show { margin-top: 3rem; }
.gs-stage {
  position: relative;
  height: min(72vh, 640px);
  background: var(--green-950);
  overflow: hidden;
  outline: none;
}
.gs-stage:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.gs-main {
  width: 100%; height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.45s var(--ease);
}
.gs-main.is-fading { opacity: 0; }
.gs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: rgba(8, 31, 22, 0.7);
  border: 1px solid rgba(198, 167, 94, 0.6);
  color: var(--gold-light);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.gs-btn:hover { background: var(--gold); color: var(--green-950); }
.gs-prev { left: 18px; }
.gs-next { right: 18px; }
.gs-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.gs-num { color: var(--gold-dark); letter-spacing: 0.08em; white-space: nowrap; }
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.gallery-thumbs a {
  flex: 0 0 120px;
  height: 80px;
  display: block;
  overflow: hidden;
  opacity: 0.55;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: opacity 0.3s, outline-color 0.3s;
}
.gallery-thumbs a:hover, .gallery-thumbs a:focus-visible { opacity: 0.9; }
.gallery-thumbs a.is-active { opacity: 1; outline-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .gs-stage { height: 62vw; min-height: 240px; }
  .gs-btn { width: 40px; height: 40px; font-size: 1.2rem; }
  .gs-prev { left: 8px; }
  .gs-next { right: 8px; }
  .gs-caption { font-size: 0.85rem; }
  .gallery-thumbs a { flex-basis: 84px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-main { transition: none; }
  .gallery-thumbs { scroll-behavior: auto; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 18, 13, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 0 120px rgba(0,0,0,0.7);
  animation: lbIn 0.45s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.94); } }
.lightbox button {
  position: absolute;
  background: none;
  border: 1px solid rgba(198, 167, 94, 0.5);
  color: var(--gold-light);
  width: 52px; height: 52px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s;
  display: grid;
  place-items: center;
}
.lightbox button:hover { background: var(--gold); color: var(--green-950); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  color: rgba(247, 242, 232, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
}

/* ---------- Leadership ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.4rem;
  margin-top: 3.2rem;
}
.member { text-align: center; }
.member .photo {
  position: relative;
  width: min(200px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 1.3rem;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(140deg, var(--gold), transparent 55%, var(--gold));
}
.member .photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.92);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.member:hover .photo img { transform: scale(1.04); filter: saturate(1.05); }
.member h3 { font-size: 1.35rem; }
.member .role {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.35rem;
}
.section.dark .member h3 { color: var(--cream); }
.section.dark .member .role { color: var(--gold); }

/* ---------- Affiliated clubs ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 2.6rem 0 1.4rem;
}
.filter-bar button {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid rgba(18, 55, 39, 0.25);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.35s var(--ease);
}
.filter-bar button:hover { border-color: var(--gold); color: var(--gold-dark); }
.filter-bar button.active {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--gold-light);
}
.club-search {
  display: block;
  width: min(460px, 100%);
  margin: 0 auto 1rem;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1px solid rgba(18, 55, 39, 0.25);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.club-search:focus { border-color: var(--gold); }
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
  margin-top: 2.4rem;
}
.club-card {
  background: var(--white);
  border-top: 3px solid var(--gold);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  animation: clubIn 0.5s var(--ease);
}
@keyframes clubIn { from { opacity: 0; transform: translateY(18px); } }
.club-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.club-card .region {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.club-card h3 { font-size: 1.22rem; margin: 0.4rem 0 0.7rem; }
.club-card p { font-size: 0.88rem; color: var(--ink-soft); white-space: pre-line; }
.club-card .contact { margin-top: 0.8rem; font-size: 0.85rem; color: var(--green-700); word-break: break-word; }
.clubs-count { text-align: center; color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ---------- Accordion ---------- */
.accordion { margin-top: 2.6rem; border-top: 1px solid rgba(18,55,39,0.15); }
.accordion details { border-bottom: 1px solid rgba(18,55,39,0.15); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 0.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-900);
  transition: color 0.3s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--gold);
  transition: transform 0.4s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--gold-dark); }
.accordion .acc-body { padding: 0 0.4rem 1.6rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 2.4rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 1rem; /* 16px or more, or iPhones zoom in when the field is tapped */
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(18, 55, 39, 0.22);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.18);
}
.form-note { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-soft); }
.form-note.is-success { color: #1f6b3f; font-weight: 500; }
.form-note.is-error { color: #a33a2b; font-weight: 500; }
form[data-enquiry] { position: relative; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Contact / info panels ---------- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}
.info-card {
  background: var(--white);
  padding: 2.2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid transparent;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.info-card:hover { border-bottom-color: var(--gold); transform: translateY(-5px); }
.info-card .icon {
  width: 58px; height: 58px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(198, 167, 94, 0.14);
  color: var(--gold-dark);
  font-size: 1.4rem;
}
.info-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.92rem; color: var(--ink-soft); }
.info-card a { color: var(--green-700); border-bottom: 1px solid var(--gold); }

.map-frame {
  margin-top: 3rem;
  border: 10px solid var(--white);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 440px; border: 0; filter: saturate(0.85); }

/* ---------- Quote band ---------- */
.quote-band {
  background:
    linear-gradient(rgba(8,31,22,0.82), rgba(8,31,22,0.88)),
    var(--quote-bg, none) center / cover;
  color: var(--cream);
  text-align: center;
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-style: italic;
  font-weight: 500;
  max-width: 26ch;
  margin: 0 auto;
  color: var(--gold-light);
}
.quote-band .attribution {
  margin-top: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(247,242,232,0.6);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(198, 167, 94, 0.35);
  pointer-events: none;
}
.cta-band h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band h2 em { color: var(--gold-light); font-style: italic; }
.cta-band p { color: rgba(247,242,232,0.75); max-width: 60ch; margin: 1rem auto 2.4rem; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative;
  min-height: 56svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.page-hero .hero-bg { animation-duration: 28s; }
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(8,31,22,0.5), rgba(8,31,22,0.85));
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--cream);
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero .crumbs {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
  display: flex;
  gap: 12px;
  align-items: center;
}
.page-hero .crumbs a { color: rgba(247,242,232,0.7); transition: color 0.3s; }
.page-hero .crumbs a:hover { color: var(--gold-light); }
.page-hero .crumbs span::before { content: "◆"; font-size: 0.5rem; margin-right: 12px; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-950);
  color: rgba(247, 242, 232, 0.75);
  padding: 5rem 0 0;
  position: relative;
}
.site-footer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 1.4rem; }
.footer-brand img {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream);
  padding: 4px;
}
.footer-brand .brand-text { min-width: 0; }
.footer-brand .brand-name { font-size: 1.05rem; white-space: normal; line-height: 1.3; }
.footer-brand .brand-tag { white-space: normal; }
.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.site-footer ul li { margin-bottom: 0.7rem; }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 12px; font-size: 0.94rem; }
.footer-contact .ic { color: var(--gold); flex-shrink: 0; }
.social-row { display: flex; gap: 12px; margin-top: 1.4rem; }
.social-row a {
  width: 42px; height: 42px;
  border: 1px solid rgba(198, 167, 94, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: all 0.35s var(--ease);
}
.social-row a:hover { background: var(--gold); color: var(--green-950); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(247, 242, 232, 0.1);
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(247, 242, 232, 0.5);
}

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.gold-rule {
  width: 74px; height: 2px;
  background: var(--gold);
  margin: 1.4rem auto;
  border: none;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Back to top */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 50px; height: 50px;
  background: var(--green-900);
  color: var(--gold-light);
  border: 1px solid rgba(198,167,94,0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
  z-index: 900;
  font-size: 1.1rem;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--green-950); transform: translateY(-4px); }

/* Marquee affiliations strip */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(198, 167, 94, 0.3);
  padding: 1.1rem 0;
  background: var(--green-950);
  color: var(--gold-light);
}
.marquee .track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .track span::after { content: "◆"; margin-left: 3.5rem; font-size: 0.5rem; color: var(--gold); }

/* ============================================================
   Mobile refinements
   ============================================================ */

/* Guard against any decorative element creating sideways scroll */
html { overflow-x: hidden; }

/* `fixed` background attachment is unsupported/janky on mobile Safari */
@media (max-width: 1024px) {
  .stats-band { background-attachment: scroll; }
}

@media (max-width: 640px) {
  /* Keep the framed-photo ornaments inside the viewport */
  .frame { margin-bottom: 2.4rem; }
  .frame::before { inset: 14px -10px -10px 14px; }
  .frame:hover::before { inset: 10px -7px -7px 10px; }
  .frame .badge { left: -10px; bottom: -22px; padding: 1.05rem 1.35rem; }
  .frame .badge strong { font-size: 1.65rem; }

  /* Lightbox controls sized for thumbs, clear of the image */
  .lightbox img { max-width: 100vw; max-height: 76vh; }
  .lightbox button { width: 44px; height: 44px; font-size: 1.1rem; }
  .lb-close { top: 14px; right: 14px; }
  .lb-prev { left: 10px; top: auto; bottom: 64px; transform: none; }
  .lb-next { right: 10px; top: auto; bottom: 64px; transform: none; }

  .map-frame { border-width: 6px; }
  .map-frame iframe { height: 340px; }
}

@media (max-width: 420px) {
  /* Brand lockup is nowrap; shrink it so the nav toggle stays on-screen */
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 0.8rem; letter-spacing: 0.05em; }
  .brand-tag { font-size: 0.64rem; letter-spacing: 0.16em; }
}

@media (max-width: 480px) {
  .scroll-cue { display: none; }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.16em; gap: 8px; }
  .hero-badge::before, .hero-badge::after { width: 18px; }
  .eyebrow { letter-spacing: 0.26em; }
  .btn { padding: 0.95rem 1.9rem; }
  .blockquote { padding: 1.1rem 1.3rem; font-size: 1.08rem; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}

/* ---------- Affiliated clubs map ---------- */
.network-map { margin: 2.6rem 0 3rem; }
.map-frame {
  position: relative;
  isolation: isolate; /* keep Leaflet's layers below the sticky site header */
  z-index: 0;
  height: clamp(380px, 64vh, 640px);
  border: 1px solid rgba(18, 55, 39, 0.18);
  box-shadow: var(--shadow-md);
  background: #aad3df;
  overflow: hidden;
}
#clubsMap { position: absolute; inset: 0; font-family: var(--sans); background: #aad3df; }
.map-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(18, 55, 39, 0.15);
  border: 1px solid rgba(18, 55, 39, 0.15);
  border-top: 0;
}
.map-stats div { background: var(--white); padding: 1rem 1.2rem; text-align: center; }
.map-stats strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--green-900); line-height: 1; }
.map-stats span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.map-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: center; margin-top: 1rem; font-size: 0.82rem; color: var(--ink-soft); }
.map-legend span { display: inline-flex; align-items: center; gap: 0.5rem; }

/* markers */
.map-pin-wrap, .map-cluster-wrap, .map-home-wrap { background: none; border: 0; }
.map-pin {
  display: block; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--white); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}
.map-cluster {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 50%;
  background: var(--gold); color: var(--green-900); border: 3px solid var(--white);
  font: 600 13px/1 var(--sans); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease);
}
.map-cluster-wrap:hover .map-cluster { transform: scale(1.08); }
.map-home {
  display: block; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%;
  background: var(--green-900); border: 4px solid var(--gold);
  box-shadow: 0 0 0 0 rgba(198, 167, 94, 0.6); animation: homePulse 2.4s infinite;
}
@keyframes homePulse { 0% { box-shadow: 0 0 0 0 rgba(198, 167, 94, 0.6); } 70% { box-shadow: 0 0 0 14px rgba(198, 167, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 167, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .map-home { animation: none; box-shadow: 0 0 0 6px rgba(198, 167, 94, 0.35); } }
.map-legend .map-pin, .map-legend .map-home { display: inline-block; }
.map-legend .map-home { animation: none; width: 18px; height: 18px; border-width: 3px; }
.map-legend .map-cluster { width: 26px; height: 26px; font-size: 11px; border-width: 2px; }

/* popups */
.leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: var(--shadow-md); }
.leaflet-popup-content { margin: 14px 16px; }
.map-pop { display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); font-size: 0.84rem; color: var(--ink-soft); line-height: 1.45; }
.map-pop strong { font-family: var(--serif); font-size: 1.15rem; color: var(--green-900); line-height: 1.2; }
.map-pop-region { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dark); }
.map-pop-contact { color: var(--green-700); word-break: break-word; }
.map-pop-btn {
  align-self: flex-start; margin-top: 6px; padding: 8px 12px; min-height: 36px;
  font: 500 0.78rem var(--sans); letter-spacing: 0.06em; color: var(--green-900);
  background: var(--cream); border: 1px solid var(--gold); cursor: pointer;
}
.map-pop-btn:hover { background: var(--gold); }

/* map buttons (top right) */
.map-ctl { display: flex; flex-direction: column; gap: 6px; }
.map-ctl button {
  padding: 9px 14px; min-height: 38px; font: 500 0.78rem var(--sans); letter-spacing: 0.05em;
  color: var(--green-900); background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(18, 55, 39, 0.25);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); cursor: pointer; text-align: left;
}
.map-ctl button:hover { background: var(--cream); border-color: var(--gold); }
.leaflet-control-zoom a { color: var(--green-900); }

/* phone hint */
.map-hint {
  position: absolute; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 31, 22, 0.55); color: var(--cream); font-size: 0.95rem; letter-spacing: 0.04em;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.map-hint.show { opacity: 1; }

/* club card flash when picked from the map */
.club-card.is-picked { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 640px) {
  .network-map { margin: 1.8rem -4px 2.4rem; }
  .map-frame { height: clamp(360px, 70vh, 520px); }
  .map-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-stats strong { font-size: 1.7rem; }
  .map-ctl button { padding: 8px 10px; font-size: 0.72rem; }
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
  .leaflet-popup-content { margin: 12px 14px; }
}

/* ---------- Maker's note (Easter egg) ---------- */
.maker-note {
  position: fixed; left: 50%; bottom: 28px; z-index: 2000;
  width: min(420px, calc(100% - 32px)); box-sizing: border-box;
  padding: 1.5rem 1.6rem 1.3rem; background: var(--green-900); color: var(--cream);
  border-top: 3px solid var(--gold); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 20px); opacity: 0; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.maker-note.show { opacity: 1; transform: translate(-50%, 0); }
.maker-note p { margin: 0.5rem 0 0.9rem; font-size: 0.95rem; line-height: 1.6; color: rgba(247, 242, 232, 0.9); }
.maker-note strong { color: var(--gold-light); font-weight: 500; }
.maker-note a { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; text-decoration: none; }
.maker-note a:hover { color: var(--gold-light); }
.maker-eyebrow { font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.maker-close {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  background: none; border: 0; color: rgba(247, 242, 232, 0.7); font-size: 1rem; cursor: pointer;
}
.maker-close:hover { color: var(--cream); }
.footer-brand img { cursor: default; }

/* ---------- Phones & tablets: comfortable tap targets (about 44px) ---------- */
@media (max-width: 940px) {
  .site-footer ul li { margin-bottom: 0; }
  .site-footer ul li > a { display: inline-block; padding: 10px 0; }
  .footer-contact li { align-items: center; min-height: 44px; }
  .footer-contact li:first-child { align-items: flex-start; padding: 6px 0 10px; }
  /* Same look, bigger invisible touch area */
  .card .more { padding: 12px 0; margin-top: calc(1.2rem - 12px); margin-bottom: -12px; }
  .page-hero .crumbs a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
