/* ==========================================================================
   main.css — Global tokens + base styles
   Rule: colors, spacing, and type NEVER get hardcoded in component CSS.
   Always reference the variables defined here.
   ========================================================================== */

:root {
  /* ---- Brand palette (derived from Bizora logo) ---- */
  --color-navy-deep: #0A1F44;
  --color-navy: #123B72;
  --color-navy-soft: #1E4E8C;
  --color-gold: #D9A62E;
  --color-gold-light: #F0C862;
  --color-ink: #1B2430;
  --color-ink-soft: #4A5568;
  --color-cloud: #F7F8FA;
  /* Page background. Sampled from the supplied reference (#E9EAEE) so white
     cards read as distinctly raised surfaces rather than blending in. */
  --color-page: #E9EAEE;
  --color-white: #FFFFFF;
  --color-border: #DCE1E9;
  --color-success: #2F9E5B;
  --color-danger: #C0392B;

  /* ---- Typography ---- */
  --font-display: "Sora", "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.8rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-lg: 1.15rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;

  /* ---- Spacing scale ---- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* ---- Layout ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1180px;
  --shadow-sm: 0 2px 8px rgba(10, 31, 68, 0.08);
  /* Resting elevation for cards. Two thin layers read as depth on low-contrast
     screens without the large blur radius that costs GPU time on low-end
     Android. */
  --shadow-card: 0 1px 2px rgba(10, 31, 68, 0.06), 0 4px 12px rgba(10, 31, 68, 0.10);
  --shadow-card-hover: 0 2px 4px rgba(10, 31, 68, 0.08), 0 12px 24px rgba(10, 31, 68, 0.14);
  --shadow-md: 0 8px 24px rgba(10, 31, 68, 0.12);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy-deep);
  line-height: 1.2;
  margin: 0 0 var(--space-sm) 0;
}

h1 { font-size: var(--fs-3xl); font-weight: 700; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-xl); font-weight: 600; }

p { margin: 0 0 var(--space-sm) 0; color: var(--color-ink-soft); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-xl) auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
  color: var(--color-navy-deep);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { box-shadow: var(--shadow-md); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy-deep);
  border: 2px solid var(--color-navy-deep);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: var(--color-navy-deep);
  color: var(--color-white);
  box-shadow: var(--shadow-card-hover);
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

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

/* ---- Scroll reveal (paired with js/animations.js) ---- */
.reveal-init {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy-deep);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}
