/* ============================================================================
   IMSS HEALTHCARE — ENTERPRISE PREMIUM CSS SYSTEM
   
   This is a complete redesign incorporating:
   - Healthcare enterprise color palette (#1B5E85 primary navy, no burgundy)
   - Serif typography for premium positioning (IBM Plex Sans headings)
   - Modular spacing system (4px base scale)
   - Unified component library
   - Premium shadows and depth
   - Clinical, trustworthy aesthetic
   - WCAG 2.2 accessibility standards
   - CONSISTENT HOVER EFFECTS across all interactive elements
   
   ============================================================================
   HOVER EFFECT CONSISTENCY RULES:
   - All hover transitions use: var(--transition-base) var(--cubic-ease)
   - All interactive elements have unified hover timing (0.22s)
   - Color changes: navy primary (#1B5E85)
   - Transform patterns: translateY(-2px to -10px), translateX(2px), scale(1.02)
   - Background colors use rgba navy at 0.04-0.08 opacity
   - Cards/larger elements: -6px to -10px translateY
   - Small elements: -2px translateY
   - Links: add light background or slight color shift
   ============================================================================ */

/* ============================================================================
   1. RESET & BASE STYLES
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 1;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-background-primary);
  -webkit-font-smoothing: antialiased;
}

/* Reset lists */
ul, ol { list-style: none; }
li { list-style: none; }

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-base) var(--cubic-ease);
}

a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* ============================================================================
   2. DESIGN SYSTEM TOKENS
   ============================================================================ */

:root {
  /* ---- COLORS: MINIMAL 2-COLOR THEME ---- */
  
  /* Primary: Deep Navy */
  --color-primary-dark: #0F2744;        /* Deep navy – primary brand */
  --color-primary: #1B5E85;             /* Light navy – actions & headlines */
  --color-primary-light: #E0F2F7;       /* Very light blue – backgrounds */
  
  /* Accent: Burgundy (only secondary color) */
  --color-accent-burgundy: #A1324A;     /* Burgundy – accents, hover states */
  --color-accent-burgundy-light: #E8B8CC; /* Light burgundy – light accents */
  
  /* Semantic: Neutral grays (no extra colors) */
  --color-success: #4B5563;             /* Dark gray – success states */
  --color-success-light: #F3F4F6;       /* Light gray – success backgrounds */
  --color-warning: #6B7280;             /* Medium gray – warnings */
  --color-warning-light: #F3F4F6;       /* Light gray – warning backgrounds */
  
  /* Text & Hierarchy */
  --color-text-primary: #1F2937;        /* Dark gray – primary text */
  --color-text-secondary: #6B7280;      /* Medium gray – secondary text */
  --color-text-tertiary: #9CA3AF;       /* Light gray – disabled state */
  --color-text-inverse: #FFFFFF;        /* White – text on dark */
  
  /* Surfaces & Backgrounds */
  --color-background-primary: #FAFBFC;  /* Warm white – main background */
  --color-background-secondary: #F3F4F6; /* Light gray – alternate backgrounds */
  --color-background-dark: #0F2744;     /* Deep navy – dark sections */
  
  /* Borders & Dividers */
  --color-border-light: #E5E7EB;        /* Light border – subtle dividers */
  --color-border-medium: #D1D5DB;       /* Medium border – standard borders */
  --color-border-dark: #9CA3AF;         /* Dark border – emphasis */
  
  /* Surfaces */
  --color-surface-primary: #FFFFFF;     /* White – cards, modals */
  --color-surface-secondary: #F9FAFB;   /* Off-white – subtle variation */
  --color-surface-tertiary: #F3F4F6;    /* Light gray – tertiary surface */
  
  /* Shadows: Healthcare-specific depth */
  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-base: 0 4px 12px rgba(15, 39, 68, 0.08);
  --shadow-card: 0 12px 28px rgba(15, 39, 68, 0.12);
  --shadow-elevated: 0 20px 40px rgba(15, 39, 68, 0.15);
  --shadow-premium: 0 28px 56px rgba(15, 39, 68, 0.18);
  
  /* ---- TYPOGRAPHY SCALE ---- */
  
  /* Font Families */
  --font-heading: "IBM Plex Sans", system-ui, sans-serif;  /* Professional, clean, modern */
  --font-body: "IBM Plex Sans", system-ui, sans-serif;     /* Consistent throughout */
  
  /* Font Sizes (Responsive via clamp()) */
  --font-size-display: clamp(2.8rem, 6vw, 4rem);  /* Page hero titles */
  --font-size-h1: clamp(2.4rem, 5vw, 3.2rem);     /* Section heroes */
  --font-size-h2: clamp(1.8rem, 4vw, 2.4rem);     /* Subsection headers */
  --font-size-h3: 1.5rem;                         /* Component headers */
  --font-size-h4: 1.25rem;                        /* Minor headers */
  --font-size-body-lg: 1.125rem;                  /* Large body text */
  --font-size-body: 1.05rem;                      /* Standard body */
  --font-size-body-sm: 0.95rem;                   /* Small body text */
  --font-size-small: 0.875rem;                    /* Labels, metadata */
  --font-size-tiny: 0.75rem;                      /* Overlines, badges */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0em;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  
  /* ---- SPACING SYSTEM (4px base) ---- */
  
  --spacing-2xs: 0.25rem;  /* 4px */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 1.5rem;    /* 24px */
  --spacing-lg: 2rem;      /* 32px */
  --spacing-xl: 2.5rem;    /* 40px */
  --spacing-2xl: 3.5rem;   /* 56px */
  --spacing-3xl: 4.5rem;   /* 72px */
  --spacing-4xl: 6rem;     /* 96px */
  
  /* Section padding */
  --section-padding: var(--spacing-3xl);
  --section-padding-md: var(--spacing-2xl);
  --section-padding-sm: var(--spacing-lg);
  
  /* ---- BORDER RADIUS ---- */
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* ---- TRANSITIONS & ANIMATIONS ---- */
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.22s ease;
  --transition-slow: 0.35s ease;
  --cubic-ease: cubic-bezier(0.34, 1.56, 0.64, 1); /* Premium ease function */
  
  /* ---- GRID & LAYOUT ---- */
  
  --container-width: 1400px;
  --container-padding: 1.5rem;
  --grid-gap: var(--spacing-lg);
  
  /* Z-index stack */
  --z-dropdown: 100;
  --z-sticky: 50;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* ============================================================================
   3. LAYOUT & CONTAINER
   ============================================================================ */

.container {
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--container-padding);
}

@media (max-width: 1024px) {
  .container {
    width: 95%;
    padding-inline: 1.25rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: 97%;
    padding-inline: 1rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: 100%;
    padding-inline: 1rem;
  }
}

@media (max-width: 375px) {
  .container {
    padding-inline: 0.75rem;
  }
}

/* ============================================================================
   4. TYPOGRAPHY STYLES
   ============================================================================ */

h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-primary-dark);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-primary-dark);
}

h3 {
  font-family: var(--font-body);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--color-primary);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Small text & metadata */
small, .text-sm {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

/* Overline / eyebrow text */
.overline, .eyebrow {
  font-family: var(--font-body);
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: block;
  margin-bottom: var(--spacing-xs);
}

/* ============================================================================
   5. SECTIONS & MAJOR LAYOUT BLOCKS
   ============================================================================ */

main {
  position: relative;
  z-index: 1;
  opacity: 1;
  animation: none;
}

section {
  position: relative;
  padding: var(--section-padding) 0;
}

.section {
  position: relative;
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.5rem 0;
  }
}

.section--tight {
  padding: var(--section-padding-sm) 0;
}

@media (max-width: 640px) {
  .section--tight {
    padding: 1.5rem 0;
  }
}

.section--spacious {
  padding: var(--section-padding) 0;
}

@media (max-width: 640px) {
  .section--spacious {
    padding: 3rem 0;
  }
}

section.section--tight {
  padding: var(--section-padding-sm) 0;
}

section.section--spacious {
  padding: var(--section-padding) 0;
}

/* Alternating backgrounds */
section.section--alt {
  background: linear-gradient(135deg, #EEF2FA 0%, #F5F3F1 100%);
}

.section--alt {
  background: linear-gradient(135deg, #EEF2FA 0%, #F5F3F1 100%);
}

section.section--dark {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-text-inverse);
}

.section--dark {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--color-text-inverse);
}

section.section--dark h1,
section.section--dark h2,
section.section--dark h3 {
  color: var(--color-text-inverse);
}

section.section--dark p {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================================
   6. SECTION HEADINGS
   ============================================================================ */

.section__heading {
  margin-bottom: var(--spacing-2xl);
  max-width: 750px;
}

@media (max-width: 640px) {
  .section__heading {
    margin-bottom: var(--spacing-xl);
  }
}

@media (max-width: 375px) {
  .section__heading {
    margin-bottom: var(--spacing-lg);
  }
}

.section__heading h1,
.section__heading h2 {
  margin-bottom: var(--spacing-md);
}

.section__heading p {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  max-width: 650px;
}

/* Overline / eyebrow */
.section__eyebrow {
  display: block;
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

/* Breadcrumb Navigation */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: all var(--transition-base) var(--cubic-ease);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* ============================================================================
   7. GRID SYSTEMS
   ============================================================================ */

.grid {
  display: grid;
  gap: var(--grid-gap);
  width: 100%;
}

.grid--cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--cols-4,
  .grid--cols-3,
  .grid--cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Specific grids used in content */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   8. CARD COMPONENTS (Unified System)
   ============================================================================ */

.card {
  position: relative;
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base) var(--cubic-ease);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-primary);
  transition: all var(--transition-base) var(--cubic-ease);
}

/* Card variants */
.card--primary {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
  border-color: var(--color-border-light);
}

.card--dark {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.card--dark h3,
.card--dark h4 {
  color: var(--color-text-inverse);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.85);
}

/* Card content spacing */
.card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.card__title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
}

.card__description {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.card__footer {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border-light);
}

/* Card badges/tags */
.card__badge {
  display: inline-block;
  background: var(--color-accent-gold-light);
  color: #3d2817;
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-md);
}

/* ============================================================================
   9. BUTTON STYLES
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base) var(--cubic-ease);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 640px) {
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    min-height: 48px;
  }
}

/* Primary Button */
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-card);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0d3a5c 100%);
  transition: all var(--transition-base) var(--cubic-ease);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Secondary Button */
.btn--secondary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  transition: all var(--transition-base) var(--cubic-ease);
}

/* Ghost Button */
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
  transition: all var(--transition-base) var(--cubic-ease);
}

/* Disabled state */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Full width */
.btn--full {
  width: 100%;
}

@media (max-width: 640px) {
  .btn--full {
    width: 100%;
    padding: 0.95rem 1.25rem;
    min-height: 48px;
  }
}

/* Small button variant */
.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-small);
}

@media (max-width: 640px) {
  .btn--sm {
    padding: 0.6rem 1.2rem;
    min-height: 40px;
  }
}

/* ============================================================================
   10. HEADER & NAVIGATION
   ============================================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--color-surface-primary);
  border-bottom: 2px solid var(--color-border-light);
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.08);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: 1rem 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--color-text-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: all var(--transition-base) var(--cubic-ease);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo__mark {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .logo__mark {
    width: 40px;
    height: 40px;
  }
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.logo__tagline {
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex: 1;
}

.nav__link {
  position: relative;
  padding: 0.75rem 0.5rem;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-base) var(--cubic-ease);
  border-radius: var(--radius-sm);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  background: rgba(27, 94, 133, 0.04);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base) ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Header CTA button styling */
.header .btn--primary {
  box-shadow: 0 8px 20px rgba(27, 94, 133, 0.3);
  font-weight: 600;
}

.header .btn--primary:hover {
  box-shadow: 0 12px 28px rgba(27, 94, 133, 0.4);
}

.header .btn--ghost {
  border: 1.5px solid var(--color-primary);
  font-weight: 600;
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__phone {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: all var(--transition-base) var(--cubic-ease);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.header__phone:hover {
  color: var(--color-primary);
  background: rgba(27, 94, 133, 0.08);
}

/* Dropdown navigation */
.nav-item--dropdown {
  position: relative;
}

@media (max-width: 1024px) {
  .nav-item--dropdown {
    display: block;
    width: 100%;
  }
}

.nav__link--toggle {
  background: none;
  border: none;
  padding: 0.75rem 0.5rem;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base) var(--cubic-ease);
  width: 100%;
}

@media (min-width: 1025px) {
  .nav__link--toggle {
    width: auto;
    justify-content: flex-start;
  }
}

.nav__link--toggle:hover {
  background: rgba(27, 94, 133, 0.06);
  color: var(--color-primary);
}

/* Show visual feedback when dropdown is open on mobile */
@media (max-width: 1024px) {
  .nav-item--dropdown.open > .nav__link--toggle {
    background: rgba(27, 94, 133, 0.1);
    color: var(--color-primary);
  }
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 520px;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(15, 39, 68, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: var(--z-dropdown);
  pointer-events: none;
  backdrop-filter: blur(10px);
}

/* Desktop hover states */
.nav-item--dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.dropdown__item {
  padding: 1rem var(--spacing-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: background-color var(--transition-base) ease, color 0.2s ease;
  border-left: 3px solid transparent;
  display: block;
}

.dropdown__item:first-child {
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--color-border-light);
  background: linear-gradient(135deg, rgba(27, 94, 133, 0.06), rgba(15, 39, 68, 0.04));
}

.dropdown__item:hover {
  background-color: rgba(27, 94, 133, 0.06);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

.dropdown__item-title {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.dropdown__item:hover .dropdown__item-title {
  color: var(--color-primary);
}

.dropdown__item-desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* Mobile/Tablet dropdown state - BASE (hidden by default on mobile) */
@media (max-width: 1024px) {
  .dropdown {
    position: static;
    min-width: auto;
    background: rgba(242, 245, 250, 0.95);
    border: none;
    border-radius: 0;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  
  /* When dropdown is OPEN */
  .nav-item--dropdown.open .dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
    overflow-y: auto;
  }
  
  .dropdown__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Tablet-specific dropdown sizing */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-item--dropdown.open .dropdown {
    max-height: 400px;
  }
  
  .dropdown__item {
    padding: 0.9rem var(--spacing-lg);
  }
  
  .dropdown__item-title {
    font-size: 0.9rem;
  }
  
  .dropdown__item-desc {
    font-size: 0.85rem;
  }
}

/* Mobile dropdown styling (640px - 768px) */
@media (max-width: 768px) {
  .dropdown {
    max-height: 0;
  }
  
  .nav-item--dropdown.open .dropdown {
    max-height: 350px;
  }
  
  .dropdown__item {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .dropdown__item:first-child {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .dropdown__item-title {
    font-size: 0.85rem;
  }
  
  .dropdown__item-desc {
    font-size: 0.8rem;
  }
}

/* Extra small phones (<640px) */
@media (max-width: 640px) {
  .nav-item--dropdown.open .dropdown {
    max-height: 300px;
  }
  
  .dropdown__item {
    padding: var(--spacing-sm) 1rem;
  }
  
  .dropdown__item:first-child {
    padding: var(--spacing-sm) 1rem;
  }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base) var(--cubic-ease);
  min-width: 48px;
  min-height: 48px;
}

.nav-toggle:hover {
  background: rgba(27, 94, 133, 0.08);
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.nav-toggle span:nth-child(2) {
  opacity: 1;
}

/* Animated hamburger - X state when menu is open */
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(11.5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-11.5px) rotate(-45deg);
}

@media (max-width: 640px) {
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    gap: 4px;
  }
  
  .nav-toggle span {
    width: 20px;
    height: 2px;
  }
  
  .nav-toggle span:nth-child(1) {
    top: 11px;
  }
  
  .nav-toggle span:nth-child(2) {
    top: 21px;
  }
  
  .nav-toggle span:nth-child(3) {
    top: 31px;
  }
  
  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
}

@media (max-width: 1024px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface-primary);
    border-bottom: 1px solid var(--color-border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base) ease;
    padding: var(--spacing-lg);
    pointer-events: none;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  body.nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .nav__link {
    padding: var(--spacing-md) 0;
    font-size: 0.95rem;
  }
  
  .nav__mobile-cta {
    display: block;
    margin-top: var(--spacing-lg);
  }
  
  .nav-toggle {
    display: flex;
  }

  .header__actions {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .nav {
    max-height: 90vh;
    padding: var(--spacing-md);
  }
  
  .nav__link {
    padding: var(--spacing-sm) 0;
    font-size: 0.9rem;
  }
  
  .logo__name {
    font-size: 0.85rem;
  }
  
  .logo__tagline {
    font-size: 0.65rem;
  }
}

@media (max-width: 375px) {
  .nav {
    padding: var(--spacing-sm);
  }
  
  .nav-toggle {
    width: 40px;
    height: 40px;
    gap: 4px;
  }
  
  .nav-toggle span {
    width: 20px;
    height: 2px;
  }
}

/* Ensure mobile CTA is hidden on desktop */
.nav__mobile-cta {
  display: none;
  flex-direction: column;
  gap: var(--spacing-md);
}

@media (max-width: 1024px) {
  .nav__mobile-cta {
    display: flex;
  }
}

.nav__mobile-phone {
  display: block;
  text-align: center;
  padding: var(--spacing-md) var(--spacing-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  background: rgba(27, 94, 133, 0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base) var(--cubic-ease);
}

.nav__mobile-phone:hover {
  background: rgba(27, 94, 133, 0.12);
  color: var(--color-primary-dark);
}

/* ============================================================================
   11. HERO SECTION (Premium Enterprise)
   ============================================================================ */

.hero {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
  padding: 6rem 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(27, 94, 133, 0.08) 0%, transparent 70%);
}

@media (max-width: 768px) {
  .hero__inner {
    flex-direction: column;
  }
  
  .hero__visual {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0;
  }
  
  .hero__content {
    text-align: center;
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  
  .hero__subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.hero__content {
  max-width: 100%;
}

.hero__eyebrow {
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.hero__subtitle {
  font-size: var(--font-size-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--color-border-light);
}

@media (max-width: 640px) {
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.hero__stat {
  animation: slideInLeft 0.6s var(--cubic-ease);
  transition: all var(--transition-base) var(--cubic-ease);
}

.hero__stat:hover {
  transform: translateX(6px);
}

.hero__stat-value {
  font-size: 2.2rem;
  font-weight: var(--font-weight-bold);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent-burgundy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  transition: all var(--transition-base) var(--cubic-ease);
}

.hero__stat:hover .hero__stat-value {
  background: linear-gradient(135deg, var(--color-accent-burgundy) 0%, var(--color-primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-base) ease;
}

.hero__stat:hover .hero__stat-label {
  color: var(--color-accent-burgundy);
}

.hero__actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero__actions .btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
  }
}

.hero__cta-primary {
  padding: 0.85rem 2rem;
  font-size: var(--font-size-body-sm);
  font-weight: var(--font-weight-semibold);
  position: relative;
  overflow: hidden;
}

.hero__cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.hero__cta-primary:hover::before {
  left: 100%;
}

.hero__footnote {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
}

/* Hero visual (right side card) */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero__card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  max-width: 380px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base) var(--cubic-ease);
}

.hero__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  transition: height var(--transition-base) ease;
}

.hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(27, 94, 133, 0.1) 0%, transparent 60%);
  opacity: 0;
  border-radius: var(--radius-2xl);
  transition: opacity var(--transition-base) ease;
  pointer-events: none;
}

.hero__card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-primary);
}

.hero__card:hover::before {
  height: 6px;
}

.hero__card:hover::after {
  opacity: 1;
}

.hero__card-badge {
  display: inline-block;
  font-size: var(--font-size-tiny);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(27, 94, 133, 0.1);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-md);
}

.hero__card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.hero__card p {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.hero__card-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.hero__card-feature {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  padding-left: var(--spacing-md);
  position: relative;
}

.hero__card-feature::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
}

/* ============================================================================
   12. SERVICES SECTION (Reorganized)
   ============================================================================ */

.services-section {
  position: relative;
}

.services__shell {
  margin-top: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  background: radial-gradient(circle at 0 0, rgba(27, 94, 133, 0.14), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(15, 39, 68, 0.16), transparent 55%),
              #f6f8ff;
  border: 1px solid rgba(199, 210, 236, 0.9);
  box-shadow: 0 24px 60px rgba(15, 39, 68, 0.12);
}

@media (max-width: 768px) {
  .services__shell {
    padding: 1.5rem;
    margin-top: var(--spacing-xl);
  }
}

@media (max-width: 640px) {
  .services__shell {
    padding: 1.2rem;
    margin-top: var(--spacing-lg);
  }
}

@media (max-width: 375px) {
  .services__shell {
    padding: 1rem;
  }
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.service-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(203, 213, 235, 0.9);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base) var(--cubic-ease);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .service-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .service-card {
    padding: 1.2rem 1rem;
    border-radius: 14px;
  }
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27, 94, 133, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base) ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--color-primary);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}

@media (max-width: 640px) {
  .service-card__badge {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

.service-card h3 {
  margin-bottom: var(--spacing-md);
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.service-card li {
  font-size: var(--font-size-body-sm);
  color: var(--color-text-secondary);
  padding-left: var(--spacing-lg);
  position: relative;
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: var(--spacing-md);
  color: var(--color-primary);
  font-weight: bold;
}

.service-card__note {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  font-style: italic;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border-light);
}

/* ============================================================================
   13. GENERIC UTILITY CLASSES
   ============================================================================ */

/* Spacing utilities */
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-accent { color: var(--color-primary); }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { justify-content: center; align-items: center; }
.flex-between { justify-content: space-between; align-items: center; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--spacing-sm);
  text-decoration: none;
  z-index: var(--z-modal);
}

.skip-link:focus {
  top: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
   13. FOOTER SECTION (Premium)
   ============================================================================ */

.footer {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f7 100%);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, rgba(27, 94, 133, 0.3), rgba(15, 39, 68, 0.2)) 0 0 1 0;
  margin-top: 4rem;
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(27, 94, 133, 0.15), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(15, 39, 68, 0.12), transparent 55%);
  opacity: 1;
  pointer-events: none;
}

.footer > .container {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, minmax(0, 1fr));
  gap: 3rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(27, 94, 133, 0.1);
}

.footer__brand p {
  font-size: 0.95rem;
  color: #4b556a;
  margin-top: 0.9rem;
  max-width: 22rem;
  line-height: 1.65;
}

.footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.footer-tag {
  font-size: 0.74rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #f8fafc;
  color: #4b5563;
}

.footer__col h4 {
  font-size: 0.98rem;
  margin-bottom: 1.1rem;
  color: #0b1c3b;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer__col ul {
  list-style: none;
  padding-left: 0;
}

.footer__col li + li {
  margin-top: 0.55rem;
}

.footer__col a {
  text-decoration: none;
  color: #4b556a;
  font-size: 0.9rem;
  transition: all var(--transition-base) var(--cubic-ease);
}

.footer__col a:hover {
  color: var(--color-primary);
  transform: translateX(2px);
}

.footer__col--contact .footer__contact-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.6rem;
}

.footer__col--contact .footer__contact-list li {
  font-size: 0.86rem;
  color: #4b556a;
  margin-bottom: 0.25rem;
}

.footer__col--contact .footer__contact-list li span {
  font-weight: 500;
  color: #111827;
  margin-right: 0.25rem;
}

.footer__col--contact .footer__contact-list a {
  color: var(--color-primary);
  text-decoration: none;
}

.footer__col--contact .footer__contact-list a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.footer__region-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.3rem;
}

.footer__bottom {
  margin-top: 2.1rem;
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.footer__bottom-links a {
  text-decoration: none;
  color: #4b556a;
  transition: color 0.18s ease;
}

.footer__bottom-links a:hover {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 2.3rem 0 1.6rem;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .footer__brand p {
    max-width: none;
    font-size: 0.95rem;
  }

  .footer__col h4 {
    font-size: 1rem;
  }

  .footer__col ul li {
    font-size: 0.9rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 375px) {
  .footer {
    padding: 1.8rem 0 1.2rem;
  }
  
  .footer__brand p {
    font-size: 0.9rem;
  }
}

/* ============================================================================
   13b. GRID HELPERS
   ============================================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .grid-2 {
    gap: 1rem;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .grid-3 {
    gap: 1rem;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

/* ============================================================================
   13c. CARD COMPONENTS (Extended)
   ============================================================================ */

.card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 235, 0.7);
  padding: 2.2rem 2rem;
  box-shadow: 0 12px 28px rgba(9, 30, 66, 0.08);
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .card {
    padding: 1.8rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 1.5rem 1.2rem;
    border-radius: 16px;
  }
}

@media (max-width: 375px) {
  .card {
    padding: 1.2rem 1rem;
    border-radius: 14px;
  }
}

@media (max-width: 375px) {
  .card {
    padding: 1.2rem 1rem;
  }
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 39, 68, 0.12);
  border-color: rgba(27, 94, 133, 0.3);
}

.card:hover::before {
  opacity: 1;
}

.card--premium {
  border: 1px solid rgba(27, 94, 133, 0.4);
  background: linear-gradient(135deg, #ffffff 0%, #faf8f7 100%);
}

.card--premium:hover {
  box-shadow: 0 28px 60px rgba(15, 39, 68, 0.15);
  border-color: rgba(27, 94, 133, 0.5);
}

.card__tag {
  font-size: 0.7rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.8rem;
  display: inline-block;
  background: rgba(27, 94, 133, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--color-text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  font-size: 0.95rem;
  color: #4a5874;
  line-height: 1.65;
}

.card-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.card-list li {
  font-size: 0.9rem;
  color: #4a5874;
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.card-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.support-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.support-list li {
  font-size: 0.9rem;
  color: #4a5874;
  margin-bottom: 0.6rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.support-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

/* ============================================================================
   13d. SUPPORT BOX
   ============================================================================ */

.support-box {
  background: linear-gradient(135deg, #ffffff 0%, #faf8f7 100%);
  border: 1px solid rgba(27, 94, 133, 0.15);
  border-radius: 20px;
  padding: 2.2rem 2.4rem;
  margin-top: 3rem;
  box-shadow: 0 12px 32px rgba(27, 94, 133, 0.08);
}

.support-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.8rem;
}

.support-box p {
  font-size: 0.95rem;
  color: #4a5874;
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.support-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.support-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, rgba(27, 94, 133, 0.06), rgba(15, 39, 68, 0.04));
  border: 1px solid rgba(27, 94, 133, 0.15);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  transition: all var(--transition-base) var(--cubic-ease);
}

.support-badge:hover {
  border-color: rgba(27, 94, 133, 0.3);
  box-shadow: 0 4px 12px rgba(27, 94, 133, 0.1);
}

/* ============================================================================
   13e. SECURITY SECTION STYLES
   ============================================================================ */

.security-section {
  position: relative;
}

.security-shell {
  border-radius: 26px;
  padding: 2.2rem 2.4rem;
  background:
    radial-gradient(circle at 0 0, rgba(27, 94, 133, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(15, 39, 68, 0.16), transparent 55%),
    #f4f6ff;
  border: 1px solid rgba(199, 210, 236, 0.9);
  box-shadow: 0 22px 60px rgba(15, 39, 68, 0.12);
}

.security-heading {
  margin-bottom: 1.8rem;
  max-width: 750px;
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.security-grid--centered {
  align-items: center;
}

.security-copy {
  padding: var(--spacing-md);
}

.security-copy__lead {
  font-size: 0.95rem;
  color: #2a3654;
  margin-bottom: 0.9rem;
}

.security-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.security-list li {
  position: relative;
  padding-left: 2.6rem;
  font-size: 0.9rem;
  color: #4a5874;
  line-height: 1.55;
}

.security-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  box-shadow:
    0 4px 10px rgba(15, 39, 68, 0.22),
    0 0 0 4px rgba(27, 94, 133, 0.05);
}

.security-list li::after {
  content: "✓";
  position: absolute;
  left: 7.5px;
  top: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.security-badges {
  display: flex;
  justify-content: flex-end;
}

.security-badges__card {
  flex: 1;
  max-width: 360px;
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 235, 0.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.security-badges__meta {
  margin-top: 0.45rem;
  color: #344155;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .security-shell {
    padding: 1.8rem 1.7rem;
  }

  .security-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .security-badges {
    justify-content: flex-start;
  }

  .security-grid--centered {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .security-shell {
    padding: 1.5rem 1.25rem;
  }

  .security-badges__card {
    padding: 1.1rem 1.1rem;
  }
}

@media (max-width: 375px) {
  .security-shell {
    padding: 1.2rem 1rem;
  }

  .security-badges__card {
    max-width: 100%;
    padding: 1rem 0.9rem;
  }
}

/* ============================================================================
   13f. CTA FINAL SECTION
   ============================================================================ */

.cta-heading-center {
  text-align: center;
  margin-bottom: 2.2rem;
  max-width: 100%;
  background: #ffffff;
  border-radius: 22px;
  padding: 2.4rem 2.6rem;
  border: 1px solid rgba(27, 94, 133, 0.15);
  box-shadow: 0 16px 45px rgba(27, 94, 133, 0.12),
              0 4px 12px rgba(27, 94, 133, 0.06);
  background-image:
    radial-gradient(circle at 0 0, rgba(27, 94, 133, 0.08), transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(15, 39, 68, 0.08), transparent 65%);
}

@media (max-width: 768px) {
  .cta-heading-center {
    padding: 2rem 2rem;
  }
}

@media (max-width: 640px) {
  .cta-heading-center {
    padding: 1.6rem 1.4rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 375px) {
  .cta-heading-center {
    padding: 1.3rem 1.1rem;
    border-radius: 16px;
  }
}

.cta-heading-center h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.22;
}

.cta-heading-center p {
  font-size: 1rem;
  max-width: 100%;
  margin-bottom: 1.1rem;
}

.cta-final-light__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
  margin-bottom: 1.8rem;
  justify-content: center;
}

.cta-chip {
  padding: 0.25rem 0.75rem;
  background: #f5f7fb;
  color: #0e224d;
  border-radius: 999px;
  border: 1px solid rgba(13, 58, 120, 0.15);
  font-size: 0.78rem;
}

.cta-final-light__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.8rem;
  align-items: center;
}

.cta-final-light__btn-primary {
  padding-inline: 1.8rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(27, 94, 133, 0.25);
}

.cta-final-light__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(27, 94, 133, 0.3);
}

.section--cta-final-light {
  padding: 4.5rem 0;
}

@media (max-width: 1024px) {
  .cta-heading-center {
    padding: 2rem 2rem;
  }

  .cta-final-light__actions {
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .cta-heading-center {
    padding: 1.7rem 1.4rem;
    border-radius: 18px;
  }

  .cta-heading-center h2 {
    font-size: 1.6rem;
  }

  .cta-final-light__actions {
    align-items: stretch;
  }

  .cta-final-light__btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================================
   14. RESPONSIVE BEHAVIOR
   ============================================================================ */

@media (max-width: 1024px) {
  :root {
    --section-padding: var(--spacing-2xl);
    --spacing-3xl: 3.5rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: var(--spacing-lg);
    --spacing-3xl: 2rem;
    --grid-gap: var(--spacing-md);
  }
  
  section {
    padding: var(--section-padding) 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================================================
   15. PRINT STYLES
   ============================================================================ */

@media print {
  * {
    background: transparent;
    color: black;
    box-shadow: none;
    text-shadow: none;
  }
  
  a,
  a:visited {
    text-decoration: underline;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
  
  img {
    max-width: 100%;
  }
  
  @page {
    margin: 0.5cm;
  }
}

/* ============================================================================
   16. KEYFRAME ANIMATIONS
   ============================================================================ */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(27, 94, 133, 0);
  }
  50% {
    box-shadow: 0 0 30px rgba(27, 94, 133, 0.3);
  }
}

/* Services Detail Grid */
.services-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .services-detail__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.service-detail {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  padding: 1.2rem 1.25rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-base) var(--cubic-ease);
}

@media (max-width: 640px) {
  .service-detail {
    padding: 1rem 1rem;
    border-radius: 12px;
  }
}

.service-detail:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(27, 94, 133, 0.12);
  border-color: var(--color-primary);
}

.service-detail h3 {
  font-size: 1.02rem;
  margin-bottom: 0.1rem;
  color: var(--color-primary-dark);
}

@media (max-width: 640px) {
  .service-detail h3 {
    font-size: 0.95rem;
  }
}

.service-detail p {
  font-size: 0.92rem;
  color: #4b5a79;
}

@media (max-width: 640px) {
  .service-detail p {
    font-size: 0.88rem;
  }
}

.service-detail ul {
  list-style: none;
  padding-left: 0;
  color: #4a5874;
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

@media (max-width: 640px) {
  .service-detail ul {
    font-size: 0.82rem;
  }
}

.service-detail ul li + li {
  margin-top: 0.2rem;
}

.services-step__badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

/* Services Steps Header */
.services-steps__header {
  max-width: 640px;
  margin-bottom: 1.8rem;
}

.section__title {
  font-size: var(--font-size-h2);
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

@media (max-width: 960px) {
  .services-detail__grid {
    grid-template-columns: 1fr;
  }
}

/* End of stylesheet */
