/* ========================================
   NEXGEN GROUP WEBSITE — style.css
   Brand: Navy #0A2240 | Gold #C8960C
   ======================================== */

/* === 1. Variables & Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0A2240;
  --navy-dark:  #061528;
  --navy-mid:   #0d3060;
  --gold:       #C8960C;
  --gold-light: #e5aa18;
  --bg:         #f5f7fa;
  --bg-alt:     #eef1f7;
  --text:       #1a1a2a;
  --text-muted: #5a6378;
  --white:      #ffffff;
  --border:     #d8dde8;
  --shadow-sm:  0 2px 8px rgba(10,34,64,0.08);
  --shadow-md:  0 4px 20px rgba(10,34,64,0.12);
  --shadow-lg:  0 8px 40px rgba(10,34,64,0.15);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
  --max-width:  1200px;
  --navbar-h:   70px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === 2. Typography === */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1rem; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

/* === 3. Layout === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section      { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 { color: var(--white); }
.section--navy p  { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section--navy .section-label { color: var(--gold-light); }

/* Gold accent underline on section headings */
.section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section-header.align-left h2::after { margin-left: 0; }

.two-col   { display: grid; grid-template-columns: 1fr 1fr;         gap: 48px; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr);  gap: 32px; }

/* === 4. Navbar === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-h);
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar.scrolled {
  background: rgba(6,21,40,0.97);
  backdrop-filter: blur(10px);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}
.nav-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo-text span { color: var(--gold); }

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--white);
  background: rgba(255,255,255,0.09);
}
.nav-menu > li > a.active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
}
.nav-arrow { font-size: 0.65rem; transition: transform var(--transition); }
.dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
  border-top: 3px solid var(--gold);
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.dropdown-menu li a:hover {
  background: var(--bg);
  color: var(--gold);
  padding-left: 24px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 5. Hero (Home) — Cybersecurity Theme === */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--navbar-h);
}
/* Radial glow accents */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(200,150,12,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(13,48,96,0.6) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,255,100,0.03) 0%, transparent 40%);
  pointer-events: none;
}
/* Grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,150,12,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,150,12,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Animated cyber particles container */
.hero-cyber-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Floating binary rain columns */
.cyber-binary {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: rgba(200,150,12,0.32);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 4px;
  animation: binaryFall linear infinite;
  white-space: nowrap;
}
.cyber-binary:nth-child(1) { left: 5%;  animation-duration: 18s; animation-delay: 0s; }
.cyber-binary:nth-child(2) { left: 15%; animation-duration: 22s; animation-delay: 3s; font-size: 10px; color: rgba(0,200,100,0.22); }
.cyber-binary:nth-child(3) { left: 30%; animation-duration: 15s; animation-delay: 1s; }
.cyber-binary:nth-child(4) { left: 55%; animation-duration: 20s; animation-delay: 5s; color: rgba(0,200,100,0.20); }
.cyber-binary:nth-child(5) { left: 70%; animation-duration: 17s; animation-delay: 2s; }
.cyber-binary:nth-child(6) { left: 85%; animation-duration: 25s; animation-delay: 7s; font-size: 11px; }
.cyber-binary:nth-child(7) { left: 42%; animation-duration: 19s; animation-delay: 4s; color: rgba(200,150,12,0.25); }
.cyber-binary:nth-child(8) { left: 92%; animation-duration: 16s; animation-delay: 6s; }
@keyframes binaryFall {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

/* Floating shield / lock icons */
.cyber-float {
  position: absolute;
  font-size: 1.6rem;
  opacity: 0.22;
  animation: cyberFloat 12s ease-in-out infinite;
}
.cyber-float:nth-child(1) { top: 20%; right: 10%; animation-delay: 0s; animation-duration: 14s; }
.cyber-float:nth-child(2) { top: 60%; right: 22%; animation-delay: 3s; animation-duration: 11s; font-size: 1.2rem; }
.cyber-float:nth-child(3) { top: 35%; right: 5%;  animation-delay: 6s; animation-duration: 16s; font-size: 2rem; }
.cyber-float:nth-child(4) { top: 75%; right: 35%; animation-delay: 2s; animation-duration: 13s; }
.cyber-float:nth-child(5) { top: 15%; right: 30%; animation-delay: 8s; animation-duration: 18s; font-size: 1rem; }
@keyframes cyberFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.18; }
  25%      { transform: translateY(-20px) rotate(5deg); opacity: 0.32; }
  50%      { transform: translateY(-8px) rotate(-3deg); opacity: 0.22; }
  75%      { transform: translateY(-25px) rotate(4deg); opacity: 0.28; }
}

/* Scanning horizontal line across hero */
.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,150,12,0.4) 30%, rgba(200,150,12,0.6) 50%, rgba(200,150,12,0.4) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: heroScan 6s ease-in-out infinite;
}
@keyframes heroScan {
  0%   { top: 10%; opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { top: 95%; opacity: 0; }
}

/* Pulsing radar circles */
.cyber-radar {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 0;
}
.cyber-radar::before,
.cyber-radar::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,150,12,0.1);
  inset: 0;
  animation: radarPulse 4s ease-out infinite;
}
.cyber-radar::after {
  animation-delay: 2s;
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,150,12,0.06);
}
.radar-ring:nth-child(1) { inset: 20%; animation: radarPulse 4s ease-out 1s infinite; }
.radar-ring:nth-child(2) { inset: 40%; animation: radarPulse 4s ease-out 3s infinite; }
.radar-ring:nth-child(3) { inset: -20%; border-color: rgba(0,200,100,0.04); animation: radarPulse 5s ease-out 0.5s infinite; }
@keyframes radarPulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Typing cursor effect on badge */
.hero-badge::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  color: var(--gold);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: heroFadeIn 1s ease 0.3s both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,150,12,0.1);
  border: 1px solid rgba(200,150,12,0.28);
  color: var(--gold-light);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 640px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .cyber-radar { display: none; }
  .cyber-float { display: none; }
  .cyber-binary:nth-child(n+5) { display: none; }
  .cyber-hex { display: none; }
  .cyber-terminal { display: none; }
  .cyber-nodes { display: none; }
  .cyber-threat-badge { display: none; }
  .hero-scan-line-v { display: none; }
}

/* Hex code streams */
.cyber-hex {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(200,150,12,0.28);
  writing-mode: vertical-rl;
  white-space: nowrap;
  pointer-events: none;
  animation: binaryFall linear infinite;
  user-select: none;
}
.cyber-hex:nth-child(9)  { left: 8%;  animation-duration: 21s; animation-delay: 1s; color: rgba(200,150,12,0.22); }
.cyber-hex:nth-child(10) { left: 22%; animation-duration: 17s; animation-delay: 8s; font-size: 9px; }
.cyber-hex:nth-child(11) { left: 62%; animation-duration: 24s; animation-delay: 4s; color: rgba(200,150,12,0.18); }
.cyber-hex:nth-child(12) { left: 78%; animation-duration: 19s; animation-delay: 11s; font-size: 11px; }

/* Terminal text lines */
.cyber-terminal {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: rgba(0,200,100,0.32);
  white-space: nowrap;
  pointer-events: none;
  animation: terminalFade 8s ease-in-out infinite;
  user-select: none;
  letter-spacing: 0.05em;
}
.cyber-terminal:nth-child(13) { bottom: 22%; left: 3%;  animation-delay: 0s;  animation-duration: 9s; }
.cyber-terminal:nth-child(14) { bottom: 16%; left: 3%;  animation-delay: 1.8s; animation-duration: 10s; }
.cyber-terminal:nth-child(15) { bottom: 10%; left: 3%;  animation-delay: 3.6s; animation-duration: 8.5s; }
.cyber-terminal:nth-child(16) { bottom: 30%; right: 3%; animation-delay: 2s;  animation-duration: 11s; text-align: right; }
.cyber-terminal:nth-child(17) { bottom: 24%; right: 3%; animation-delay: 4.5s; animation-duration: 9s; text-align: right; }
.term-ok   { color: rgba(0,220,110,0.7); }
.term-warn { color: rgba(200,150,12,0.7); }
@keyframes terminalFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Network node SVG */
.cyber-nodes {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 70%;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  animation: nodesFade 6s ease-in-out infinite;
}
.node-line {
  stroke: rgba(200,150,12,0.5);
  stroke-width: 0.8;
  stroke-dasharray: 4 6;
  animation: dashFlow 3s linear infinite;
}
.node-dot {
  fill: rgba(200,150,12,0.6);
  animation: nodePulse 2.5s ease-in-out infinite;
}
.node-hub {
  fill: rgba(200,150,12,0.9);
  animation: nodePulse 2s ease-in-out infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -20; }
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.6; r: auto; }
  50%       { opacity: 1; }
}
@keyframes nodesFade {
  0%, 100% { opacity: 0.14; }
  50%       { opacity: 0.26; }
}

/* Vertical scan line */
.hero-scan-line-v {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,200,100,0.35) 30%, rgba(0,200,100,0.5) 50%, rgba(0,200,100,0.35) 70%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  animation: heroScanV 9s ease-in-out infinite;
  animation-delay: 3s;
}
@keyframes heroScanV {
  0%   { left: 5%;  opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { left: 95%; opacity: 0; }
}

/* Threat level badge (bottom right corner) */
.cyber-threat-badge {
  position: absolute;
  bottom: 28px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,200,100,0.2);
  border-radius: 4px;
  padding: 6px 12px;
  pointer-events: none;
  z-index: 1;
  animation: badgeFade 3s ease-in-out 1s both;
}
.threat-label {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.threat-bar {
  display: block;
  width: 48px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.threat-fill {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,200,100,0.8), rgba(0,200,100,0.4));
  border-radius: 2px;
  animation: threatPulse 3s ease-in-out infinite;
}
.threat-status {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(0,220,110,0.8);
  text-transform: uppercase;
}
@keyframes threatPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
@keyframes badgeFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === 6. Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,150,12,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }

/* === 7. Stats Bar === */
.stats-bar { background: var(--navy); padding: 40px 0; }
.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; flex: 1; min-width: 110px; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.62);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.12); }

/* === 8. Cards === */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  background: rgba(10,34,64,0.07);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card-icon.gold { background: rgba(200,150,12,0.1); }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.card p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.card-link:hover { gap: 8px; color: var(--navy); }

/* === 9. Division Cards === */
.divisions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.division-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px;
  border-top: 4px solid var(--navy);
  transition: all var(--transition);
}
.division-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}
.div-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.division-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.division-card .focus {
  font-size: 0.78rem; font-weight: 700;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px; display: block;
  letter-spacing: 0.04em;
}
.division-card p { font-size: 0.88rem; margin-bottom: 16px; }
.services-list { margin: 10px 0 20px; padding: 0; }
.services-list li {
  font-size: 0.84rem; color: var(--text-muted);
  padding: 3px 0 3px 16px; position: relative;
}
.services-list li::before {
  content: '›'; position: absolute; left: 0;
  color: var(--gold); font-weight: 700;
}

/* === 10. Why NEXGEN === */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-num {
  flex-shrink: 0; width: 46px; height: 46px;
  background: var(--gold); color: var(--navy-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 800;
}
.why-text h4 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.why-text p  { font-size: 0.9rem; margin: 0; }

/* === 11. CTA Banner === */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,150,12,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,150,12,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner > .container > p {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === 12. Page Hero (inner pages) === */
.page-hero {
  background: var(--navy-dark);
  padding: calc(var(--navbar-h) + 56px) 0 56px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,150,12,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,150,12,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
}
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero .tagline {
  font-size: 1.05rem; color: var(--gold-light);
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  margin-bottom: 20px;
}
.page-hero p { color: rgba(255,255,255,0.72); max-width: 680px; font-size: 1rem; margin: 0; }

/* === 13. Tables === */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead th {
  background: var(--navy); color: var(--white);
  padding: 13px 18px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.79rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
tbody td {
  padding: 13px 18px; font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg); }
tbody tr:hover { background: rgba(10,34,64,0.03); }
tbody td:first-child { font-weight: 600; color: var(--navy); }

/* === 14. Fact Grid === */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact-card {
  background: var(--white); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
}
.fact-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 5px;
}
.fact-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.98rem; font-weight: 700; color: var(--navy);
}

/* === 15. Values Grid === */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
}
.value-card h4 { color: var(--navy); margin-bottom: 10px; font-size: 1rem; }
.value-card p  { font-size: 0.9rem; margin: 0; }

/* === 16. Partner Cards === */
.partners-section-header { margin-bottom: 28px; }
.partners-section-header h3 {
  font-size: 1.3rem; color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.partners-grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partner-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; gap: 18px; align-items: flex-start;
  transition: all var(--transition);
}
.partner-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.partner-icon {
  width: 46px; height: 46px;
  background: rgba(10,34,64,0.06);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.partner-info h4 { margin-bottom: 8px; font-size: 0.98rem; }
.partner-info p  { font-size: 0.87rem; margin: 0; }

/* === 17. Contact === */
.contact-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.contact-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--navy);
}
.contact-card.buea { border-top-color: var(--gold); }
.contact-card h3  { margin-bottom: 4px; }
.contact-card .office-label {
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 24px; display: block;
}
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.contact-detail-icon {
  width: 34px; height: 34px;
  background: rgba(10,34,64,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.contact-detail-text { font-size: 0.9rem; }
.contact-detail-text .clabel {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 2px;
}
.contact-detail-text a { color: var(--navy); transition: color var(--transition); }
.contact-detail-text a:hover { color: var(--gold); }

.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px; box-shadow: var(--shadow-sm);
}
.contact-form-wrap h3 { margin-bottom: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,34,64,0.09);
  background: var(--white);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* === 18. Programme Cards === */
.program-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.program-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--navy);
  transition: all var(--transition);
}
.program-card.featured { border-top-color: var(--gold); box-shadow: var(--shadow-md); }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program-badge {
  display: inline-block;
  background: rgba(200,150,12,0.1); color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 14px;
}
.program-card h4 { margin-bottom: 8px; font-size: 0.98rem; }
.program-card p  { font-size: 0.87rem; }
.program-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.meta-tag {
  background: rgba(10,34,64,0.06); color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.73rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
}

/* === 19. Impact Areas === */
.impact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.impact-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; gap: 20px; align-items: flex-start;
}
.impact-icon { font-size: 2rem; flex-shrink: 0; }
.impact-text h4 { margin-bottom: 8px; }
.impact-text p  { font-size: 0.9rem; margin: 0; }

/* === 20. Gallery === */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid img {
  border-radius: var(--radius);
  width: 100%; height: 210px;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-grid img:hover { transform: scale(1.03); }
.img-rounded { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-rounded img { width: 100%; height: 420px; object-fit: cover; }

/* === 21. Feature list === */
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem; color: var(--text-muted);
}
.feature-list li::before {
  content: '✓';
  flex-shrink: 0; width: 22px; height: 22px;
  background: rgba(200,150,12,0.11); color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; margin-top: 2px;
}

/* === 22. Footer === */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.78); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer-logo img { height: 38px; width: auto; object-fit: contain; border-radius: 4px; }
.footer-logo-text {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 1.05rem; color: var(--white);
}
.footer-logo-text span { color: var(--gold); }
.footer-about p      { font-size: 0.86rem; color: rgba(255,255,255,0.57); line-height: 1.7; margin-bottom: 14px; }
.footer-reg          { font-size: 0.73rem; color: rgba(255,255,255,0.35); font-family: 'Montserrat', sans-serif; }
.footer h4 {
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 0.86rem; color: rgba(255,255,255,0.57);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; font-size: 0.84rem; color: rgba(255,255,255,0.57); margin-bottom: 11px; line-height: 1.55; }
.footer-contact-item .icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.57); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: rgba(255,255,255,0.65);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--gold); color: var(--navy-dark); }
.footer-bottom {
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p       { font-size: 0.8rem; color: rgba(255,255,255,0.38); margin: 0; }
.footer-bottom-links   { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.38);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--gold); }

/* === 23. Utilities === */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.lead        { font-size: 1.05rem; color: var(--text); line-height: 1.8; }
.body-text   { max-width: 760px; font-size: 1rem; line-height: 1.8; color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0 !important; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Divider */
.divider {
  border: none; border-top: 1px solid var(--border); margin: 48px 0;
}
.divider-gold { border-top-color: var(--gold); }

/* Who we serve table wrapper */
.serve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.serve-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--navy);
}
.serve-card h4 { margin-bottom: 10px; font-size: 0.98rem; color: var(--navy); }
.serve-card p  { font-size: 0.87rem; margin: 0; }

/* Info box */
.info-box {
  background: rgba(10,34,64,0.05);
  border-radius: var(--radius);
  padding: 24px 28px;
  border-left: 4px solid var(--gold);
  margin: 24px 0;
}
.info-box p { margin: 0; font-size: 0.92rem; color: var(--text); }

/* Certification grid */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--navy);
  text-align: center;
}
.cert-card.adv { border-top-color: var(--gold); }
.cert-card .cert-name { font-family: 'Montserrat', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.cert-card .cert-level {
  font-size: 0.75rem;
  background: rgba(10,34,64,0.07); color: var(--navy);
  padding: 2px 10px; border-radius: 100px;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  display: inline-block; margin-bottom: 6px;
}
.cert-card .cert-focus { font-size: 0.8rem; color: var(--text-muted); }

/* Map placeholder */
.map-placeholder {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed var(--border);
  text-align: center;
}
.map-placeholder p { color: var(--text-muted); font-size: 0.9rem; }

/* === 24. Responsive === */
@media (max-width: 1024px) {
  .divisions-grid  { grid-template-columns: repeat(2, 1fr); }
  .facts-grid      { grid-template-columns: repeat(2, 1fr); }
  .values-grid     { grid-template-columns: repeat(2, 1fr); }
  .program-cards   { grid-template-columns: repeat(2, 1fr); }
  .cert-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    padding: 12px;
    gap: 2px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-menu.open { max-height: 620px; overflow-y: auto; }
  .nav-menu > li > a { padding: 12px 16px; width: 100%; }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.04);
    border-radius: 8px; border-top: none;
    border-left: 3px solid var(--gold);
    margin-left: 16px; padding: 4px 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .dropdown.open .dropdown-menu { max-height: 400px; }
  .dropdown-menu li a { color: rgba(255,255,255,0.78); }
  .dropdown-menu li a:hover { background: rgba(255,255,255,0.04); color: var(--gold-light); padding-left: 20px; }

  /* Grid collapses */
  .two-col, .three-col, .why-grid,
  .divisions-grid, .values-grid,
  .partners-grid-cards, .contact-cards-grid,
  .form-grid, .impact-grid, .serve-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .program-cards { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .stats-grid { gap: 12px; }
  .stat-divider { display: none; }
  .cta-actions, .hero-actions { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 28px 20px; }
  .img-rounded img { height: 280px; }
}

@media (max-width: 480px) {
  .facts-grid    { grid-template-columns: 1fr; }
  .program-cards { grid-template-columns: 1fr; }
  .cert-grid     { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
}

/* ========================================
   === 25. BOOT / PAGE-LOAD ANIMATION ===
   ======================================== */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#boot-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: bootFadeIn 0.5s ease forwards;
}
.boot-logo-mark {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  box-shadow: 0 0 24px rgba(200,150,12,0.25);
}
.boot-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.05em;
}
.boot-logo-text span { color: var(--gold); }
.boot-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
.boot-progress-wrap {
  width: 260px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.boot-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.1s linear;
}
.boot-status {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  min-height: 18px;
}

@keyframes bootFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   === 26. PAGE SCAN EFFECT ===
   ======================================== */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  animation: scanDown 1.8s ease-in-out forwards;
  animation-delay: 0.3s;
}
@keyframes scanDown {
  0%   { top: 0;    opacity: 0; }
  5%   { opacity: 0.7; }
  95%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

/* ========================================
   === 27. MODAL SYSTEM ===
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(6,21,40,0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--gold);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--navy); }
.modal-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,150,12,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.modal-box h3 { margin-bottom: 12px; color: var(--navy); }
.modal-box p  { font-size: 0.93rem; margin-bottom: 12px; }
.modal-box .modal-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Modal Form Styles */
.modal-form { margin-top: 20px; }
.modal-form .mf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-form .mf-full { grid-template-columns: 1fr; }
.modal-form label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,12,0.12);
}
.modal-form textarea { min-height: 80px; resize: vertical; }
.modal-form .mf-submit {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  justify-content: center;
  font-size: 0.92rem;
}
.modal-form .mf-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}
.modal-form .mf-success {
  text-align: center;
  padding: 24px 16px;
}
.modal-form .mf-success .mf-check {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.modal-form .mf-success h4 {
  color: var(--navy);
  margin-bottom: 6px;
}
.modal-form .mf-success p { font-size: 0.88rem; }
.modal-trigger-btn {
  /* Small floating CTA to open modal */
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 4000;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 50px;
  padding: 13px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(200,150,12,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatIn 0.5s ease 1s both;
}
.modal-trigger-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(200,150,12,0.55);
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   === 28. TESTIMONIALS ===
   ======================================== */
.testimonials-section { background: var(--navy); padding: 80px 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: background var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-4px);
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 4rem;
  line-height: 1;
  color: rgba(200,150,12,0.25);
  font-family: Georgia, serif;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-stars span {
  color: var(--gold);
  font-size: 0.9rem;
}
.testimonial-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 2px;
}
.testimonial-role {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .modal-trigger-btn { bottom: 16px; right: 16px; padding: 11px 18px; font-size: 0.78rem; }
  .modal-box { padding: 28px 24px; }
  #boot-screen .boot-progress-wrap { width: 220px; }
}

/* ========================================
   === 29. SECURITY — Honeypot & Helpers ===
   ======================================== */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  tab-index: -1;
}
/* Persistent success message */
.form-success-msg {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 4px solid #22c55e;
  border-radius: var(--radius);
  color: #166534;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeSlideIn 0.3s ease;
}

/* Button spinner */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 2px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-error-list {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: #991b1b;
  list-style: disc;
  padding-left: 32px;
}
.form-error-list li { margin-bottom: 4px; }

/* Legal page styles (moved from inline) */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--navy); }
.legal-content h3 { font-size: 1.05rem; margin: 28px 0 10px; color: var(--navy-mid); }
.legal-content p, .legal-content li { font-size: 0.95rem; line-height: 1.8; color: var(--text-muted); }
.legal-content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-meta { background: var(--bg-alt); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 40px; }
.legal-meta p { margin: 0; font-size: 0.87rem; }
.legal-callout { background: rgba(10,35,66,0.04); border: 1px solid rgba(10,35,66,0.12); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 24px 28px; margin: 32px 0 40px; }
.legal-callout h3 { margin: 0 0 12px; font-size: 1.05rem; color: var(--navy); }
.legal-callout p { font-size: 0.93rem; line-height: 1.75; margin: 0 0 12px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-callout ul { list-style: disc; padding-left: 22px; margin: 10px 0 14px; }
.legal-callout ul li { font-size: 0.93rem; line-height: 1.75; margin-bottom: 8px; color: var(--text-muted); }

/* ========================================
   === 30. BLOG SECTION ===
   ======================================== */

/* Blog Filters */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.blog-filter-btn {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.blog-filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.blog-filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Blog Card */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.blog-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
}
.blog-card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}
.blog-card-img--placeholder span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: rgba(200,150,12,0.3);
  letter-spacing: 0.1em;
}
.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  display: inline-block;
  background: rgba(200,150,12,0.12);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}
.blog-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.blog-card-read {
  color: var(--gold);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

/* Blog Loading */
.blog-loading {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}
.blog-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.blog-empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}

/* ========================================
   === 31. BLOG POST PAGE ===
   ======================================== */
.blog-post-page { padding-top: var(--navbar-h); }
.blog-post-header {
  background: var(--navy);
  padding: 64px 0 48px;
}
.blog-post-container { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.blog-post-header .breadcrumb a { color: rgba(255,255,255,0.5); }
.blog-post-header .breadcrumb { color: rgba(255,255,255,0.4); }
.blog-post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.blog-post-tag {
  background: rgba(200,150,12,0.15);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-post-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}
.blog-post-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.blog-post-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}
.blog-post-content {
  padding: 40px 0 64px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.blog-post-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 48px 0 16px;
}
.blog-post-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 36px 0 12px;
}
.blog-post-content p { margin-bottom: 20px; }
.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 20px;
  padding-left: 28px;
}
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
.blog-post-content pre {
  background: var(--navy-dark);
  color: #e5e7eb;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.blog-post-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.blog-post-content pre code { background: none; padding: 0; }
.blog-post-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}
.blog-post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================================
   === 32. SOCIAL SHARE BAR ===
   ======================================== */
.share-bar {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 500;
}
.share-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
}
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.share-btn:hover { background: var(--gold); color: var(--navy-dark); transform: scale(1.1); }
.share-btn.copied { background: var(--gold); }
.share-facebook:hover { background: #1877f2; color: white; }
.share-twitter:hover { background: #000; color: white; }
.share-linkedin:hover { background: #0a66c2; color: white; }
.share-whatsapp:hover { background: #25d366; color: white; }

/* ========================================
   === 33. NEWSLETTER FORM ===
   ======================================== */
.newsletter-form { max-width: 480px; margin: 24px auto 0; }
.newsletter-input-wrap {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.newsletter-input-wrap input {
  flex: 1;
  padding: 14px 24px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
}
.newsletter-input-wrap .btn { border-radius: 0; padding: 14px 28px; white-space: nowrap; }
.newsletter-msg {
  font-size: 0.82rem;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}
.newsletter-msg.success { color: #10b981; }
.newsletter-msg.error { color: #ef4444; }
.newsletter-promise { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin: 14px auto 0; text-align: center; max-width: 480px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Tablets (769–1024px): hide the sidebar, show a compact bottom bar instead */
@media (min-width: 769px) and (max-width: 1024px) {
  .share-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    padding: 10px 16px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    gap: 10px;
  }
  .share-label { display: none; }
  .share-btn { width: 38px; height: 38px; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .share-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    padding: 12px;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    gap: 12px;
  }
  .share-label { display: none; }
  .share-btn { width: 38px; height: 38px; }
  .blog-post-header { padding: 40px 0 32px; }
  .blog-post-content { padding: 24px 0 48px; font-size: 1rem; }
  .newsletter-input-wrap { flex-direction: column; border-radius: var(--radius); }
  .newsletter-input-wrap input { border-radius: var(--radius) var(--radius) 0 0; }
  .newsletter-input-wrap .btn { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ============================================================
   BACK TO BLOG
   ============================================================ */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  transition: color var(--transition), transform var(--transition);
  text-decoration: none;
}
.back-to-blog:hover {
  color: var(--gold-light);
  transform: translateX(-3px);
}
.back-to-blog-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
#whatsappFloat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
#whatsappFloat:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
/* Pulse ring animation */
#whatsappFloat::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0;   }
  100% { transform: scale(1.5); opacity: 0;   }
}
/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: #0A2240;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #0A2240;
}
#whatsappFloat:hover .wa-tooltip { opacity: 1; }

/* On mobile, move above bottom share bar on blog-post pages */
@media (max-width: 768px) {
  #whatsappFloat {
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .wa-tooltip { display: none; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
#cookieBanner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -4px 24px rgba(10,34,64,0.25);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
#cookieBanner.cookie-visible {
  transform: translateY(0);
}
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}
.cookie-icon { font-size: 1.4rem; flex-shrink: 0; }
.cookie-text p {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}
.cookie-text a:hover { color: var(--gold-light); }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--accept {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(200,150,12,0.35);
}
.cookie-btn--accept:hover { box-shadow: 0 4px 16px rgba(200,150,12,0.5); }
.cookie-btn--decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}
.cookie-btn--decline:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
@media (max-width: 600px) {
  .cookie-inner { padding: 14px 16px; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
}
