/* ============================================================
   Geoport — Theme tokens & color presets
   Switch the entire site by setting  <html data-theme="orange">
   28 presets ship below (>= your 25 minimum). Add more freely.
   ============================================================ */

:root {
  /* Typography — from the Pet Rescue prototype: Bitter for headings, Verdana
     for body. Bitter is loaded from Google Fonts in each page's <head>;
     Verdana is a system font on Windows and macOS, so the stack below carries
     real fallbacks for Linux and anything else that lacks it. */
  --font-head: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-body: Verdana, Geneva, 'DejaVu Sans', system-ui, sans-serif;

  /* Brand — overridden per preset. Defaults = authentic Geoport. */
  --primary:        #ff5e14;   /* accent / buttons / links */
  /* Soft glow of the accent — follows whatever accent colour is chosen, so a
     coloured halo never stays orange after the theme is changed. */
  --primary-glow:   color-mix(in srgb, var(--primary) 32%, transparent);
  --primary-dark:   #e04e0a;
  --primary-light:  #ff8400;
  --secondary:      #34ccff;   /* cyan highlights */
  --navy:           #001d67;   /* dark headings & dark sections */
  --navy-2:         #001447;

  /* ---- Neutrals ----
     ⚠️ These are the two colours EVERY paragraph on the site is painted with,
     so they decide whether the site is readable. Measured against #ffffff:
        old  --text  #5b7d9a = 4.33 : 1   ← below the 4.5 minimum
        old  --muted #7886a0 = 3.67 : 1   ← well below
     Both failed on ALL 28 themes, because these are shared by every preset —
     so it read as slightly washed out everywhere and nobody could point at
     which theme was wrong. Darkened until both pass with room to spare.

     ⚠️ `--heading` is the colour of TEXT that must contrast with the page.
     `--navy` is the dark SURFACE colour used by dark bands. They are not the
     same job: dark mode flips --heading to white but leaves --navy dark,
     because those bands stay dark in both modes. Never paint text with
     --navy — that is why the site name and the menu button vanished in dark
     mode until this was separated. */
  --heading:        var(--navy);
  --text:           #46647f;   /* 5.75 : 1 on white */
  --muted:          #5c6a82;   /* 5.60 : 1 on white */
  /* Writing that sits ON the accent colour (buttons, chips). Set per theme
     below wherever the accent is too light for white, and recomputed at runtime
     from whatever accent is actually in force — see Geo.applyOnPrimary(). */
  --on-primary:     #ffffff;
  /* ⚠️ The accent has TWO jobs and they need different colours.
     As a BACKGROUND (buttons, icons) it must stay the exact brand colour.
     As TEXT (links, the active nav item, eyebrows) it has to be readable on the
     page behind it — and a deep accent on a dark page is not. The active nav
     link measured 2.16 : 1 in dark mode: there, but unreadable.
     `--primary-text` is the accent adjusted until it is legible, worked out at
     runtime from whatever accent is in force — see Geo.applyOnPrimary(). Paint
     text with THIS; keep --primary for backgrounds. */
  --primary-text:   var(--primary);
  --bg:             #ffffff;
  --bg-alt:         #f2f9ff;
  --bg-tint:        #e6f4ff;
  --border:         #e1e6ff;
  --white:          #ffffff;
  --card:           #ffffff;   /* card / panel surfaces (flips in dark mode) */
  --dark:           #000e30;

  /* Derived / UI */
  --radius:         6px;
  --radius-lg:      14px;
  --shadow:         0 10px 30px rgba(0, 29, 103, .08);
  --shadow-lg:      0 20px 50px rgba(0, 29, 103, .14);
  --container:      1200px;
  --gutter:         24px;
  --header-h:       92px;
  --ease:           cubic-bezier(.25, .8, .25, 1);
  /* Warning / success writing. #ef4444 was used raw and reads 3.76 : 1 on a
     white card and 4.37 on a dark one — no single red clears 4.5 on both, so
     it is a token and the dark block below flips it. */
  --danger-text:    #c81e1e;
  --ok-text:        #0f7a4a;
}

/* Optional global dark mode (site-wide), independent of accent preset */
/* ⚠️ NEUTRAL ON PURPOSE. Every surface here used to be navy — #0a1430, #0e1b3d,
   #101d42 — and because this block is independent of the accent preset, those
   values were the SAME under all 29 themes. Dark mode therefore threw the theme
   away: a maroon site, an emerald site and an ocean site all turned the same
   navy-blue, and it was the cloned courier's blue at that. Visitors get here
   without touching anything — prefers-color-scheme alone is enough — so this is
   the default experience for anyone whose machine is set to dark.
   Greys instead, so the accent is the only colour in the palette and every
   theme keeps its identity. The lightness ORDER is preserved exactly
   (dark < bg < bg-alt < card < bg-tint < border), so nothing that relied on one
   surface sitting above another has moved. Text and muted are neutralised too:
   grey panels with blue-grey writing on them reads worse than either choice
   made whole. Measured after the change, not assumed — see the contrast sweep. */
:root[data-mode="dark"] {
  --heading: #ffffff;
  --text:    #c9c9c9;
  --muted:   #9a9a9a;
  --bg:      #121212;
  --bg-alt:  #191919;
  --bg-tint: #242424;
  --border:  #333333;
  --card:    #1e1e1e;
  --dark:    #0b0b0b;
  --shadow:  0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  --danger-text: #ff9a9a;
  --ok-text:     #5fdba7;
}

/* ===================== 28 ACCENT PRESETS ===================== */
/* ---- petrescue — this template's default ----
   Taken from the Pet Rescue WordPress theme used as the design prototype:
   primary #953C40 (maroon), accent #F0B04C (gold), #373737 for dark bands.

   ⚠️ Only the five brand tokens are set here, exactly like every other preset.
   Do NOT hand-write --on-primary, --primary-text or the brand-name tokens into
   this rule: Geo.applyOnPrimary() computes those at runtime from whatever
   accent is actually in force, and a hardcoded value here would be silently
   overridden on the site while still fighting it in the editor. */
:root[data-theme="petrescue"]  { --primary:#953c40; --primary-dark:#752f32; --primary-light:#c4676b; --secondary:#f0b04c; --navy:#373737; }
:root[data-theme="orange"]     { --primary:#ff5e14; --primary-dark:#e04e0a; --primary-light:#ff8400; --secondary:#34ccff; --navy:#001d67; }
:root[data-theme="ocean"]      { --primary:#0a84ff; --primary-dark:#0669d1; --primary-light:#4aa8ff; --secondary:#00d0c0; --navy:#04214d; }
:root[data-theme="emerald"]    { --primary:#10b981; --primary-dark:#0b8f65; --primary-light:#34d399; --secondary:#0ea5e9; --navy:#053a2b; }
:root[data-theme="crimson"]    { --primary:#e11d48; --primary-dark:#be123c; --primary-light:#fb7185; --secondary:#f59e0b; --navy:#450a1a; }
:root[data-theme="violet"]     { --primary:#7c3aed; --primary-dark:#6027c4; --primary-light:#a78bfa; --secondary:#22d3ee; --navy:#2a1052; }
:root[data-theme="teal"]       { --primary:#0d9488; --primary-dark:#0a756b; --primary-light:#2dd4bf; --secondary:#f97316; --navy:#053633; }
:root[data-theme="royal"]      { --primary:#2540d4; --primary-dark:#1a30a8; --primary-light:#5b73f2; --secondary:#f5b301; --navy:#0a1440; }
:root[data-theme="sunset"]     { --primary:#f97316; --primary-dark:#ea580c; --primary-light:#fdba74; --secondary:#ec4899; --navy:#431407; }
:root[data-theme="gold"]       { --primary:#d4a017; --primary-dark:#b0850f; --primary-light:#f5c542; --secondary:#1e293b; --navy:#3a2e05; }
:root[data-theme="rose"]       { --primary:#f43f5e; --primary-dark:#e11d48; --primary-light:#fda4af; --secondary:#8b5cf6; --navy:#4c0519; }
:root[data-theme="indigo"]     { --primary:#4f46e5; --primary-dark:#3f38b8; --primary-light:#818cf8; --secondary:#06b6d4; --navy:#1e1b4b; }
:root[data-theme="lime"]       { --primary:#65a30d; --primary-dark:#4d7c0f; --primary-light:#a3e635; --secondary:#0891b2; --navy:#1a2e05; }
:root[data-theme="cyan"]       { --primary:#06b6d4; --primary-dark:#0891b2; --primary-light:#67e8f9; --secondary:#f43f5e; --navy:#083344; }
:root[data-theme="amber"]      { --primary:#f59e0b; --primary-dark:#d97706; --primary-light:#fcd34d; --secondary:#0ea5e9; --navy:#451a03; }
:root[data-theme="slate"]      { --primary:#475569; --primary-dark:#334155; --primary-light:#94a3b8; --secondary:#f97316; --navy:#0f172a; }
:root[data-theme="forest"]     { --primary:#166534; --primary-dark:#14532d; --primary-light:#4ade80; --secondary:#ca8a04; --navy:#052e16; }
:root[data-theme="magenta"]    { --primary:#c026d3; --primary-dark:#a21caf; --primary-light:#e879f9; --secondary:#14b8a6; --navy:#4a044e; }
:root[data-theme="steel"]      { --primary:#0e7490; --primary-dark:#155e75; --primary-light:#22d3ee; --secondary:#f59e0b; --navy:#083344; }
:root[data-theme="cherry"]     { --primary:#dc2626; --primary-dark:#b91c1c; --primary-light:#f87171; --secondary:#2563eb; --navy:#450a0a; }
:root[data-theme="grape"]      { --primary:#9333ea; --primary-dark:#7e22ce; --primary-light:#c084fc; --secondary:#f59e0b; --navy:#3b0764; }
:root[data-theme="skyblue"]    { --primary:#0284c7; --primary-dark:#0369a1; --primary-light:#38bdf8; --secondary:#fb923c; --navy:#082f49; }
:root[data-theme="coral"]      { --primary:#fb6f4c; --primary-dark:#ea580c; --primary-light:#fda4af; --secondary:#0d9488; --navy:#4a1505; }
:root[data-theme="navyblue"]   { --primary:#1e3a8a; --primary-dark:#172554; --primary-light:#3b82f6; --secondary:#f59e0b; --navy:#0b1220; }
:root[data-theme="mint"]       { --primary:#059669; --primary-dark:#047857; --primary-light:#6ee7b7; --secondary:#7c3aed; --navy:#022c22; }
:root[data-theme="bronze"]     { --primary:#b45309; --primary-dark:#92400e; --primary-light:#f59e0b; --secondary:#0e7490; --navy:#3a1e05; }
:root[data-theme="plum"]       { --primary:#a21caf; --primary-dark:#86198f; --primary-light:#d946ef; --secondary:#eab308; --navy:#3b0764; }
:root[data-theme="graphite"]   { --primary:#111827; --primary-dark:#030712; --primary-light:#4b5563; --secondary:#ff5e14; --navy:#000000; }
:root[data-theme="turquoise"]  { --primary:#14b8a6; --primary-dark:#0d9488; --primary-light:#5eead4; --secondary:#f43f5e; --navy:#042f2e; }
