/* ============================================================================
   ClubGuru.org public site - SHARED styles (5.1q, 2026-09-25)
   Built from Bill's Claude Design export "Clubguru_website_revampl.zip".
   Holds the tokens, the floating glass header, the footer, the mobile menu and
   reveal-on-scroll. Page sections keep the design's own inline styles.
   NOT css/style.css (the app) and NOT css/clubguru.css (the pre-5.1q site).
   5.1s adds the compact footer used by FAQ and Schedule a Demo.
   ============================================================================ */
:root {
    --cg-navy: #031d79;      /* headings, links, primary button */
    --cg-blue: #2b57cf;      /* italic accents, hovers */
    --cg-gold: #c69d47;      /* rules, dots */
    --cg-gold-dark: #a9812f; /* eyebrows */
    --cg-gold-light: #d9b86c;
    --cg-ink: #42506b;       /* body copy */
    --cg-muted: #5b6b85;
    --cg-page: #f8fafd;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--cg-page); -webkit-font-smoothing: antialiased; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--cg-ink); }
a { color: var(--cg-navy); text-decoration: none; }
a:hover { color: var(--cg-blue); }
img { max-width: 100%; }
a, button { transition: background-color .18s, color .18s, border-color .18s; }

/* ===== Wordmark ===== */
.cg-wm { font-family: Nunito, "Arial Rounded MT Bold", sans-serif; font-weight: 900; line-height: 1; letter-spacing: -0.01em; color: var(--cg-navy); }
.cg-wm b { font-weight: 900; color: var(--cg-gold); }

/* ===== Header (floating glass bar) ===== */
.cg-nav { position: fixed; top: clamp(10px,0.9vw,18px); left: clamp(12px,1.6vw,32px); right: clamp(12px,1.6vw,32px); z-index: 50; font-family: Inter, sans-serif; }
.cg-nav-card { position: relative; max-width: 1900px; margin: 0 auto; border-radius: 22px; overflow: hidden;
    background: linear-gradient(100deg,rgba(255,255,255,0.84) 0%,rgba(248,250,253,0.76) 45%,rgba(243,247,252,0.8) 100%);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 18px 44px -22px rgba(3,29,121,0.35), 0 2px 8px -4px rgba(3,29,121,0.12), inset 0 1px 0 rgba(255,255,255,0.9); }
.cg-nav-glow1 { position: absolute; top: -60%; right: 14%; width: 520px; height: 220%; background: radial-gradient(closest-side,rgba(198,157,71,0.12),rgba(198,157,71,0)); pointer-events: none; }
.cg-nav-glow2 { position: absolute; top: -80%; left: -4%; width: 460px; height: 260%; background: radial-gradient(closest-side,rgba(43,87,207,0.08),rgba(43,87,207,0)); pointer-events: none; }
.cg-nav-swash { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cg-nav-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: clamp(78px,5.4vw,106px); padding: 10px clamp(20px,2.4vw,48px); }
.cg-brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.cg-brand .cg-wm { font-size: clamp(32px,2.2vw,46px); }
.cg-brand .tag { font-family: Poppins, sans-serif; font-size: clamp(12px,0.85vw,17px); line-height: 1; margin-top: clamp(6px,0.4vw,9px); color: var(--cg-navy); }
.cg-links { display: flex; align-items: center; gap: 10px clamp(20px,2vw,44px); }
.cg-links a.lk { position: relative; color: var(--cg-navy); font-size: clamp(16px,1.1vw,21px); font-weight: 500; padding: 8px 2px; white-space: nowrap; }
.cg-links a.lk:hover { color: var(--cg-blue); }
.cg-links a.lk[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cg-gold); }
.cg-links .sep { width: 1px; height: 26px; background: rgba(3,29,121,0.16); }
.cg-start { background: var(--cg-navy); color: #fff !important; font-size: clamp(16px,1.1vw,21px); font-weight: 600; padding: clamp(13px,0.9vw,18px) clamp(26px,1.8vw,38px); border-radius: 999px; white-space: nowrap;
    box-shadow: 0 10px 24px -12px rgba(3,29,121,0.6), 0 0 0 4px rgba(198,157,71,0.16); }
.cg-start:hover { background: var(--cg-blue); color: #fff; }
.cg-menu { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--cg-navy); }
.cg-menu svg { display: block; }

@media (max-width: 1080px) {
    .cg-menu { display: block; }
    .cg-nav-row { flex-wrap: wrap; min-height: 72px; }
    .cg-brand .cg-wm { font-size: 30px; }
    .cg-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 12px; }
    .cg-nav.open .cg-links { display: flex; }
    .cg-links a.lk { padding: 13px 2px; border-top: 1px solid rgba(3,29,121,0.1); font-size: 17px; }
    .cg-links a.lk[aria-current="page"]::after { left: auto; right: 4px; bottom: 50%; margin: 0 0 -3px; }
    .cg-links .sep { display: none; }
    .cg-start { margin-top: 12px; text-align: center; font-size: 17px; }
}

/* ===== Footer ===== */
.cg-foot { position: relative; overflow: hidden; font-family: Inter, sans-serif; padding: clamp(72px,6vw,120px) clamp(24px,5vw,96px) clamp(32px,2.4vw,44px); background: linear-gradient(180deg,#eef4fb 0%,#f8fafd 45%,#f3f7fc 100%); }
.cg-foot .blob { position: absolute; pointer-events: none; }
.cg-foot .inner { position: relative; max-width: 1840px; margin: 0 auto; }
.cg-foot .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px clamp(48px,6vw,140px); }
.cg-foot .about { flex: 1 1 420px; max-width: 760px; }
.cg-foot .about .cg-wm { font-size: clamp(32px,2.2vw,46px); }
.cg-foot .motto { margin: clamp(22px,1.8vw,34px) 0 0; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(30px,2.6vw,54px); line-height: 1.12; color: var(--cg-navy); text-wrap: balance; }
.cg-foot .motto i, .cg-it { font-style: italic; color: var(--cg-blue); }
.cg-foot .note { margin: 14px 0 0 8px; font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-size: clamp(17px,1.1vw,21px); color: var(--cg-navy); opacity: 0.42; transform: rotate(-2deg); transform-origin: left; }
.cg-foot .cols { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 40px clamp(48px,5vw,110px); }
.cg-foot .col { display: flex; flex-direction: column; gap: 14px; }
.cg-foot .col .h { font-size: clamp(12px,0.75vw,14px); font-weight: 600; letter-spacing: 0.08em; color: var(--cg-gold-dark); }
.cg-foot .col a { font-size: clamp(16px,1.05vw,20px); color: var(--cg-navy); }
.cg-foot .col a:hover { color: var(--cg-blue); }
.cg-foot .col p { margin: 0; font-size: clamp(15px,1vw,19px); line-height: 1.55; color: var(--cg-muted); max-width: 300px; }
.cg-foot .col a.cta { align-self: flex-start; margin-top: 4px; background: var(--cg-navy); color: #fff; font-size: clamp(15px,0.95vw,18px); font-weight: 600; padding: clamp(13px,0.9vw,17px) clamp(24px,1.6vw,32px); border-radius: 999px; }
.cg-foot .col a.cta:hover { background: var(--cg-blue); color: #fff; }
.cg-foot .bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: clamp(56px,4.6vw,88px); padding-top: clamp(22px,1.6vw,30px); font-size: clamp(13px,0.85vw,16px); color: var(--cg-muted); }
.cg-foot .bottom::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,rgba(198,157,71,0.7) 0%,rgba(3,29,121,0.14) 30%,rgba(3,29,121,0.14) 70%,rgba(198,157,71,0) 100%); }
.cg-foot .bottom .legal { display: flex; gap: 22px; }
.cg-foot .bottom .legal a { color: var(--cg-muted); }
.cg-foot .bottom .legal a:hover { color: var(--cg-navy); }
.cg-foot .bottom .tag { font-family: Poppins, sans-serif; color: var(--cg-ink); }

/* ===== Reveal on scroll (set by the page script; no-JS pages stay visible) ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* ===== Compact footer (FAQ, Schedule a Demo) - 5.1s ===== */
.cg-foot--compact { padding: clamp(40px,3.2vw,64px) clamp(24px,5vw,96px) clamp(28px,2vw,36px); background: #f3f7fc; }
.cg-foot--compact::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,rgba(198,157,71,0) 0%,rgba(198,157,71,0.7) 20%,rgba(3,29,121,0.14) 50%,rgba(198,157,71,0.7) 80%,rgba(198,157,71,0) 100%); }
.cg-foot--compact .ctop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; }
.cg-foot--compact .brandline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.cg-foot--compact .brandline .cg-wm { font-size: clamp(26px,1.7vw,34px); }
.cg-foot--compact .brandline .motto { font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(18px,1.25vw,24px); color: var(--cg-navy); }
.cg-foot--compact .brandline .motto i { font-style: italic; color: var(--cg-blue); }
.cg-foot--compact .clinks { display: flex; flex-wrap: wrap; gap: 10px clamp(20px,2vw,36px); font-size: clamp(15px,0.95vw,18px); }
.cg-foot--compact .clinks a { color: var(--cg-navy); }
.cg-foot--compact .clinks a:hover { color: var(--cg-blue); }
.cg-foot--compact .cbottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(24px,2vw,36px); padding-top: clamp(16px,1.2vw,22px); border-top: 1px solid rgba(3,29,121,0.1); font-size: clamp(13px,0.85vw,15px); color: var(--cg-muted); }
.cg-foot--compact .cbottom .legal { display: flex; flex-wrap: wrap; gap: 22px; }
.cg-foot--compact .cbottom .legal a { color: var(--cg-muted); }
.cg-foot--compact .cbottom .legal a:hover { color: var(--cg-navy); }
.cg-foot--compact .cbottom .tag { font-family: Poppins, sans-serif; color: var(--cg-ink); }

/* ===== 5.1t - Bill 9/26: "shrink everything about 20%" =====
   Desktop only (1081px and up). Phones keep full size so body text stays readable.
   zoom also shrinks vh/vw units, so anything meant to fill the screen divides by 0.8. */
@media (min-width: 1081px) {
    html { zoom: 0.8; }
}

/* ===== 5.1u - Bill 9/26: the homepage hero was TALLER than the window, so "Start free" and
   "See how it works" sat below the fold on his 27in monitor. Cause: the design's rule
   max(clamp(760px,112vh,1400px),56vw) - 112% of the screen height, or 56% of the screen WIDTH
   on wide monitors (taller still). Now the hero is exactly the visible window: full width,
   full height, never taller, so the buttons are always on screen. svh = the visible height. */
.cg-hero { height: 100vh !important; height: 100svh !important; min-height: 560px; }
@media (min-width: 1081px) {
    /* zoom 0.8 also shrinks vh, so ask for 125% to get exactly one screen */
    .cg-hero { height: 125vh !important; height: 125svh !important; min-height: 640px; }
}
