/* ============================================
   SATVETECH INDUSTRIAL ENGINEERING
   Complete Design System & Styles
   v2.0 — Full Dark Mode Refactor
   ============================================ */

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

/* ============================================
   1. DESIGN TOKENS — LIGHT MODE (ROOT)
   ============================================ */
:root {
  /* ---- Brand Colors (Static) ---- */
  --color-primary: #0D3B66;
  --color-primary-dark: #092a4a;
  --color-primary-light: #164e87;
  --color-secondary: #00509D;
  --color-accent: #3B82F6;
  --color-accent-hover: #60A5FA;
  --color-success: #0F766E;
  --color-danger: #dc2626;

  /* ---- Semantic Theme Tokens — LIGHT MODE ---- */
  --background: #FFFFFF;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --card: #FFFFFF;
  --heading: #1E293B;
  --body-text: #475569;
  --muted-text: #64748B;
  --border: #E2E8F0;
  --text-inverted: #FFFFFF;
  --background-dark: #0a2540;

  /* ---- Semantic "on-brand" tokens that change in dark mode ---- */
  --on-brand-primary: #0D3B66;
  /* primary blue — switches to accent in dark */
  --on-brand-heading: #1E293B;
  /* heading on white — switches to light text in dark */

  /* ---- Typography ---- */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 1.875rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-5xl: 3.75rem;
  --font-size-6xl: 4.5rem;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --navbar-height: 100px;

  /* ---- Borders & Radius ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   1.5. DESIGN TOKENS — DARK MODE
   Industrial control-room aesthetic
   ============================================ */
html.dark-mode {
  /* Core backgrounds — layered depth */
  --background: #0B1220;
  --surface: #0F172A;
  --surface-alt: #1E293B;
  --card: #1E293B;

  /* Text — high contrast hierarchy */
  --heading: #F8FAFC;
  --body-text: #CBD5E1;
  --muted-text: #94A3B8;
  --text-inverted: #F8FAFC;

  /* Borders — subtle, not harsh */
  --border: rgba(148, 163, 184, 0.15);

  /* Structural dark */
  --background-dark: #0F172A;

  /* On-brand tokens in dark mode */
  --on-brand-primary: #60A5FA;
  /* accent-hover in dark, readable on dark bg */
  --on-brand-heading: #F8FAFC;
  /* heading text in dark */

  /* Accent stays consistent */
  --color-accent: #3B82F6;
  --color-accent-hover: #60A5FA;

  /* Shadows stronger in dark */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.50);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.60);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 12px 40px rgba(59, 130, 246, 0.15);
}

/* ============================================
   2. CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition:
    background-color 350ms ease,
    border-color 350ms ease,
    box-shadow 350ms ease,
    color 350ms ease,
    opacity 350ms ease;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--body-text);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Dark mode body background */
html.dark-mode body {
  background-color: var(--background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Skip to Content */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

p {
  margin-bottom: var(--space-4);
  color: var(--body-text);
  line-height: var(--line-height-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

.overline {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  display: inline-block;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  text-align: center;
  line-height: var(--line-height-relaxed);
}

.intro-text {
  font-size: var(--font-size-lg);
  color: var(--body-text);
  line-height: var(--line-height-relaxed);
  max-width: 800px;
}

.text-center .intro-text {
  margin: 0 auto;
}

strong {
  color: inherit;
}

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section-sm {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* Section backgrounds */
.section-light {
  background-color: var(--surface-alt);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--text-inverted);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-4);
}

/* Dark mode overrides for section-dark — keep the dark brand feel */
html.dark-mode .section-dark {
  background-color: #0F172A;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   5. BUTTONS — Full theme + dark mode
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  min-height: 48px;
  letter-spacing: 0.01em;
}

/* Primary — accent blue, works in both modes */
.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

/* Secondary — for hero overlays (transparent) */
.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Outline — FIXED: uses semantic token, readable in both modes */
.btn-outline {
  background-color: transparent;
  color: var(--on-brand-primary);
  border-color: var(--on-brand-primary);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Dark mode outline specifically */
html.dark-mode .btn-outline {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

html.dark-mode .btn-outline:hover {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--font-size-md);
  min-height: 56px;
}

.btn-sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--font-size-sm);
  min-height: 40px;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   6. NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border);
}

html.dark-mode .navbar.scrolled {
  background-color: var(--background-dark);
  border-bottom-color: var(--border);
}

.navbar .container,
.navbar .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* --- Logo --- */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 1001;
  text-decoration: none;
}

.navbar-logo-icon {
  width: auto;
  height: 85px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.navbar-logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-base);
}

.navbar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

/* Logo name: transparent navbar → white; scrolled light mode → dark primary */
.navbar-logo-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  letter-spacing: var(--letter-spacing-wide);
  transition: color var(--transition-base);
}

.navbar.scrolled .navbar-logo-name {
  color: var(--color-primary);
}

/* Dark mode: scrolled → accent / near-white, never invisible */
html.dark-mode .navbar.scrolled .navbar-logo-name {
  color: var(--heading);
}

.navbar-logo-tagline {
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-top: 2px;
  transition: color var(--transition-base);
}

.navbar.scrolled .navbar-logo-tagline {
  color: var(--muted-text);
}

/* --- Nav Links --- */
.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.navbar-links a {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
  letter-spacing: var(--letter-spacing-wide);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  transform: scaleX(1);
}

.navbar-links a:hover {
  color: #ffffff;
}

/* Scrolled light mode */
.navbar.scrolled .navbar-links a {
  color: var(--body-text);
}

.navbar.scrolled .navbar-links a:hover,
.navbar.scrolled .navbar-links a.active {
  color: var(--color-primary);
}

/* Scrolled dark mode */
html.dark-mode .navbar.scrolled .navbar-links a {
  color: var(--body-text);
}

html.dark-mode .navbar.scrolled .navbar-links a:hover,
html.dark-mode .navbar.scrolled .navbar-links a.active {
  color: var(--heading);
}

/* --- Navbar CTA Button --- */
.navbar-cta {
  margin-left: var(--space-4);
}

/* Transparent navbar: white-ish ghost button */
.navbar-cta .btn {
  padding: var(--space-2) var(--space-6);
  font-size: var(--font-size-sm);
  min-height: 42px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.navbar-cta .btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Scrolled: full accent */
.navbar.scrolled .navbar-cta .btn {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.navbar.scrolled .navbar-cta .btn:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* --- Logo Image Switching --- */

/* Default (light mode, scrolled): show dark logo, hide light logo */
.navbar-logo-icon .logo-dark,
.footer-logo-icon .logo-dark {
  display: block;
}

.navbar-logo-icon .logo-light,
.footer-logo-icon .logo-light {
  display: none;
}

/* Light mode, transparent navbar: show light logo (for dark hero bg) */
.navbar:not(.scrolled) .navbar-logo-icon .logo-dark {
  display: none;
}

.navbar:not(.scrolled) .navbar-logo-icon .logo-light {
  display: block;
}

/* Dark mode: always show light logo */
html.dark-mode .navbar-logo-icon .logo-dark,
html.dark-mode .footer-logo-icon .logo-dark {
  display: none;
}

html.dark-mode .navbar-logo-icon .logo-light,
html.dark-mode .footer-logo-icon .logo-light {
  display: block;
}

/* --- Mobile Menu Toggle --- */
.navbar-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: all var(--transition-base);
  border-radius: 2px;
}

.navbar.scrolled .navbar-toggle span {
  background-color: var(--heading);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile Menu Drawer --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--surface);
  z-index: 1000;
  padding: calc(var(--navbar-height) + var(--space-8)) var(--space-8) var(--space-8);
  transition: right var(--transition-base);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

html.dark-mode .mobile-menu {
  background-color: var(--background-dark);
  border-left: 1px solid var(--border);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--heading);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--color-accent);
  padding-left: var(--space-2);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: var(--space-6);
}

body.menu-open {
  overflow: hidden;
}

/* ============================================
   7. THEME TOGGLE
   ============================================ */
.theme-selector {
  position: relative;
  display: inline-block;
  margin-left: var(--space-2);
}

.theme-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Scrolled light mode */
.navbar.scrolled .theme-btn {
  border-color: var(--border);
  color: var(--heading);
}

.navbar.scrolled .theme-btn:hover {
  background: var(--surface-alt);
}

/* Scrolled dark mode */
html.dark-mode .navbar.scrolled .theme-btn {
  border-color: var(--border);
  color: var(--heading);
}

html.dark-mode .navbar.scrolled .theme-btn:hover {
  background: var(--surface-alt);
}

/* ============================================
   8. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Light mode overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(13, 59, 102, 0.92) 0%,
      rgba(0, 80, 157, 0.80) 50%,
      rgba(13, 59, 102, 0.88) 100%);
  z-index: 1;
}

/* Dark mode overlay — deeper, more industrial */
html.dark-mode .hero::before {
  background: linear-gradient(135deg,
      rgba(11, 18, 32, 0.96) 0%,
      rgba(15, 23, 42, 0.88) 50%,
      rgba(11, 18, 32, 0.95) 100%);
}

/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
  backdrop-filter: blur(8px);
}

.hero-badge span {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: var(--letter-spacing-wide);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Hero h1 — always on overlay, always white */
.hero h1 {
  color: #ffffff;
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-4);
  letter-spacing: var(--letter-spacing-tight);
}

.hero h1 .hero-company-suffix {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wider);
  opacity: 0.82;
  margin-top: var(--space-2);
  text-transform: uppercase;
  color: #ffffff;
}

.hero-tagline {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.87);
  font-weight: var(--font-weight-light);
  margin-bottom: var(--space-10);
  letter-spacing: var(--letter-spacing-wide);
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================
   9. PAGE BANNER (Inner Pages)
   ============================================ */
.page-banner {
  position: relative;
  padding: calc(var(--navbar-height) + var(--space-20)) 0 var(--space-20);
  background-size: cover;
  background-position: center;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 59, 102, 0.93) 0%, rgba(0, 80, 157, 0.85) 100%);
}

html.dark-mode .page-banner::before {
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.97) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
}

.page-banner h1 {
  color: #ffffff;
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.70);
}

.page-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.70);
}

.page-banner .breadcrumb a:hover {
  color: #ffffff;
}

.page-banner .breadcrumb .separator {
  font-size: var(--font-size-xs);
}

/* ============================================
   10. STATS / METRICS — FIXED dark mode
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.stat-item {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

/* FIXED: was var(--color-primary) — invisible on dark bg */
.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--on-brand-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--muted-text);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  line-height: var(--line-height-snug);
}

/* ============================================
   11. SERVICE CARDS
   ============================================ */
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

html.dark-mode .service-card:hover {
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), var(--shadow-card-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card:hover .service-card-icon,
.service-detail-card:hover .service-card-icon {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon img,
.service-detail-card:hover .service-card-icon img {
  transform: scale(1.03);
}

.service-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
  color: var(--heading);
}

.service-card p {
  font-size: var(--font-size-sm);
  color: var(--muted-text);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

.service-card .learn-more {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: gap var(--transition-fast);
}

.service-card:hover .learn-more {
  gap: var(--space-3);
}

.learn-more svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
}

/* ============================================
   12. VALUE / DIFFERENCE CARDS — FIXED dark mode
   ============================================ */
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent);
}

.value-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(13, 59, 102, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  transition: background var(--transition-base);
}

.value-card:hover .value-card-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.20), rgba(13, 59, 102, 0.12));
}

/* FIXED: was var(--color-primary) — near-black in dark mode */
.value-card-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--on-brand-primary);
}

.value-card h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-3);
  color: var(--heading);
}

.value-card p {
  font-size: var(--font-size-sm);
  color: var(--muted-text);
}

/* ============================================
   13. SECTION UTILITIES
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .overline {
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.accent-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  margin: 0 auto var(--space-6);
  border-radius: var(--radius-full);
}

.accent-line-left {
  margin-left: 0;
}

/* ============================================
   14. ABOUT PAGE — CORE VALUES ACCORDION
   FIXED: removed hardcoded --color-white
   ============================================ */
.core-value-details {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-base);
}

.core-value-details:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.core-value-details summary {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  /* FIXED: was var(--color-primary) — invisible in dark */
  color: var(--on-brand-primary);
  list-style: none;
  cursor: pointer;
}

.core-value-details summary svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  stroke: var(--on-brand-primary);
}

.core-value-details p {
  margin-top: var(--space-3);
  color: var(--body-text);
}

/* ============================================
   15. VISION / MISSION CARDS
   ============================================ */
.vm-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.vm-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-secondary));
}

.vm-card .overline {
  color: var(--color-accent);
}

.vm-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
  color: var(--heading);
}

.vm-card p {
  color: var(--body-text);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   16. ABOUT PAGE — STAT ITEMS
   FIXED: removed --color-light-bg (undefined)
   ============================================ */
.stat-item-card {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  border: 1px solid var(--border);
}

/* ============================================
   17. SERVICES PAGE — Categories & Detail Cards
   ============================================ */
.services-category {
  margin-bottom: var(--space-16);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--border);
}

.category-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  flex-shrink: 0;
}

.category-header h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: 0;
  color: var(--heading);
}

.service-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--transition-base);
  height: 100%;
}

.service-detail-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.35);
}

.service-detail-card .service-card-icon {
  margin-bottom: var(--space-4);
}

.service-detail-card h3 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-3);
  color: var(--heading);
}

.service-detail-card p {
  font-size: var(--font-size-sm);
  color: var(--body-text);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

/* FIXED: was var(--color-primary) — invisible in dark */
.service-detail-card h5 {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  color: var(--on-brand-primary);
  margin-bottom: var(--space-2);
  margin-top: var(--space-4);
}

.service-detail-card ul {
  padding-left: var(--space-4);
}

.service-detail-card ul li {
  font-size: var(--font-size-sm);
  color: var(--body-text);
  padding: var(--space-1) 0;
  position: relative;
  padding-left: var(--space-4);
  line-height: var(--line-height-relaxed);
}

.service-detail-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ============================================
   18. LEADERSHIP / EXEC CARDS
   ============================================ */
.exec-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.exec-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.exec-portrait {
  width: 100%;
  height: 280px;
  background-color: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.exec-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.exec-card:hover .exec-portrait img {
  transform: scale(1.04);
}

.exec-portrait svg {
  width: 64px;
  height: 64px;
  color: var(--muted-text);
}

/* Placeholder portrait background */
.placeholder-portrait {
  background: linear-gradient(135deg, var(--surface-alt), var(--border));
}

html.dark-mode .placeholder-portrait {
  background: linear-gradient(135deg, #1E293B, #0F172A);
}

.exec-info {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.exec-info h3 {
  margin-bottom: var(--space-1);
  color: var(--heading);
}

.exec-role {
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

.exec-summary {
  color: var(--body-text);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.exec-card .btn {
  align-self: flex-start;
  width: 100%;
}

/* --- Advisory Board --- */
.advisor-card {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-card);
}

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

.advisor-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advisor-portrait svg {
  width: 32px;
  height: 32px;
  color: var(--muted-text);
}

.advisor-info h3 {
  font-size: var(--font-size-md);
  color: var(--muted-text);
  margin-bottom: var(--space-1);
}

.advisor-tag {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(59, 130, 246, 0.10);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

/* ============================================
   19. LEADERSHIP MODALS
   ============================================ */
.leader-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.leader-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.leader-modal {
  background: var(--card);
  width: 90%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-base);
  max-height: 90vh;
  overflow-y: auto;
}

.leader-modal-overlay.active .leader-modal {
  transform: translateY(0);
}

.leader-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--heading);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
  line-height: 1;
}

.leader-modal-close:hover {
  background: var(--border);
  color: var(--heading);
}

.leader-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.leader-modal-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leader-modal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.leader-modal-portrait svg {
  width: 48px;
  height: 48px;
  color: var(--muted-text);
}

.leader-modal-header h3 {
  margin-bottom: var(--space-1);
  color: var(--heading);
}

.leader-modal-header .exec-role {
  margin-bottom: 0;
}

.leader-modal-body {
  padding: var(--space-6);
}

/* FIXED: was var(--color-primary) — invisible in dark */
.leader-modal-body h4 {
  color: var(--on-brand-primary);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-md);
}

.leader-modal-body p {
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
  color: var(--body-text);
}

.leader-modal-body p:last-child {
  margin-bottom: 0;
}

/* ============================================
   20. CONTACT PAGE — Form & Office Card
   ============================================ */

/* Form Card wrapper */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--heading);
  margin-bottom: var(--space-2);
}

.form-group label .required {
  color: var(--color-danger);
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  color: var(--heading);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-height: 48px;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: var(--surface);
}

.form-control::placeholder {
  color: var(--muted-text);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 18px;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
  display: none;
}

.form-group.error .form-control {
  border-color: var(--color-danger);
}

.form-group.error .form-error {
  display: block;
}

/* Key Contact Cards */
.key-contacts-grid {
  align-items: stretch;
}

.key-contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.key-contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.kc-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.10);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.kc-icon svg {
  width: 24px;
  height: 24px;
}

.kc-content {
  flex-grow: 1;
}

.kc-content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
  color: var(--heading);
}

.kc-role {
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
  min-height: 40px;
}

.kc-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.kc-link {
  display: flex;
  align-items: center;
  color: var(--body-text);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.kc-link:hover {
  color: var(--color-accent);
}

.kc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: auto;
}

/* Registered Office Card */
.registered-office-wrapper {
  display: flex;
  gap: var(--space-6);
  align-items: stretch;
  margin-bottom: var(--space-8);
}

.registered-office-card {
  flex-grow: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.registered-office-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.ro-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.ro-header .office-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

/* FIXED: was var(--color-primary) — invisible in dark */
.ro-header h4 {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--on-brand-primary);
}

.ro-body {
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.ro-body .company-name {
  font-weight: var(--font-weight-bold);
  color: var(--heading);
  margin-bottom: var(--space-2);
}

.ro-body p {
  margin-bottom: 0;
  line-height: var(--line-height-relaxed);
  color: var(--body-text);
}

.ro-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.ro-actions .btn {
  flex: 1;
  min-width: 140px;
}

.ro-actions svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

/* Contact Info Card */
.contact-info-card {
  padding: var(--space-6);
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
}

/* FIXED: was var(--color-primary) — invisible in dark */
.contact-info-card h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
  color: var(--on-brand-primary);
}

.contact-info-card p {
  font-size: var(--font-size-sm);
  color: var(--body-text);
  margin-bottom: var(--space-1);
}

.contact-info-card .contact-role {
  font-size: var(--font-size-xs);
  color: var(--muted-text);
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* ============================================
   21. CTA SECTION — Fixed dark mode
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Dark mode CTA — industrial control room feel */
html.dark-mode .cta-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

html.dark-mode .cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 80, 157, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  color: #ffffff;
  font-size: var(--font-size-3xl);
  max-width: 700px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
}

html.dark-mode .cta-section h2 {
  color: var(--heading);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 500px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
}

html.dark-mode .cta-section p {
  color: var(--body-text);
}

.cta-section .btn {
  position: relative;
  z-index: 1;
}

/* ============================================
   22. FOOTER — Premium rebuild
   ============================================ */
.footer {
  background-color: var(--background-dark);
  color: rgba(255, 255, 255, 0.65);
  padding-top: var(--space-16);
}

/* Dark mode — slightly lighter for depth */
html.dark-mode .footer {
  background-color: #060C16;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

/* Footer column headings — FIXED: always white, visible on dark bg */
.footer-col h4 {
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: var(--space-6);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

/* Footer About Column */
.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-about .footer-logo-icon {
  width: auto;
  height: 40px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-about .footer-logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* FIXED: always white on dark footer bg */
.footer-about .footer-logo-name,
.footer-logo-name {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
}

.footer-about p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.58);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-5);
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.80);
}

/* Footer Links — FIXED: readable on dark bg */
.footer-links a {
  display: block;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.60);
  padding: var(--space-2) 0;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: var(--space-2);
}

/* Footer Contact Items */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.58);
  line-height: var(--line-height-relaxed);
}

/* GSTN strong tag visibility */
.footer-contact-item span strong {
  color: rgba(255, 255, 255, 0.80);
  font-weight: var(--font-weight-semibold);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}

/* ============================================
   23. MAP
   ============================================ */
.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  font-size: var(--font-size-sm);
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map Popup */
.map-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 1000;
}

.map-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.map-popup {
  background: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  max-width: 90%;
  width: 600px;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.map-popup-overlay.active .map-popup {
  transform: scale(1);
}

.map-popup-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  cursor: pointer;
  color: var(--muted-text);
}

.map-popup-close:hover {
  color: var(--heading);
}

/* ============================================
   24. SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 {
  transition-delay: 0.08s;
}

.animate-on-scroll.delay-2 {
  transition-delay: 0.16s;
}

.animate-on-scroll.delay-3 {
  transition-delay: 0.24s;
}

.animate-on-scroll.delay-4 {
  transition-delay: 0.32s;
}

.animate-on-scroll.delay-5 {
  transition-delay: 0.40s;
}

.animate-on-scroll.delay-6 {
  transition-delay: 0.48s;
}

.animate-on-scroll.delay-7 {
  transition-delay: 0.56s;
}

.animate-on-scroll.delay-8 {
  transition-delay: 0.64s;
}

/* ============================================
   25. LEADER CARDS (old pattern, kept)
   ============================================ */
.leader-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.leader-portrait {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.leader-portrait svg {
  width: 80px;
  height: 80px;
  fill: rgba(255, 255, 255, 0.30);
}

.leader-info {
  padding: var(--space-6);
  text-align: center;
}

.leader-info h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-1);
  color: var(--heading);
}

.leader-info .role {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-3);
}

.leader-info p {
  font-size: var(--font-size-sm);
  color: var(--muted-text);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   26. ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ============================================
   27. RESPONSIVE — Tablet (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --font-size-6xl: 3.5rem;
    --font-size-5xl: 3rem;
    --font-size-4xl: 2.5rem;
    --font-size-3xl: 2rem;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

/* ============================================
   28. RESPONSIVE — Mobile (max 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-6xl: 2.5rem;
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
    --navbar-height: 70px;
  }

  .section {
    padding: var(--space-12) 0;
  }

  .container {
    padding: 0 var(--space-5);
  }

  /* Navbar mobile */
  .navbar-links,
  .navbar-cta {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: var(--font-size-4xl);
  }

  .hero-tagline {
    font-size: var(--font-size-md);
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  /* Grids collapse to single column */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-number {
    font-size: var(--font-size-3xl);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: var(--space-6);
  }

  .form-card {
    padding: var(--space-6);
  }

  /* Page banner */
  .page-banner {
    min-height: 260px;
    padding: calc(var(--navbar-height) + var(--space-12)) 0 var(--space-12);
  }

  .page-banner h1 {
    font-size: var(--font-size-2xl);
  }

  /* CTA */
  .cta-section {
    padding: var(--space-16) 0;
  }

  .cta-section h2 {
    font-size: var(--font-size-2xl);
  }

  /* Contact */
  .key-contacts-grid {
    grid-template-columns: 1fr;
  }

  .registered-office-wrapper {
    flex-direction: column;
  }

  .kc-actions {
    grid-template-columns: 1fr;
  }

  /* Leadership modals */
  .leader-modal-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   29. RESPONSIVE — Small Mobile (max 480px)
   ============================================ */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .hero h1 .hero-company-suffix {
    font-size: var(--font-size-base);
  }
}

/* ============================================
   30. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}