/* ==========================================================================
   XerroRisk Consultancy – Clean Enterprise Design System
   Identity: "Be Smart || Be Secure"
   Light-theme · Cassava-inspired · Modern & Professional
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* -------------------------------------------------------------------------
   Self-Hosted Font Declarations (Aptos & Helvetica Custom)
   ------------------------------------------------------------------------- */

/* Aptos — Regular (400) */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos'),
       url('../assets/fonts/Aptos.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Aptos — Italic (400) */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Italic'),
       url('../assets/fonts/Aptos-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Aptos — Bold (700) */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Bold'),
       url('../assets/fonts/Aptos-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* Aptos — Bold Italic (700) */
@font-face {
  font-family: 'Aptos';
  src: local('Aptos Bold Italic'),
       url('../assets/fonts/Aptos-BoldItalic.ttf') format('truetype');
  font-weight: 600 700;
  font-style: italic;
  font-display: swap;
}

/* Aptos Display — Regular & Bold */
@font-face {
  font-family: 'Aptos Display';
  src: local('Aptos Display'),
       url('../assets/fonts/Aptos-Display.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aptos Display';
  src: local('Aptos Display Bold'),
       url('../assets/fonts/Aptos-DisplayBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Helvetica Custom — Regular (400) */
@font-face {
  font-family: 'Helvetica Custom';
  src: local('Helvetica Neue'),
       local('Helvetica'),
       url('../assets/fonts/Helvetica.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Helvetica Custom — Oblique / Italic (400) */
@font-face {
  font-family: 'Helvetica Custom';
  src: local('Helvetica Neue Italic'),
       local('Helvetica Oblique'),
       url('../assets/fonts/Helvetica-Oblique.ttf') format('truetype');
  font-weight: 400;
  font-style: italic, oblique;
  font-display: swap;
}

/* Helvetica Custom — Bold (700) */
@font-face {
  font-family: 'Helvetica Custom';
  src: local('Helvetica Neue Bold'),
       local('Helvetica Bold'),
       url('../assets/fonts/Helvetica-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* Helvetica Custom — Bold Oblique (700) */
@font-face {
  font-family: 'Helvetica Custom';
  src: local('Helvetica Neue Bold Italic'),
       local('Helvetica Bold Oblique'),
       url('../assets/fonts/Helvetica-BoldOblique.ttf') format('truetype');
  font-weight: 600 700;
  font-style: italic, oblique;
  font-display: swap;
}

/* Helvetica Custom — Black (900) */
@font-face {
  font-family: 'Helvetica Custom';
  src: local('Helvetica Neue Black'),
       local('Helvetica Black'),
       url('../assets/fonts/Helvetica-Black.ttf') format('truetype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  /* Brand */
  --primary:        #FF4748;
  --primary-dark:   #E83839;
  --primary-light:  rgba(255, 71, 72, 0.08);
  --primary-border: rgba(255, 71, 72, 0.2);

  /* Surfaces */
  --white:   #ffffff;
  --bg:      #f7f8fa;
  --bg-alt:  #f0f2f5;
  --surface: #ffffff;

  /* Text */
  --text-heading: #0d1117;
  --text-body:    #3d4455;
  --text-muted:   #7b8394;
  --text-light:   #a0a8b8;

  /* Borders */
  --border: #e3e6ee;
  --border-dark: #d0d4de;

  /* Dark sections */
  --dark:       #101828;
  --dark-card:  #1a2234;
  --dark-text:  rgba(255,255,255,0.85);
  --dark-muted: rgba(255,255,255,0.5);

  /* Accent for dark */
  --accent-on-dark: #FF4748;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
  --radius: 10px;
  --radius-lg: 18px;

  /* Typography: Helvetica for Headings & Display, Aptos for Body & UI */
  --font-heading: 'Helvetica Custom', 'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: 'Aptos', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur: 0.22s;
  --dur-md: 0.38s;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.07);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--dark); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.section-title span { color: var(--primary); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.7;
}

.section-header { margin-bottom: 60px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* On dark sections */
.section-dark .section-label { color: rgba(255,255,255,0.6); }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,71,72,0.28);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(255,71,72,0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn-sm { padding: 9px 18px; font-size: 0.875rem; }

/* Nav book button — hidden on mobile via @media 768px rule */
.nav-book-btn { display: inline-flex; }

/* --- Announcement Bar --- */
.announce-bar {
  background: var(--primary);
  color: #fff;
  padding: 9px 32px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.01em;
}

.announce-bar a {
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  margin-left: 8px;
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: 7px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
  background: var(--primary-light);
}

.mobile-nav-list a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 7px;
  transition: background var(--dur) var(--ease);
}
.mobile-toggle:hover { background: var(--bg); }
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 99;
  padding: 24px 32px;
  transform: translateX(100%);
  transition: transform var(--dur-md) var(--ease);
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav-list a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
}
.mobile-nav-list a:hover { color: var(--primary); background: var(--primary-light); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--dark);
  padding: 140px 0 90px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,71,72,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,71,72,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Red gradient orb */
.hero::after {
  content: '';
  position: absolute;
  top: -160px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,71,72,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: block;
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,71,72,0.12);
  border: 1px solid rgba(255,71,72,0.25);
  color: #FF7F80;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-eyebrow svg { flex-shrink: 0; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.hero-title .accent { color: var(--primary); }

/* Cyber Typewriter & Dynamic Hero Rotator */
.hero-typewriter-line {
  display: block;
  min-height: 1.25em;
  position: relative;
  color: var(--primary);
  text-shadow: 0 0 30px rgba(255, 71, 72, 0.4);
}

.hero-typewriter-text {
  color: var(--primary);
}

.hero-typewriter-cursor {
  display: inline-block;
  width: 3.5px;
  height: 0.82em;
  margin-left: 6px;
  vertical-align: -0.04em;
  background-color: var(--primary);
  box-shadow: 0 0 10px rgba(255, 71, 72, 0.9), 0 0 20px rgba(255, 71, 72, 0.5);
  border-radius: 1px;
  animation: heroCursorPulse 0.95s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes heroCursorPulse {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-tagline {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  transition: opacity 0.25s ease;
}

.hero-tagline.fading {
  opacity: 0;
}

.hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 740px;
  margin-bottom: 36px;
  min-height: 4.8em;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-desc.fading {
  opacity: 0;
  transform: translateY(4px);
}

/* Screen Reader Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .hero-typewriter-line {
    min-height: 2.35em;
  }
  .hero-desc {
    min-height: 7.2em;
  }
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Hero Card (Right column) */
.hero-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  z-index: 1;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,71,72,0.15);
  border: 1px solid rgba(255,71,72,0.25);
  color: #FF7F80;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* HUD Mode Tabs */
.hud-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.hud-tab {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}
.hud-tab.active,
.hud-tab:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
}

/* Gauge */
.hud-gauge-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.hud-gauge-svg { width: 80px; height: 80px; flex-shrink: 0; }

.hud-gauge-info {}
.hud-gauge-val {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.hud-gauge-lbl {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.hud-gauge-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

/* HUD Checklist */
.hud-checklist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.hud-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
}

.hud-status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hud-status-indicator.status-ok {
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
}
.hud-status-indicator.status-warn {
  background: #fbbf24;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.5);
}

/* ============================================================
   MARQUEE / PARTNERS STRIP
   ============================================================ */
.marquee-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
}

.marquee-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 28px;
}

.marquee-track-wrap {
  position: relative;
  overflow: hidden;
}

/* Fade edges */
.marquee-track-wrap::before,
.marquee-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-track-wrap::before { left: 0; background: linear-gradient(to right, #fff, transparent); }
.marquee-track-wrap::after  { right: 0; background: linear-gradient(to left, #fff, transparent); }

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 24px;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.55;
  transition: all 0.3s var(--ease);
}
.partner-logo-card:hover { filter: grayscale(0); opacity: 1; }
.partner-logo-card img { height: 36px; width: auto; object-fit: contain; }

/* ============================================================
   4 SERVICE PILLARS
   ============================================================ */
.pillars-tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
  overflow-x: auto;
}

.pillar-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.pillar-tab svg { color: var(--text-light); transition: color var(--dur) var(--ease); }
.pillar-tab:hover { color: var(--text-heading); }
.pillar-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.pillar-tab.active svg { color: var(--primary); }

.pillar-panel { display: none; }
.pillar-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.pillar-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.pillar-heading {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.pillar-desc {
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 32px;
  font-size: 1rem;
}

.pillar-features { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.pillar-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.pillar-feature {
  padding-left: 18px;
  border-left: 2px solid var(--border);
  transition: border-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.pillar-feature:hover {
  border-left-color: var(--primary);
  padding-left: 22px;
}

.pillar-feature h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}
.pillar-feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pillar Visual Panel (right) */
.pillar-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.pillar-visual-badge {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.pillar-visual h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}
.pillar-visual p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.badge-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.badge-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.badge-tile-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.badge-tile-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================================================
   CASSAVA-INSPIRED CYCLING BUSINESS UNITS SHOWCASE
   ========================================================================= */
.services-showcase-section {
  padding: 80px 0 96px;
  background: var(--bg);
  position: relative;
}

.bu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bu-kicker {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f172a;
  display: inline-block;
  position: relative;
}

.bu-kicker::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--primary);
  margin-top: 6px;
  border-radius: 2px;
}

.bu-showcase-wrapper {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

/* Tab Bar across top */
.bu-tab-bar {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  position: relative;
  scrollbar-width: none;
}

.bu-tab-bar::-webkit-scrollbar {
  display: none;
}

.bu-tab-btn {
  flex: 1;
  min-width: 190px;
  padding: 20px 24px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  white-space: nowrap;
  outline: none;
}

.bu-tab-btn:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}

.bu-tab-btn.active {
  color: #0f172a;
  background: #ffffff;
  font-weight: 800;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.05), -2px 0 8px rgba(0, 0, 0, 0.03), 2px 0 8px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
}

.bu-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}

/* Progress Bar */
.bu-progress-container {
  height: 3px;
  background: rgba(15, 23, 42, 0.08);
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.bu-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255, 71, 72, 0.5);
}

/* Slider Viewport */
.bu-slider-viewport {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #0f172a;
}

.bu-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 48px;
  background-size: cover;
  background-position: left center;
}

.bu-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 1;
}

.bu-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

/* Floating White Card (Cassava Style) */
.bu-floating-card {
  background: #ffffff !important;
  border-radius: 12px;
  padding: 42px 38px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 5;
}

.bu-card-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.bu-card-title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 14px;
}

.bu-card-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bu-card-logo-img {
  height: 28px;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.9;
}

.bu-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bu-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
}

.bu-card-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 26px;
}

.bu-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.bu-card-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 71, 72, 0.35);
  color: #ffffff;
}

.bu-card-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.bu-card-btn:hover svg {
  transform: translateX(4px);
}

/* Nav Controls (Prev/Next) */
.bu-nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bu-control-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bu-control-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 71, 72, 0.35);
}

.bu-control-btn:active {
  transform: translateY(0);
}

/* ============================================================
   RISK DIAGNOSTIC
   ============================================================ */
.diagnostic-section { background: var(--bg); }

.diagnostic-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Stepper */
.diag-stepper {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.step-item:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 12px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}

.step-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

.step-item.active .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.step-item.active .step-text { color: var(--text-heading); }

.step-item.done .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Step Content */
.diag-body { padding: 36px 32px; }

.diag-step { display: none; }
.diag-step.active { display: block; }

.diag-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
}

.diag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.form-field { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.option-cards { display: flex; flex-direction: column; gap: 8px; }

.option-card-lbl {
  display: block;
  cursor: pointer;
}

.option-card-lbl input { position: absolute; opacity: 0; pointer-events: none; }

.option-card-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
}

.option-card-lbl input:checked + .option-card-inner {
  border-color: var(--primary);
  background: var(--primary-light);
}

.option-card-inner:hover {
  border-color: var(--primary);
}

.option-card-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-dark);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-card-lbl input:checked + .option-card-inner .option-card-check {
  background: var(--primary);
  border-color: var(--primary);
}
.option-card-lbl input:checked + .option-card-inner .option-card-check::after {
  content: '';
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.option-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
}
.option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Diag Nav */
.diag-nav {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

/* Results */
.result-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

.score-ring-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
}

.score-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
}
.score-denom { font-size: 0.875rem; color: var(--text-muted); }

.score-status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-top: 8px;
}
.score-status-badge.good    { background: rgba(52,211,153,0.12); color: #059669; border: 1px solid rgba(52,211,153,0.3); }
.score-status-badge.warning { background: rgba(251,191,36,0.12); color: #b45309; border: 1px solid rgba(251,191,36,0.3); }
.score-status-badge.danger  { background: rgba(255,71,72,0.1);   color: var(--primary); border: 1px solid var(--primary-border); }

.rec-list { display: flex; flex-direction: column; gap: 10px; }

.rec-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--bg);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.rec-item.high   { border-left-color: var(--primary); }
.rec-item.medium { border-left-color: #f59e0b; }
.rec-item.low    { border-left-color: #34d399; }

.rec-title { font-size: 0.9rem; font-weight: 600; color: var(--text-heading); margin-bottom: 3px; }
.rec-text  { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   FRAMEWORKS GRID
   ============================================================ */
.framework-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.fw-filter-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  transition: all var(--dur) var(--ease);
}
.fw-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.fw-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.frameworks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.framework-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.framework-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.framework-card[data-hidden="true"] { display: none; }

.fw-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.fw-code {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fw-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.fw-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.fw-specs {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.fw-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  transition: color var(--dur) var(--ease);
}
.framework-card:hover .fw-action { color: var(--primary); }

/* ============================================================
   MASTERCLASS SECTION
   ============================================================ */
.masterclass-wrap {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.masterclass-wrap::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,71,72,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.masterclass-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.masterclass-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.masterclass-desc {
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 1rem;
}

.curriculum-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.curriculum-item {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.masterclass-info-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.masterclass-info-box .tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF7F80;
  margin-bottom: 14px;
}

.masterclass-info-box h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 18px;
}

.gain-list { display: flex; flex-direction: column; gap: 14px; }
.gain-item { display: flex; gap: 12px; align-items: flex-start; }
.gain-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}
.gain-text { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.gain-text strong { color: rgba(255,255,255,0.9); }

.masterclass-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   ABOUT / VALUES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.value-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.value-index {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.value-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.value-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.promise-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.promise-card::before {
  content: '"';
  position: absolute;
  top: -20px; left: 32px;
  font-family: var(--font-heading);
  font-size: 14rem;
  font-weight: 800;
  color: rgba(255,71,72,0.08);
  line-height: 1;
  pointer-events: none;
}

.promise-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
  max-width: 780px;
  position: relative;
  margin-bottom: 20px;
}

.promise-author {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ============================================================
   REGIONAL HUBS
   ============================================================ */
.hubs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.hub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.hub-card:hover { box-shadow: var(--shadow-md); }

.hub-card-head {
  background: var(--dark);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hub-code {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
  align-self: flex-start;
}

.hub-country {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.hub-city {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
}

.hub-card-body { padding: 28px 32px; }

.hub-contact-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.hub-contact-item:last-of-type { border-bottom: none; }

.hub-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hub-val {
  font-weight: 500;
  color: var(--text-heading);
  text-align: right;
}
.hub-contact-item a.hub-val {
  color: var(--text-heading);
  transition: color var(--dur) var(--ease);
}
.hub-contact-item a.hub-val:hover {
  color: var(--primary);
}

/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */
.contact-cta-wrap {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-cta-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,71,72,0.1) 0%, transparent 65%);
}

.contact-cta-wrap h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}

.contact-cta-wrap p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}

.contact-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a0f1a;
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.4); line-height: 1.6; }
.footer-brand .tagline {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 14px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--dur) var(--ease);
}
.footer-links a:hover { color: #fff; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   MODAL / CONSULTATION FORM
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  animation: modal-in 0.3s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 0;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text-heading);
}
.modal-header p { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg);
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.modal-close:hover { background: var(--primary-light); color: var(--primary); }

.modal-body { padding: 0 32px 32px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-heading);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,71,72,0.1);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.modal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   COUNTERS / MISC
   ============================================================ */
.counter-val { display: inline; }

/* ============================================================
   SUBPAGE ARCHITECTURE (Multi-Page Expansion)
   ============================================================ */
.page-hero {
  padding: 80px 0 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-hero-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 18px;
  max-width: 880px;
}

.page-hero-title span {
  color: var(--primary);
}

.page-hero-desc {
  font-size: 1.125rem;
  color: var(--text-body);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.page-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Contact Page Grid */
.contact-grid-wrap {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-quick-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-quick-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.contact-quick-card p {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.6;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.contact-form-sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* Deepdive service card & module list */
.service-pillar-deepdive {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.service-pillar-deepdive:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.service-deepdive-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.service-deepdive-num {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.service-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.service-subitem {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.service-subitem h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.service-subitem p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* AI Masterclass Module Cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.module-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.module-header {
  margin-bottom: 16px;
}

.module-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.module-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.module-topics {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-topics li {
  font-size: 0.875rem;
  color: var(--text-body);
  padding-left: 14px;
  position: relative;
}

.module-topics li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Corporate Story block */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-lead {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.6;
  margin-bottom: 20px;
}

.story-p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ============================================================
   BLOG / ADVISORY INSIGHTS
   ============================================================ */
.blog-featured-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.blog-featured-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.blog-featured-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.blog-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 16px;
}

.blog-featured-excerpt {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.blog-featured-meta strong {
  color: var(--text-heading);
}

.blog-featured-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-preview-stat {
  font-size: 0.875rem;
  color: var(--text-body);
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  line-height: 1.5;
}

.blog-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.blog-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.blog-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.blog-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.blog-search-box {
  position: relative;
  min-width: 260px;
}

.blog-search-input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: #fff;
  color: var(--text-heading);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}

.blog-search-input:focus {
  border-color: var(--primary);
}

.blog-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color var(--dur) var(--ease);
}

.blog-card:hover .blog-card-title {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.blog-card-action {
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Newsletter Subscription Box */
.blog-subscribe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.blog-subscribe-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.blog-subscribe-card p {
  font-size: 0.9375rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.6;
}

.blog-subscribe-form {
  display: flex;
  gap: 10px;
}

.blog-subscribe-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
  background: #fff;
  transition: border-color var(--dur) var(--ease);
}

.blog-subscribe-input:focus {
  border-color: var(--primary);
}

/* Article Reader Modal */
.article-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.article-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.article-modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s var(--ease);
}

.article-modal-backdrop.open .article-modal-box {
  transform: scale(1) translateY(0);
}

.article-modal-header {
  padding: 32px 36px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.article-modal-body {
  padding: 32px 36px 40px;
}

.article-modal-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 28px 0 12px;
}

.article-modal-body p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 18px;
}

/* ============================================================
   RESPONSIVE — COMPREHENSIVE MULTI-BREAKPOINT SYSTEM
   ============================================================ */

/* ── 1200px: Large laptop ────────────────────────────────── */
@media (max-width: 1200px) {
  .container { padding: 0 28px; }
  .hero-title { font-size: clamp(2rem, 4vw, 3rem); }
  .bu-floating-card { max-width: 420px; }
  .masterclass-wrap { gap: 48px; }
  .footer-grid { grid-template-columns: 220px 1fr 1fr 1fr; gap: 36px; }
}

/* ── 1024px: Tablet landscape / small laptop ─────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav-link { padding: 8px 11px; font-size: 0.875rem; }
  .brand-logo img { height: 34px; }

  /* Hero */
  .hero-grid { max-width: 100%; }
  .hero-title { font-size: clamp(2rem, 3.8vw, 2.8rem); }
  .hero-stats { gap: 28px; }
  .hero-stat-num { font-size: 1.65rem; }

  /* Frameworks grid: 2-col */
  .frameworks-grid { grid-template-columns: repeat(2, 1fr); }

  /* Masterclass: single column */
  .masterclass-wrap { grid-template-columns: 1fr; padding: 48px 44px; gap: 40px; }

  /* Footer: 2-col */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 48px; }

  /* Contact / forms */
  .contact-grid-wrap { grid-template-columns: 1fr; gap: 40px; }
  .service-subgrid { grid-template-columns: 1fr 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 36px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured-card { grid-template-columns: 1fr; gap: 28px; }
  .blog-subscribe-card { grid-template-columns: 1fr; gap: 24px; }

  /* Regional map: single column at tablet */
  .regional-map-grid { grid-template-columns: 1fr; gap: 28px; }
  .sadc-interactive-map { max-height: 420px; }
}

/* ── 900px: Tablet portrait ──────────────────────────────── */
@media (max-width: 900px) {
  /* BU Showcase */
  .bu-slide {
    padding: 24px;
    align-items: flex-end;
    justify-content: center;
    background-position: center center;
  }
  .bu-floating-card { max-width: 100%; padding: 28px 22px; }
  .bu-tab-btn { min-width: 150px; padding: 16px 16px; font-size: 0.875rem; }

  /* Cyber pillar layout */
  .cyber-pillar-layout { grid-template-columns: 1fr; }

  /* Hero stats wrap on 2 per row */
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stats > div { min-width: calc(50% - 10px); }
}

/* ── 768px: Mobile landscape / phablet ───────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }

  /* Navigation */
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-actions > .btn:not(.mobile-toggle) { display: none; }
  .brand-logo img { height: 32px; }

  /* Hero */
  .hero { padding: 80px 0 56px; }
  .hero-title { font-size: clamp(1.85rem, 6vw, 2.4rem); letter-spacing: -0.02em; }
  .hero-tagline { font-size: 0.95rem; }
  .hero-desc { font-size: 1rem; }
  .hero-stats { gap: 16px; padding-top: 24px; }
  .hero-stats > div { min-width: calc(50% - 8px); flex: 0 0 calc(50% - 8px); }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.75rem; }
  .hero::after { display: none; }

  /* Partners marquee */
  .marquee-section { padding: 28px 0; }
  .marquee-label { font-size: 0.75rem; }

  /* BU Showcase */
  .bu-slider-viewport { min-height: 480px; }
  .bu-floating-card { padding: 22px 18px; }
  .bu-card-title { font-size: 1.375rem; }
  .bu-card-text { font-size: 0.875rem; }
  .bu-tab-btn { min-width: 120px; padding: 14px 12px; font-size: 0.8125rem; }

  /* Frameworks section */
  .frameworks-grid { grid-template-columns: 1fr; }
  .framework-filters { gap: 6px; }
  .fw-filter-btn { font-size: 0.8125rem; padding: 7px 14px; }

  /* Masterclass */
  .masterclass-wrap { padding: 36px 24px; gap: 32px; }
  .masterclass-title { font-size: clamp(1.6rem, 5vw, 2rem); }
  .masterclass-wrap::before { display: none; }
  .curriculum-list { gap: 10px; }
  .curriculum-item { font-size: 0.9rem; }

  /* About / Values */
  .values-grid { grid-template-columns: 1fr; gap: 16px; }
  .value-card { padding: 28px 24px; }
  .promise-card { padding: 36px 24px; }

  /* Regional footprint */
  .footprint-section { padding: 64px 0; }
  .regional-map-grid { grid-template-columns: 1fr; gap: 24px; }
  .map-visual-wrapper { padding: 12px; }
  .sadc-interactive-map { max-height: 340px; }
  .dossier-card { padding: 28px 24px; }
  .dossier-title { font-size: 1.375rem; }
  .dossier-actions { flex-direction: column; }
  .dossier-actions .btn { width: 100%; justify-content: center; }
  .map-hub-tab { font-size: 0.8125rem; padding: 9px 18px; }

  /* Contact CTA */
  .contact-cta-wrap { padding: 48px 24px; }
  .contact-cta-btns { flex-direction: column; align-items: stretch; }
  .contact-cta-btns .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .footer-brand img { height: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .site-footer { padding: 48px 0 24px; }

  /* Modal */
  .modal { max-width: 100%; margin: 0 10px; border-radius: 14px; }
  .modal-form-grid { grid-template-columns: 1fr; gap: 0; }
  .modal-body { padding: 0 20px 24px; }
  .modal-header { padding: 22px 20px 0; }

  /* Diagnostic */
  .diag-grid { grid-template-columns: 1fr; }
  .result-layout { grid-template-columns: 1fr; }
  .diag-stepper { padding: 16px 18px; overflow-x: auto; }
  .diag-body { padding: 24px 18px; }
  .diag-nav { padding: 16px 18px; }
  .step-text { display: none; }

  /* Hub cards */
  .hubs-grid { grid-template-columns: 1fr; }

  /* Services page */
  .pillar-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .service-pillar-deepdive { padding: 28px 20px; }
  .service-subgrid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 28px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured-card { padding: 28px 20px; }
  .blog-subscribe-card { padding: 28px 20px; }
  .blog-subscribe-form { flex-direction: column; }
  .article-modal-header { padding: 24px 20px 16px; }
  .article-modal-body { padding: 24px 20px 32px; }

  /* Section headers */
  .section-title { font-size: clamp(1.7rem, 5vw, 2.2rem); }
  .section-subtitle { font-size: 0.9625rem; }
}

/* ── 480px: Small mobile ─────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }

  /* Hero */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 12px; }
  .hero-stats > div { min-width: 100%; flex: 0 0 100%; }
  .hero-stat-num { font-size: 1.6rem; }

  /* BU Showcase */
  .bu-slide { padding: 16px; min-height: 400px; }
  .bu-slider-viewport { min-height: 400px; }
  .bu-floating-card { padding: 20px 16px; border-radius: 10px; }
  .bu-card-title { font-size: 1.25rem; }
  .bu-card-btn { width: 100%; justify-content: center; }
  .bu-tab-bar { overflow-x: auto; }
  .bu-tab-btn { min-width: 100px; padding: 12px 10px; font-size: 0.75rem; }

  /* Nav: hide Book Consultation on small mobile too */
  .nav-actions .btn-primary { display: none !important; }

  /* Services pillar nav */
  .pillars-tab-nav { flex-direction: column; border-bottom: none; }
  .pillar-tab { border-bottom: none; border-left: 2px solid transparent; padding: 10px 16px; }
  .pillar-tab.active { border-left-color: var(--primary); }
  .badge-grid { grid-template-columns: 1fr; }

  /* Frameworks */
  .fw-filter-btn { font-size: 0.75rem; padding: 6px 12px; }

  /* Masterclass */
  .masterclass-wrap { padding: 28px 18px; }
  .masterclass-info-box { padding: 22px 18px; }

  /* Map dossier */
  .dossier-card { padding: 22px 18px; }
  .map-hub-switcher { gap: 8px; }
  .map-hub-tab { font-size: 0.8rem; padding: 8px 14px; }

  /* Promise card */
  .promise-card { padding: 28px 20px; }
  .promise-card::before { font-size: 8rem; }

  /* Footer */
  .footer-col-title { margin-top: 4px; }

  /* WhatsApp: icon only */
  .whatsapp-float { padding: 14px; border-radius: 50%; }
  .whatsapp-float-label { display: none; }
  .whatsapp-float svg { width: 26px; height: 26px; }

  /* CTA section */
  .contact-cta-wrap { padding: 40px 18px; }

  /* Modal */
  .modal { margin: 0 8px; }
  .hud-tabs { flex-wrap: wrap; }

  /* Section titles */
  .section-title { font-size: clamp(1.5rem, 6vw, 1.9rem); }
}

/* ── 360px: Very small / micro screens ───────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero-title { font-size: 1.55rem; }
  .bu-floating-card { padding: 16px 14px; }
  .bu-card-title { font-size: 1.125rem; }
  .bu-tab-btn { min-width: 88px; font-size: 0.7rem; padding: 10px 8px; }
  .btn { padding: 11px 18px; font-size: 0.875rem; }
  .dossier-card { padding: 18px 14px; }
  .dossier-title { font-size: 1.25rem; }
  .footer-brand p { font-size: 0.8125rem; }
  .section { padding: 44px 0; }
}

/* ==========================================================================
   HERO MULTI-IMAGE DYNAMIC BACKGROUND SLIDER (Cassava Style)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: #080c16;
  min-height: 820px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .hero { min-height: 600px; padding: 80px 0 60px; }
}
@media (max-width: 480px) {
  .hero { min-height: 0; padding: 72px 0 52px; }
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 7s ease-out;
  will-change: opacity, transform;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1.045);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(8, 12, 22, 0.94) 0%, rgba(11, 16, 29, 0.88) 50%, rgba(15, 23, 42, 0.74) 100%),
    radial-gradient(circle at 80% 20%, rgba(255, 71, 72, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-slider-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  position: relative;
  z-index: 5;
}

.hero-nav-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 18px 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-width: 170px;
}

.hero-nav-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.hero-nav-pill.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 71, 72, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 71, 72, 0.15);
  color: #fff;
}

.pill-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-idx {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.9;
}

.pill-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.pill-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

.pill-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.pill-progress {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
}

.hero-nav-pill.active .pill-progress {
  width: 100%;
  transition: width 6s linear;
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  padding: 14px 22px 14px 18px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.15);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.22s cubic-bezier(0.25,0.46,0.45,0.94),
              background 0.22s;
  animation: wa-bounce-in 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 1.2s;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55), 0 4px 12px rgba(0,0,0,0.18);
  background: #1ebe5d;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.whatsapp-float-label {
  line-height: 1;
}

/* Pulse ring on WhatsApp button */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 100px;
  border: 2px solid rgba(37,211,102,0.4);
  animation: wa-pulse-ring 2.5s ease-out infinite;
}

@keyframes wa-pulse-ring {
  0%   { opacity: 1; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}

@keyframes wa-bounce-in {
  0%   { opacity: 0; transform: translateY(40px) scale(0.8); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* WhatsApp CTA button variant (inline) */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 20px rgba(37,211,102,0.48);
  transform: translateY(-1px);
}
.btn-whatsapp svg { width: 18px; height: 18px; }

/* ==========================================================================
   SECTION VISUAL IMAGES
   ========================================================================== */
.section-visual-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.section-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.section-visual-img:hover img {
  transform: scale(1.03);
}

.section-visual-img-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(16,24,40,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 14px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Cyber pillar image layout */
.cyber-pillar-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .cyber-pillar-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ENTRANCE ANIMATIONS (scroll-triggered via JS class)
   ========================================================================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up   { animation: fadeSlideUp  0.65s cubic-bezier(0.16,1,0.3,1) both; }
.anim-fade-left { animation: fadeSlideLeft 0.65s cubic-bezier(0.16,1,0.3,1) both; }
.anim-fade-in   { animation: fadeIn        0.65s ease both; }

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* Hero title animation */
.hero-title {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.1s;
}

.hero-tagline {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.2s;
}

.hero-desc {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.3s;
}

.hero-ctas {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.4s;
}

.hero-stats {
  animation: fadeSlideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.55s;
}

.hero-card {
  animation: fadeSlideLeft 0.9s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.3s;
}

/* ==========================================================================
   DECORATIVE FLOATING PARTICLES (CSS only)
   ========================================================================== */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,71,72,0.6);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

.hero-particle:nth-child(1)  { left: 10%; top: 20%; width:2px; height:2px; animation-duration:8s;  animation-delay:0s;    opacity:0.5; }
.hero-particle:nth-child(2)  { left: 25%; top: 70%; width:3px; height:3px; animation-duration:12s; animation-delay:-3s;   opacity:0.4; }
.hero-particle:nth-child(3)  { left: 50%; top: 40%; width:2px; height:2px; animation-duration:10s; animation-delay:-5s;   opacity:0.6; }
.hero-particle:nth-child(4)  { left: 70%; top: 15%; width:4px; height:4px; animation-duration:9s;  animation-delay:-1s;   opacity:0.3; background:rgba(255,255,255,0.4); }
.hero-particle:nth-child(5)  { left: 80%; top: 60%; width:2px; height:2px; animation-duration:11s; animation-delay:-7s;   opacity:0.5; }
.hero-particle:nth-child(6)  { left: 35%; top: 85%; width:3px; height:3px; animation-duration:14s; animation-delay:-2s;   opacity:0.4; background:rgba(255,255,255,0.3); }
.hero-particle:nth-child(7)  { left: 90%; top: 35%; width:2px; height:2px; animation-duration:7s;  animation-delay:-4s;   opacity:0.5; }
.hero-particle:nth-child(8)  { left: 15%; top: 55%; width:3px; height:3px; animation-duration:13s; animation-delay:-6s;   opacity:0.3; }

@keyframes float-particle {
  0%   { transform: translateY(0px) translateX(0px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-80px) translateX(20px); opacity: 0; }
}

/* ==========================================================================
   WHATSAPP MODAL OPTION STRIP
   ========================================================================== */
.modal-wa-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #0f9e47;
  font-weight: 500;
}

.modal-wa-strip svg { flex-shrink: 0; width: 18px; height: 18px; color: #25D366; }
.modal-wa-strip a   { color: #0f9e47; font-weight: 700; text-decoration: underline; }

/* Smooth page load fade-in */
body {
  animation: bodyFadeIn 0.4s ease both;
}

@keyframes bodyFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ==========================================================================
   INTERACTIVE SADC REGIONAL MAP & DOSSIER (Harare & Pretoria)
   ========================================================================== */
.footprint-section {
  background: #060913;
  position: relative;
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.footprint-section .section-title {
  color: #ffffff;
}

.footprint-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.map-hub-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.map-hub-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.map-hub-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.map-hub-tab.active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.tab-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 8px #25D366;
  display: inline-block;
  animation: radarPulseDot 1.8s infinite;
}

@keyframes radarPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.regional-map-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
}

/* Map Visual Container */
.map-visual-wrapper {
  background: radial-gradient(circle at 60% 40%, #0d1527 0%, #080d1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sadc-interactive-map {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
}

/* Map Elements */
.country-group {
  cursor: pointer;
  outline: none;
}

.country-poly {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.zw-poly {
  fill: #1c1524;
  stroke: rgba(255, 71, 72, 0.45);
  stroke-width: 1.5;
}

.za-poly {
  fill: #101c30;
  stroke: rgba(0, 210, 255, 0.45);
  stroke-width: 1.5;
}

.country-group:hover .zw-poly,
.country-group.active .zw-poly {
  fill: #2d1828;
  stroke: #FF4748;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 14px rgba(255, 71, 72, 0.45));
}

.country-group:hover .za-poly,
.country-group.active .za-poly {
  fill: #132a48;
  stroke: #00D2FF;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.45));
}

.country-name-label {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  fill: #ffffff;
  text-anchor: middle;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.country-statute-label {
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: rgba(255, 255, 255, 0.55);
  text-anchor: middle;
  pointer-events: none;
}

.country-group.active .country-statute-label {
  fill: #FF7F80;
}

.country-za.active .country-statute-label {
  fill: #38bdf8;
}

/* Radar City Pins */
.city-marker-group {
  cursor: pointer;
  outline: none;
}

.pulse-ring {
  fill: none;
  stroke-width: 1.5;
  pointer-events: none;
}

#markerHarare .pulse-ring {
  stroke: #FF4748;
  animation: radarRippleHarare 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

#markerPretoria .pulse-ring {
  stroke: #00D2FF;
  animation: radarRipplePretoria 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: 1.2s;
}

.pulse-ring.ring-2 {
  animation-delay: 0.8s;
}

@keyframes radarRippleHarare {
  0%   { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes radarRipplePretoria {
  0%   { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.marker-core {
  fill: #00D2FF;
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.8));
}

.marker-core.hq-core {
  fill: #FF4748;
  filter: drop-shadow(0 0 10px rgba(255, 71, 72, 0.9));
}

/* Marker Label Cards */
.marker-label-card .label-bg {
  fill: rgba(15, 23, 42, 0.92);
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.marker-label-card.hq-card .label-bg {
  stroke: rgba(255, 71, 72, 0.45);
}

.label-city {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  fill: #00D2FF;
  letter-spacing: 0.05em;
}

.label-city.hq-title {
  fill: #FF7F80;
}

.label-role {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 500;
  fill: #94a3b8;
}

/* Dossier Card Container */
.map-dossier-wrapper {
  display: flex;
  flex-direction: column;
}

.dossier-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 38px 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.08);
  display: none;
  animation: dossierFadeIn 0.35s ease both;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.dossier-card.active {
  display: flex;
}

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

.dossier-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dossier-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255, 71, 72, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.dossier-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossier-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
}

.dossier-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 8px;
}

.dossier-lead {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 22px;
}

.dossier-specs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
  padding: 18px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.dossier-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spec-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.spec-info .spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
  display: block;
}

.spec-info .spec-val {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.dossier-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   REGIONAL MAP & BU SHOWCASE MOBILE RESPONSIVENESS (FINAL OVERRIDES)
   ========================================================================== */

/* ── Tablet (max-width: 1024px) ────────────────────────── */
@media (max-width: 1024px) {
  .regional-map-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .sadc-interactive-map {
    max-height: 420px;
  }
}

/* ── Mobile Landscape & Portrait (max-width: 768px) ────── */
@media (max-width: 768px) {
  /* Regional Map & Dossier: stack vertically with full width */
  .regional-map-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .map-visual-wrapper {
    width: 100% !important;
    padding: 14px !important;
    border-radius: 14px !important;
  }
  .sadc-interactive-map {
    width: 100% !important;
    height: auto !important;
    max-height: 320px !important;
  }
  .map-dossier-wrapper {
    width: 100% !important;
  }
  .dossier-card {
    width: 100% !important;
    padding: 24px 20px !important;
    border-radius: 14px !important;
  }
  .dossier-actions {
    flex-direction: column;
    gap: 10px;
  }
  .dossier-actions .btn {
    width: 100% !important;
    text-align: center;
    justify-content: center;
  }

  /* BU Showcase Horizontal Scrolling Pill Tabs */
  .bu-tab-bar {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
    gap: 6px !important;
    padding: 8px 10px !important;
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0;
    scrollbar-width: none;
  }
  .bu-tab-bar::-webkit-scrollbar {
    display: none;
  }
  .bu-tab-btn {
    flex: 0 0 auto !important;
    min-width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
    padding: 10px 16px !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    scroll-snap-align: start;
    box-shadow: none !important;
  }
  .bu-tab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  }
  .bu-tab-btn.active::after {
    display: none !important;
  }

  /* BU Viewport & Floating Card */
  .bu-slider-viewport {
    min-height: 520px !important;
  }
  .bu-slide {
    padding: 16px !important;
    align-items: stretch !important;
    justify-content: center !important;
    background-position: center center !important;
  }
  .bu-floating-card {
    max-width: 100% !important;
    padding: 24px 18px !important;
    border-radius: 12px !important;
  }
  .bu-card-title {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  .bu-card-badges {
    gap: 6px !important;
    margin-bottom: 14px !important;
  }
  .bu-badge {
    font-size: 0.72rem !important;
    padding: 3px 8px !important;
  }
  .bu-card-text {
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
  }
  .bu-card-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── Small Mobile Screens (max-width: 480px) ────────────── */
@media (max-width: 480px) {
  .sadc-interactive-map {
    max-height: 270px !important;
  }
  .dossier-card {
    padding: 20px 16px !important;
  }
  .bu-slider-viewport {
    min-height: 550px !important;
  }
  .bu-floating-card {
    padding: 20px 14px !important;
  }
  .bu-card-title {
    font-size: 1.15rem !important;
  }
}

/* ── Extra Small Mobile (max-width: 360px) ──────────────── */
@media (max-width: 360px) {
  .sadc-interactive-map {
    max-height: 230px !important;
  }
  .bu-slider-viewport {
    min-height: 580px !important;
  }
  .bu-tab-btn {
    padding: 8px 12px !important;
    font-size: 0.75rem !important;
  }
}

/* ── Print: hide decorative elements ─────────────────────── */
@media print {
  .whatsapp-float,
  .hero-particles,
  .hero-bg-slider,
  .mobile-toggle,
  .modal-backdrop { display: none !important; }
  .hero { background: #fff; min-height: 0; padding: 32px 0; }
  body { animation: none; }
}

/* ============================================================
   SERVERLESS CONTACT PIPELINE & FORM FEEDBACK STATES
   ============================================================ */
.btn-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: xr-btn-spin 0.75s linear infinite;
  margin-right: 9px;
  vertical-align: -2px;
}

@keyframes xr-btn-spin {
  to { transform: rotate(360deg); }
}

button:disabled,
.btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
  filter: saturate(0.9);
}

/* ============================================================
   INTERNATIONAL PHONE INPUT COMPONENT
   ============================================================ */
.phone-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px 0 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.phone-input-group:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.phone-input-group:focus-within {
  border-color: var(--primary);
  background: rgba(255, 71, 72, 0.02);
  box-shadow: 0 0 0 3px rgba(255, 71, 72, 0.16);
}

.phone-input-group.has-error,
input.has-error,
select.has-error,
textarea.has-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.phone-country-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-heading);
  transition: background 0.2s ease;
  user-select: none;
  flex-shrink: 0;
  outline: none;
}

.phone-country-btn:hover,
.phone-country-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.phone-flag-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.phone-chevron {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.phone-country-btn[aria-expanded="true"] .phone-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.phone-number-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: var(--text-heading) !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  padding: 0 10px !important;
  box-shadow: none !important;
}

.phone-number-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.phone-device-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  padding-left: 4px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.phone-input-group:focus-within .phone-device-icon {
  color: var(--text-heading);
}

/* Country Popover Menu */
.phone-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #111622;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 71, 72, 0.1);
  z-index: 9999;
  overflow: hidden;
  animation: phoneDropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes phoneDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.phone-dropdown-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.phone-dropdown-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-heading);
  font-size: 0.85rem;
  font-family: inherit;
}

.phone-dropdown-search::placeholder {
  color: var(--text-muted);
}

.phone-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.phone-dropdown-list::-webkit-scrollbar {
  width: 5px;
}
.phone-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}
.phone-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.phone-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-size: 0.875rem;
  color: var(--text-body);
}

.phone-dropdown-item:hover,
.phone-dropdown-item.is-selected {
  background: rgba(255, 71, 72, 0.14);
  color: #fff;
}

.phone-dropdown-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.phone-dropdown-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-dropdown-code {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: monospace;
}

.phone-dropdown-item:hover .phone-dropdown-code,
.phone-dropdown-item.is-selected .phone-dropdown-code {
  color: #FF4748;
}

.phone-dropdown-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SIMPLIFIED CONFIRMATION SCREEN (LIGHT MODE · XERrorisk BRAND AESTHETICS)
   ========================================================================== */

.modal.modal--confirmed {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  max-width: 560px;
  overflow: hidden;
  transition: background var(--dur-md) var(--ease), border-color var(--dur-md) var(--ease);
}

.modal.modal--confirmed .modal-header {
  display: none !important;
}

.modal.modal--confirmed .modal-body {
  padding: 0;
}

.contact-form-card.contact-form-card--confirmed {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text-body);
  padding: 0;
  overflow: hidden;
  transition: background var(--dur-md) var(--ease);
}

.contact-form-card.contact-form-card--confirmed .contact-form-title,
.contact-form-card.contact-form-card--confirmed .contact-form-sub {
  display: none !important;
}

/* Base Confirmation Card (Light Theme) */
.form-feedback-card,
.form-feedback-card.conf-card {
  padding: 32px 36px 40px;
  text-align: center;
  background: #ffffff;
  color: var(--text-body);
  border-radius: var(--radius-lg);
  animation: conf-fadeIn 0.4s var(--ease);
  position: relative;
}

@keyframes conf-fadeIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Topbar with Breadcrumbs & Dismiss */
.conf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 4px;
}

.conf-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.conf-crumb-dim {
  color: #94a3b8;
  font-weight: 500;
}

.conf-crumb-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.conf-crumb-active {
  color: var(--text-heading);
  font-weight: 600;
}

.conf-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.conf-close-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: rotate(90deg);
}

/* Inner content area */
.conf-inner {
  max-width: 480px;
  margin: 0 auto;
}

/* Scalloped badge & Sparkle Stars */
.conf-badge-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 16px;
  animation: conf-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes conf-pop-in {
  0%   { transform: scale(0.6); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.conf-badge-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 14px rgba(34, 197, 94, 0.28));
}

.conf-badge-icon svg {
  width: 68px;
  height: 68px;
  display: block;
}

.conf-sparkle {
  position: absolute;
  pointer-events: none;
  animation: conf-sparkle-float 3s ease-in-out infinite alternate;
}

.conf-sparkle-tr {
  top: -2px;
  right: -10px;
  animation-delay: 0.2s;
}

.conf-sparkle-bl {
  bottom: 0px;
  left: -10px;
  animation-delay: 0.8s;
}

@keyframes conf-sparkle-float {
  0%   { transform: translateY(0) scale(0.95); opacity: 0.85; }
  100% { transform: translateY(-4px) scale(1.1); opacity: 1; }
}

/* Kicker: "Congratulations!" */
.conf-kicker {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #16a34a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

/* Main Heading */
.conf-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Subtitle with reference number */
.conf-subtitle {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 22px;
}

.conf-subtitle strong {
  color: var(--text-heading);
  font-weight: 700;
}

/* Confidentiality lock notice */
.conf-confidentiality {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.4;
  padding: 0 10px;
}

.conf-lock-icon {
  flex-shrink: 0;
  color: #94a3b8;
}

/* Action Button */
.conf-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Primary Button with CURRENT XerroRisk BRAND COLOURS (Red #FF4748) */
.btn-conf-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary); /* #FF4748 */
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 34px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 71, 72, 0.32);
  transition: all var(--dur) var(--ease);
}

.btn-conf-primary:hover {
  background: var(--primary-dark); /* #E83839 */
  box-shadow: 0 6px 22px rgba(255, 71, 72, 0.46);
  transform: translateY(-1.5px);
  color: #ffffff;
}

.btn-conf-primary:active {
  transform: translateY(0);
  background: #cf2e2f;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .form-feedback-card,
  .form-feedback-card.conf-card {
    padding: 24px 20px 30px;
  }
  .conf-title {
    font-size: 1.45rem;
  }
  .conf-subtitle {
    font-size: 0.9rem;
  }
  .btn-conf-primary {
    width: 100%;
  }
}

/* Error Alert */
.form-alert-error {
  background: rgba(255, 71, 72, 0.08);
  border: 1.5px solid rgba(255, 71, 72, 0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
  margin-bottom: 14px;
  animation: xr-fadeIn 0.25s var(--ease);
  text-align: left;
}

.form-alert-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-alert-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 12px;
}

.btn-mailto-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  transition: all var(--dur) var(--ease);
}

.btn-mailto-fallback:hover {
  background: var(--primary-dark);
}

