/* ============================================================
   DUFTIÐ GOLF CLUB — Main Stylesheet
   Palette: Charcoal · Moss · Cypress · Olive · Cedar · Aloe
   ============================================================ */

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

:root {
  /* Core palette */
  --charcoal:       #1a1c1a;   /* primary dark bg */
  --charcoal-mid:   #242624;   /* cards on dark */
  --charcoal-light: #2e3230;   /* borders / subtle surfaces */

  --moss:           #2C3424;   /* deep green */
  --cypress:        #4C583E;   /* mid green */
  --olive:          #768064;   /* muted green accent */
  --cedar:          #959581;   /* warm neutral — replaces gold */
  --aloe:           #DADED8;   /* light sage / off-white */
  --cream:          #f0ede8;   /* light section bg */

  /* Semantic aliases */
  --bg-dark:        var(--charcoal);
  --bg-mid:         var(--charcoal-mid);
  --bg-light:       var(--cream);
  --accent:         var(--cedar);
  --accent-light:   #b5b4a0;
  --text-light:     var(--aloe);
  --text-muted:     #7a7f79;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius:     6px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(0,0,0,0.18);
  --shadow-lg:  0 16px 56px rgba(0,0,0,0.28);

  --nav-h: 80px;
  --ease:  0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
code {
  font-family: monospace;
  background: rgba(0,0,0,0.06);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.84em;
}

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--cedar);
  color: var(--charcoal);
  border-color: var(--cedar);
}
.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(149,149,129,0.3);
}
.btn--outline {
  background: transparent;
  color: var(--aloe);
  border-color: rgba(218,222,216,0.4);
}
.btn--outline:hover {
  background: rgba(218,222,216,0.08);
  border-color: var(--aloe);
}
.btn--full { width: 100%; justify-content: center; }

/* ── NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--charcoal);
  transition: background var(--ease);
}
.nav::after {
  content: '';
  position: absolute;
  bottom: -28px;
  left: 0; right: 0;
  height: 28px;
  background: linear-gradient(to bottom, var(--charcoal), transparent);
  pointer-events: none;
}
.nav.scrolled {
  background: var(--charcoal);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img {
  height: 130px;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  color: rgba(218,222,216,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: var(--radius);
  transition: all var(--ease);
}
.nav__links a:hover {
  color: var(--aloe);
  background: rgba(218,222,216,0.07);
}
.nav__cta {
  background: var(--cedar) !important;
  color: var(--charcoal) !important;
  font-weight: 600 !important;
  border-radius: var(--radius) !important;
}
.nav__cta:hover {
  background: var(--accent-light) !important;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--aloe);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--charcoal);
  overflow: hidden;
}

/* Layered depth effect */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(76,88,62,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(44,52,36,0.4) 0%, transparent 60%);
}

/* Noise texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.hero__overlay { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 0 24px;
}
.hero__eyebrow {
  color: var(--cedar);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__est {
  color: var(--cedar);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 16px;
  margin-bottom: 36px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero__est::before,
.hero__est::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--cedar);
  opacity: 0.6;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  color: var(--aloe);
  letter-spacing: 0.16em;
  line-height: 1;
  margin-bottom: 28px;
}
.hero__tagline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(218,222,216,0.5);
  margin-bottom: 52px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(218,222,216,0.3);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(218,222,216,0.3), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ── STATS ─────────────────────────────────────────────────── */
.stats {
  background: var(--moss);
  padding: 0;
  border-top: 1px solid rgba(218,222,216,0.06);
  border-bottom: 1px solid rgba(218,222,216,0.06);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats__item {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid rgba(218,222,216,0.08);
  position: relative;
}
.stats__item:last-child { border-right: none; }
.stats__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--aloe);
  line-height: 1;
  margin-bottom: 8px;
}
.stats__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cedar);
}

/* ── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 110px 0; }
.section--dark {
  background: var(--charcoal);
  color: var(--aloe);
}
.section--accent {
  background: var(--moss);
  color: var(--aloe);
}
.section--light {
  background: var(--cream);
}


.section__header { text-align: center; margin-bottom: 64px; }
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cedar);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__eyebrow::before,
.section__eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--cedar);
  opacity: 0.5;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--charcoal);
}
.section--dark .section__title,
.section--accent .section__title { color: var(--aloe); }

.section__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}
.section--dark .section__sub,
.section--accent .section__sub { color: rgba(218,222,216,0.5); }

/* ── HUB (Standings + Rounds slider) ───────────────────────── */
.hub-section {
  padding: 0;
  overflow: hidden;
  background: var(--cream);
  transition: background 0.45s ease;
}

.hub-section.hub--rounds {
  background: var(--charcoal);
}

.hub-section > .container:first-of-type {
  padding-top: 80px;
}

.hub__switcher {
  display: flex;
  justify-content: center;
  margin: 0 auto 48px;
  border: 1.5px solid rgba(28, 50, 32, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 340px;
}

.hub__tab {
  flex: 1;
  padding: 11px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  color: rgba(28, 50, 32, 0.45);
  transition: background 0.25s ease, color 0.25s ease;
}

.hub__tab.hub__tab--active,
.hub__tab:hover {
  background: #1c3220;
  color: #fff;
}

.hub__slider {
  overflow: hidden;
  width: 100%;
}

.hub__track {
  display: flex;
  width: 200%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub__panel {
  width: 50%;
  flex-shrink: 0;
  padding: 80px 0 90px;
}

.hub__panel--light {
  background: var(--cream);
}

.hub__panel--dark {
  background: var(--charcoal);
}

.hub__panel--dark .section__eyebrow { color: var(--cedar); }
.hub__panel--dark .section__title   { color: var(--aloe);  }
.hub__panel--dark .section__sub     { color: rgba(218,222,216,0.45); }

.hub__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 72px;
}

.hub__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(150,150,130,0.3);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hub__dot.hub__dot--active {
  background: #1c3220;
  transform: scale(1.35);
}

/* When rounds panel is active, swap dot colour for dark bg */
.hub-section.hub--rounds .hub__dot {
  background: rgba(218,222,216,0.2);
}
.hub-section.hub--rounds .hub__dot.hub__dot--active {
  background: var(--cedar);
}

/* Switcher on dark bg */
.hub-section.hub--rounds .hub__switcher {
  border-color: rgba(218,222,216,0.18);
}
.hub-section.hub--rounds .hub__tab {
  color: rgba(218,222,216,0.45);
}
.hub-section.hub--rounds .hub__tab.hub__tab--active,
.hub-section.hub--rounds .hub__tab:hover {
  background: rgba(218,222,216,0.1);
  color: var(--aloe);
}

/* ── STANDINGS ─────────────────────────────────────────────── */
/* ── STANDINGS — Masters scoreboard style ───────────────────── */
.standings__table-wrap {
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
}

/* Green banner above the table */
.standings__banner {
  background: #1c3220;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding: 14px 24px;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.standings__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--font-sans);
}

/* Header */
.standings__table thead {
  background: #1c3220;
}
.standings__table th {
  padding: 10px 24px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-align: left;
}
.standings__table th.col-score,
.standings__table th.col-rounds,
.standings__table th.col-hcp { text-align: center; }

/* Body rows */
.standings__table td {
  padding: 0;
  border-bottom: 1px solid #ede9e3;
  color: #1a1a1a;
  vertical-align: middle;
}
.masters-row:last-child td { border-bottom: none; }
.masters-row:hover td { background: #f7f4ef; }

/* Top 3 — left accent bar */
.masters-rank-1 td:first-child { border-left: 3px solid #1c3220; }
.masters-rank-2 td:first-child { border-left: 3px solid #4C583E; }
.masters-rank-3 td:first-child { border-left: 3px solid #959581; }
.masters-row    td:first-child { border-left: 3px solid transparent; }

/* Column sizing */
.col-pos    { width: 52px; }
.col-hcp    { width: 64px; text-align: center; }
.col-score  { width: 80px; text-align: center; }
.col-rounds { width: 58px; text-align: center; }

/* Position */
.masters-pos {
  display: block;
  padding: 18px 16px 18px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #555;
  font-variant-numeric: tabular-nums;
}

/* Player name */
.masters-name {
  display: block;
  padding: 18px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.01em;
}

/* HCP & rounds */
.col-hcp td,
.col-rounds td {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  padding: 18px 12px;
}

/* Score — the hero number */
.masters-score {
  display: block;
  padding: 18px 12px;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-family: var(--font-serif);
}
.score--under { color: #b22222; }   /* under par — Masters red */
.score--even  { color: #1c3220; }   /* even par  — Augusta green */
.score--over  { color: #1a1a1a; }   /* over par  — plain black */

/* DNQ rows — players below the qualification threshold */
.masters-row--dnq td { opacity: 0.45; }
.masters-row--dnq .masters-name { font-weight: 400; }

/* Divider between qualified and unqualified */
.masters-divider td {
  padding: 7px 24px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: #1c3220;
  border: none;
  text-align: center;
}

.standings__note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(0,0,0,0.35);
  text-transform: uppercase;
}

/* ── SCORING STATS ─────────────────────────────────────────── */
.scoring__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.scoring__sort-btn {
  padding: 8px 20px;
  background: transparent;
  border: 1px solid rgba(218,222,216,0.18);
  border-radius: var(--radius);
  color: rgba(218,222,216,0.45);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scoring__sort-btn:hover,
.scoring__sort-btn.active {
  background: rgba(218,222,216,0.08);
  border-color: var(--cedar);
  color: var(--cedar);
}

.scoring__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(218,222,216,0.07);
}

.scoring__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.scoring__table thead {
  background: rgba(28,50,32,0.7);
}

.scoring__table th {
  padding: 12px 16px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(218,222,216,0.55);
  text-align: left;
}

.scoring__table th.sc-col-eagle,
.scoring__table th.sc-col-birdie,
.scoring__table th.sc-col-par,
.scoring__table th.sc-col-bogey,
.scoring__table th.sc-col-double { text-align: left; }

.scoring__table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(218,222,216,0.06);
  vertical-align: middle;
}

.sc-row { transition: background 0.15s ease; }
.sc-row:hover { background: rgba(218,222,216,0.04); }
.sc-row--top { background: rgba(28,50,32,0.3); }
.sc-row:last-child td { border-bottom: none; }

.sc-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aloe);
  white-space: nowrap;
}

/* Bar cells */
.sc-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 80px;
}

.sc-bar {
  height: 6px;
  border-radius: 3px;
  min-width: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sc-bar--eagle  { background: #a855f7; }
.sc-bar--birdie { background: #b22222; }
.sc-bar--par    { background: var(--cedar); }
.sc-bar--bogey  { background: rgba(218,222,216,0.3); }
.sc-bar--double { background: rgba(218,222,216,0.15); }

.sc-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(218,222,216,0.7);
  min-width: 18px;
}

.sc-col-player { min-width: 140px; }
.sc-col-eagle,
.sc-col-birdie,
.sc-col-par,
.sc-col-bogey,
.sc-col-double { min-width: 100px; }

/* ── ROUNDS ────────────────────────────────────────────────── */
.rounds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.round-card {
  background: var(--charcoal-mid);
  border: 1px solid rgba(218,222,216,0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--ease);
}
.round-card:hover {
  background: var(--charcoal-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.round-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.round-card__date {
  font-size: 0.72rem;
  color: var(--cedar);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.round-card__format {
  font-size: 0.72rem;
  background: rgba(149,149,129,0.12);
  color: var(--cedar);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.round-card__course {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--aloe);
  margin-bottom: 4px;
  line-height: 1.2;
}
.round-card__location {
  font-size: 0.8rem;
  color: rgba(218,222,216,0.35);
  margin-bottom: 22px;
}
.round-card__podium { display: flex; flex-direction: column; gap: 10px; }
.podium-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(218,222,216,0.04);
}
.podium-item:first-child { background: rgba(149,149,129,0.12); }
.podium-item__pos { width: 28px; font-weight: 700; color: var(--cedar); flex-shrink: 0; font-size: 0.78rem; }
.podium-item__name { flex: 1; color: var(--aloe); font-weight: 500; }
.podium-item__score { font-weight: 700; color: var(--cedar); font-size: 0.9rem; }

/* ── GALLERY ───────────────────────────────────────────────── */
.gallery__filter {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 20px;
  background: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--ease);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--aloe);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.gallery__item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--charcoal-light);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,28,26,0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--aloe);
  font-size: 0.82rem;
  font-weight: 500;
}
.gallery__item:hover .gallery__item__overlay { opacity: 1; }
.gallery__placeholder { grid-column: 1/-1; }
.gallery__upload-prompt {
  border: 1px dashed rgba(0,0,0,0.15);
  border-radius: var(--radius-lg);
  padding: 72px 32px;
  text-align: center;
  color: var(--text-muted);
}
.gallery__upload-prompt svg { margin: 0 auto 16px; opacity: 0.4; }
.gallery__upload-prompt p { margin-top: 8px; font-size: 0.88rem; }
.gallery__upload-prompt .muted { color: #bbb; font-size: 0.8rem; margin-top: 4px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26,28,26,0.97);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active { display: flex; }
.lightbox__img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__caption {
  margin-top: 18px;
  color: rgba(218,222,216,0.5);
  font-size: 0.88rem;
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 28px;
  background: none; border: none;
  color: var(--aloe); font-size: 2.2rem;
  cursor: pointer; line-height: 1;
  opacity: 0.5; transition: opacity var(--ease);
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev, .lightbox__next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(218,222,216,0.07);
  border: 1px solid rgba(218,222,216,0.12);
  color: var(--aloe);
  font-size: 1.6rem; cursor: pointer;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(218,222,216,0.14); }

/* ── BRACKET CONTROLS ──────────────────────────────────────── */
.bracket__controls {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.btn--shuffle {
  background: transparent;
  border: 1.5px solid var(--cypress);
  color: var(--aloe);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}

.btn--shuffle:hover {
  background: var(--cypress);
  border-color: var(--cypress);
  color: #fff;
}

.btn--demo {
  border-color: rgba(149,149,129,0.3);
  color: rgba(218,222,216,0.4);
  font-size: 0.75rem;
}
.btn--demo:hover {
  background: rgba(149,149,129,0.1);
  border-color: rgba(149,149,129,0.5);
  color: var(--aloe);
}

.btn--shuffle.shuffled {
  transform: scale(0.95);
  border-color: var(--olive);
  color: var(--olive);
}

/* ── CUP BRACKET ───────────────────────────────────────────── */
.bracket {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 0 24px;
}

.bracket__half {
  display: flex;
  flex-direction: row;
  flex: 1;
  align-items: stretch;
  min-width: 0;
  gap: 16px;
}

.bracket__final-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  flex-shrink: 0;
}
.bracket__final-col .bracket__round-name {
  color: var(--aloe);
}

.bracket__round {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.bracket__round-name {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(149,149,129,0.5);
  text-align: center;
  padding: 0 8px 24px;
}
.bracket__matches {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  flex: 1;
}

/* ── Pair ── */
.bracket__pair {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Match-wrap ── */
.bracket__match-wrap {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Space between consecutive matches so each vertical line stands alone */
.bracket__match-wrap + .bracket__match-wrap,
.bracket__pair      + .bracket__pair {
  margin-top: 20px;
}

/* ── Match: no card — just player names ── */
.bracket__match {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

/* ── Players ── */
.bracket__player {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(218,222,216,0.5);
  padding: 18px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

/* Left half: vertical line on LEFT — names read left to right away from line */
.bracket__half--left .bracket__player {
  border-left: 1px solid rgba(118,128,100,0.35);
  padding-left: 14px;
}

/* Right half: vertical line on RIGHT — names read right to left away from line, text right-aligned */
.bracket__half--right .bracket__player {
  border-right: 1px solid rgba(118,128,100,0.35);
  padding-right: 14px;
  text-align: right;
}
.bracket__player.winner {
  color: var(--aloe);
  font-weight: 600;
}
.bracket__player.loser {
  color: rgba(218,222,216,0.2);
  text-decoration: line-through;
}
.bracket__player.tbd {
  color: rgba(218,222,216,0.15);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ── Final ── */
.bracket__match--final {
  border-left: 1px solid rgba(118,128,100,0.35);
  padding-left: 14px;
}
.bracket__match--final .bracket__player {
  font-size: 0.85rem;
  color: rgba(218,222,216,0.7);
}
.bracket__match--final .bracket__player.winner {
  color: var(--aloe);
  font-weight: 700;
}

.bracket__champion {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  padding: 8px 10px 2px;
}

@media (max-width: 700px) {
  .bracket__half { gap: 8px; }
  .bracket__final-col { min-width: 90px; }
  .bracket__player { font-size: 0.65rem; padding: 10px 6px; }
}

/* ── HOLE IN ONE POT ───────────────────────────────────────── */
.hoi {
  background: var(--charcoal);
  padding: 80px 0;
  border-top: 1px solid rgba(218,222,216,0.06);
  border-bottom: 1px solid rgba(218,222,216,0.06);
}
.hoi__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hoi__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 12px;
}
.hoi__title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--aloe);
  margin-bottom: 16px;
}
.hoi__rule {
  font-size: 0.9rem;
  color: rgba(218,222,216,0.55);
  line-height: 1.7;
  margin-bottom: 32px;
  font-style: italic;
  border-left: 2px solid var(--cedar);
  padding-left: 16px;
}
.hoi__history {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hoi__history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(218,222,216,0.04);
  border: 1px solid rgba(218,222,216,0.06);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.hoi__history-year {
  font-weight: 700;
  color: var(--cedar);
  width: 44px;
}
.hoi__history-note {
  color: rgba(218,222,216,0.45);
  flex: 1;
  padding: 0 12px;
  font-size: 0.8rem;
}
.hoi__history-amount {
  font-weight: 600;
  color: var(--aloe);
  font-size: 0.88rem;
}

/* Jackpot display */
.hoi__right {
  display: flex;
  justify-content: center;
}
.hoi__pot-display {
  position: relative;
  text-align: center;
  background: var(--moss);
  border: 1px solid rgba(218,222,216,0.1);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  width: 100%;
}
.hoi__pot-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 20px;
}
.hoi__pot-amount {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--aloe);
  line-height: 1;
  margin-bottom: 16px;
}
.hoi__pot-years {
  font-size: 0.78rem;
  color: rgba(218,222,216,0.4);
  margin-top: 12px;
}

/* Pulsing ring animation */
.hoi__pulse {
  position: absolute;
  top: -12px; right: -12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cedar);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hoi__pulse::before,
.hoi__pulse::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--cedar);
  animation: hoiPulse 2s ease-out infinite;
}
.hoi__pulse::after { animation-delay: 1s; }
@keyframes hoiPulse {
  0%   { width: 28px; height: 28px; opacity: 0.8; }
  100% { width: 70px; height: 70px; opacity: 0; }
}

@media (max-width: 700px) {
  .hoi__inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ── MEMBERS ───────────────────────────────────────────────── */
.members__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.member-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  transition: all var(--ease);
  text-align: center;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.member-card__photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.member-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.member-card__initials {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--cedar);
  opacity: 0.8;
}
.member-card__body { padding: 20px 16px; }
.member-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
}
.member-card__role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-bottom: 12px;
}
.member-card__role--founder {
  color: var(--charcoal);
  background: var(--cedar);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.member-card__stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 14px;
  margin-top: 4px;
}
.member-card__stat span {
  display: block;
}
.member-card__stat .val {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
}
.member-card__stat .lbl {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── TRIPS ─────────────────────────────────────────────────── */
.trips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.trip-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(218,222,216,0.07);
  transition: all var(--ease);
  background: var(--charcoal-mid);
}
.trip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.trip-card__img {
  height: 160px;
  background: linear-gradient(135deg, var(--moss), var(--charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.trip-card__body { padding: 24px; }
.trip-card__year {
  font-size: 0.68rem;
  color: var(--cedar);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.trip-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--aloe);
  margin-bottom: 4px;
}
.trip-card__location {
  font-size: 0.82rem;
  color: rgba(218,222,216,0.4);
  margin-bottom: 10px;
}
.trip-card__courses {
  font-size: 0.8rem;
  color: rgba(218,222,216,0.35);
  border-top: 1px solid rgba(218,222,216,0.07);
  padding-top: 10px;
  margin-top: 10px;
}
.trip-card__courses strong { color: rgba(218,222,216,0.6); }
.trip-card__upcoming {
  background: var(--cedar);
  color: var(--charcoal);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

/* ── NEWS ──────────────────────────────────────────────────── */
.news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  transition: all var(--ease);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.news-card__img {
  height: 180px;
  background: var(--moss);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.news-card__body { padding: 26px; }
.news-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 10px;
}
.news-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--charcoal);
}
.news-card__excerpt {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.news-card__meta { font-size: 0.76rem; color: #bbb; }

/* ── ABOUT ─────────────────────────────────────────────────── */
.about__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__text p {
  color: rgba(218,222,216,0.65);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 0.95rem;
}
.about__values {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about__values li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(218,222,216,0.04);
  border: 1px solid rgba(218,222,216,0.06);
}
.about__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.about__values strong {
  display: block;
  color: var(--aloe);
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 0.95rem;
}
.about__values span { color: rgba(218,222,216,0.45); font-size: 0.85rem; }

.about__image-inner {
  background: rgba(218,222,216,0.04);
  border: 1px solid rgba(218,222,216,0.1);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.about__image-inner img { max-width: 80%; opacity: 0.9; }

/* ── APPLICATION FORM ──────────────────────────────────────── */
.apply__wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--charcoal-mid);
  border: 1px solid rgba(218,222,216,0.08);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
}
.apply__form { display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__group--full { grid-column: 1/-1; }
.form__group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cedar);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.form__group input,
.form__group select,
.form__group textarea {
  padding: 13px 16px;
  border: 1px solid rgba(218,222,216,0.12);
  border-radius: var(--radius);
  background: rgba(218,222,216,0.04);
  color: var(--aloe);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  transition: border var(--ease), background var(--ease);
  width: 100%;
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(218,222,216,0.25); }
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--cedar);
  background: rgba(149,149,129,0.07);
}
.form__group select option { background: var(--charcoal); color: var(--aloe); }
.form__group textarea { resize: vertical; }

.form__radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.form__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(218,222,216,0.7);
  cursor: pointer;
}
.form__radio input[type="radio"] { accent-color: var(--cedar); width: 16px; height: 16px; }

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(218,222,216,0.5);
  cursor: pointer;
}
.form__checkbox input { accent-color: var(--cedar); margin-top: 2px; flex-shrink: 0; }
.form__checkbox a { color: var(--cedar); text-decoration: underline; }
.form__group input.invalid,
.form__group textarea.invalid { border-color: #a05a5a; }

.form__success {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(90,138,90,0.12);
  border: 1px solid rgba(90,138,90,0.25);
  border-radius: var(--radius);
  color: #8aba8a;
  font-weight: 600;
}
.form__success.visible { display: block; }

/* ── DIVIDER ───────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--cedar);
  margin: 0 auto;
  opacity: 0.5;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: #0f1110;
  color: rgba(218,222,216,0.45);
  padding: 72px 0 0;
  border-top: 1px solid rgba(218,222,216,0.05);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(218,222,216,0.06);
}
.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cedar);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.footer__tagline { font-size: 0.85rem; font-style: italic; line-height: 1.6; }
.footer h4 {
  color: var(--aloe);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a {
  font-size: 0.88rem;
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--cedar); }
.footer__contact p { font-size: 0.86rem; margin-bottom: 6px; }
.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(218,222,216,0.2);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about__split { grid-template-columns: 1fr; gap: 40px; }
  .about__image { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 16px;
    gap: 2px;
    border-top: 1px solid rgba(218,222,216,0.06);
  }
  .nav__links.open { display: flex; }
  .nav__burger { display: flex; }
  .hero__title { font-size: 4.5rem; }
  .section { padding: 72px 0; }
  .form__row { grid-template-columns: 1fr; }
  .apply__wrap { padding: 28px 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .hub__switcher { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
