/* ===== Theme overrides =====
   Default theme = Royal Blue (defined in style.css).
   Other themes are chosen from the header selector and saved on the visitor's browser. */

/* 1. Midnight Gold */
html[data-theme="gold"] {
  --navy: #0d0b08;
  --navy-2: #1a1610;
  --blue: #c9962b;
  --blue-light: #e8b84a;
  --gold: #f5d06f;
  --silver: #d8d0bd;
  --bg: #faf7f0;
  --text: #2a2418;
  --muted: #6e6552;
  --shadow: 0 10px 30px rgba(40, 30, 5, 0.14);
}
html[data-theme="gold"] .hero { background: radial-gradient(circle at 80% 20%, #4a3610 0%, #0d0b08 60%, #050403 100%); }
html[data-theme="gold"] .btn-primary { color: #1a1200; }
html[data-theme="gold"] .btn-primary:hover { background: #e8b84a; }
html[data-theme="gold"] .card { border-top-color: var(--gold); }
html[data-theme="gold"] .stats { background: #1a1610; }

/* 2. Emerald Green */
html[data-theme="emerald"] {
  --navy: #062419;
  --navy-2: #0b3327;
  --blue: #17875d;
  --blue-light: #26b57c;
  --gold: #f2c14e;
  --silver: #c4e0d2;
  --bg: #f3f8f5;
  --text: #1b2b24;
  --muted: #56695f;
  --shadow: 0 10px 30px rgba(6, 36, 25, 0.13);
}
html[data-theme="emerald"] .hero { background: radial-gradient(circle at 80% 20%, #0f5a40 0%, #062419 60%, #03130d 100%); }
html[data-theme="emerald"] .card { border-top-color: var(--blue); }
html[data-theme="emerald"] .stats { background: #0b3327; }

/* 3. Clean Light (white header, light hero) */
html[data-theme="light"], html[data-theme="rosegold"] {
  --navy: #14213d;
  --navy-2: #1d2f57;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --gold: #e0a526;
  --silver: #5b6b86;
  --bg: #f6f8fc;
  --text: #1f2a40;
  --muted: #5d6779;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.1);
}
html[data-theme="light"], html[data-theme="rosegold"] .header { background: #ffffff; color: var(--navy); border-bottom: 1px solid #e4e9f2; }
html[data-theme="light"], html[data-theme="rosegold"] .nav-links a { color: var(--navy); }
html[data-theme="light"], html[data-theme="rosegold"] .nav-links a:hover,
html[data-theme="light"], html[data-theme="rosegold"] .nav-links a.active { color: var(--blue); }
html[data-theme="light"], html[data-theme="rosegold"] .menu-toggle { color: var(--navy); }
html[data-theme="light"], html[data-theme="rosegold"] .hero { background: linear-gradient(135deg, #eaf1ff 0%, #ffffff 100%); }
html[data-theme="light"], html[data-theme="rosegold"] .hero h1 { color: var(--navy); }
html[data-theme="light"], html[data-theme="rosegold"] .hero h1 span { color: var(--blue); }
html[data-theme="light"], html[data-theme="rosegold"] .hero p { color: var(--muted); }
html[data-theme="light"], html[data-theme="rosegold"] .hero-tags span { color: var(--navy); border-color: #c8d4ea; }
html[data-theme="light"], html[data-theme="rosegold"] .hero-logo { background: #ffffff; box-shadow: var(--shadow); }
html[data-theme="light"], html[data-theme="rosegold"] .hero-logo p { color: var(--muted) !important; }
html[data-theme="light"], html[data-theme="rosegold"] .btn-outline { border-color: var(--navy); color: var(--navy); }
html[data-theme="light"], html[data-theme="rosegold"] .btn-outline:hover { background: var(--navy); color: #fff; }
html[data-theme="light"], html[data-theme="rosegold"] .page-banner { background: linear-gradient(135deg, #eaf1ff, #ffffff); }
html[data-theme="light"], html[data-theme="rosegold"] .page-banner h1 { color: var(--navy); }
html[data-theme="light"], html[data-theme="rosegold"] .page-banner p { color: var(--muted); }
html[data-theme="light"], html[data-theme="rosegold"] .stats { background: var(--navy); }
html[data-theme="light"], html[data-theme="rosegold"] .btn-gold { background: var(--gold); color: var(--navy); }


/* Theme selector control in the header */
.theme-select {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(201, 209, 220, 0.45);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  width: auto;
  margin-right: 12px;
}
.theme-select option { color: #1d2535; background: #ffffff; }
.nav-tools { display: flex; align-items: center; }
@media (max-width: 900px) {
  .nav-tools { margin-left: auto; margin-right: 12px; }
  .theme-select { margin-right: 0; padding: 6px 10px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links { gap: 18px; }
}

/* ===== More colour themes ===== */

/* 5. Royal Purple */
html[data-theme="purple"] {
  --navy: #1c0f3d; --navy-2: #2b1763; --blue: #7c3aed; --blue-light: #a78bfa;
  --gold: #f5c451; --silver: #d6cdf0; --bg: #f8f6fd; --text: #251c3d; --muted: #645a80;
  --shadow: 0 10px 30px rgba(28, 15, 61, 0.13);
}
html[data-theme="purple"] .hero { background: radial-gradient(circle at 80% 20%, #4c2a9e 0%, #1c0f3d 60%, #0d0722 100%); }
html[data-theme="purple"] .card { border-top-color: var(--blue); }
html[data-theme="purple"] .stats { background: #2b1763; }

/* 6. Ocean Teal */
html[data-theme="ocean"] {
  --navy: #062c3a; --navy-2: #0b4256; --blue: #0e7490; --blue-light: #22b8cf;
  --gold: #fbbf24; --silver: #bfe6ef; --bg: #f3fafc; --text: #0f2e3a; --muted: #557582;
  --shadow: 0 10px 30px rgba(6, 44, 58, 0.13);
}
html[data-theme="ocean"] .hero { background: radial-gradient(circle at 80% 20%, #0f6a80 0%, #062c3a 60%, #03161e 100%); }
html[data-theme="ocean"] .card { border-top-color: var(--blue-light); }
html[data-theme="ocean"] .stats { background: #0b4256; }

/* 7. Ruby Red */
html[data-theme="ruby"] {
  --navy: #2a0a10; --navy-2: #3d0f18; --blue: #be123c; --blue-light: #f43f5e;
  --gold: #fbbf24; --silver: #f1c9d1; --bg: #fdf5f6; --text: #2b1218; --muted: #7a5560;
  --shadow: 0 10px 30px rgba(42, 10, 16, 0.13);
}
html[data-theme="ruby"] .hero { background: radial-gradient(circle at 80% 20%, #7a1a2e 0%, #2a0a10 60%, #12040a 100%); }
html[data-theme="ruby"] .card { border-top-color: var(--blue); }
html[data-theme="ruby"] .stats { background: #3d0f18; }


/* ===== Unique themes ===== */

/* Sunset Orange (warm dark) */
html[data-theme="sunset"] {
  --navy: #1f0f08; --navy-2: #2e170c; --blue: #ea580c; --blue-light: #fb923c;
  --gold: #fde68a; --silver: #f5d5bf; --bg: #fff7f1; --text: #2b1a10; --muted: #7a5a48;
  --shadow: 0 10px 30px rgba(31, 15, 8, 0.14);
}
html[data-theme="sunset"] .hero { background: radial-gradient(circle at 80% 20%, #9a3412 0%, #1f0f08 60%, #0c0503 100%); }
html[data-theme="sunset"] .card { border-top-color: var(--blue); }
html[data-theme="sunset"] .stats { background: #2e170c; }

/* Neon Cyan (dark tech) */
html[data-theme="neon"] {
  --navy: #04111c; --navy-2: #0a2233; --blue: #0891b2; --blue-light: #22d3ee;
  --gold: #facc15; --silver: #bde9f5; --bg: #f0fbfd; --text: #0b2433; --muted: #4d6b7a;
  --shadow: 0 10px 30px rgba(4, 17, 28, 0.14);
}
html[data-theme="neon"] .hero { background: radial-gradient(circle at 80% 20%, #0e4f63 0%, #04111c 60%, #010709 100%); }
html[data-theme="neon"] .card { border-top-color: var(--blue-light); }
html[data-theme="neon"] .stats { background: #0a2233; }
html[data-theme="neon"] .btn-primary { background: linear-gradient(135deg, #0891b2, #22d3ee); color: #03131c; }

/* Rose Gold (soft light) */
html[data-theme="rosegold"] {
  --navy: #4a2a2a; --navy-2: #6b3d3d; --blue: #b76e5e; --blue-light: #d4917f;
  --gold: #d4a373; --silver: #8a6a64; --bg: #fdf6f3; --text: #3d2622; --muted: #7d5f58;
  --shadow: 0 10px 30px rgba(74, 42, 42, 0.12);
}
html[data-theme="rosegold"] .hero { background: linear-gradient(135deg, #f9e4dc 0%, #fdf6f3 100%); }
html[data-theme="rosegold"] .card { border-top-color: var(--blue); }
html[data-theme="rosegold"] .stats { background: #4a2a2a; }
html[data-theme="rosegold"] .btn-primary { color: #fff; }

/* ===== Theme values for dark sections, footer and legal tint ===== */
html[data-theme="gold"] {
  --dk-bg: #0d0b08; --dk-card1: #1f1a10; --dk-card2: #161209; --dk-border: #3a2f15;
  --dk-text: #d8cfb6; --dk-accent: #c9962b; --dk-accent2: #e8b84a; --dk-accent-soft: #e8b84a;
  --dk-light: #f5d06f; --footer-bg: #080705; --section-tint: #f6f0e0;
}
html[data-theme="emerald"] {
  --dk-bg: #062419; --dk-card1: #0b3327; --dk-card2: #082a20; --dk-border: #134a38;
  --dk-text: #bfe0cf; --dk-accent: #17875d; --dk-accent2: #26b57c; --dk-accent-soft: #26b57c;
  --dk-light: #6fe0b0; --footer-bg: #041710; --section-tint: #eaf5ef;
}
html[data-theme="purple"] {
  --dk-bg: #1c0f3d; --dk-card1: #2b1763; --dk-card2: #221252; --dk-border: #3d2a7a;
  --dk-text: #d6cdf0; --dk-accent: #7c3aed; --dk-accent2: #a78bfa; --dk-accent-soft: #a78bfa;
  --dk-light: #c4b5fd; --footer-bg: #140a2c; --section-tint: #f1edfb;
}
html[data-theme="ocean"] {
  --dk-bg: #062c3a; --dk-card1: #0b4256; --dk-card2: #083746; --dk-border: #145a70;
  --dk-text: #bfe6ef; --dk-accent: #0e7490; --dk-accent2: #22b8cf; --dk-accent-soft: #22b8cf;
  --dk-light: #67e0f0; --footer-bg: #041d27; --section-tint: #e6f5f9;
}
html[data-theme="ruby"] {
  --dk-bg: #2a0a10; --dk-card1: #3d0f18; --dk-card2: #320c14; --dk-border: #5a1a27;
  --dk-text: #f1c9d1; --dk-accent: #be123c; --dk-accent2: #f43f5e; --dk-accent-soft: #f43f5e;
  --dk-light: #fda4af; --footer-bg: #16050a; --section-tint: #fbeef1;
}
html[data-theme="light"] {
  --dk-bg: #14213d; --dk-card1: #1d2f57; --dk-card2: #18284a; --dk-border: #2b3f6b;
  --dk-text: #d6dff0; --dk-accent: #2563eb; --dk-accent2: #3b82f6; --dk-accent-soft: #3b82f6;
  --dk-light: #93c5fd; --footer-bg: #0f1a30; --section-tint: #eef3fb;
}

/* Royal Blue (default) dark-section values also used by the tint */
:root { --section-tint: #f4f7fc; }

/* Make sure every background follows the chosen theme */
html[data-theme] body { background: var(--bg); }
html[data-theme] .section-alt { background: linear-gradient(180deg, var(--white), var(--bg)); }

html[data-theme="sunset"] {
  --dk-bg: #1f0f08; --dk-card1: #33190c; --dk-card2: #28120a; --dk-border: #4a2513;
  --dk-text: #f0d6c4; --dk-accent: #ea580c; --dk-accent2: #fb923c; --dk-accent-soft: #fb923c;
  --dk-light: #fdba74; --footer-bg: #140a05; --section-tint: #fff1e6;
}
html[data-theme="neon"] {
  --dk-bg: #04111c; --dk-card1: #0a2233; --dk-card2: #071a28; --dk-border: #134a5e;
  --dk-text: #bde9f5; --dk-accent: #0891b2; --dk-accent2: #22d3ee; --dk-accent-soft: #22d3ee;
  --dk-light: #67e8f9; --footer-bg: #020a12; --section-tint: #e5f8fc;
}
html[data-theme="rosegold"] {
  --dk-bg: #4a2a2a; --dk-card1: #5f3636; --dk-card2: #533030; --dk-border: #7a4b4b;
  --dk-text: #f3dcd4; --dk-accent: #b76e5e; --dk-accent2: #d4917f; --dk-accent-soft: #d4917f;
  --dk-light: #e8b4a6; --footer-bg: #3a2020; --section-tint: #fbeee9;
}
