:root {
  --navy: #0b1e3f;
  --navy-light: #14305c;
  --gold: #c9a227;
  --gold-light: #e6c75a;
  --bg-soft: #f6f7fb;
  --text-muted: #5b6675;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1c2434;
  background: #ffffff;
}

.font-display { font-family: 'Space Grotesk', 'Inter', sans-serif; }

/* ============ HEADER ============ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(11,30,63,0.06);
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  color: var(--navy);
}
body.has-hero #site-header {
  background: transparent;
  box-shadow: none;
  color: #fff;
}
body.has-hero #site-header.scrolled {
  background: rgba(11,30,63,0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  color: #fff;
}
body:not(.has-hero) #site-header {
  border-bottom: 1px solid rgba(11,30,63,0.06);
}
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }

#site-header .nav-link {
  color: inherit;
  opacity: .85;
}
#site-header .nav-link:hover,
#site-header .nav-link.active { opacity: 1; }
#site-header .brand-name { color: inherit; }
#site-header .brand-tagline { color: var(--gold-light); }

/* Nav active link */
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color .2s ease, opacity .2s ease;
}
.nav-link.active { font-weight: 700; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Country switcher */
.country-switcher { position: relative; }
.country-toggle {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid currentColor;
  border-color: rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  transition: all .2s ease;
}
body:not(.has-hero) .country-toggle,
#site-header.scrolled .country-toggle {
  border-color: rgba(11,30,63,0.15);
  background: rgba(11,30,63,0.04);
}
.country-toggle:hover { background: rgba(201,162,39,0.18); border-color: var(--gold); }
.country-toggle img, .country-toggle .flag-icon { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.country-menu {
  position: absolute; top: calc(100% + 12px); right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 16px 48px rgba(11,30,63,0.18);
  min-width: 200px; padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
  transition: all .2s ease;
  z-index: 200;
}
.country-switcher.open .country-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.country-menu a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border-radius: 10px;
  color: var(--navy); font-size: .875rem; font-weight: 600;
  transition: background .15s ease;
}
.country-menu a:hover { background: var(--bg-soft); }
.country-menu a img, .country-menu a .flag-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.country-menu .menu-label {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: #9aa3b2; font-weight: 700; padding: .5rem .75rem .25rem;
}

/* ============ HERO ============ */
.hero-video-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: transparent;
}
html {
  background: #04081a;
}
body.has-hero {
  background: transparent;
}
.hero-video-wrap.hero-compact {
  min-height: 70vh;
  justify-content: center;
}
.hero-content.hero-main {
  padding-top: calc(var(--header-h) + 56px);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-video-wrap video,
.hero-video-wrap .hero-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-video-wrap video.active { opacity: 1; }
.hero-video-wrap .hero-fallback { opacity: 1; }
/* Skip video on small screens / slow connections — fallback image only */
.hero-video-wrap.no-hero-video video { display: none; }
@media (max-width: 767px) {
  .hero-video-wrap video { display: none; }
}
.hero-video-wrap .hero-overlay,
.hero-video-wrap .hero-grid-overlay {
  position: fixed;
  z-index: -1;
}

/* Glass panels for content over the fixed video/image background */
.glass-light {
  background: rgba(246,247,251,0.90);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.glass-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.glass-dark {
  background: rgba(6,15,32,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(6,12,28,0.6) 0%, rgba(11,30,63,0.42) 40%, rgba(11,30,63,0.28) 100%);
  z-index: 1;
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 70%);
}
.hero-content { position: relative; z-index: 2; }

.text-gradient-gold {
  background: linear-gradient(90deg, #f5d76e 0%, var(--gold) 60%, #fff3c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Marquee */
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top:0; bottom:0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left:0; background: linear-gradient(90deg, var(--navy), transparent); }
.marquee-wrap::after { right:0; background: linear-gradient(270deg, var(--navy), transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Buttons */
.btn-gold {
  background: var(--gold);
  color: #1c1404;
  font-weight: 700;
  transition: all .2s ease;
  box-shadow: 0 8px 24px rgba(201,162,39,0.35);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,162,39,0.45); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  font-weight: 600;
  transition: all .2s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }

/* Cards */
.card-shadow {
  box-shadow: 0 4px 24px rgba(11,30,63,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-shadow:hover {
  box-shadow: 0 16px 40px rgba(11,30,63,0.14);
  transform: translateY(-6px);
}

/* Glow card */
.glow-card { position: relative; isolation: isolate; }
.glow-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--gold), transparent 50%, var(--gold) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 1;
  pointer-events: none;
}
.glow-card:hover::before { opacity: 1; }

.section-eyebrow {
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
}

/* Footer */
footer a:hover { color: var(--gold-light); }

/* Calculator */
.calc-input:focus, .calc-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

/* Mobile menu */
#mobile-menu {
  display: none;
  position: fixed; top: var(--header-h); left:0; right:0; bottom:0;
  background: #fff; z-index: 99; overflow-y: auto;
}
body.has-hero #mobile-menu { top: var(--header-h); }
#mobile-menu.open { display: block; }
#mobile-menu .nav-link { color: var(--navy) !important; opacity: 1; }

/* Stat card */
.stat-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

/* Animated gradient blob */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  z-index: 0;
  pointer-events: none;
}

/* ============ ARIVU VOICE WIDGET — fit-to-viewport fix ============ */
/* Best-effort: third-party widget containers/panels should never exceed
   the viewport height and should be scrollable instead of cropped. */
[id*="arivu" i],
[class*="arivu" i] {
  max-height: 100vh;
}
[id*="arivu" i] [class*="panel" i],
[class*="arivu" i] [class*="panel" i],
[id*="arivu" i] [class*="window" i],
[class*="arivu" i] [class*="window" i],
[id*="arivu" i] [class*="modal" i],
[class*="arivu" i] [class*="modal" i] {
  max-height: min(640px, calc(100vh - 24px)) !important;
  top: auto !important;
  bottom: 96px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}
[id*="arivu" i] iframe,
[class*="arivu" i] iframe {
  max-height: 100% !important;
  height: 100% !important;
}
