/* ═══════════════════════════════════════════════
   ILLUME SECURITY — SHARED STYLES
   Used by: index.html + all service pages
═══════════════════════════════════════════════ */

/* ─── RESET ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ─── */
:root {
  --bg:       #0d1a1f;
  --bg-2:     #111f26;
  --bg-3:     #162028;
  --surface:  #162028;
  --surface-2:#1c2c35;
  --green:    #2DCA70;
  --green-2:  #55D987;
  --green-3:  #90EBB3;
  --green-10: rgba(45,202,112,.10);
  --green-15: rgba(45,202,112,.15);
  --green-20: rgba(45,202,112,.20);
  --green-border: rgba(45,202,112,.20);
  --text:     #dde8e4;
  --text-2:   #d4e6e1;
  --text-3:   #6b9a8e;
  --white:    #ffffff;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--green-border); border-radius: 2px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--white);
}
h1 { font-size: clamp(42px, 5.5vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
em { font-style: normal; color: var(--green); }
p  { line-height: 1.72; }

/* ─── NAV DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: flex !important; align-items: center; gap: 5px; cursor: pointer; }
.nav-dropdown-chevron { transition: transform .2s; flex-shrink: 0; }
.nav-dropdown:hover .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(10,20,26,.97);
  backdrop-filter: blur(24px);
  border: 1px solid var(--green-border);
  border-radius: var(--r-md);
  padding: 6px;
  list-style: none;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .18s, transform .22s cubic-bezier(.22,1,.36,1), visibility .18s;
}

/* Transparent bridge fills the gap so mouse doesn't lose hover */
.nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: -16px;
  right: -16px;
  height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.nav-dropdown-menu li a:hover  { background: var(--green-10); color: var(--green-3); }
.nav-dropdown-menu li a.active { background: var(--green-10); color: var(--green); }
.drop-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; opacity: .55; }

/* Wide dropdown (2-column services) */
.nav-dropdown-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-width: 480px;
}
.nav-drop-col { padding: 8px 4px; }
.nav-drop-col:first-child { border-right: 1px solid rgba(255,255,255,.06); }
.nav-drop-col ul { list-style: none; padding: 0; margin: 0; }
.nav-drop-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  padding: 8px 12px 6px;
  opacity: .8;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 0 60px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,20,25,.9);
  backdrop-filter: blur(20px);
  border-color: var(--green-border);
}
.nav-logo img  { height: 34px; width: auto; display: block; }
.nav-links     { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { display: flex; align-items: center; }
.nav-links a   { font-size: 14px; font-weight: 400; color: var(--text-2); text-decoration: none; letter-spacing: .01em; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green);
  color: #0a1419;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s;
}
.nav-cta:hover  { background: var(--green-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(45,202,112,.28); }
.nav-cta:active { transform: none; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 500;
  border-radius: 100px;
  transition: background .2s, transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s, color .2s;
  cursor: pointer;
  border: none;
}
.btn-primary          { background: var(--green); color: #0a1419; font-size: 16px; padding: 15px 34px; }
.btn-primary:hover    { background: var(--green-2); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(45,202,112,.32); }
.btn-primary:active   { transform: none; }
.btn-outline          { background: transparent; color: var(--text); font-size: 15px; padding: 13px 28px; border: 1px solid rgba(255,255,255,.14); }
.btn-outline:hover    { border-color: var(--green-border); color: var(--green-3); transform: translateY(-1px); }
.btn-outline:active   { transform: none; }

/* ─── SECTION CHROME ─── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}
.section-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--green); }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--green-border), transparent); margin: 0 60px; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal { transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.js-loaded .reveal { opacity: 0; transform: translateY(30px); }
.js-loaded .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }

/* ─── CTA FORM (shared) ─── */
.cta-inner { position: relative; z-index: 2; }
.cta-inner h2 { margin-bottom: 18px; }
.cta-actions {
  display: flex;
  justify-content: center;
}
.cta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-input {
  flex: 1;
  min-width: 230px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 15px 26px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.cta-input::placeholder { color: var(--text-3); }
.cta-input:focus { border-color: var(--green-border); outline: 2px solid var(--green); outline-offset: 2px; }
.cta-note { margin-top: 18px; font-size: 12px; color: var(--text-3); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--green-border);
  padding: 64px 60px 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 18px; display: block; }
.footer-brand p   { font-size: 13.5px; font-weight: 300; color: var(--text-2); line-height: 1.72; max-width: 270px; }
.footer-col-h {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col-links     { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col-links a   { font-size: 13.5px; font-weight: 300; color: var(--text-2); text-decoration: none; transition: color .2s; }
.footer-col-links a:hover { color: var(--green-3); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--green-border);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy       { font-size: 12.5px; color: var(--text-2); }
.footer-copy span  { color: var(--green); }
.footer-legal      { display: flex; gap: 22px; }
.footer-legal a    { font-size: 12.5px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--text); }

/* ─── HAMBURGER BUTTON ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--green-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE NAV OVERLAY ─── */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--bg-2);
  z-index: 490;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  padding: 88px 32px 56px;
}
.nav-mobile.open { transform: none; }
.nav-mobile-inner { display: flex; flex-direction: column; }
.nav-mobile-link {
  display: block;
  padding: 15px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--green-border);
  transition: color .2s;
}
.nav-mobile-link:hover { color: var(--green); }
.nav-mobile-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--green-border);
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: -.01em;
  transition: color .2s;
}
.nav-mobile-group:hover { color: var(--green); }
.nav-mobile-chevron { transition: transform .25s; flex-shrink: 0; opacity: .5; }
.nav-mobile-group.open .nav-mobile-chevron { transform: rotate(180deg); }
.nav-mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.nav-mobile-sub.open { max-height: 600px; }
.nav-mobile-sub li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 14.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
.nav-mobile-sub li a:hover { color: var(--green-3); }
.nav-mobile-cta {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #0a1419;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s;
}
.nav-mobile-cta:hover { background: var(--green-2); }

/* ─── RESPONSIVE — shared nav + footer ─── */
@media (max-width: 1100px) {
  nav             { padding: 0 32px; }
  .nav-links      { display: none; }
  .nav-cta        { display: none; }
  .nav-hamburger  { display: flex; }
  .divider        { margin: 0 32px; }
  footer          { padding: 48px 32px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── WIDESCREEN — nav + footer ─── */
@media (min-width: 1521px) {
  nav, footer {
    padding-left:  calc((100vw - 1400px) / 2);
    padding-right: calc((100vw - 1400px) / 2);
  }
}
