/* ================================================================
   EDGE7 NETWORKS — Design System
   Version: 1.0
   Fonts: Poppins (headings), Open Sans (body)
   Palette: Navy #151D76, Primary #424FB2, Accent #3C46AA,
            Body #474D79, Light #E5EBFF, Teal #0ABFB0
   ================================================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  --navy: #151D76;
  --primary: #424FB2;
  --accent: #3C46AA;
  --teal: #0ABFB0;
  --body-text: #474D79;
  --light-bg: #E5EBFF;
  --white: #FFFFFF;
  --blue-glow: rgba(66, 79, 178, 0.12);
  --border: rgba(21, 29, 118, 0.08);
  --border-strong: rgba(21, 29, 118, 0.12);
  --green: #4ADE80;
  --dark-bg: #070D2B;
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 50px;
  --shadow-sm: 0 2px 8px rgba(21, 29, 118, 0.04);
  --shadow-md: 0 4px 20px rgba(21, 29, 118, 0.06);
  --shadow-lg: 0 12px 48px rgba(21, 29, 118, 0.08);
  --shadow-xl: 0 20px 60px rgba(21, 29, 118, 0.12);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.35s ease;
}

/* --- RESET --- */
*, *::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);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
p { text-align: justify; }
h1, h2, h3, h4, h5, h6 { text-align: left; }
.nav p, .mega-menu p, .mega-bottom-card-desc, .mega-bottom-card-title,
.footer p, .footer-tagline { text-align: left; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--navy); }
ul, ol { list-style: none; }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 3.5vw, 42px); letter-spacing: -0.8px; }
h3 { font-size: clamp(20px, 2.5vw, 26px); letter-spacing: -0.3px; }
h4 { font-size: 18px; letter-spacing: -0.2px; }
h5 { font-size: 16px; }
p { max-width: 72ch; }
[itemprop="text"] { max-width: none; }

.gradient-text {
  background: linear-gradient(135deg, #7B8CFF, #4ADE80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- LAYOUT --- */
.container { max-width: 1340px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 32px; }
section { padding: 64px 0; }

.bg-light { background: var(--light-bg); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-dark { background: var(--dark-bg); color: var(--white); }

/* --- SECTION HEADERS --- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--primary);
  margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px;
  background: var(--primary); border-radius: 1px;
}
.section-label--light { color: rgba(255,255,255,0.6); }
.section-label--light::before { background: rgba(255,255,255,0.3); }

.section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 17px; color: var(--body-text);
  max-width: 640px; line-height: 1.7;
}
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all var(--transition-base);
  text-decoration: none; line-height: 1.4;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--primary); color: var(--white);
}
.btn-primary:hover {
  background: var(--navy); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 20px rgba(66, 79, 178, 0.3);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover {
  background: rgba(255,255,255,0.9); color: var(--navy);
  transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1); color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-teal {
  background: var(--teal); color: var(--navy);
  font-weight: 700;
}
.btn-teal:hover {
  background: #08a89a; color: var(--navy);
  transform: translateY(-1px); box-shadow: 0 4px 20px rgba(10, 191, 176, 0.35);
}
.btn-outline-light {
  background: transparent; color: rgba(255,255,255,0.9);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1); color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-nav-cta {
  background: var(--white); color: var(--navy);
  border: 1px solid var(--border-strong);
}
.btn-nav-cta:hover {
  background: var(--navy); color: var(--white);
  transform: translateY(-1px); box-shadow: 0 4px 20px rgba(21, 29, 118, 0.15);
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* --- SERVICE LINKS --- */
.service-link {
  font-weight: 600; font-size: 14px; color: var(--primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--transition-fast);
}
.service-link:hover { gap: 10px; color: var(--navy); }
.service-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.service-link:hover svg { transform: translateX(4px); }

/* Arrow icon for service links */
.arrow-icon { display: inline-block; }

/* --- TAGS / CHIPS --- */
.tag {
  padding: 4px 12px; border-radius: var(--radius-full);
  background: var(--light-bg); font-size: 12px; font-weight: 600;
  color: var(--primary); white-space: nowrap;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- CARDS --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  transition: all var(--transition-slow);
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(66, 79, 178, 0.2);
}
.card--top-line::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--navy));
  opacity: 0; transition: opacity var(--transition-slow);
}
.card--top-line:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.card-icon--sm { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px; }
.card-icon--navy { background: var(--navy); }
.card-icon svg { width: 24px; height: 24px; }

/* --- HERO --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(165deg, var(--navy) 0%, #0A1040 55%, #1a2670 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%; width: 80%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(66, 79, 178, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, rgba(10, 16, 64, 0.6), transparent);
  pointer-events: none;
}
.hero-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(66, 79, 178, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 79, 178, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  pointer-events: none;
}
@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 740px;
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero p {
  font-size: 18px; color: rgba(255, 255, 255, 0.75);
  line-height: 1.7; margin-bottom: 36px; max-width: 600px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: rgba(66, 79, 178, 0.25);
  border: 1px solid rgba(66, 79, 178, 0.4);
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero stats */
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 80px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background 0.3s;
}
.hero-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 800; color: var(--white);
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: 13px; color: rgba(255, 255, 255, 0.6); font-weight: 500;
}

/* --- SERVICE HERO (lighter variant for hub pages) --- */
.service-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(165deg, var(--navy) 0%, #0A1040 55%, #1a2670 100%);
  overflow: hidden;
}
.service-hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%; width: 80%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(66, 79, 178, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.service-hero .hero-grid {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(66, 79, 178, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 79, 178, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.service-hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.service-hero h1 { color: var(--white); margin-bottom: 24px; }
.service-hero p {
  font-size: 18px; color: rgba(255, 255, 255, 0.7);
  line-height: 1.75; margin-bottom: 36px; max-width: 640px;
}
.service-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- TRUST BAR --- */
.trust-bar {
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative; z-index: 2;
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.trust-bar-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6);
}
.trust-bar-item svg { width: 16px; height: 16px; opacity: 0.5; }

/* --- LOGO BAR --- */
.logo-bar {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.logo-bar-label {
  text-align: center;
  font-size: 13px; font-weight: 600; color: var(--body-text);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 32px; opacity: 0.7;
}
.logo-row {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.logo-item { display: flex; align-items: center; justify-content: center; }
.logo-item img {
  height: 40px; width: auto;
  filter: grayscale(100%); opacity: 0.6;
  transition: all 0.3s;
}
.logo-item img:hover { filter: grayscale(0%); opacity: 1; }

/* --- THREE PILLARS GRID --- */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.pillar-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  transition: all var(--transition-slow);
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--navy));
  opacity: 0; transition: opacity var(--transition-slow);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(66, 79, 178, 0.2);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-card h3 { font-size: 22px; margin-bottom: 12px; }
.pillar-card p {
  color: var(--body-text); font-size: 15px; margin-bottom: 24px; line-height: 1.7;
}

/* --- CONVERGENCE / WHY EDGE7 --- */
.convergence-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.convergence-visual {
  background: linear-gradient(145deg, var(--navy), #1a2670);
  border-radius: var(--radius-2xl);
  padding: 48px;
  position: relative; overflow: hidden;
}
.convergence-visual::before {
  content: '';
  position: absolute; top: -30%; right: -30%; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(66, 79, 178, 0.4) 0%, transparent 70%);
}
.conv-card {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px; padding: 20px 24px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 16px;
}
.conv-card:last-of-type { margin-bottom: 0; }
.conv-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.conv-dot.networking { background: #7B8CFF; }
.conv-dot.security { background: var(--green); }
.conv-dot.consulting { background: #F59E0B; }
.conv-card-text {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 600; color: var(--white);
}
.conv-card-sub { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 400; margin-top: 2px; }
.conv-connector { position: relative; z-index: 1; text-align: center; padding: 14px 0; }
.conv-connector-line { width: 2px; height: 20px; background: rgba(255,255,255,0.15); margin: 0 auto; }
.conv-result {
  position: relative; z-index: 1;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 14px; padding: 20px 24px;
  text-align: center; margin-top: 14px;
}
.conv-result-text {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 700; color: var(--white);
}
.conv-result-sub { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }

.convergence-points { display: flex; flex-direction: column; gap: 28px; }
.conv-point {
  display: flex; gap: 20px; padding: 24px;
  border-radius: 14px; transition: background 0.3s;
}
.conv-point:hover { background: var(--light-bg); }
.conv-point-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.conv-point-icon svg { width: 20px; height: 20px; }
.conv-point h4 { font-size: 16px; margin-bottom: 6px; }
.conv-point p { font-size: 14px; color: var(--body-text); line-height: 1.65; }

/* --- SOLUTIONS GRID --- */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s;
}
.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* --- STEPS / PROCESS --- */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 44px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(66, 79, 178, 0.1));
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(66, 79, 178, 0.3);
}
.step h4 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--body-text); max-width: 260px; margin: 0 auto; line-height: 1.65; }

/* --- PARTNERSHIPS --- */
.partners-row {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  margin-top: 48px;
}
.partner-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600; font-size: 14px; color: var(--navy);
  transition: all var(--transition-base);
}
.partner-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}
.partner-badge img { height: 28px; width: auto; }
.partner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* --- CERTIFICATIONS --- */
.certs-row { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.cert {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 32px 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 200px;
  transition: all 0.3s;
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert-icon {
  width: 80px; height: 80px; border-radius: 12px;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cert-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-name {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 15px; color: var(--navy); text-align: center;
}
.cert-desc { font-size: 12px; color: var(--body-text); text-align: center; }
.cert-badge {
  padding: 4px 14px; border-radius: var(--radius-full);
  background: var(--navy); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
}

/* --- TESTIMONIAL --- */
.testimonial-block { max-width: 800px; margin: 0 auto; text-align: center; }
.testimonial-quote {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600; color: var(--navy);
  line-height: 1.5; letter-spacing: -0.3px;
  margin-bottom: 32px; font-style: italic;
}
.testimonial-author { font-size: 15px; font-weight: 600; color: var(--navy); }
.testimonial-role { font-size: 14px; color: var(--body-text); }

/* --- CTA SECTION --- */
.cta-section {
  background: linear-gradient(165deg, var(--navy), #0A1040);
  padding: 64px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(66, 79, 178, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 79, 178, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.cta-content { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px); color: var(--white);
  letter-spacing: -1px; margin-bottom: 20px;
}
.cta-section p {
  font-size: 17px; color: rgba(255, 255, 255, 0.7);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-contact { margin-top: 32px; font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.cta-contact a { color: rgba(255, 255, 255, 0.7); }
.cta-contact a:hover { color: var(--white); }

/* --- SERVICE HUB SECTIONS --- */

/* Feature blocks (team/speed/coverage style) */
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
  padding: 80px 0;
}
.feature-block:nth-child(even) { direction: rtl; }
.feature-block:nth-child(even) > * { direction: ltr; }
.feature-block-content h3 { margin-bottom: 16px; }
.feature-block-content .lead {
  font-size: 16px; font-weight: 600; color: var(--navy);
  line-height: 1.65; margin-bottom: 20px;
}
.feature-block-content p {
  font-size: 15px; line-height: 1.75; margin-bottom: 16px;
}

/* Proof points list */
.proof-points { margin-top: 32px; }
.proof-point {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.proof-point:last-child { border-bottom: none; }
.proof-point-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  color: var(--teal);
  margin-top: 2px;
}
.proof-point p { font-size: 14px; line-height: 1.6; }

/* Service cards grid (for listing individual services) */
.service-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition-slow);
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(66, 79, 178, 0.15);
}
.service-card h4 { margin-bottom: 8px; }
.service-card p {
  font-size: 14px; line-height: 1.7; color: var(--body-text);
  margin-bottom: 20px; flex: 1;
}

/* Dark feature visual panel */
.feature-visual {
  background: linear-gradient(145deg, var(--navy), #1a2670);
  border-radius: var(--radius-2xl);
  padding: 40px;
  position: relative; overflow: hidden;
}
.feature-visual::before {
  content: '';
  position: absolute; top: -30%; right: -30%; width: 80%; height: 80%;
  background: radial-gradient(circle, rgba(66, 79, 178, 0.3) 0%, transparent 70%);
}
.feature-visual-item {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px;
}
.feature-visual-item:last-child { margin-bottom: 0; }
.feature-visual-item-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.feature-visual-item span {
  font-size: 14px; font-weight: 600; color: var(--white);
}
.feature-visual-item small {
  font-size: 12px; color: rgba(255,255,255,0.5);
  display: block; margin-top: 2px; font-weight: 400;
}

/* Crosslink banner */
.crosslink-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.crosslink-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 40px 48px;
  background: var(--light-bg);
  border-radius: var(--radius-xl);
}
.crosslink-card h3 { margin-bottom: 8px; }
.crosslink-card p { font-size: 15px; color: var(--body-text); line-height: 1.65; max-width: 500px; }

/* --- FOOTER --- */
.footer {
  background: var(--dark-bg);
  padding: 60px 0 32px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
}
.footer-logo-img { height: 32px; width: auto; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; max-width: 280px; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer-col h5 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.5);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 48px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 16px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); margin-left: 20px; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navy);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 24px rgba(21, 29, 118, 0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1340px; margin: 0 auto;
  padding: 0 32px; height: 64px;
}
.nav-logo-img { height: 32px; width: auto; }
.nav-links {
  display: flex; gap: 4px; align-items: center;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
  font-size: 14px; font-weight: 600;
  color: rgba(229, 235, 255, 0.7);
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: all 0.2s; cursor: pointer;
  background: none; border: none; font-family: inherit;
  display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: rgba(229, 235, 255, 0.08);
}
.nav-link svg {
  width: 12px; height: 12px;
  transition: transform 0.2s;
}
.nav-link.active svg { transform: rotate(180deg); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 10px;
  background: var(--primary); color: var(--white);
  font-size: 14px; font-weight: 700;
  transition: all 0.3s; text-decoration: none;
}
.nav-cta:hover {
  background: var(--accent); color: var(--white);
  box-shadow: 0 4px 16px rgba(66, 79, 178, 0.3);
}
.nav-cta svg { width: 14px; height: 14px; }

/* --- MEGA MENU --- */
.mega-backdrop {
  position: fixed; inset: 0; top: 64px; z-index: 998;
  background: rgba(21, 29, 118, 0.2);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.mega-backdrop.visible { opacity: 1; pointer-events: auto; }

.mega-menu {
  position: absolute; top: 64px;
  left: 50%; transform: translateX(-50%);
  background: var(--white);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 20px 60px rgba(15, 20, 80, 0.18), 0 0 0 1px rgba(66,79,178,0.09);
  z-index: 999;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow: hidden;
  /* Fixed size. All 4 menus identical, no jumping */
  width: 1040px;
  height: 340px;
  display: flex;
  flex-direction: column;
}
.mega-menu.visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ================================================================
   MEGA MENU — All panels 1000px, uniform layout, premium spacing
   ================================================================ */

.mega-htab-bar {
  display: flex; align-items: center; gap: 2px;
  padding: 16px 28px 0;
  border-bottom: 1px solid rgba(66,79,178,0.08);
  flex-shrink: 0;
}
.mega-htab {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; color: #7A82A8;
  background: none; border: none; cursor: pointer;
  font-family: inherit; letter-spacing: -0.01em;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.mega-htab svg { opacity: 0.5; transition: opacity 0.15s; }
.mega-htab:hover:not(.active) { color: var(--navy); background: rgba(66,79,178,0.04); }
.mega-htab:hover:not(.active) svg { opacity: 0.75; }
.mega-htab.active { color: var(--navy); border-bottom-color: var(--primary); font-weight: 700; }
.mega-htab.active svg { opacity: 1; color: var(--primary); }

.mega-hpanel { display: none; flex: 1; padding: 20px 28px; overflow: hidden; }
/* Active panel uses flex so the grid can stretch to fill available height */
.mega-hpanel.active { display: flex; flex-direction: column; }

/* By Role panel — split layout with feature sidebar */
.mega-hpanel--with-sidebar { padding: 0; }
.mega-hpanel--with-sidebar.active { flex-direction: row; }
.mega-roles-body {
  flex: 1; padding: 16px 24px;
  display: flex; flex-direction: column;
}
.mega-roles-body .mega-link-grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.mega-roles-sidebar {
  width: 200px; min-width: 200px;
  border-left: 1px solid rgba(66,79,178,0.07);
  padding: 20px 20px 20px 22px;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 0;
}
.mega-roles-sidebar-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}
.mega-roles-sidebar-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 800; color: var(--navy);
  line-height: 1.35; margin-bottom: 8px;
}
.mega-roles-sidebar-desc {
  font-size: 11.5px; color: #7A82A8;
  line-height: 1.6; font-weight: 400; margin-bottom: 14px;
}
.mega-roles-sidebar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  color: var(--primary); text-decoration: none;
  transition: gap 0.15s, color 0.15s;
  white-space: nowrap;
}
.mega-roles-sidebar-btn:hover { gap: 9px; color: var(--navy); }
.mega-roles-sidebar-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.mega-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px 16px;
  flex: 1;
}

/* "View all challenges" — compact inline link spanning cols 2–3 */
.mega-view-all-item {
  grid-column: 2 / 4;
  align-self: center;
  padding: 6px 10px !important;
  background: none !important;
  border: none !important;
}
.mega-view-all-item .mega-link-icon { display: none; }
.mega-view-all-item .mega-link-body { display: flex; align-items: center; gap: 6px; }
.mega-view-all-item .mega-link-title {
  font-size: 12px !important;
  color: #424FB2 !important;
  font-weight: 600;
  white-space: nowrap;
}
.mega-view-all-item .mega-link-title::after {
  content: ' →';
  font-size: 12px;
}
.mega-view-all-item .mega-link-desc { display: none; }
.mega-view-all-item:hover { background: none !important; }
.mega-view-all-item:hover .mega-link-title { color: #151D76 !important; }

/* "View all" item. Distinct from regular links */
.mega-link-viewall .mega-link-title { color: var(--primary); }
.mega-link-viewall { border: 1px solid rgba(66,79,178,0.12); }

/* Footer strip */
.mega-solutions-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: #F7F8FD;
  border-top: 1px solid rgba(66,79,178,0.08);
  flex-shrink: 0;
  margin-top: auto;
}
.mega-solutions-footer-label {
  font-size: 12.5px; color: #9AA5C4; font-weight: 500; margin-right: 8px;
}
.mega-solutions-footer-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: #7A82A8;
  text-decoration: none; padding: 5px 10px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.mega-solutions-footer-link:hover { background: rgba(66,79,178,0.07); color: var(--navy); }
.mega-solutions-footer-link svg { opacity: 0.55; }
.mega-solutions-footer-cta {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; font-size: 13px; font-weight: 700;
  color: var(--primary); text-decoration: none;
  padding: 5px 12px; border-radius: 7px;
  background: rgba(66,79,178,0.07);
  transition: background 0.15s;
}
.mega-solutions-footer-cta:hover { background: rgba(66,79,178,0.13); }


/* Link items */
.mega-link {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 11px; margin: 0 -11px;
  border-radius: 9px; text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: inset 3px 0 0 transparent;
}
.mega-link:hover {
  background: rgba(66,79,178,0.06);
  box-shadow: inset 3px 0 0 #0ABFB0;
}
.mega-link-icon {
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.mega-link:hover .mega-link-icon { background: rgba(10,191,176,0.12) !important; }
.mega-link-body { flex: 1; }
.mega-link-title {
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  transition: color 0.15s; margin-bottom: 3px; line-height: 1.3;
}
.mega-link:hover .mega-link-title { color: var(--primary); }
.mega-link-desc { font-size: 12.5px; color: #7A82A8; line-height: 1.5; font-weight: 400; }


/* Services. Same horizontal tab layout as Solutions */
.mega-service-link {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px; margin: 0 -12px;
  border-radius: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--navy); text-decoration: none;
  transition: all 0.15s;
  box-shadow: inset 3px 0 0 transparent;
}
.mega-service-link:hover {
  color: var(--primary);
  background: rgba(66,79,178,0.06);
  box-shadow: inset 3px 0 0 #0ABFB0;
}
.mega-service-link svg { opacity: 0.35; flex-shrink: 0; }
.mega-service-all {
  border-top: 1px solid rgba(66,79,178,0.08);
  margin-top: 10px; padding-top: 10px;
}
.mega-service-all a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary); text-decoration: none;
}

/* About / Resources. Fills the fixed 340px menu height */
.mega-compact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 260px;
  flex: 1;
}
.mega-compact-col {
  padding: 32px 28px;
}
.mega-compact-col + .mega-compact-col {
  border-left: 1px solid rgba(66,79,178,0.08);
}
.mega-compact-sidebar {
  background: #F7F8FD;
  border-left: 1px solid rgba(66,79,178,0.08);
  padding: 32px 24px;
  display: flex; flex-direction: column;
}
.mega-compact-section-header {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #9AA5C4;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(66,79,178,0.08);
}
.mega-compact-item {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 11px; margin: 0 -11px; margin-bottom: 1px;
  border-radius: 9px; text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: inset 3px 0 0 transparent;
}
.mega-compact-item:hover {
  background: rgba(66,79,178,0.06);
  box-shadow: inset 3px 0 0 #0ABFB0;
}
.mega-compact-item-icon {
  width: 30px; height: 30px; min-width: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-compact-item-title {
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  margin-bottom: 3px; transition: color 0.15s;
}
.mega-compact-item:hover .mega-compact-item-title { color: var(--primary); }
.mega-compact-item-desc { font-size: 12.5px; color: #7A82A8; line-height: 1.5; font-weight: 400; }

/* Sidebar cards (About certs / Resources featured) */
.mega-sidebar-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; color: #9AA5C4; margin-bottom: 16px;
}
.mega-cert-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.mega-cert-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; background: var(--white);
  border: 1px solid rgba(66,79,178,0.1); border-radius: 8px;
}
.mega-cert-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.mega-cert-name { font-size: 12.5px; font-weight: 700; color: var(--navy); }
.mega-sidebar-tagline {
  font-size: 12.5px; color: #7A82A8; line-height: 1.6; margin-bottom: 16px; font-weight: 400;
}
.mega-sidebar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  text-decoration: none; margin-top: auto;
  transition: gap 0.2s;
}
.mega-sidebar-cta:hover { gap: 9px; }
.mega-featured-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #0ABFB0; background: rgba(10,191,176,0.12);
  padding: 3px 8px; border-radius: 5px; margin-bottom: 10px;
}
.mega-featured-title {
  font-size: 14px; font-weight: 700; color: var(--navy);
  line-height: 1.4; margin-bottom: 12px;
}
.mega-featured-desc {
  font-size: 12.5px; color: #7A82A8; line-height: 1.55;
  margin-bottom: 16px; font-weight: 400;
}
/* Legacy bottom strip. Hidden (replaced by right panel) */
.mega-bottom { display: none; }

/* --- MOBILE NAV --- */
.nav-mobile-toggle {
  display: none; padding: 8px;
  color: rgba(229, 235, 255, 0.7);
  background: none; border: none; cursor: pointer;
}
.mobile-menu {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
}
.mobile-menu.visible { display: block; }
.mobile-menu a {
  display: block; padding: 10px 12px;
  font-size: 14px; font-weight: 600; color: rgba(229, 235, 255, 0.8);
  text-decoration: none; border-radius: 8px;
}
.mobile-menu a:hover { color: var(--white); background: rgba(229, 235, 255, 0.08); }
.mobile-menu .btn {
  display: block; text-align: center; margin-top: 12px;
}

/* --- ANIMATIONS --- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: 1fr; }
  .convergence-layout { grid-template-columns: 1fr; gap: 48px; }
  .convergence-visual { order: -1; }
  .solutions-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .feature-block { grid-template-columns: 1fr; gap: 48px; }
  .feature-block:nth-child(even) { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-cta { display: none; }
  .crosslink-card { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
  .hero { padding: 140px 0 80px; }
  .service-hero { padding: 140px 0 60px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .container { padding: 0 20px; }
  section { padding: 56px 0; }
  .section-header { margin-bottom: 48px; }
  .service-cards-grid { grid-template-columns: 1fr; }
  .certs-row { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}

/* --- ACCENT GRAPHICS --- */

/* Wave dividers. Positioned at section boundaries */
.wave-divider {
  position: relative;
  height: 80px;
  margin-top: -40px;
  margin-bottom: -40px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
.wave-divider img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  max-width: none;
  height: auto;
  opacity: 0.5;
}
.wave-divider--flip img { transform: translate(-50%, -50%) scaleX(-1); }
.wave-divider--strong img { opacity: 0.7; }

/* Floating accent shapes. CSS-only decorative elements */
.accent-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.accent-shape--blue {
  background: radial-gradient(circle, rgba(66, 79, 178, 0.06) 0%, transparent 70%);
}
.accent-shape--teal {
  background: radial-gradient(circle, rgba(10, 191, 176, 0.04) 0%, transparent 70%);
}
/* Rounded rectangle accent */
.accent-rect {
  position: absolute;
  border-radius: 24px;
  pointer-events: none;
  z-index: 0;
  border: 1px solid rgba(66, 79, 178, 0.04);
  background: rgba(66, 79, 178, 0.015);
  transform: rotate(-12deg);
}
.accent-rect--teal {
  border-color: rgba(10, 191, 176, 0.05);
  background: rgba(10, 191, 176, 0.015);
}
/* Small floating circle accents */
.accent-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}
.accent-dot--sm { width: 8px; height: 8px; }
.accent-dot--md { width: 14px; height: 14px; }
.accent-dot--lg { width: 24px; height: 24px; }
.accent-dot--blue { background: #424FB2; }
.accent-dot--teal { background: #0ABFB0; }
/* Gradient line accent */
.accent-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66,79,178,0.1) 20%, rgba(10,191,176,0.12) 50%, rgba(66,79,178,0.1) 80%, transparent);
  pointer-events: none;
}

/* --- UTILITY --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-24 { margin-bottom: 24px; }

/* ── Shared breadcrumb ── */
.e7-breadcrumb{display:flex;align-items:center;gap:6px;font-size:12px;color:#9DA4C0;margin-bottom:20px;flex-wrap:wrap}
.e7-breadcrumb a{color:#9DA4C0;text-decoration:none;transition:color .2s}
.e7-breadcrumb a:hover{color:#424FB2}
.e7-breadcrumb-sep{color:#C4C8DC}
