/* Legacy local font retained for older component fallbacks. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.woff2")
    format("woff2-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

html,
body {
  overflow-x: clip;
  overflow-anchor: auto;
}

/* Custom Scrollbar Global */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-brand-blue-bright) 30%, transparent);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--color-brand-blue-bright) 60%, transparent);
}

/* Firefox Support */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-brand-blue-bright) 30%, transparent) transparent;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

:root {
  /* ── COLORS ─────────────────────────────────────────────── */
  /* Brand palette from the current design system. */
  --color-brand-primary: #3b5875;
  --color-brand-primary-hover: #2f4f68;
  --color-brand-primary-text: #ffffff;
  --color-brand-secondary: #a7b6c4;
  --color-brand-tertiary: #dce4ea;
  --color-brand-accent: #5d7b82;
  --color-brand-accent-hover: #4b676d;
  --color-brand-surface: #ffffff;
  --color-brand-surface-medium: #f8f5f1;
  --color-brand-surface-soft: #f2eee8;
  --color-brand-surface-elevated: #e8eef2;
  --color-brand-surface-inverse: #223847;
  --color-brand-text-primary: #29333d;
  --color-brand-text-secondary: #6d7882;
  --color-brand-text-muted: #97a2ab;
  --color-brand-text-inverse: #ffffff;
  --color-brand-text-inverse-muted: #c8d2db;
  --color-brand-link: #456a8a;
  --color-brand-link-hover: #2f4f68;
  --color-brand-link-light: #afc4d4;
  --color-brand-link-light-hover: #d7e3ec;
  --color-brand-stroke-light: #e7ebef;
  --color-brand-stroke-medium: #d6dde3;
  --color-brand-stroke-dark: #516474;

  /* Semantic tokens (use these in components) */
  --color-primary: var(--color-brand-primary);
  --color-primary-hover: var(--color-brand-primary-hover);
  --color-primary-text: var(--color-brand-primary-text);
  --color-secondary: var(--color-brand-secondary);
  --color-accent: var(--color-brand-accent);

  --color-surface: var(--color-brand-surface);
  --color-surface-medium: var(--color-brand-surface-medium);
  --color-surface-soft: var(--color-brand-surface-soft);
  --color-surface-elevated: var(--color-brand-surface-elevated);
  --color-surface-alt: var(--color-brand-surface-soft);
  --color-surface-inverse: var(--color-brand-surface-inverse);
  --color-bg-card: var(--color-brand-surface);

  --color-text-primary: var(--color-brand-text-primary);
  --color-text-secondary: var(--color-brand-text-secondary);
  --color-text-muted: var(--color-brand-text-muted);
  --color-text-inverse: var(--color-brand-text-inverse);
  --color-text-inverse-muted: var(--color-brand-text-inverse-muted);

  --color-border: var(--color-brand-stroke-medium);
  --color-border-light: var(--color-brand-stroke-light);
  --color-border-dark: var(--color-brand-stroke-dark);

  --color-link-default: var(--color-brand-link);
  --color-link-hover: var(--color-brand-link-hover);
  --color-link-light: var(--color-brand-link-light);
  --color-link-light-hover: var(--color-brand-link-light-hover);

  --color-success: #46b450;
  --color-error: #b32d2e;
  --color-warning: #f0ad4e;

  /* ── LEGACY ALIASES (backward compat) ──────────────────── */
  --color-brand-navy-deep: var(--color-brand-surface-inverse);
  --color-brand-navy: var(--color-brand-primary);
  --color-brand-navy-soft: var(--color-brand-secondary);
  --color-brand-blue-bright: var(--color-brand-link);
  --color-brand-gold: var(--color-brand-accent);
  --color-brand-ivory: var(--color-brand-surface);
  --color-brand-stone: var(--color-brand-surface-soft);
  --color-brand-charcoal: var(--color-brand-text-primary);
  --color-text-dark: var(--color-text-primary);
  --color-text-light: var(--color-text-inverse);
  --color-bg-light: var(--color-surface);
  --color-bg-medium: var(--color-surface-medium);
  --color-bg-soft: var(--color-surface-soft);
  --color-bg-elevated: var(--color-surface-elevated);
  --color-bg-dark: var(--color-surface-inverse);
  --color-cta-default: var(--color-brand-accent);
  --color-cta-hover: var(--color-brand-accent-hover);
  --color-cta-text: var(--color-text-inverse);
  --color-gold-accent: var(--color-brand-secondary);
  --color-gold-hover: var(--color-brand-tertiary);
  --color-navy-dark: var(--color-brand-surface-inverse);
  --color-divider-dark: rgba(0, 0, 0, 0.1);

  /* ── FONTS ──────────────────────────────────────────────── */
  --font-display: "Newsreader", serif;
  --font-secondary: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-sans: var(--font-body);

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

  --lh-display: 1.1;
  --lh-heading: 1.1;
  --lh-heading-compact: 1;
  --lh-body: 1.7;
  --lh-ui: 1.1;
  --lh-footer: 1.2;

  /* ── BREAKPOINTS (reference / JS-use) ───────────────────── */
  --bp-mobile: 360px;
  --bp-tablet: 768px;
  --bp-desktop: 1140px;
  --vw-min: 360;
  --vw-max: 1440;

  /* ── FLUID TYPE SCALE ───────────────────────────────────── */
  --fs-display-large: clamp(41px, calc(41px + (81 - 41) * ((100vw - 360px) / (1440 - 360))), 81px);
  --fs-display-medium: clamp(37px, calc(37px + (67 - 37) * ((100vw - 360px) / (1440 - 360))), 67px);
  --fs-hero-description: clamp(20px, calc(20px + (24 - 20) * ((100vw - 360px) / (1440 - 360))), 24px);
  --fs-sub-heading: clamp(24px, calc(24px + (33 - 24) * ((100vw - 360px) / (1440 - 360))), 33px);
  --fs-h1: clamp(33px, calc(33px + (56 - 33) * ((100vw - 360px) / (1440 - 360))), 56px);
  --fs-h2: clamp(30px, calc(30px + (47 - 30) * ((100vw - 360px) / (1440 - 360))), 47px);
  --fs-h3: clamp(27px, calc(27px + (39 - 27) * ((100vw - 360px) / (1440 - 360))), 39px);
  --fs-h4: clamp(24px, calc(24px + (33 - 24) * ((100vw - 360px) / (1440 - 360))), 33px);
  --fs-h5: clamp(22px, calc(22px + (27 - 22) * ((100vw - 360px) / (1440 - 360))), 27px);
  --fs-h6: clamp(20px, calc(20px + (23 - 20) * ((100vw - 360px) / (1440 - 360))), 23px);
  --fs-body-large: clamp(18px, calc(18px + (19 - 18) * ((100vw - 360px) / (1440 - 360))), 19px);
  --fs-body: 16px;
  --fs-body-small: 13.33px;
  --fs-eyebrow: 14px;
  --fs-cta: 18px;
  --fs-cta-small: 16px;
  --fs-nav: 16px;
  --fs-utility-nav: 15px;
  --fs-footer-link: 15px;
  --fs-breadcrumb: 14px;
  --fs-sidebar-nav: 16px;
  --fs-form-input: 16px;
  --fs-form-caption: 11px;

  /* ── SPACING SCALE (8-point) ────────────────────────────── */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Legacy spacing (backward compat) */
  --space-1: 10px;
  --space-2: 20px;
  --space-3: 30px;

  --section-padding-y: 80px;
  --section-padding-x: clamp(16px, 5vw, 40px);

  /* ── BORDER RADIUS ──────────────────────────────────────── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-card: 16px;
  --radius-button: 16px;
  --radius-full: 9999px;

  /* ── ELEVATION / SHADOW ──────────────────────────────────── */
  --shadow-xs: 0 1px 2px rgba(35, 55, 128, 0.05);
  --shadow-sm: 0 5px 15px rgba(25, 33, 61, 0.11);
  --shadow-md: 0 10px 30px rgba(35, 55, 128, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 55, 128, 0.12);
  --shadow-xl: 0 24px 60px rgba(35, 55, 128, 0.16);

  /* ── Z-INDEX SCALE ──────────────────────────────────────── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav-overlay: 300;
  --z-modal-backdrop: 700;
  --z-modal: 800;
  --z-header: 1000;
  --z-overlay: 1100;
  --z-mega-menu: 11800;
  --z-nav-backdrop: 12000;
  --z-nav-drawer: 12010;

  /* ── MOTION ──────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;

  /* ── OPACITY ──────────────────────────────────────────────── */
  --opacity-0: 0;
  --opacity-hover: 0.8;
  --opacity-muted: 0.6;
  --opacity-disabled: 0.4;
  --opacity-100: 1;

  /* ── LETTER SPACING ───────────────────────────────────────── */
  --ls-normal: 0;
  --ls-eyebrow: 1.43px;
  --ls-cta: 1px;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
}

@media (max-width: 768px) {
  :root {
    --section-padding-y: 60px;
    --fs-display-large: clamp(34px, 11vw, 48px);
    --fs-display-medium: clamp(30px, 9vw, 42px);
    --fs-sub-heading: clamp(20px, 6vw, 26px);
    --fs-h1: clamp(30px, 9vw, 40px);
    --fs-h2: clamp(26px, 8vw, 34px);
    --fs-h3: clamp(23px, 7vw, 30px);
    --fs-h4: clamp(21px, 6vw, 26px);
    --fs-h5: clamp(19px, 5.5vw, 23px);
    --fs-h6: clamp(18px, 5vw, 21px);
    --fs-body-large: 16px;
  }
}

@media (max-width: 360px) {
  :root {
    --section-padding-y: 48px;
  }
}

/* UTILITY CLASSES */
.display-large {
  font-family: var(--font-display);
  font-size: var(--fs-display-large);
  line-height: var(--lh-display);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.display-large-italic {
  font-family: var(--font-display);
  font-size: var(--fs-display-large);
  font-style: italic;
  line-height: var(--lh-display);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.display-medium {
  font-family: var(--font-display);
  font-size: var(--fs-display-medium);
  line-height: var(--lh-display);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.display-medium-italic {
  font-family: var(--font-display);
  font-size: var(--fs-display-medium);
  font-style: italic;
  line-height: var(--lh-display);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.hero-description {
  font-family: var(--font-body);
  font-size: var(--fs-hero-description);
  line-height: var(--lh-heading);
  font-weight: var(--fw-medium);
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  line-height: var(--lh-heading);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.sub-heading {
  font-family: var(--font-secondary);
  font-size: var(--fs-sub-heading);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading-compact);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.h5 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  text-wrap: balance;
}

.h6 {
  font-family: var(--font-body);
  font-size: var(--fs-h6);
  line-height: 1.3;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  text-wrap: balance;
}

/* GLOBAL HEADER TAGS */
h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading-compact);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}
h5 {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: var(--lh-heading);
  font-weight: var(--fw-regular);
  margin-bottom: var(--space-1);
  text-wrap: balance;
}
h6 {
  font-family: var(--font-body);
  font-size: var(--fs-h6);
  line-height: 1.3;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
  text-wrap: balance;
}

.body-large {
  font-family: var(--font-body);
  font-size: var(--fs-body-large);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  text-wrap: pretty;
}

.body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  text-wrap: pretty;
}

.body-small {
  font-family: var(--font-body);
  font-size: var(--fs-body-small);
  line-height: 1.7;
  font-weight: var(--fw-regular);
  text-wrap: pretty;
}

.body-bold {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: var(--fw-bold);
  text-wrap: pretty;
}

.body-link {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-weight: var(--fw-bold);
  color: var(--color-link-default);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-wrap: pretty;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

.body-link:hover {
  color: var(--color-link-hover);
}

.cta-text,
.cta-small {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-cta);
  text-transform: uppercase;
}

.cta-text {
  font-size: var(--fs-cta);
}

.cta-small {
  font-size: var(--fs-cta-small);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  line-height: var(--lh-ui);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
}

.utility-nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-utility-nav);
  line-height: var(--lh-ui);
  font-weight: var(--fw-semibold);
}

.footer-link {
  font-family: var(--font-body);
  font-size: var(--fs-footer-link);
  line-height: var(--lh-footer);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
}

.breadcrumb {
  font-family: var(--font-body);
  font-size: var(--fs-breadcrumb);
  line-height: var(--lh-footer);
  font-weight: var(--fw-semibold);
}

.sidebar-nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-sidebar-nav);
  line-height: var(--lh-body);
  font-weight: var(--fw-semibold);
}

.form-input-text {
  font-family: var(--font-body);
  font-size: var(--fs-form-input);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
}

.form-caption {
  font-family: var(--font-body);
  font-size: var(--fs-form-caption);
  line-height: var(--lh-ui);
  font-weight: var(--fw-regular);
}

.card {
  --start: 0;
  --gradient: conic-gradient(from 90deg at 50% 50%, white, white);

  position: relative;
  display: flex;
  margin: var(--space-xs);
  padding: var(--space-xs) var(--space-xl);
  background-color: rgba(4, 4, 4, 0.45);
  backdrop-filter: blur(3px);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-normal) var(--ease-in-out);
}

.card::before {
  position: absolute;
  pointer-events: none;
  content: "";
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  border: 3px solid transparent;
  background: var(--gradient);
  background-attachment: fixed;
  mask: linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - (20 * 1.4)) * 1deg),
      rgba(255, 255, 255, 0.12) 0deg,
      white,
      transparent 100deg
    );
  mask-composite: intersect;
  mask-clip: padding-box, border-box;
  opacity: var(--opacity-0);
  transition: var(--duration-slow) var(--ease-out);
}

.glow {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 50%;
  top: 50%;
  z-index: calc(var(--z-base) * -1);
  transform: translate(-50%, -50%);
  filter: blur(14px);
}

.glow::before {
  position: absolute;
  pointer-events: none;
  content: "";
  width: 98%;
  height: 98%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-lg);
  border: 15px solid transparent;
  background: var(--gradient);
  background-attachment: fixed;
  mask: linear-gradient(#0000, #0000),
    conic-gradient(
      from calc((var(--start) - (20 * 1.1)) * 1deg),
      #ffffff 0deg,
      #ffffff,
      transparent 100deg
    );
  mask-composite: intersect;
  mask-clip: padding-box, border-box;
  opacity: var(--opacity-0);
  transition: var(--duration-slower) var(--ease-out);
  z-index: calc(var(--z-base) * -1);
}

.card:hover > .glow::before {
  opacity: var(--opacity-100);
}
.card:hover::before {
  opacity: var(--opacity-hover);
}





/* SHOW MORE BUTTON */
.show-more-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 20px;
}

.show-more-btn::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 3px;
  transition: transform 0.3s ease;
}

.paragraph:not(.hidden) + .show-more-btn::after {
  transform: rotate(225deg);
  margin-bottom: -3px;
}

/* ── ACCESSIBILITY UTILITIES ───────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── LAYOUT UTILITIES ──────────────────────────────────────── */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2xs { gap: var(--space-2xs); }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.text-center { text-align: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ── RESPONSIVE HIDE/SHOW ───────────────────────────────────── */
.hide-mobile { display: none; }
@media (min-width: 768px) {
  .hide-mobile { display: revert; }
  .hide-desktop { display: none; }
}
