:root {
  --navy: #04336b;
  --mint: #a1dbc3;
  --teal: #11bac1;
  --ink: #0c1a2b;
  --bg: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(4, 51, 107, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(4, 51, 107, 0.08);
  box-shadow: 0 6px 20px rgba(4, 51, 107, 0.06);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: -14px;
}

.brand-logo {
  height: 86px;
  width: auto;
  display: block;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.brand-logo-color { display: none; }
.header.scrolled .brand-logo {
  height: 68px;
}
.header.scrolled .brand-logo-white { display: none; }
.header.scrolled .brand-logo-color { display: block; }

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.menu > li { position: relative; }

.menu > li > a, .menu > li > button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.menu > li > a:hover, .menu > li > button:hover,
.menu > li.active > a, .menu > li.active > button {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.header.scrolled .menu > li > a,
.header.scrolled .menu > li > button {
  color: var(--navy);
  text-shadow: none;
}

.header.scrolled .menu > li > a:hover,
.header.scrolled .menu > li > button:hover,
.header.scrolled .menu > li.active > a,
.header.scrolled .menu > li.active > button {
  background: var(--mint);
  color: var(--navy);
}

.header.scrolled .burger span { background: var(--navy); }
.burger span { background: var(--white); }

.menu .caret {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.menu > li.open .caret { transform: rotate(-135deg) translateY(-2px); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  border: 1px solid rgba(4, 51, 107, 0.06);
}

.menu > li:hover .dropdown,
.menu > li.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
}

.dropdown a:hover {
  background: var(--mint);
  color: var(--navy);
}

.burger {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.2s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }

/* HERO */
.hero {
  position: relative;
  color: var(--white);
  padding: 140px 24px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--navy);
  isolation: isolate;
}

.hero.hero-compact {
  min-height: 60vh;
  padding: 160px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  filter: saturate(0.85);
  will-change: transform;
  animation: heroZoom 28s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); }
  100% { transform: scale(1.22) translate3d(-1.5%, -1.5%, 0); }
}

.hero-compact .hero-bg {
  animation-duration: 36s;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(4, 51, 107, 0.92) 0%, rgba(4, 51, 107, 0.78) 45%, rgba(6, 42, 90, 0.55) 100%),
    radial-gradient(circle at 85% 20%, rgba(17, 186, 193, 0.35), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(161, 219, 195, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.hero-inner > div { max-width: 820px; }

.hero-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), var(--teal));
  border-radius: 2px;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--mint), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 32px;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(17, 186, 193, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--mint); color: var(--navy); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.hero-card h3 { font-size: 14px; letter-spacing: 2px; color: var(--mint); margin-bottom: 16px; text-transform: uppercase; }
.hero-card ul { list-style: none; display: grid; gap: 14px; }
.hero-card li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,0.9); }
.hero-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 8px; flex: none; }

/* SECTIONS */
.section { padding: 88px 24px; }
.section.alt { background: var(--white); }

.container { max-width: 1200px; margin: 0 auto; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { color: var(--teal); }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-head p { color: #4b5b71; font-size: 16px; }

/* CARDS GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(4, 51, 107, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(4, 51, 107, 0.12); }

.card-img {
  aspect-ratio: 4 / 3;
  background: #eef3f8;
  overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.card-body p { font-size: 14px; color: #5a6b80; flex: 1; }
.card-body .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* CONTENT */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { font-size: 17px; color: #3a4a60; margin-bottom: 20px; }
.prose h2 { color: var(--navy); margin: 36px 0 14px; font-size: 26px; }
.prose ul { padding-left: 22px; color: #3a4a60; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.stat {
  background: var(--white);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(4, 51, 107, 0.06);
  text-align: center;
}
.stat .num { font-size: 36px; font-weight: 800; color: var(--navy); }
.stat .label { font-size: 13px; color: #6a7a8e; letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* FORM */
.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(4, 51, 107, 0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.5px; }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  border: 1px solid rgba(4, 51, 107, 0.15);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fafcfe;
  transition: border 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(17, 186, 193, 0.12);
}
.field textarea { min-height: 130px; resize: vertical; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(4, 51, 107, 0.06);
}
.contact-card .label { font-size: 12px; letter-spacing: 2px; color: var(--teal); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.contact-card h3 { color: var(--navy); margin-bottom: 16px; }
.contact-card a { color: var(--navy); font-weight: 600; word-break: break-all; }
.contact-card a:hover { color: var(--teal); }

/* FOOTER */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}
.footer h4 { color: var(--white); margin-bottom: 14px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-logo { height: 80px; width: auto; display: block; margin-left: -8px; }
.footer ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.footer a:hover { color: var(--mint); }
.footer .copy {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { padding: 120px 20px 60px; min-height: 100vh; }
  .hero.hero-compact { padding: 130px 20px 60px; min-height: 50vh; }
  .brand-logo { height: 68px; }
  .header.scrolled .brand-logo { height: 56px; }
  .brand { margin-left: -10px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .burger { display: block; }
  .menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid rgba(4, 51, 107, 0.08);
    box-shadow: var(--shadow);
    display: none;
  }
  .menu.show { display: flex; }
  .menu > li > a, .menu > li > button { width: 100%; justify-content: space-between; }
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 16px;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .menu > li.open .dropdown { display: block; }
}

/* ====== ANIMATIONS ====== */

/* Hero text staggered entrance */
.hero-inner .eyebrow,
.hero-inner h1,
.hero-inner .hero-divider,
.hero-inner > div > p,
.hero-inner .cta-row {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-inner .eyebrow      { animation-delay: 0.10s; }
.hero-inner h1            { animation-delay: 0.25s; }
.hero-inner .hero-divider { animation-delay: 0.45s; animation-duration: 0.7s; }
.hero-inner > div > p     { animation-delay: 0.55s; }
.hero-inner .cta-row      { animation-delay: 0.75s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Divider shimmer */
.hero-divider {
  background-size: 200% 100%;
  animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             shimmer 4.5s linear 1.2s infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Soft float on hero CTA primary */
.btn-primary {
  animation: btnPulse 3.2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(17, 186, 193, 0.35); }
  50%      { box-shadow: 0 14px 36px rgba(17, 186, 193, 0.55); }
}

/* Down-scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  z-index: 1;
  pointer-events: none;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--mint);
  border-radius: 2px;
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { opacity: 0; transform: translateY(0); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-inner .eyebrow,
  .hero-inner h1,
  .hero-inner .hero-divider,
  .hero-inner > div > p,
  .hero-inner .cta-row,
  .reveal,
  .btn-primary,
  .scroll-cue::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
