/* ═══════════════════════════════════════════════════════════════════════════
   ClubLogic public site — COMPONENT + LAYOUT layer
   MPP 15316462 P11 (dffc6258). Design pass: docs/design-public-site-2026-08.md

   Requires assets/clublogic-base.css (tokens, reset, theme, motion) to be
   linked FIRST. Only the rebuilt marketing pages load this file: it restyles
   bare `section` / `h1`-`h4` and would otherwise stomp the legacy pages that
   still carry their own layout.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── NAV ─────────────────────────────────────────────────────────────────── */

.cl-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.cl-nav-inner {
  max-width: var(--wrap-wide); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; min-height: var(--nav-h);
}
.cl-nav-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cl-nav-logo:hover { text-decoration: none; }
.cl-nav-logo svg { height: 34px; width: auto; }
.cl-nav-wordmark {
  font-size: 17px; font-weight: 800; letter-spacing: -.4px; color: var(--text-primary);
}
.cl-nav-wordmark .g { color: var(--primary); }

/* Brand mark. Geometry is the production neural-node mark, ported off
   hardcoded hex onto tokens (so it survives light mode) and off SMIL onto a
   CSS animation (so prefers-reduced-motion can actually stop it — the
   reduced-motion block below has no effect on SMIL <animate>). */
.cl-mark-halo { fill: var(--primary); opacity: .1; }
.cl-mark-line { stroke: var(--primary); opacity: .4; }
.cl-mark-link { stroke: var(--brand-mint); opacity: .22; }
.cl-mark-node { fill: var(--bg); stroke: var(--brand-mint); }
.cl-mark-ring { fill: var(--bg-surface); stroke: var(--primary); }
.cl-mark-core { fill: var(--primary); animation: cl-pulse 3s infinite; }

.cl-nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 8px; margin-right: auto;
  min-width: 0;                       /* so the row can actually scroll, not push */
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.cl-nav-links::-webkit-scrollbar { display: none; }
.cl-nav-links a {
  color: var(--text-secondary); font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--t-color) var(--ease), background var(--t-color) var(--ease);
}
.cl-nav-links a:hover { color: var(--text-primary); background: var(--bg-hover); text-decoration: none; }
.cl-nav-links a[aria-current="page"] {
  color: var(--primary); border-bottom-color: var(--primary); border-radius: 8px 8px 0 0;
}

.cl-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background var(--t-color) var(--ease), border-color var(--t-color) var(--ease),
              color var(--t-color) var(--ease), transform var(--t-transform) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn-sm { font-size: 14px; padding: 9px 16px; }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--brand-forest); color: var(--on-primary); transform: translateY(-1px); }

.btn-outline { border-color: var(--border-light); color: var(--text-primary); background: transparent; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-tint); color: var(--text-primary); }

.btn-ghost { color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.banded { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.eyebrow.muted { color: var(--text-muted); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.5px; overflow-wrap: break-word; }
h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 900; letter-spacing: -1.6px; }
h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1px; }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }

.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-secondary); max-width: 62ch; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ── HERO ────────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('/golf_background.jpg') center/cover no-repeat;
  opacity: .12; filter: blur(1px);
}
[data-theme="light"] .hero-bg { opacity: .1; }
@media (prefers-color-scheme: light) { [data-theme="auto"] .hero-bg { opacity: .1; } }
.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 34%, var(--primary-tint) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, transparent 26%, transparent 68%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-tint); border: 1px solid var(--primary-tint-strong);
  border-radius: 100px; padding: 6px 14px; margin-bottom: 26px;
  font-size: 13px; font-weight: 700; color: var(--primary);
}
.badge-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: cl-pulse 2s infinite;
}

/* ── CARDS ───────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px;
  transition: border-color var(--t-color) var(--ease), background var(--t-color) var(--ease);
}
.card.accent { border-color: var(--primary); }
a.card:hover { border-color: var(--primary); text-decoration: none; }
.card h3, .card h4 { margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 15px; }
section.banded .card { background: var(--bg); }

.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-tint); border: 1px solid var(--primary-tint-strong);
  color: var(--primary); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }

/* pillar card — the four verbs */
.pillar {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; color: inherit;
  transition: border-color var(--t-color) var(--ease), transform var(--t-transform) var(--ease);
}
.pillar:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }
.pillar-verb {
  font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary);
}
.pillar h3 { letter-spacing: -.4px; }
.pillar p { color: var(--text-secondary); font-size: 15px; flex: 1; }
.pillar-more { font-size: 14px; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }

/* ── STATUS LABELS ───────────────────────────────────────────────────────── */
/* The word is the signal. Colour is redundant reinforcement, never the carrier. */

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status-live { color: var(--status-live); background: var(--status-live-tint); border-color: var(--status-live-tint); }
.status-live::before { animation: cl-pulse 2s infinite; }
.status-preview { color: var(--status-preview); background: var(--status-preview-tint); border-color: var(--status-preview-tint); }
.status-dev { color: var(--status-dev); background: var(--status-dev-tint); border-color: var(--status-dev-tint); }
.status-soon { color: var(--status-soon); background: var(--status-soon-tint); border-color: var(--status-soon-tint); }
.status-planned { color: var(--status-planned); background: var(--status-planned-tint); border-color: var(--status-planned-tint); }

.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px 12px; margin-bottom: 10px;
  /* Wrap, don't push: a long card title next to a nowrap status chip was the
     one thing on the site that overflowed a 320px viewport (/track/, 339px). */
  flex-wrap: wrap;
}
.card-head > :first-child { min-width: 0; flex: 1 1 auto; }
.card-head h3, .card-head h4 { margin-bottom: 0; }

/* ── LISTS ───────────────────────────────────────────────────────────────── */

.ticks { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); font-size: 15px; }
.ticks li > svg {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--primary);
}
.ticks li b, .ticks li strong { color: var(--text-primary); font-weight: 600; }

/* ── HONESTY LEDGER ──────────────────────────────────────────────────────── */

.ledger { width: 100%; border-collapse: collapse; font-size: 15px; }
.ledger caption { text-align: left; color: var(--text-muted); font-size: 14px; padding-bottom: 14px; }
.ledger th {
  text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.ledger td { padding: 14px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
.ledger td:first-child { color: var(--text-primary); font-weight: 600; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.ledger-wrap .ledger { min-width: 620px; }
section.banded .ledger-wrap { background: var(--bg); }

/* ── MOCKUP FRAME ────────────────────────────────────────────────────────── */

.mock {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-card);
}
.mock-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: var(--bg-surface);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-light); }
.mock-dot.g { background: var(--primary); }
.mock-title { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mock-body { padding: 18px; }

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.row-rank { width: 22px; font-size: 13px; font-weight: 800; color: var(--text-muted); text-align: center; }
.row-name { flex: 1; font-size: 14px; font-weight: 600; }
.row-val { font-size: 14px; font-weight: 800; }
.row-sub { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: var(--avatar-ink); background: var(--avatar-bg);
}
.under { color: var(--primary); }
.over { color: var(--warning); }

/* ── STAT TILES ──────────────────────────────────────────────────────────── */

.stat { text-align: center; }
.stat-num { font-size: clamp(30px, 4vw, 42px); font-weight: 900; color: var(--primary); letter-spacing: -1.5px; line-height: 1.1; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 6px; }

/* ── TIMELINE (the Bandon story) ─────────────────────────────────────────── */

.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline > li { position: relative; padding-bottom: 32px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: ""; position: absolute; left: -34px; top: 6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--primary);
}
.timeline .day {
  font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 6px;
}
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--text-secondary); }

/* ── CALLOUT ─────────────────────────────────────────────────────────────── */

.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  background: var(--bg-card); border-radius: 12px; padding: 18px 20px;
  font-size: 15px; color: var(--text-secondary);
}
.callout b, .callout strong { color: var(--text-primary); }
.callout.warn { border-left-color: var(--warning); }
section.banded .callout { background: var(--bg); }

.note { font-size: 13.5px; color: var(--text-muted); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */

.cl-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-card); }
.cl-footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px;
}
@media (max-width: 820px) { .cl-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cl-footer-grid { grid-template-columns: 1fr; } }
.cl-footer h4 {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 14px;
}
.cl-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cl-footer ul a { color: var(--text-secondary); font-size: 14px; }
.cl-footer ul a:hover { color: var(--text-primary); }
.cl-footer-blurb { color: var(--text-muted); font-size: 14px; max-width: 34ch; margin-top: 14px; }
.cl-footer-base {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  font-size: 13px; color: var(--text-muted);
}
.cl-footer-base p { margin-right: auto; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .cl-nav-wordmark { display: none; }
  .cl-nav-inner { gap: 8px; padding: 10px 16px; }
  .cl-nav-links { margin-left: 0; gap: 0; }
  .cl-nav-links a { padding: 8px 9px; font-size: 13.5px; }
  .wrap, .wrap-wide { padding: 0 18px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cl-nav-actions .btn { width: auto; }
}

@media print {
  .cl-nav, .cl-theme, .skip-link { display: none; }
  /* Print is paper: literals here are scheme-independent by design. */
  body { background: #fff; color: #000; }
}

