/* =========================
   Sparkle Volt — Luxury Premium style
   Single style.css for all pages
   - Mobile-first, flex-only layouts
   - Gold accents, premium fonts, sophisticated dark surfaces
   - Brand colors respected as supporting palette
   - Includes mobile menu & cookie consent components
   ========================= */

/* ---------- CSS Reset & Base Normalize ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
button { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

/* ---------- Theme Variables (with fallbacks where needed) ---------- */
:root {
  /* Luxury core */
  --gold: #D4AF37;
  --gold-600: #C99C2C;
  --gold-700: #B8891F;
  --ink: #0E0F14; /* page background */
  --surface: #12141B; /* panels */
  --surface-2: #161824; /* alternate panel */
  --divider: rgba(212, 175, 55, 0.28);

  /* Brand palette */
  --brand-primary: #0A3D91; /* navy */
  --brand-secondary: #00C2AE; /* teal */
  --brand-accent: #F4F8FF; /* light accent */

  /* Text */
  --text: #EDEFF3;
  --text-muted: #B8BFCC;
  --ink-900: #111318;
  --ink-800: #1A1E27;
  --ink-700: #2A2F3A;
  --ink-100: #F5F7FA;

  /* Effects */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  --shadow-1: 0 6px 18px rgba(0,0,0,0.18);
  --shadow-2: 0 12px 28px rgba(0,0,0,0.24);
  --transition: 200ms ease;
}

/* ---------- Base Typography ---------- */
body {
  font-family: Verdana, "Trebuchet MS", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, system-ui, Arial, sans-serif; margin: 0 0 12px; color: #FFFFFF; letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.25; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.35; }
p { margin: 0 0 14px; color: var(--text); }
small { color: var(--text-muted); }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
}

/* Links */
a { color: var(--brand-secondary); transition: color var(--transition), opacity var(--transition), background-color var(--transition), border-color var(--transition); }
a:hover { color: #7BE7DB; }
a.button, .cta-group a, .btn { color: #0C0F14; }

/* ---------- Layout Primitives (Flex-only) ---------- */
.container {
  display: flex; /* flex-only requirement */
  flex-direction: column;
  gap: 0; /* container holds .content-wrapper */
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex; /* flex-only requirement */
  flex-direction: column; /* mobile-first */
  gap: 20px;
}

section { margin: 0; border-top: 1px solid transparent; }

/* ---------- Header & Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(0deg, var(--surface), var(--surface));
  border-bottom: 1px solid var(--divider);
  backdrop-filter: blur(6px);
}
header .content-wrapper {
  padding: 14px 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo img { height: 32px; width: auto; }

.main-nav { display: none; }
.main-nav a {
  color: var(--text);
  opacity: 0.9;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.main-nav a:hover { color: #FFF; border-color: rgba(212,175,55,0.25); background: rgba(212,175,55,0.08); }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  color: #111;
  background: var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow-1);
}
.mobile-menu-toggle:hover { background: var(--gold-600); }

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .mobile-menu-toggle { display: none; }
  .logo img { height: 36px; }
}

/* ---------- Mobile Menu (off-canvas) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(14,15,20,0.66);
  backdrop-filter: blur(6px);
  z-index: 1400;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 300ms ease, opacity 300ms ease;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open { transform: translateX(0); opacity: 1; pointer-events: auto; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 82%; max-width: 360px; min-width: 300px;
  background: var(--surface-2);
  padding: 20px;
  border-left: 1px solid var(--divider);
  box-shadow: var(--shadow-2);
}
.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #141822;
  color: #fff;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 10px;
}
.mobile-nav a:hover { background: #192032; border-color: rgba(212,175,55,0.36); }

.mobile-menu-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(20,22,30,0.9);
  color: #fff;
  border: 1px solid rgba(212,175,55,0.28);
}
.mobile-menu-close:hover { background: rgba(25,27,36,0.95); }

/* ---------- Hero Section ---------- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}
.hero .content-wrapper {
  padding: 40px 0 20px;
}
.hero h1 {
  color: #FFF;
  letter-spacing: 0.3px;
}
.hero p { color: var(--text-muted); }

.hero ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.hero ul li { position: relative; padding-left: 28px; color: var(--text); }
.hero ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.18);
}

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-group a {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #121319;
  box-shadow: var(--shadow-1);
}
.cta-group a:hover { background: var(--gold-600); border-color: var(--gold-600); }
.cta-group a:nth-child(2) {
  background: transparent; color: #FFF;
  border-color: rgba(212,175,55,0.4);
}
.cta-group a:nth-child(2):hover { background: rgba(212,175,55,0.08); }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px;
  color: var(--text-muted);
}
.trust span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.28);
  background: #151823;
}

/* ---------- Generic Sections & Text Blocks ---------- */
section .content-wrapper { padding: 28px 0; }

.text-section {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
  border: 1px solid rgba(212,175,55,0.18);
  background: #151823;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}
.text-section p { color: var(--text); }
.text-section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.text-section ul li { display: flex; align-items: center; gap: 10px; color: var(--text); }
.text-section ul li img { width: 18px; height: 18px; filter: contrast(0.9) brightness(1.3); }

/* List styles for legal/long content */
ul, ol { color: var(--text); }
ol { padding-left: 20px; }

/* Links inside content */
.content-wrapper a { color: var(--brand-secondary); border-bottom: 1px solid rgba(0,194,174,0.35); }
.content-wrapper a:hover { color: #7BE7DB; border-bottom-color: rgba(0,194,174,0.6); }

/* ---------- Testimonials (light for readability) ---------- */
.testimonial-card {
  display: flex; align-items: center; gap: 14px; padding: 20px; margin-bottom: 20px;
  background: var(--brand-accent); /* light bg */
  color: #1A1A1A; /* dark text */
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(10, 61, 145, 0.08);
}
.testimonial-card p { color: #222; }
.testimonial-card strong { color: #111; }

/* ---------- Cards (generic) ---------- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  margin-bottom: 20px; position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border-radius: var(--radius-m);
  background: #151823; border: 1px solid rgba(212,175,55,0.18);
  box-shadow: var(--shadow-1);
}
.card .card-actions { display: flex; gap: 10px; }

/* ---------- Content Grid (flex-only) ---------- */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }

/* ---------- Text-Image Section (flex-only) ---------- */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* ---------- Feature Item (flex-only) ---------- */
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---------- Footer ---------- */
footer {
  background: #0F1218;
  border-top: 1px solid var(--divider);
}
footer .content-wrapper { padding: 28px 0; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.footer-nav a {
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: 8px; border: 1px solid transparent;
}
.footer-nav a:hover { color: #FFF; border-color: rgba(212,175,55,0.25); background: rgba(212,175,55,0.07); }

/* ---------- Legal pages readability ---------- */
main section:nth-child(n+2) .text-section, /* generic */
main .content-wrapper > ul,
main .content-wrapper > ol
{ color: var(--text); }

/* ---------- Buttons & Controls ---------- */
.btn, .button-primary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #111;
  font-weight: 700;
  box-shadow: var(--shadow-1);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.btn:hover, .button-primary:hover { background: var(--gold-600); border-color: var(--gold-600); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px;
  background: transparent; color: #FFF;
  border: 1px solid rgba(212,175,55,0.4);
}
.btn-ghost:hover { background: rgba(212,175,55,0.08); }

/* ---------- Mandatory Spacing Pattern (as requested) ---------- */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* ---------- Additional Spacing & Flow ---------- */
main section { padding: 0; }
main section + section { border-top: 1px solid rgba(212,175,55,0.12); }
.content-wrapper > h2 { padding-top: 6px; }
.text-section + .text-section, .testimonial-card + .testimonial-card { margin-top: 20px; }

/* ---------- Accessibility & Micro-interactions ---------- */
[role="button"], a, button { transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }

/* ---------- Responsive Layout Adjustments ---------- */
@media (min-width: 768px) {
  .hero .content-wrapper { padding: 56px 0 24px; }
  header .content-wrapper { padding: 16px 0; }
}

@media (min-width: 1024px) {
  .container { padding: 0 28px; }
  .content-wrapper { gap: 24px; }
}

/* ---------- Tables (if any appear) ---------- */
table { width: 100%; border-collapse: collapse; border: 1px solid rgba(212,175,55,0.25); background: #141823; color: var(--text); border-radius: 10px; overflow: hidden; display: block; }
tr { display: flex; flex-wrap: nowrap; border-bottom: 1px solid rgba(212,175,55,0.12); }
th, td { padding: 12px; flex: 1 1 0; display: flex; align-items: center; }
th { background: #171B27; color: #FFF; font-weight: 700; }

/* ---------- Forms (generic text links as forms are referenced) ---------- */
input, select, textarea {
  background: #0F1218; color: #FFF;
  border: 1px solid rgba(212,175,55,0.28);
  border-radius: 10px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.2); }
label { color: var(--text-muted); }

/* ---------- Highlight brand accents within luxury frame ---------- */
.mark-accent, .highlight { color: var(--brand-secondary); }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(212,175,55,0.35); background: #151A25; color: #FFF; }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 1600;
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px;
  background: #0F1218;
  color: var(--text);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  transform: translateY(16px);
  opacity: 0; pointer-events: none;
  transition: transform 300ms ease, opacity 300ms ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { composes: btn; }
.cookie-banner .btn-accept { background: var(--gold); border: 1px solid var(--gold); color: #111; }
.cookie-banner .btn-accept:hover { background: var(--gold-600); border-color: var(--gold-600); }
.cookie-banner .btn-reject { background: transparent; border: 1px solid rgba(212,175,55,0.4); color: #FFF; border-radius: 999px; padding: 12px 18px; }
.cookie-banner .btn-reject:hover { background: rgba(212,175,55,0.08); }
.cookie-banner .btn-settings { background: var(--brand-secondary); border: 1px solid #00AF9D; color: #071217; border-radius: 999px; padding: 12px 18px; }
.cookie-banner .btn-settings:hover { background: #00AF9D; border-color: #009C8C; }

/* ---------- Cookie Preferences Modal ---------- */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 1700;
  background: rgba(10,12,18,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 250ms ease;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: auto; }

.cookie-modal {
  display: flex; flex-direction: column; gap: 16px;
  width: 92%; max-width: 720px;
  background: #12141B; color: var(--text);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  padding: 18px;
  transform: translateY(10px);
  transition: transform 250ms ease;
}
.cookie-modal-overlay.open .cookie-modal { transform: translateY(0); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid rgba(212,175,55,0.18); border-radius: 10px; background: #151A25; }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle (for Analytics/Marketing) */
.toggle { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #2A2F3A; border: 1px solid rgba(212,175,55,0.25); transition: background var(--transition), border-color var(--transition); }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #EDEDED; transition: transform var(--transition); }
.toggle.on { background: var(--brand-secondary); border-color: #00AF9D; }
.toggle.on::after { transform: translateX(20px); }

/* ---------- Helpers & Utilities ---------- */
.hr { height: 1px; background: var(--divider); }
.center { display: flex; align-items: center; justify-content: center; }
.spacer-20 { height: 20px; }
.spacer-40 { height: 40px; }

/* ---------- Specific Content Tweaks ---------- */
/* Make list blocks look neat across pages */
.content-wrapper > ul, .content-wrapper > ol {
  background: #151823;
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 12px; padding: 14px 18px; margin: 0;
  box-shadow: var(--shadow-1);
}
.content-wrapper > p:last-child { margin-bottom: 0; }

/* Ensure adequate spacing between cards/blocks */
.content-wrapper > * + * { margin-top: 6px; }

/* ---------- Desktop refinements ---------- */
@media (min-width: 992px) {
  .content-wrapper { flex-direction: column; }
  .hero .content-wrapper { flex-direction: column; }

  /* Header nav spacing */
  .main-nav a { padding: 10px 14px; }
}

/* ---------- Print safety (optional) ---------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  body { background: #FFF; color: #000; }
  a { color: #000; }
}

/* ---------- Compliance: Flex-only check helpers ---------- */
/* All layout groupings explicitly use display:flex above. No grid/columns used. */
