/* =========================================================
   WFG BRAND TOKENS — canonical, pulled from the WFG Marketing
   Vault MCP (get_brand_guide). Do not invent off-palette colors,
   off-scale type, or alternate components.
   ========================================================= */

/* ---------- Fonts ----------
   Oswald (headings) + Nunito Sans (body/UI) load from Google Fonts via the
   <link> in index.html. This page intentionally diverges from the WFG brand
   guide (Plantin) to match the live Timeshare Fight page. */

:root {
  /* ---------- Color — Identity palette ---------- */
  --wfg-warm-gray:  #716D63;
  --wfg-gold:       #BC8C3D;
  --wfg-white:      #FFFFFF;

  /* ---------- Color — Site & magazine palette ---------- */
  --wfg-light-ice:  #E9F1F4;
  --wfg-light-gray: #F4F4F4;
  --wfg-warm-beige: #D8C9BC;
  --wfg-navy:       #24265C;
  --wfg-ocean:      #0066AD;
  --wfg-green:      #39B271;   /* CONVERSION ONLY — CTAs, links, active states */
  --wfg-green-hover:#2E9961;
  --wfg-near-black: #1A2034;   /* darkest value — never pure #000 */
  --wfg-deep:       #0C3145;   /* unified dark section background (replaces navy + green bg) */

  /* Dark-surface helpers (hero / reviews / free-kit sections) */
  --wfg-navy-panel: #123C52;   /* lead-form card on deep teal */
  --wfg-navy-line:  #1E4E66;   /* hairline on deep teal */

  /* ---------- Functional aliases ---------- */
  --wfg-text:           var(--wfg-near-black);
  --wfg-text-secondary: var(--wfg-warm-gray);
  --wfg-bg:             var(--wfg-white);
  --wfg-bg-alt:         var(--wfg-light-gray);
  --wfg-bg-warm:        var(--wfg-warm-beige);
  --wfg-bg-cool:        var(--wfg-light-ice);
  --wfg-cta:            var(--wfg-green);
  --wfg-link:           var(--wfg-green);
  --wfg-border:         #E0E0DC;

  /* ---------- Typography ---------- */
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Web type scale (clamp) */
  --type-display: clamp(40px, 5.5vw, 56px);
  --type-h1:      clamp(36px, 4.8vw, 48px);
  --type-h2:      clamp(28px, 3.6vw, 40px);
  --type-h3:      clamp(22px, 2.4vw, 28px);
  --type-h4:      18px;
  --type-body:    16px;
  --type-small:   14px;
  --type-caption: 12px;
  --type-stat:    clamp(48px, 6vw, 72px);

  /* ---------- Spacing ---------- */
  --space-xs:  4px;
  --space-s:   8px;
  --space-m:   16px;
  --space-l:   24px;
  --space-xl:  40px;
  --space-2xl: 64px;

  /* ---------- Radius ---------- */
  --radius-pill: 100px;
  --radius-s:    4px;
  --radius:      8px;
  --radius-l:    16px;
  --radius-btn:  6px;   /* buttons — rounded rectangle, not pill */

  /* ---------- Shadows ---------- */
  --shadow-sm:  0 1px 2px rgba(26, 32, 52, 0.06);
  --shadow-md:  0 8px 24px rgba(26, 32, 52, 0.08);
  --shadow-lg:  0 16px 40px rgba(26, 32, 52, 0.10);
  --shadow-cta: 0 4px 12px rgba(57, 178, 113, 0.25);

  /* ---------- Layout ---------- */
  --container-max:    1180px;
  --container-wide:   1320px;
  --container-narrow: 720px;
  --section-y: clamp(48px, 7vw, 88px);
  --section-x: clamp(20px, 4vw, 32px);
}

/* =========================================================
   BASE RESET + ELEMENT DEFAULTS
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--wfg-text);
  background: var(--wfg-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--wfg-near-black);
  margin: 0;
}
h1 { font-family: var(--font-body); font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-family: var(--font-body); font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.1;  letter-spacing: -0.01em; }
h3 { font-size: var(--type-h3); font-weight: 600; line-height: 1.2;  letter-spacing: 0; }
h4 { font-size: var(--type-h4); font-weight: 700; font-family: var(--font-body); line-height: 1.3; }

p { margin: 0; }

a { color: var(--wfg-link); }

/* Links — always underlined, 1px, 3px offset (brand spec) */
a.text-link {
  color: var(--wfg-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a.text-link:hover { color: var(--wfg-green-hover); }

button { font-family: var(--font-body); cursor: pointer; }

/* =========================================================
   SHARED PRIMITIVES — container, eyebrow, buttons
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-x);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wfg-gold);
  margin: 0 0 var(--space-m);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-s);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius-btn);
  padding: 14px 24px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn--primary {
  background: var(--wfg-green);
  color: var(--wfg-white);
}
.btn--primary:hover { background: var(--wfg-green-hover); }
.btn--secondary {
  background: transparent;
  border-color: var(--wfg-navy);
  color: var(--wfg-navy);
}
.btn--secondary:hover { background: var(--wfg-navy); color: var(--wfg-white); }
.btn--ghost-dark {
  background: transparent;
  border-color: var(--wfg-white);
  color: var(--wfg-white);
}
.btn--ghost-dark:hover { background: var(--wfg-white); color: var(--wfg-navy); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* Visually-hidden (a11y) */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
