/* ============================================
   OPULENT FINANCIAL GROUP — Base Reset & Tokens
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.4s ease, color 0.4s ease;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 400; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus { top: 16px; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Design Tokens — Opulent Financial
   ============================================ */
:root {
  /* --- Colors: Light Mode --- */
  --color-navy: #0B1D3A;
  --color-midnight: #132B4F;
  --color-gold: #C9A96E;
  --color-gold-light: #E8D5AA;
  --color-gold-dark: #A88B4A;
  --color-warm-white: #F8F6F1;
  --color-ivory: #FDFCF9;
  --color-text-dark: #1A1A2E;
  --color-text-light: #E8E6E1;
  --color-text-muted-light: #8B8B96;
  --color-text-muted-dark: #9A9AA8;

  /* Semantic mappings — light mode default */
  --color-bg: var(--color-warm-white);
  --color-surface: var(--color-ivory);
  --color-text: var(--color-text-dark);
  --color-text-muted: var(--color-text-muted-light);
  --color-border: #D4D1CA;
  --color-accent: var(--color-gold);
  --color-accent-hover: #B8974F;

  /* --- Typography --- */
  --font-display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1.8rem + 3.2vw, 5rem);

  /* --- Spacing (4px grid) --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Layout --- */
  --container-max: 1240px;
  --container-wide: 1440px;
  --container-narrow: 720px;
  --gutter: clamp(1rem, 3vw, 2rem);

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 29, 58, 0.12);

  /* --- Transitions --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Border radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ============================================
   Dark Mode
   ============================================ */
[data-theme="dark"] {
  --color-bg: var(--color-navy);
  --color-surface: var(--color-midnight);
  --color-text: var(--color-text-light);
  --color-text-muted: var(--color-text-muted-dark);
  --color-border: rgba(201, 169, 110, 0.15);
  --color-accent: var(--color-gold);
  --color-accent-hover: var(--color-gold-light);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ============================================
   Utility: Container
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}
