/* ==========================================================================
   BASE — Design tokens, reset, typography
   Liquid UI Theme
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&family=Oxygen:wght@300;400;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors */
  --color-primary: #0060AE;
  --color-primary-dark: #004E8C;
  --color-primary-light: #1A7FD4;
  --color-primary-lighter: #E8F4FD;
  --color-navy: #162B75;
  --color-navy-dark: #0E1D52;
  --color-accent-blue: #3F539A;
  --color-gold: #FAA820;
  --color-gold-light: #FFF4E0;

  /* Backgrounds */
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F3F6FB;
  --color-bg-navy: #162B75;
  --color-bg-navy-gradient: linear-gradient(135deg, #162B75 0%, #0E1D52 50%, #1A3580 100%);
  --color-bg-black: #0A0A0F;

  /* Text */
  --color-text: #1E293B;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-text-light: #FFFFFF;
  --color-text-on-navy: #FFFFFF;

  /* Borders */
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;

  /* Typography */
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Oxygen', sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* Font sizes — fluid scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: clamp(2.5rem, 4vw, 3.25rem);
  --text-6xl: clamp(3rem, 5vw, 4rem);
  --text-7xl: clamp(3.5rem, 6vw, 4.75rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -6px rgba(0, 0, 0, 0.06);
  --shadow-2xl: 0 32px 64px -12px rgba(0, 0, 0, 0.14);
  --shadow-nav: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 40px -8px rgba(0, 96, 174, 0.15), 0 8px 16px -6px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(0, 96, 174, 0.15);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-mobile-menu: 400;
  --z-announcement: 500;

  /* Section spacing */
  --section-padding: clamp(2.5rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

blockquote {
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-6xl); font-weight: var(--fw-black); }
h2 { font-size: var(--text-4xl); font-weight: var(--fw-extrabold); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); font-weight: var(--fw-semibold); }
h6 { font-size: var(--text-base); font-weight: var(--fw-semibold); }

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

.text-muted {
  color: var(--color-text-muted);
}

/* ---------- Section backgrounds ---------- */
.section {
  padding: var(--section-padding) 0;
}

.section--bg-white {
  background-color: var(--color-bg-white);
  color: var(--color-text);
}

.section--bg-light {
  background-color: var(--color-bg-light);
  color: var(--color-text);
}

.section--bg-navy {
  background: var(--color-bg-navy-gradient);
  color: var(--color-text-on-navy);
}

.section--bg-navy h1,
.section--bg-navy h2,
.section--bg-navy h3,
.section--bg-navy h4,
.section--bg-navy h5,
.section--bg-navy h6 {
  color: var(--color-text-light);
}

.section--bg-navy p,
.section--bg-navy .text-muted {
  color: rgba(255, 255, 255, 0.8);
}

.section--bg-navy a:not(.btn) {
  color: var(--color-gold);
}

.section--bg-black {
  background-color: var(--color-bg-black);
  color: var(--color-text-on-navy);
}

.section--bg-black h1,
.section--bg-black h2,
.section--bg-black h3,
.section--bg-black h4,
.section--bg-black h5,
.section--bg-black h6 {
  color: var(--color-text-light);
}

/* ---------- Section heading + subheading ---------- */
.section__heading {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__subheading {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.7;
}

.section--bg-navy .section__subheading {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Decorative elements ---------- */
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.section__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.section--bg-navy .section__eyebrow {
  color: var(--color-gold);
}

.section--bg-navy .section__eyebrow::before {
  background: var(--color-gold);
}

/* ---------- Body text line length cap ---------- */
.two-column__body,
.form-embed__subtext,
.testimonial__text,
.cta-strip__subtext,
.hero__subtext {
  max-width: 720px;
}

/* ---------- Responsive font sizes ---------- */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(2rem, 3vw, 2.5rem);
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-xl); }
}
