/* AETERNUS POWER v2 — locked brand */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@200;300;400;500;600&display=swap');

:root {
  --gold: #F9D71C;
  --blue: #094074;
  --blue-2: #1F6E8C;
  --smoke: #F5F5F5;
  --carbon: #222222;
  --line: rgba(34,34,34,0.1);

  --clarity-glow: linear-gradient(135deg, #F9D71C 0%, #FFF6C9 35%, #F5F0FA 70%, #F5F5F5 100%);
  --momentum-blend: linear-gradient(135deg, #094074 0%, #094074 45%, #1F6E8C 65%, #F9D71C 100%);

  --display: 'Clash Display', sans-serif;
  --body: 'Epilogue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--body);
  font-weight: 400;
  color: var(--carbon);
  background: var(--smoke);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
body { min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
.display-med { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(245,245,245,0.78);
  border-bottom: 1px solid rgba(34,34,34,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1440px; margin: 0 auto; padding: 0 32px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--body); font-weight: 500; font-size: 14px;
  color: var(--carbon); opacity: 0.78; transition: opacity 0.15s;
}
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--blue); }
.btn-gold:hover { background: #ffe04d; transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: var(--smoke); }
.btn-blue:hover { background: #0b4f8a; transform: translateY(-1px); }
.btn-ghost-light {
  background: transparent; color: var(--smoke); border: 1px solid rgba(245,245,245,0.4);
}
.btn-ghost-light:hover { background: rgba(245,245,245,0.08); }

/* Reveal — transform-only entry; opacity always 1 so text never disappears */
@keyframes fadeUp {
  from { transform: translateY(14px); opacity: 1; }
  to { transform: translateY(0); opacity: 1; }
}
.reveal {
  opacity: 1;
  animation: fadeUp 0.8s cubic-bezier(.2,.8,.2,1) backwards;
}
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Scroll-triggered reveal — JS toggles .in */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.scroll-reveal.in { opacity: 1; transform: translateY(0); }
.scroll-reveal.delay-1 { transition-delay: 0.08s; }
.scroll-reveal.delay-2 { transition-delay: 0.16s; }
.scroll-reveal.delay-3 { transition-delay: 0.24s; }
.scroll-reveal.delay-4 { transition-delay: 0.32s; }
.scroll-reveal.delay-5 { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Hover lift for cards */
.lift {
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s cubic-bezier(.2,.8,.2,1);
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(9,64,116,0.25);
}

/* Slow spin */
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Magnetic underline link */
.underline-link {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
}
.underline-link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1.5px; background: currentColor;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.45s cubic-bezier(.7,0,.3,1);
}
.underline-link:hover::after {
  transform-origin: right;
  transform: scaleX(0);
}

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes marqueeScroll { from { transform: translateX(0);} to { transform: translateX(-50%);} }
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marqueeScroll 40s linear infinite;
  align-items: center;
}

/* Float */
@keyframes float { 0%, 100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
.float { animation: float 6s ease-in-out infinite; }

/* Card */
.card-blue {
  background: var(--blue); color: var(--smoke);
  border-radius: 24px; padding: 36px;
}
.card-light {
  background: var(--smoke); color: var(--carbon);
  border: 1px solid var(--line); border-radius: 24px; padding: 36px;
}

/* Field */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.field input, .field select, .field textarea {
  height: 48px; padding: 0 16px;
  border: 1px solid rgba(34,34,34,0.16); border-radius: 12px;
  background: #fff; font-size: 15px; color: var(--carbon);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9,64,116,0.08);
}

/* Footer */
.footer {
  background: var(--blue); color: rgba(245,245,245,0.7);
  padding: 72px 0 28px;
}
.footer h4 {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--smoke);
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer li a:hover { color: var(--smoke); }

/* ============================================================
   RESPONSIVE — tablet & mobile
   Targets inline-style grids in pages.jsx via attribute selectors
   ============================================================ */

/* --- Tablet (≤960px): collapse 4-col grids to 2, soften paddings --- */
@media (max-width: 960px) {
  .container, .wide { padding: 0 24px; }

  /* 4-col → 2-col */
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="gridTemplateColumns: 'repeat(4, 1fr)'"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 5-col → 2-col */
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="gridTemplateColumns: 'repeat(5, 1fr)'"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* 3-col → 2-col */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="gridTemplateColumns: 'repeat(3, 1fr)'"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Any 2-fraction split (1fr 1.4fr, 1.4fr 1fr, etc.) → stack */
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1fr 1.3fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  /* Sticky aside loses sticky on stack */
  [style*="position: sticky"][style*="top: 100"] {
    position: static !important;
  }

  /* Section vertical padding */
  section[style*="padding: 140px 0"] { padding: 88px 0 !important; }
  section[style*="padding: 160px 0"] { padding: 96px 0 !important; }
  section[style*="padding: 120px 0"] { padding: 76px 0 !important; }
  section[style*="padding: 60px 0 140px"] { padding: 40px 0 88px !important; }
  section[style*="padding: 0 0 140px"] { padding: 0 0 88px !important; }
  section[style*="padding: 0 0 120px"] { padding: 0 0 72px !important; }
  section[style*="padding: 100px 0 0"] { padding: 72px 0 0 !important; }
  section[style*="padding: 120px 0 130px"] { padding: 80px 0 90px !important; }
  section[style*="paddingTop: 100"][style*="paddingBottom: 130"],
  section[style*="padding-top: 100px"][style*="padding-bottom: 130px"] { padding-top: 64px !important; padding-bottom: 80px !important; }

  /* Gold CTA card padding (lives inside the final-CTA sections) */
  [style*="padding: 64px 56px"] { padding: 40px 32px !important; }

  /* Card padding */
  .card-blue, .card-light { padding: 28px; }

  .footer { padding: 56px 0 24px; }
  .footer [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
  }

  /* Contact form: side-by-side becomes stacked */
  [style*="grid-template-columns: 1.4fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Stats row with right-borders: drop the dividers when wrapping */
  [style*="grid-template-columns: repeat(4, 1fr)"] > [style*="border-right"] {
    border-right: none !important;
  }
}

/* --- Phone (≤640px): collapse everything to 1 col, tighten further --- */
@media (max-width: 640px) {
  .container, .wide { padding: 0 20px; }

  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="gridTemplateColumns: 'repeat(4, 1fr)'"],
  [style*="grid-template-columns: repeat(5, 1fr)"],
  [style*="gridTemplateColumns: 'repeat(5, 1fr)'"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="gridTemplateColumns: 'repeat(3, 1fr)'"],
  [style*="grid-template-columns: repeat(2, 1fr)"],
  [style*="gridTemplateColumns: 'repeat(2, 1fr)'"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Inline label-value rows (180px 1fr): keep label above value */
  [style*="grid-template-columns: 180px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  /* Numbered "01 — Title" rows stay side-by-side, just tighten */
  [style*="grid-template-columns: 40px 1fr"] {
    gap: 14px !important;
  }

  section[style*="padding: 140px 0"] { padding: 64px 0 !important; }
  section[style*="padding: 160px 0"] { padding: 72px 0 !important; }
  section[style*="padding: 120px 0"] { padding: 56px 0 !important; }
  section[style*="padding: 60px 0 140px"] { padding: 32px 0 64px !important; }
  section[style*="padding: 0 0 140px"] { padding: 0 0 64px !important; }
  section[style*="padding: 0 0 120px"] { padding: 0 0 56px !important; }
  section[style*="padding: 100px 0 0"] { padding: 56px 0 0 !important; }
  section[style*="padding: 120px 0 130px"] { padding: 60px 0 70px !important; }

  /* Gold CTA card on phones */
  [style*="padding: 64px 56px"] { padding: 32px 24px !important; }

  /* Inner card paddings that are too large on phones */
  [style*="padding: 44px"] { padding: 26px !important; }
  [style*="padding: 40px"]:not([style*="padding: 40px 24px"]) { padding: 24px !important; }

  .card-blue, .card-light { padding: 22px; border-radius: 18px; }

  .footer [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Buttons full-width when in a flex row that wraps */
  .btn { height: 48px; padding: 0 22px; font-size: 14.5px; }

  /* Form: gap-tighten */
  .field input, .field select, .field textarea { font-size: 16px; /* prevent iOS zoom */ }

  /* Hide marquee mask edges that get crowded */
  .marquee { mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
}

/* --- Nav: mobile hamburger --- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: var(--carbon);
}
.nav-toggle:hover { background: rgba(34,34,34,0.06); }
.nav-toggle svg { width: 22px; height: 22px; }

.nav-cta-desktop { display: inline-flex; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.locale-switcher select {
  font-family: var(--display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--carbon);
  background: transparent;
  border: 1px solid rgba(34,34,34,0.18);
  border-radius: 999px;
  padding: 6px 26px 6px 12px;
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23222' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.18s, background 0.18s;
}
.locale-switcher select:hover { border-color: var(--blue); }
.locale-switcher select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
.locale-switcher-mobile {
  align-self: flex-start;
  margin: 14px 0 6px;
}
.locale-switcher-mobile select { font-size: 14px; padding: 8px 28px 8px 14px; }

.nav-mobile-panel {
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  height: calc(100vh - 68px);
  height: calc(100svh - 68px);
  height: calc(100dvh - 68px);
  background: var(--smoke);
  padding: 22px 28px max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 0;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.nav-mobile-panel.open { transform: translateX(0); }
.nav-mobile-panel a:not(.btn) {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex: 0 0 auto;

  /* Brand gradient text — same blue→gold sweep used on the hero h1 */
  background-image: linear-gradient(95deg, #094074 0%, #094074 35%, #F9D71C 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.nav-mobile-panel a:not(.btn)::after {
  content: '→';
  font-family: var(--body); font-weight: 400;
  font-size: 22px;
  /* Cancel parent's gradient/transparent-fill so the arrow stays solid */
  background-image: none;
  background-clip: initial;
  -webkit-background-clip: initial;
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
  opacity: 0.5;
}
.nav-mobile-panel a.active {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}
.nav-mobile-panel a.active::after {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  opacity: 1;
}
.nav-mobile-panel .btn {
  margin-top: auto;
  margin-bottom: 6px;
  height: 56px;
  font-size: 16px;
  width: 100%;
  flex: 0 0 auto;
}

/* Compact rules for very short screens (landscape phones, small Androids) */
@media (max-height: 640px) {
  .nav-mobile-panel { padding: 12px 28px max(12px, env(safe-area-inset-bottom)); }
  .nav-mobile-panel a { font-size: 22px; padding: 12px 4px; }
  .nav-mobile-panel a::after { font-size: 18px; }
  .nav-mobile-panel .btn { height: 48px; font-size: 14px; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-desktop { display: none; }
  .locale-switcher-desktop { display: none; }
}
@media (min-width: 881px) {
  .nav-mobile-panel { display: none; }
  .locale-switcher-mobile { display: none; }
}

/* Lock body scroll when mobile menu open */
body.nav-open { overflow: hidden; }
