/* ── BKG Construct — Global Styles ──────────────────────────────────── */
/* Brand: primary #00aef0 (blue), accent #FFD700 (yellow)               */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

h1, h2, h3, h4, .display {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: #07111C; }
::-webkit-scrollbar-thumb { background: #00aef0; border-radius: 99px; }

/* ── Grain texture ── */
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── Grid background ── */
.grid-pattern {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Nav ── */
.nav-link { position: relative; white-space: nowrap; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #00aef0;
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after { width: 100%; }

/* Nav solid background when scrolled past hero */
#header nav {
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#header.is-scrolled nav {
  background: #0F1C2E !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

/* ── Dropdown ── */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  min-width: 220px;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  /* Invisible bridge above the menu to prevent gap-related mouseleave */
  padding-top: 8px;
  top: calc(100% + 2px);
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px; /* Covers the 2px gap + 6px padding = bridges any gap */
  background: transparent;
}
.dropdown-menu.menu-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* The visible card */
.dropdown-menu-inner {
  background: #162236;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 6px;
}

/* ── Mobile menu ── */
#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-menu.open { transform: translateX(0); }

/* ── Service cards ── */
.service-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-7px); }

/* ── Buttons ── */
.btn-primary {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,174,240,0.4);
}
.btn-primary:active  { transform: translateY(0); box-shadow: none; }
.btn-primary:focus-visible { outline: 3px solid #00aef0; outline-offset: 3px; }

/* Keep btn-gold as alias for backward compat */
.btn-gold {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,174,240,0.4);
}
.btn-gold:active  { transform: translateY(0); box-shadow: none; }
.btn-gold:focus-visible { outline: 3px solid #00aef0; outline-offset: 3px; }

.btn-ghost {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease,
              color 0.2s ease;
}
.btn-ghost:hover  { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 3px solid rgba(255,255,255,0.4); outline-offset: 3px; }

/* ── Stat numbers — blue gradient ── */
.stat-num {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #33BEFF 0%, #0090C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer links ── */
.foot-link {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}
.foot-link:hover { color: #00aef0; transform: translateX(3px); }

/* ── Section label ── */
.s-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ── Image overlay ── */
.img-over { position: relative; }
.img-over::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,17,28,0.75) 0%, rgba(7,17,28,0.2) 55%, transparent 100%);
  pointer-events: none;
}

/* ── Page hero ── */
.page-hero {
  position: relative;
  background-color: #0F1C2E;
  overflow: hidden;
  padding-top: 72px;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.page-hero-content {
  position: relative;
  z-index: 2;
}

/* ── Divider ── */
.fade-rule {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* ── Breadcrumb ── */
.breadcrumb-link { transition: color 0.2s ease; }
.breadcrumb-link:hover { color: #00aef0; }

/* ── Form inputs ── */
.form-input {
  width: 100%;
  background: #F2F5F9;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #0F1C2E;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.form-input::placeholder { color: #94A3B8; }
.form-input:focus {
  border-color: #00aef0;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,174,240,0.12);
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1E3050;
  margin-bottom: 0.4rem;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ── Prose content ── */
.prose-bkg p {
  color: #4B5563;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.prose-bkg h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  color: #0F1C2E;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose-bkg ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.prose-bkg ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}
.prose-bkg ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00aef0;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

/* ── Certification badges strip ── */
.cert-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 8px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cert-badge:hover {
  background: rgba(0,174,240,0.1);
  border-color: rgba(0,174,240,0.3);
}
