/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body  { font-family: 'Inter', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; }
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ── Grain overlay ────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -100px;
  width: calc(100% + 200px);
  height: calc(100% + 200px);
  z-index: 99999;
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='500'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain-drift 8s steps(2) infinite;
}
@keyframes grain-drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, -5%); }
  50%  { transform: translate(5%, -3%); }
  75%  { transform: translate(-4%, 5%); }
  100% { transform: translate(0, 0); }
}

/* ── Hero on-load reveals ─────────────────────────────── */
@keyframes hero-lift {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-a1 { animation: hero-lift 1s cubic-bezier(0.16,1,0.3,1) 0.10s both; }
.hero-a2 { animation: hero-lift 1s cubic-bezier(0.16,1,0.3,1) 0.28s both; }
.hero-a3 { animation: hero-lift 1s cubic-bezier(0.16,1,0.3,1) 0.48s both; }
.hero-a4 { animation: hero-lift 1s cubic-bezier(0.16,1,0.3,1) 0.65s both; }
.hero-a5 { animation: hero-lift 1s cubic-bezier(0.16,1,0.3,1) 0.82s both; }

/* ── Scroll-animated elements start hidden ────────────── */
[data-scroll] { opacity: 0; will-change: transform, opacity; }

/* ── Hero background wrap ─────────────────────────────── */
.hero-bg-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-bg-img  {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Premium buttons ──────────────────────────────────── */
.btn-p {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-p::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.14),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-p:hover::after  { opacity: 1; }
.btn-p:hover         { transform: translateY(-2px); }
.btn-p:active        { transform: translateY(0); }

/* ── Bento card hover ─────────────────────────────────── */
.bento-c {
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.bento-c:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px -12px rgba(0,21,42,0.22);
}

/* ── Stats card ───────────────────────────────────────── */
.stats-card {
  background: linear-gradient(135deg, #00152a 0%, #102a43 100%);
  border: 1px solid rgba(68,221,193,0.18);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.35);
}

/* ── Section eyebrow tag ──────────────────────────────── */
.stag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.stag::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #44ddc1;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Footer link hover nudge ──────────────────────────── */
.foot-link { transition: color 0.2s ease, padding-left 0.2s ease; }
.foot-link:hover { padding-left: 4px; }

/* ── Nav dropdown ─────────────────────────────────────── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  box-shadow: 0 16px 48px -8px rgba(0,21,42,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.nav-dropdown::before {
  /* bridge gap so mouse can travel from trigger to dropdown */
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-services-wrap:hover .nav-dropdown,
.nav-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #43474d;
  transition: background 0.15s, color 0.15s;
  border-radius: 6px;
  margin: 4px;
}
.nav-dropdown a:hover {
  background: #f0f4f8;
  color: #00152a;
}
.nav-dropdown a .material-symbols-outlined {
  font-size: 16px;
  color: #44ddc1;
}

/* Mobile services sub-menu */
.mob-services-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.mob-services-sub.open {
  max-height: 400px;
}

/* ── Custom scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c3c6ce; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #44ddc1; }