:root {
  /* ========================================
     APIM BRAND COLOR SYSTEM
     Extracted from logo: Navy + Cyan + Dark
     ======================================== */

  /* Primitive Colors - APIM Brand Palette */
  --apim-dark: #1a1d21;
  --apim-dark-surface: #242830;
  --apim-primary-900: #1a2456;
  --apim-primary-800: #212d6a;
  --apim-primary-700: #283584;
  --apim-primary-600: #3245a0;
  --apim-primary-500: #4058b8;
  --apim-secondary-400: #6db3e8;
  --apim-secondary-500: #4D9DE0;
  --apim-secondary-600: #3a8ad0;
  --apim-accent: #FFB400;
  --apim-accent-light: #ffcc4d;
  --apim-accent-dark: #e6a200;
  --apim-white: #ffffff;
  --apim-gray-100: #f1f5f9;
  --apim-gray-200: #e2e8f0;
  --apim-gray-300: #cbd5e1;
  --apim-gray-400: #94a3b8;
  --apim-gray-500: #64748b;
  --apim-gray-600: #475569;
  --apim-gray-900: #0f172a;

  /* Status Colors */
  --color-red-400: #f87171;
  --color-red-500: #ef4444;
  --color-orange-400: #fb923c;
  --color-orange-500: #f97316;
  --color-green-400: #4ade80;
  --color-green-500: #22c55e;

  /* RGB versions for opacity control */
  --apim-primary-700-rgb: 30, 58, 95;
  --apim-secondary-400-rgb: 0, 212, 255;
  --apim-secondary-500-rgb: 0, 184, 212;
  --apim-dark-rgb: 26, 29, 33;
  --apim-white-rgb: 255, 255, 255;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(40, 53, 132, 0.06);
  --color-bg-2: rgba(245, 158, 11, 0.08);
  --color-bg-3: rgba(34, 197, 94, 0.08);
  --color-bg-4: rgba(239, 68, 68, 0.08);
  --color-bg-5: rgba(147, 51, 234, 0.08);
  --color-bg-6: rgba(249, 115, 22, 0.08);
  --color-bg-7: rgba(236, 72, 153, 0.08);
  --color-bg-8: rgba(77, 157, 224, 0.08);

  /* ========================================
     SEMANTIC TOKENS - Light Mode
     Primary: #283584 | Secondary: #4D9DE0 | Accent: #FFB400
     ======================================== */
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-surface-elevated: #f8fafc;
  --color-text: var(--apim-primary-700);
  --color-text-secondary: var(--apim-gray-500);
  --color-text-tertiary: var(--apim-gray-400);
  --color-primary: var(--apim-primary-700);
  --color-primary-hover: var(--apim-primary-800);
  --color-primary-active: var(--apim-primary-900);
  --color-primary-light: #e8eaf6;
  --color-secondary: var(--apim-secondary-500);
  --color-secondary-hover: var(--apim-secondary-600);
  --color-secondary-light: rgba(77, 157, 224, 0.1);
  --color-accent: var(--apim-accent);
  --color-accent-hover: var(--apim-accent-dark);
  --color-accent-light: rgba(255, 180, 0, 0.15);
  --color-border: rgba(40, 53, 132, 0.1);
  --color-border-light: rgba(40, 53, 132, 0.05);
  --color-btn-primary-text: var(--apim-white);
  --color-btn-accent-text: var(--apim-primary-900);
  --color-card-border: rgba(40, 53, 132, 0.08);
  --color-card-border-inner: rgba(40, 53, 132, 0.04);
  --color-error: var(--color-red-500);
  --color-success: var(--color-green-500);
  --color-warning: var(--apim-accent);
  --color-info: var(--apim-secondary-500);
  --color-focus-ring: rgba(77, 157, 224, 0.35);
  --color-select-caret: rgba(40, 53, 132, 0.7);

  /* Glow effects - APIM brand */
  --glow-primary: 0 0 20px rgba(40, 53, 132, 0.4), 0 0 40px rgba(40, 53, 132, 0.2);
  --glow-secondary: 0 0 20px rgba(77, 157, 224, 0.5), 0 0 40px rgba(77, 157, 224, 0.25);
  --glow-accent: 0 0 20px rgba(255, 180, 0, 0.5), 0 0 40px rgba(255, 180, 0, 0.25);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography - Clean Design System */
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-family-heading: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px - optimal for reading */
  --font-size-md: 1.125rem; /* 18px */
  --font-size-lg: 1.25rem; /* 20px */
  --font-size-xl: 1.5rem; /* 24px */
  --font-size-2xl: 1.875rem; /* 30px */
  --font-size-3xl: 2.25rem; /* 36px */
  --font-size-4xl: 3rem; /* 48px */
  --font-size-5xl: 3.75rem; /* 60px */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.025em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows - Premium Elevation System */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* ========================================
   DARK MODE - APIM Native Environment
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(40, 53, 132, 0.2);
    --color-bg-2: rgba(180, 83, 9, 0.15);
    --color-bg-3: rgba(21, 128, 61, 0.15);
    --color-bg-4: rgba(185, 28, 28, 0.15);
    --color-bg-5: rgba(107, 33, 168, 0.15);
    --color-bg-6: rgba(194, 65, 12, 0.15);
    --color-bg-7: rgba(190, 24, 93, 0.15);
    --color-bg-8: rgba(77, 157, 224, 0.15);

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--apim-dark);
    --color-surface: var(--apim-dark-surface);
    --color-text: var(--apim-gray-100);
    --color-text-secondary: var(--apim-gray-400);
    --color-text-tertiary: var(--apim-gray-500);
    --color-primary: var(--apim-secondary-400);
    --color-primary-hover: var(--apim-secondary-500);
    --color-primary-active: var(--apim-secondary-600);
    --color-primary-light: rgba(77, 157, 224, 0.15);
    --color-accent: var(--apim-secondary-400);
    --color-accent-hover: var(--apim-secondary-500);
    --color-accent-subtle: rgba(77, 157, 224, 0.1);
    --color-secondary: rgba(255, 255, 255, 0.06);
    --color-secondary-hover: rgba(255, 255, 255, 0.1);
    --color-secondary-active: rgba(255, 255, 255, 0.14);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.06);
    --color-error: var(--color-red-400);
    --color-success: var(--color-green-400);
    --color-warning: var(--color-orange-400);
    --color-info: var(--apim-secondary-400);
    --color-focus-ring: rgba(77, 157, 224, 0.4);
    --color-btn-primary-text: var(--apim-dark);
    --color-btn-accent-text: var(--apim-dark);
    --color-card-border: rgba(255, 255, 255, 0.08);
    --color-card-border-inner: rgba(255, 255, 255, 0.04);
    --color-select-caret: rgba(241, 245, 249, 0.9);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* Background color tokens (Dark Mode) */
  --color-bg-1: rgba(40, 53, 132, 0.2);
  --color-bg-2: rgba(180, 83, 9, 0.15);
  --color-bg-3: rgba(21, 128, 61, 0.15);
  --color-bg-4: rgba(185, 28, 28, 0.15);
  --color-bg-5: rgba(107, 33, 168, 0.15);
  --color-bg-6: rgba(194, 65, 12, 0.15);
  --color-bg-7: rgba(190, 24, 93, 0.15);
  --color-bg-8: rgba(77, 157, 224, 0.15);

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--apim-dark);
  --color-surface: var(--apim-dark-surface);
  --color-text: var(--apim-gray-100);
  --color-text-secondary: var(--apim-gray-400);
  --color-text-tertiary: var(--apim-gray-500);
  --color-primary: var(--apim-secondary-400);
  --color-primary-hover: var(--apim-secondary-500);
  --color-primary-active: var(--apim-secondary-600);
  --color-primary-light: rgba(77, 157, 224, 0.15);
  --color-accent: var(--apim-secondary-400);
  --color-accent-hover: var(--apim-secondary-500);
  --color-secondary: rgba(255, 255, 255, 0.06);
  --color-secondary-hover: rgba(255, 255, 255, 0.1);
  --color-secondary-active: rgba(255, 255, 255, 0.14);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-error: var(--color-red-400);
  --color-success: var(--color-green-400);
  --color-warning: var(--color-orange-400);
  --color-info: var(--apim-secondary-400);
  --color-focus-ring: rgba(77, 157, 224, 0.4);
  --color-btn-primary-text: var(--apim-dark);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --color-card-border-inner: rgba(255, 255, 255, 0.04);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* Semantic Color Tokens (Light Mode - Bright) */
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-text: var(--apim-primary-700);
  --color-text-secondary: var(--apim-gray-500);
  --color-text-tertiary: var(--apim-gray-400);
  --color-primary: var(--apim-secondary-500);
  --color-primary-hover: var(--apim-secondary-600);
  --color-primary-active: var(--apim-primary-700);
  --color-primary-light: #e0f7fa;
  --color-accent: var(--apim-secondary-400);
  --color-accent-hover: var(--apim-secondary-500);
  --color-secondary: rgba(77, 157, 224, 0.06);
  --color-secondary-hover: rgba(77, 157, 224, 0.12);
  --color-secondary-active: rgba(77, 157, 224, 0.18);
  --color-border: rgba(40, 53, 132, 0.08);
  --color-btn-primary-text: var(--apim-white);
  --color-card-border: rgba(40, 53, 132, 0.06);
  --color-card-border-inner: rgba(40, 53, 132, 0.04);
  --color-error: var(--color-red-500);
  --color-success: var(--color-green-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--apim-secondary-500);
  --color-focus-ring: rgba(77, 157, 224, 0.3);
  --color-select-caret: rgba(40, 53, 132, 0.7);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Common style patterns - updated for light mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for light mode */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  transition: color 0.3s ease, background-color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container */
.container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-20);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-16);
  }
}

/* Header - Bright & Clean */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(40, 53, 132, 0.08);
  transition: all 0.3s ease;
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(40, 53, 132, 0.08);
  border-bottom: 1px solid rgba(40, 53, 132, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(58px, 7vw, 78px);
  padding-block: clamp(10px, 1.5vw, 16px);
}

.nav__brand {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
  color: var(--color-text);
  margin-left: 20px;
}

.logo__image {
  height: clamp(82px, 11vw, 100px);
  width: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .logo__image {
    height: clamp(73px, 9vw, 91px);
  }
}

@media (max-width: 768px) {
  .logo__image {
    height: clamp(64px, 8.5vw, 82px);
  }

  .nav {
    min-height: clamp(52px, 8vw, 68px);
    padding-block: clamp(10px, 1.5vw, 14px);
  }

  .logo {
    margin-left: 10px;
  }
}


.logo__region {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease-in-out;
  text-align: center;
  background: rgba(var(--color-primary), 0.1);
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(var(--color-primary), 0.2);
}

.logo__region.fade-out {
  opacity: 0;
  transform: translateY(-5px);
}

.logo__region.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.nav__link {
  text-decoration: none;
  color: var(--apim-primary-700);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  position: relative;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(77, 157, 224, 0.1);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav__link:hover {
  color: var(--apim-secondary-500);
}

.nav__link:hover::before {
  width: 100%;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--apim-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover::after {
  width: 80%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}



/* Mobile Navigation */
.nav__burger {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 4px;
  z-index: 1001;
}

.nav__burger span {
  width: 20px;
  height: 2px;
  background: var(--apim-primary-700);
  transition: all 0.3s ease;
  transform-origin: center;
}

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

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

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

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--space-32);
    border-top: 1px solid rgba(40, 53, 132, 0.1);
    box-shadow: 0 10px 40px rgba(40, 53, 132, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav__menu--active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__burger {
    display: flex;
  }

  .nav__actions .btn {
    display: none;
  }
}

/* Buttons - Premium Design */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  background: none;
  line-height: 1.25;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

/* Primary Button */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--primary:active {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Outline Button */
.btn--outline {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--outline:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Button Sizes */
.btn--sm {
  padding: var(--space-6) var(--space-12);
  font-size: 13px;
  min-height: 36px;
}

.btn--lg {
  padding: var(--space-10) var(--space-24);
  font-size: 15px;
  min-height: 40px;
}

.btn--full {
  width: 100%;
}

/* Hero Section with Video Background */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent; /* Ensure hero section is transparent */
}

.hero__video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Changed from -2 to 0 to be above body background */
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  pointer-events: none;
  z-index: 0; /* Ensure video is on top of video-bg container */
}

.hero__video.active {
  opacity: 1;
}

.hero__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(40, 53, 132, 0.4) 0%,
    rgba(77, 157, 224, 0.3) 50%,
    rgba(40, 53, 132, 0.4) 100%
  );
  z-index: 1;
}

/* Mobile fallback - hide videos and show gradient background */
.hero__mobile-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  z-index: -1; /* Changed from -3 to -1 to be behind video but above body */
}

/* Mobile optimizations for all orientations */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }

  .hero__video-overlay {
    background: linear-gradient(
      135deg,
      rgba(40, 53, 132, 0.8) 0%,
      rgba(77, 157, 224, 0.55) 100%
    );
  }

  .hero__video {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%);
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}

/* Performance optimization for reduced motion preference only */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none !important;
  }
}

.hero__content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
  padding: var(--space-32) 0;
  position: relative;
  z-index: 2;
}


.hero__title {
  font-family: var(--font-family-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: white;
  margin-bottom: var(--space-16);
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__rotating-text {
  height: 60px;
  margin-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotating-text__item {
  position: absolute;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--apim-accent);
  text-shadow: 0 0 30px rgba(255, 180, 0, 0.8), 0 0 60px rgba(255, 180, 0, 0.4);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.rotating-text__item.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-text__item.exit {
  opacity: 0;
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  .hero__rotating-text {
    height: 50px;
  }
}

.hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-32);
  line-height: var(--line-height-relaxed);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: var(--font-weight-normal);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

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

  .hero__actions .btn--primary {
    display: none;
  }

  .btn {
    padding: var(--space-6) var(--space-12);
    font-size: 13px;
    min-height: 36px;
  }

  .btn--sm {
    padding: var(--space-4) var(--space-10);
    font-size: 12px;
    min-height: 34px;
  }

  .btn--lg {
    padding: var(--space-8) var(--space-16);
    font-size: 14px;
    min-height: 38px;
  }
}

/* Problems & Solutions */
.problems-solutions {
  padding: 5rem 0;
  background: var(--color-surface);
}

.problems-solutions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: start;
}

.problems-solutions__item h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-24);
}

.challenge-list,
.solution-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.challenge-item,
.solution-item {
  padding: var(--space-20);
  background: var(--color-background);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.challenge-item::before,
.solution-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: left 0.4s ease;
}

.challenge-item:hover,
.solution-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 35px rgba(40, 53, 132, 0.12);
  border-color: var(--apim-secondary-400);
}

.challenge-item:hover::before,
.solution-item:hover::before {
  left: 0;
}

.challenge-item:hover h3,
.solution-item:hover h3 {
  color: var(--color-primary);
  transform: translateX(4px);
}

.challenge-item h3,
.solution-item h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.challenge-item p,
.solution-item p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

@media (max-width: 768px) {
  .problems-solutions__grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-family-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: var(--line-height-tight);
}

.section-header p {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  max-width: 40rem;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* Services */
.services {
  padding: 5rem 0;
  background: var(--color-background);
}

.services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  flex: 0 1 340px;
  max-width: 360px;
}

@media (max-width: 640px) {
  .service-card {
    flex-basis: 100%;
    max-width: 100%;
  }
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(77, 157, 224, 0.03) 0%, rgba(40, 53, 132, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(40, 53, 132, 0.15);
  border-color: var(--apim-secondary-500);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover .service-card__icon {
  transform: scale(1.05);
  background: linear-gradient(135deg, var(--apim-primary-700) 0%, var(--apim-secondary-500) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(40, 53, 132, 0.3);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(40, 53, 132, 0.08) 0%, rgba(77, 157, 224, 0.12) 100%);
  border-radius: var(--radius-lg);
  margin: 0 auto 1.25rem auto;
  color: var(--apim-primary-700);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
}

.service-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.service-card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
  line-height: var(--line-height-normal);
}

.service-card__points {
  list-style: none;
  margin-bottom: var(--space-20);
  flex: 1;
  text-align: left;
}

.btn--emergency {
  background: linear-gradient(135deg, #d93025 0%, #ea4335 100%);
  color: white;
  border: 1px solid #d93025;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(217, 48, 37, 0.35);
  animation: emergency-pulse 2.5s ease-in-out infinite;
}
.btn--emergency:hover {
  background: linear-gradient(135deg, #b52519 0%, #d93025 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(217, 48, 37, 0.45);
}
@keyframes emergency-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(217, 48, 37, 0.35); }
  50% { box-shadow: 0 6px 24px rgba(217, 48, 37, 0.6); }
}

.service-card > .btn {
  margin-top: auto;
  align-self: center;
}

.service-card__points li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-16);
}

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

/* Before/After */
.before-after {
  padding: var(--space-32) 0;
  background: var(--color-surface);
}

.before-after__slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.before-after__slide {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.before-after__slide.active {
  opacity: 1;
  visibility: visible;
}

.before-after__content h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-24);
}

.before-after__comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-24);
  align-items: center;
  margin-bottom: var(--space-32);
}

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

.before-after__item h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.before-after__image {
  width: 200px;
  height: 150px;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-12);
  background: var(--color-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.before-after__image--before {
  background: var(--color-bg-4);
}

.before-after__image--after {
  background: var(--color-bg-3);
}

.before-after__image::before {
  content: '📷';
  font-size: 32px;
}

.before-after__arrow {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.before-after__controls {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
}

.before-after__control {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.3s ease;
}

.before-after__control:hover,
.before-after__control.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .before-after__comparison {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .before-after__arrow {
    transform: rotate(90deg);
  }

  .before-after__image {
    width: 150px;
    height: 100px;
  }
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background: var(--color-background);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-24);
  align-items: stretch;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(77, 157, 224, 0.02) 0%, rgba(40, 53, 132, 0.03) 100%);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(40, 53, 132, 0.12);
  border-color: var(--apim-secondary-400);
}

.testimonial-card:hover::after {
  opacity: 1;
}

.testimonial-card:hover .testimonial-card__avatar {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.testimonial-card__rating {
  margin-bottom: var(--space-16);
}

.testimonial-card__rating span {
  color: #fbbf24;
}

.testimonial-card__quote {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  margin-bottom: var(--space-20);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-top: auto;
  padding-top: var(--space-16);
}

.testimonial-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--color-border);
  flex-shrink: 0;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
}

.testimonial-card__info strong {
  display: block;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: 1.2;
}

.testimonial-card__info span {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.3;
}

/* Team Section */
.team {
  padding: 5rem 0;
  background: var(--color-surface);
}

.team__content {
  max-width: 1200px;
  margin: 0 auto;
}

.team__photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--space-32);
  transition: transform 0.3s ease;
}

.team__photo:hover {
  transform: scale(1.01);
}

.team__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.team__description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.team__description p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

/* Team Grid Layout */
.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

.team-member {
  text-align: center;
  background: var(--color-background);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.team-member__photo {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .team-member__photo img {
  transform: scale(1.05);
}

.team-member__info {
  padding: var(--space-16);
}

.team-member__info h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.team-member__info span {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
}

@media (max-width: 1024px) {
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team {
    padding: 3rem 0;
  }

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

  .team__photo {
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-24);
  }

  .team__description p {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .team__grid {
    grid-template-columns: 1fr;
  }
}

/* References Section */
.references {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--apim-primary-700) 0%, var(--apim-primary-600) 100%);
}

.references .section-header h2,
.references .section-header p {
  color: white;
}

.references__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-24);
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.reference-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) var(--space-16);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.3);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  text-align: center;
  backdrop-filter: blur(10px);
}

.reference-badge:hover {
  background: rgba(255, 180, 0, 0.2);
  border-color: var(--apim-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 180, 0, 0.25);
}

.reference-badge__name {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: white;
  margin-bottom: var(--space-4);
}

.reference-badge__type {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .references {
    padding: 3rem 0;
  }
  
  .references__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-16);
  }
  
  .reference-badge {
    padding: var(--space-16) var(--space-12);
  }
  
  .reference-badge__name {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .references__grid {
    grid-template-columns: 1fr;
  }
}

/* Realizations */
.realizations {
  padding: var(--space-32) 0;
  background: var(--color-background);
}

.realizations__showcase {
  max-width: 1000px;
  margin: 0 auto;
}

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

.realization-item h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-32);
}

.realization-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-24);
  align-items: center;
  margin-bottom: var(--space-24);
}

.realization-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
}

.realization-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.realization-label {
  position: absolute;
  top: var(--space-16);
  left: var(--space-16);
  padding: var(--space-6) var(--space-12);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-sm);
}

.realization-arrow {
  font-size: var(--font-size-3xl);
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.realization-description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .realization-comparison {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .realization-arrow {
    font-size: var(--font-size-2xl);
    transform: rotate(90deg);
  }
}

/* Process */
.process {
  padding: 5rem 0;
  background: var(--color-surface);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step__number {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--apim-primary-700) 0%, var(--apim-secondary-500) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--space-16);
  box-shadow: 0 4px 15px rgba(40, 53, 132, 0.3);
}

.process-step h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.process-step p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* FAQ */
.faq {
  padding: 5rem 0;
  background: var(--color-background);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-12);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  padding: var(--space-20);
  background: var(--color-surface);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  transition: all 0.3s ease;
}

.faq__question:hover {
  background: var(--color-secondary);
}

.faq__icon {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer p {
  padding: 0 var(--space-20) var(--space-20);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--color-surface);
}

.contact__content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-32);
  align-items: start;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group--honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group--consent {
  margin-bottom: var(--space-16);
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-weight: normal;
}
.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--apim-primary-600);
  flex-shrink: 0;
}
.consent-label a {
  color: var(--apim-primary-600);
  text-decoration: underline;
}

.form-status {
  margin-bottom: var(--space-12);
  font-size: 0.9rem;
  min-height: 0;
}
.form-status.is-success {
  color: #15803d;
}
.form-status.is-error {
  color: #b91c1c;
}

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

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

.form-group label {
  display: block;
  margin-bottom: var(--space-6);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--color-text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  background: var(--color-surface);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
}

[data-color-scheme="dark"] .form-group select {
  background-image: var(--select-caret-dark);
}

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

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.contact-info-card {
  background: var(--color-background);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  position: relative;
}

.contact-info-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 15px 35px rgba(40, 53, 132, 0.12);
  border-color: var(--apim-secondary-400);
  background: linear-gradient(135deg, white 0%, rgba(77, 157, 224, 0.04) 100%);
}

.contact-info-card h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.contact-info-item {
  margin-bottom: var(--space-12);
}

.contact-info-item strong {
  display: block;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.contact-info-item span {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.contact-info-card ul {
  list-style: none;
  margin-top: var(--space-12);
}

.contact-info-card li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-16);
}

.contact-info-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .contact__content {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

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

}

/* Location */
.location {
  padding: var(--space-32) 0;
  background: var(--color-background);
}

.location__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: start;
}

.location__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.location__address,
.location__transport {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-20);
}

.location__address h3,
.location__transport h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.location__address p {
  color: var(--color-text);
  line-height: var(--line-height-normal);
}

.location__transport ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.location__transport li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  position: relative;
  padding-left: var(--space-16);
}

.location__transport li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location__map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

@media (max-width: 768px) {
  .location__content {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .location__map {
    order: -1;
  }

  .location__map iframe {
    height: 300px;
  }
}

/* Footer */
.footer {
  padding: var(--space-32) 0 var(--space-24);
  background: linear-gradient(135deg, var(--apim-primary-800) 0%, var(--apim-primary-700) 100%);
  color: white;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-32);
  margin-bottom: var(--space-24);
}

.footer__brand p {
  margin-top: var(--space-12);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-normal);
}

.footer__brand .logo__text {
  color: white;
}

.footer__brand .logo__image {
  filter: brightness(0) invert(1);
  height: clamp(48px, 5vw, 64px);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-24);
}

.footer__column h4 {
  color: white;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-12);
}

.footer__column ul {
  list-style: none;
}

.footer__column li {
  margin-bottom: var(--space-6);
}

.footer__column a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__column a:hover {
  color: var(--apim-accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255, 180, 0, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.footer__legal {
  display: flex;
  gap: var(--space-20);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--apim-accent);
}

@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-12);
    text-align: center;
  }
}

/* Chat Float */
.chat-float {
  position: fixed;
  bottom: var(--space-24);
  right: var(--space-24);
  z-index: 1000;
}

.chat-float__button {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--apim-accent);
  color: var(--apim-primary-900);
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 180, 0, 0.4);
  transition: all 0.3s ease;
}

.chat-float__button:hover {
  background: var(--apim-accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(40, 53, 132, 0.5);
}

.chat-float__tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: var(--color-text);
  color: var(--color-surface);
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  margin-bottom: var(--space-8);
}

.chat-float:hover .chat-float__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 100px;
  right: var(--space-24);
  z-index: 1001;
  max-width: 400px;
}

.notification {
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-md);
  transform: translateX(100%);
  opacity: 0;
  animation: slideIn 0.3s ease forwards;
}

.notification--success {
  border-left-color: var(--color-success);
}

.notification--error {
  border-left-color: var(--color-error);
}

.notification--warning {
  border-left-color: var(--color-warning);
}

.notification--info {
  border-left-color: var(--color-info);
}

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification__content {
  color: var(--color-text);
  line-height: var(--line-height-normal);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

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

/* Print Styles */
@media print {
  .header,
  .chat-float,
  .notification-container {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn--outline {
    border-width: 2px;
  }

  .service-card,
  .testimonial-card,
  .contact-info-card {
    border-width: 2px;
  }
}

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

  .hero__shape {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Popup Urgences */
.emergency-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emergency-modal[hidden] {
  display: none;
}
.emergency-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.emergency-modal__box {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 28px 28px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.emergency-modal__close {
  position: absolute;
  top: 8px;
  right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary);
  cursor: pointer;
}
.emergency-modal__close:hover {
  color: var(--color-text);
}
.emergency-modal__icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}
.emergency-modal__box h3 {
  margin: 0 0 12px;
  color: var(--color-text);
}
.emergency-modal__box p {
  margin: 0 0 20px;
  color: var(--color-text-secondary);
}
.emergency-modal__call {
  width: 100%;
}
