/* ========================================
   FLYNT EDUCATION - Design System
   Light Mode | Corporate: #00ad92
======================================== */

/* ========== CSS VARIABLES ========== */
:root {
  /* Corporate Colors */
  --color-primary: #00ad92;
  --color-primary-light: #00d4b3;
  --color-primary-dark: #008a74;
  --color-primary-glow: rgba(0, 173, 146, 0.15);

  /* Light Mode Backgrounds */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafb;
  --color-bg-tertiary: #f0f4f5;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f8fafb;

  /* Text Colors */
  --color-text-primary: #1a2b3c;
  --color-text-secondary: #5a6b7c;
  --color-text-muted: #8a9bac;

  /* Borders & Lines */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.12);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  --gradient-light: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  --gradient-hero: linear-gradient(135deg, #f0faf8 0%, #e8f8f5 50%, #f0f8ff 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 173, 146, 0.15);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', var(--font-primary);

  /* Font Sizes - Compact */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --text-2xl: 1.375rem;
  --text-3xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-4xl: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  --text-5xl: clamp(2rem, 1.75rem + 2vw, 3rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-3xl: 2.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Container */
  --container-max: 1280px;
  --container-padding: clamp(1rem, 3vw, 2rem);
}

/* ========== RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

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

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--color-text-secondary);
  max-width: 65ch;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header p {
  margin: var(--space-md) auto 0;
}

.section-title-underline {
  display: inline-block;
  position: relative;
}

.section-title-underline::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

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

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

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

@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-2xl);
  }
  
  .card-image {
    height: 180px;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: #ffffff;
  color: var(--color-text-primary);
  border: 2px solid var(--color-border-strong);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--text-sm);
  height: 40px;
  line-height: 1;
}

.btn-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-lg);
}

/* ========== CARDS ========== */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--transition-slow);
  background: var(--color-bg-tertiary);
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.card-content {
  padding: var(--space-lg);
}

/* Card with horizontal layout */
.card-horizontal {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
}

.card-horizontal .card-image {
  aspect-ratio: 1/1;
  height: 100%;
}

/* Card with badge */
.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

/* Card link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  font-weight: 500;
  font-size: var(--text-sm);
  margin-top: var(--space-md);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-sm);
}

.card-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .card-horizontal {
    grid-template-columns: 1fr;
  }
  
  .card-horizontal .card-image {
    aspect-ratio: 16/9;
  }
  
  .card-body,
  .card-content {
    padding: var(--space-md);
  }
  
  .card:hover {
    transform: none;
  }
}

/* ========== SERVICE CARDS WITH IMAGES ========== */
.service-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block; /* ensures <a> behaves as block */
  text-decoration: none;
  /* Always clickable, even during or before animation */
  pointer-events: auto !important;
}

.service-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  will-change: transform;
  pointer-events: none; /* clicks pass through to the <a> parent */
  user-select: none;
  -webkit-user-drag: none;
}

.service-card:hover .service-card-image {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Right padding leaves room for the + button (48px btn + 16px right + 8px gap) */
  padding: var(--space-xl) calc(var(--space-lg) + 64px) var(--space-xl) var(--space-xl);
  pointer-events: none; /* overlay itself doesn't eat clicks — the <a> parent handles them */
}

.service-card-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.22);
  /* No backdrop-filter — it forces GPU compositing on every card and kills scroll perf */
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  width: fit-content;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.3);
}

.service-card-tag.new {
  background: var(--color-primary);
}

.service-card-title {
  color: #ffffff;
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  /* Prevent long titles from overflowing the card */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  pointer-events: none;
}

.service-card-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  pointer-events: none;
}

.service-card-btn {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  transition: all var(--transition-base);
  z-index: 2; /* always above overlay */
  pointer-events: auto;
}

.service-card:hover .service-card-btn {
  background: var(--color-primary);
  transform: scale(1.1);
}

/* Service Card Mobile Responsive */
@media (max-width: 768px) {
  .service-card {
    aspect-ratio: 4/3;
  }
  
  .service-card-overlay {
    padding: var(--space-lg) calc(var(--space-md) + 56px) var(--space-lg) var(--space-lg);
  }
  
  .service-card-title {
    font-size: var(--text-lg);
  }
  
  .service-card-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: var(--space-md);
    right: var(--space-md);
  }
}

/* ========== FEATURES SPLIT SECTION ========== */
.features-split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: 0;
  background: var(--color-bg-light);
  align-items: stretch;
}

.features-photo-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--space-xl) 0;
  background: var(--color-bg-light);
}

.features-marquee-row {
  overflow: hidden;
  width: 100%;
}

.features-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
}

.features-marquee-track img {
  height: 160px;
  width: 220px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  display: block;
}

.features-marquee-left .features-marquee-track {
  animation: feat-marquee-left 28s linear infinite;
}

.features-marquee-right .features-marquee-track {
  animation: feat-marquee-right 32s linear infinite;
}

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

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

.features-photo-fade-left,
.features-photo-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.features-photo-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-light), transparent);
}

.features-photo-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-light), transparent);
}

.features-cards-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) var(--space-2xl) var(--space-xl) var(--space-xl);
}

.features-cards-panel .feature-card {
  margin: 0;
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-md);
  row-gap: 2px;
  align-items: start;
}

.features-cards-panel .feature-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-bottom: 0;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
}

.features-cards-panel .feature-icon svg {
  width: 22px;
  height: 22px;
}

.features-cards-panel .feature-title {
  font-size: var(--text-base);
  margin-bottom: 2px;
  grid-column: 2;
  grid-row: 1;
}

.features-cards-panel .feature-description {
  font-size: var(--text-sm);
  line-height: 1.5;
  grid-column: 2;
  grid-row: 2;
}

/* ========== FEATURE CARDS ========== */
.feature-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-glow);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.feature-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========== NAVIGATION ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.header.scrolled {
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-lg);
  min-height: 56px;
}

.nav-actions {
  justify-self: end;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  line-height: 0;
  justify-self: start;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav-logo-text span {
  color: var(--color-primary);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav-logo-text span {
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  display: flex;
  align-items: center;
}

/* Hide mobile-only elements on desktop */
.nav-menu-close {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  height: 40px;
  line-height: 1;
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-secondary);
}

.nav-link.active {
  color: var(--color-primary);
}

/* ========== DROPDOWN MENU ========== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown > .nav-link svg {
  transition: transform 0.2s ease;
}

.nav-dropdown.open > .nav-link svg {
  transform: rotate(180deg);
}

.nav-dropdown > .nav-link {
  cursor: pointer;
}

/* Dropdown Menu Container — desktop version is portalled to <body> */
.nav-dropdown-menu {
  /* Mobile: stays inside the nav, static */
  display: none;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Portal menu: appended to <body> on desktop, fully independent of header */
.nav-portal-menu {
  display: block; /* override display:none from .nav-dropdown-menu */
  position: fixed;
  top: 0;
  left: 0;
  width: 540px;
  max-width: calc(100vw - 40px);
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 99999;
}

.nav-portal-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Dropdown Header */
.nav-dropdown-header {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.nav-dropdown-header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-dropdown-header a:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
}

/* Dropdown Columns */
.nav-dropdown-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.nav-dropdown-column h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-left: 12px;
}

/* Dropdown Items */
.nav-dropdown-item {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--color-bg-secondary);
  color: var(--color-primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-full);
  height: 40px;
}

.lang-btn {
  padding: 6px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--color-text-primary);
}

.lang-btn.active {
  background: var(--color-primary);
  color: #ffffff;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-primary-glow);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  /* Switch nav back to flex for mobile so logo + lang + hamburger lay out correctly */
  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  body.nav-open .nav-overlay {
    pointer-events: auto;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile browsers */
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4xl) var(--space-xl);
    padding-top: 80px;
    background: #ffffff;
    border-left: 1px solid var(--color-border);
    transition: right var(--transition-base);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.active {
    right: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  }

  .nav-menu-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .nav-menu-close:hover,
  .nav-menu-close:active {
    background: var(--color-primary);
    color: white;
  }

  .nav-menu-close svg {
    width: 20px;
    height: 20px;
  }

  .nav-link {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    width: 100%;
    border-radius: var(--radius-md);
  }

  .nav-link:active {
    background: var(--color-primary-glow);
  }

  /* Mobile: no dropdown — Cursos y Servicios is a plain link */
  .nav-dropdown-menu {
    display: none !important;
  }

  /* Hide the chevron arrow on mobile */
  .nav-dropdown > .nav-link svg {
    display: none;
  }

  .nav-dropdown-item {
    padding: var(--space-sm) var(--space-md);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
  }

  .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .lang-switcher {
    width: 100%;
    justify-content: center;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: var(--space-2xl) 0;
    padding-top: 120px;
  }

  .hero-title {
    font-size: var(--text-3xl);
    line-height: 1.15;
  }

  #typed-text {
    min-width: 4.5em;
  }

  .hero-description {
    font-size: var(--text-base) !important;
    margin-bottom: var(--space-xl);
  }
  
  .hero-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-lg);
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    min-height: 52px;
  }
  
  .hero-image {
    margin-top: var(--space-xl);
  }
  
  .hero-image img {
    border-radius: var(--radius-xl);
  }
}

/* Extra small screens */
@media (max-width: 375px) {
  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  #typed-text {
    min-width: 4em;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Hero with decorative image */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-circle {
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(59, 163, 155, 0.15) 0%, rgba(59, 163, 155, 0.08) 100%);
  border-radius: 50%;
  z-index: 0;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hero-decorative-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
}

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .hero-image-wrapper {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .hero-split .hero-content {
    text-align: center;
  }
  
  .hero-split .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-decorative-image {
    max-width: 100%;
  }
  
  .hero-image-circle {
    width: 85%;
  }
}

/* ========== BADGES ========== */
.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 50px !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

/* Combined location + rating badge */
.hero-badge-combined {
  gap: var(--space-md);
}

.hero-badge-sep {
  color: var(--color-border);
  font-size: var(--text-base);
  line-height: 1;
  margin: 0 calc(var(--space-xs) / 2);
}

.hero-badge-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-badge-score {
  font-weight: 700;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
}

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

.hero-title {
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

/* Prevent layout shift on rotating text */
#typed-text {
  display: inline-block;
  min-width: 5.5em;
  text-align: left;
}

.hero-description {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  color: var(--color-text-secondary);
}

.hero-actions {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

/* Smaller buttons for course page heroes */
.hero-actions .btn,
.hero-actions .btn.btn-primary,
.hero-actions .btn.btn-outline {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
  min-width: auto;
  min-height: auto;
  font-weight: 500;
  border-radius: 50px;
}

@media (max-width: 1024px) {
  .hero-actions {
    justify-content: center;
  }
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-lg);
}

/* ========== COURSES SLIDER ========== */
.courses-slider {
  display: flex;
  flex-wrap: nowrap;           /* single row, never wraps */
  gap: var(--space-lg);
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--space-lg) 4px; /* 4px so box-shadow isn't clipped */
  scroll-snap-type: x proximity; /* proximity = less aggressive than mandatory */
  scroll-padding-left: var(--space-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Prevent the slider's horizontal scroll from stealing the page's vertical scroll */
  overscroll-behavior-x: contain;
  /* Always rendered above any data-animate siblings that are mid-translateY */
  position: relative;
  z-index: 4;
  /* GPU hint for smooth scrolling */
  will-change: scroll-position;
}

.courses-slider::-webkit-scrollbar {
  display: none;
}

/* ── Slider Arrow Buttons ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.slider-arrow:hover {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 173, 146, 0.35);
}

.slider-arrow-prev {
  left: 8px;
}

.slider-arrow-next {
  right: 8px;
}

.slider-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hide arrows on touch devices — they can swipe naturally */
@media (hover: none) {
  .slider-arrow {
    display: none;
  }
}

.courses-slider .service-card {
  flex: 0 0 240px;             /* fixed width, never shrinks */
  scroll-snap-align: start;
}

@media (min-width: 1280px) {
  .courses-slider .service-card {
    flex: 0 0 260px;
  }
}

@media (max-width: 640px) {
  .courses-slider .service-card {
    flex: 0 0 200px;
  }
}

/* ========== TESTIMONIAL ========== */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
}

.testimonial-text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* =============================================
   Fluenteo – Coming Soon
   ============================================= */

.fluenteo-coming-soon-bar {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  color: #ffffff;
  text-align: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  letter-spacing: 0.02em;
}

.fluenteo-coming-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: linear-gradient(135deg, #f59e0b22, #f9731622);
  border: 1.5px solid #f59e0b;
  color: #d97706;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =============================================
   Language Cards (otros-idiomas)
   ============================================= */

.lang-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.lang-card {
  background: var(--color-bg-primary);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lang-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.lang-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.lang-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.lang-card:hover .lang-card-img img {
  transform: scale(1.07);
}

.lang-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.lang-card-city {
  color: rgba(255,255,255,0.9);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lang-card-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-sm);
}

.lang-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.lang-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.lang-card-cta {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: gap 0.2s ease;
}

.lang-card:hover .lang-card-cta {
  text-decoration: underline;
}

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

@media (max-width: 576px) {
  .lang-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   Grupos Hero Background
   ============================================= */

.grupos-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.grupos-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.60) 40%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

/* Make hero text white with strong shadows for readability over photo */
.grupos-hero .hero-title,
.grupos-hero .hero-description {
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.8),
    0 4px 24px rgba(0,0,0,0.6);
}

/* Override text-gradient inside photo heroes — teal is invisible on bright skies */
.grupos-hero .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffffff;
  background-clip: unset;
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.8),
    0 4px 24px rgba(0,0,0,0.6);
}

.grupos-hero .hero-badge {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
}

.grupos-hero .hero-badge-dot {
  background: #ffffff;
}

/* =============================================
   Grupos Gallery – Double Infinite Marquee
   ============================================= */

.grupos-gallery-section {
  padding-bottom: var(--space-3xl);
}

.gallery-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.gallery-track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
}

.gallery-track img {
  height: 220px;
  width: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  transition: transform 0.35s ease, filter 0.35s ease;
  cursor: pointer;
}

.gallery-track img:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.gallery-track--left {
  animation: marquee-left 40s linear infinite;
}

.gallery-track--right {
  animation: marquee-right 36s linear infinite;
}

.gallery-marquee:hover .gallery-track {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .gallery-track img {
    height: 160px;
  }
}

/* ========== EXAM LOGO CARDS ========== */
.exam-logo-box {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
}

.exam-logo-img {
  max-width: 65%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ========== PCTO / DM 88 SECTIONS ========== */
@media (max-width: 768px) {
  /* DM 88 what's covered 2-col → 1-col */
  .dm88-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========== ACTIC SECTION ========== */
@media (max-width: 768px) {
  .actic-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========== BOOKING MODAL ========== */
.booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.booking-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-modal {
  background: #fff;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
  animation: bookingSlideIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes bookingSlideIn {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Header */
.booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--space-2xl) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.booking-header-left {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.booking-header-icon {
  width: 40px;
  height: 40px;
  background: rgba(59,163,155,0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.booking-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 4px;
}
.booking-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}
.booking-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  padding: 4px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}
.booking-close:hover { background: var(--color-bg-secondary); color: var(--color-text-primary); }

/* Step bar */
.booking-steps-bar {
  display: flex;
  align-items: center;
  padding: var(--space-lg) var(--space-2xl);
  border-bottom: 1px solid var(--color-border);
  gap: 0;
}
.bsb-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-tertiary, #9ca3af);
  transition: color 0.2s;
}
.bsb-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.bsb-step.active { color: var(--color-primary); }
.bsb-step.active .bsb-icon { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.bsb-step.done { color: var(--color-primary); }
.bsb-step.done .bsb-icon { background: rgba(59,163,155,0.12); border-color: var(--color-primary); }
.bsb-divider { flex: 1; height: 2px; background: var(--color-border); margin: 0 var(--space-sm); }

/* Content panels */
.booking-content {
  padding: var(--space-2xl);
  flex: 1;
}
.booking-content.hidden { display: none; }

/* Step 1 layout */
.bs1-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: var(--space-2xl);
}
.bs1-form { display: flex; flex-direction: column; gap: var(--space-xl); }

/* Form fields */
.booking-field { display: flex; flex-direction: column; gap: var(--space-xs); }
.booking-label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text-primary); }
.booking-label .req { color: var(--color-primary); }
.booking-error { font-size: var(--text-xs); color: #dc2626; min-height: 16px; }

/* Select */
.booking-select-wrap { position: relative; }
.booking-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: #fff;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.booking-select:focus { outline: none; border-color: var(--color-primary); }
.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-secondary);
}

/* Date grid */
.booking-dates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}
.bdate-option { cursor: pointer; }
.bdate-option input[type="radio"] { display: none; }
.bdate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) var(--space-sm);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  gap: 2px;
}
.bdate-option input:checked + .bdate-box {
  border-color: var(--color-primary);
  background: rgba(59,163,155,0.07);
}
.bdate-day  { font-size: var(--text-xs); color: var(--color-text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.bdate-num  { font-size: var(--text-lg); font-weight: 700; color: var(--color-text-primary); line-height: 1.2; }
.bdate-year { font-size: var(--text-xs); color: var(--color-text-secondary); }

/* Summary sidebar */
.bs1-summary {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-self: start;
  position: sticky;
  top: 0;
}
.bsum-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-sm); }
.bsum-label { color: var(--color-text-secondary); }
.bsum-price { font-size: var(--text-2xl); font-weight: 800; color: var(--color-primary); }
.bsum-val   { font-weight: 700; color: var(--color-text-primary); }
.bsum-info  { display: flex; gap: var(--space-xs); font-size: var(--text-xs); color: var(--color-text-secondary); line-height: 1.5; border-top: 1px solid var(--color-border); padding-top: var(--space-md); }

/* Summary bar (step 2) */
.bsum-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.bsum-bar-item { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--space-md); }
.bsum-bar-item:first-child { padding-left: 0; }
.bsum-bar-label { font-size: var(--text-xs); color: var(--color-text-secondary); }
.bsum-bar-item strong { font-size: var(--text-sm); color: var(--color-text-primary); }
.bsum-bar-sep { width: 1px; height: 32px; background: var(--color-border); }

/* Step 2 grid */
.bs2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.bs2-full { grid-column: 1 / -1; }
.booking-input {
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  transition: border-color var(--transition-fast);
  font-family: inherit;
}
.booking-input:focus { outline: none; border-color: var(--color-primary); }
.booking-input::placeholder { color: var(--color-text-tertiary, #9ca3af); }
.booking-privacy {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-lg);
  line-height: 1.6;
}
.booking-privacy a { color: var(--color-primary); }

/* Step 3 – Success */
.booking-success {
  text-align: center;
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
.bsuccess-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59,163,155,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.bsuccess-title { font-size: var(--text-2xl); font-weight: 800; color: var(--color-text-primary); margin: 0; }
.bsuccess-text  { color: var(--color-text-secondary); max-width: 440px; line-height: 1.7; margin: 0; }
.bsuccess-summary {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-lg) var(--space-2xl);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.bsuccess-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.bsuccess-row span { color: var(--color-text-secondary); }
.bsuccess-row strong { color: var(--color-text-primary); }

/* Footer */
.booking-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-2xl);
  border-top: 1px solid var(--color-border);
  gap: var(--space-md);
}
.booking-footer.hidden { display: none; }

/* Responsive */
@media (max-width: 640px) {
  .booking-header { padding: var(--space-lg); }
  .booking-content { padding: var(--space-lg); }
  .booking-footer { padding: var(--space-lg); }
  .bs1-layout { grid-template-columns: 1fr; }
  .bs1-summary { position: static; }
  .bs2-grid { grid-template-columns: 1fr; }
  .bs2-full { grid-column: 1; }
  .booking-dates-grid { grid-template-columns: repeat(2, 1fr); }
  .bsb-step span { display: none; }
  .bsum-bar { flex-direction: column; align-items: flex-start; }
  .bsum-bar-sep { display: none; }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

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

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-brand .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    margin: 0 auto;
  }
  
  .footer-nav {
    align-items: center;
  }
  
  .footer-links {
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
}

.footer-logo {
  display: inline-block;
  text-decoration: none;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  /* Ensure logo looks good on the light footer background */
  object-fit: contain;
}

.footer-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav a,
.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  display: block;
}

.footer-nav a:hover,
.footer-link:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-2xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: var(--color-bg-secondary);
}

.cta-box {
  background: var(--gradient-primary);
  border-radius: var(--radius-3xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-box h2,
.cta-box p {
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.cta-box p {
  max-width: 500px;
  margin: var(--space-md) auto var(--space-xl);
  color: rgba(255, 255, 255, 0.9);
}

.cta-box .btn {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: var(--color-primary);
}

.cta-box .btn:hover {
  background: var(--color-text-primary);
  color: #ffffff;
}

@media (max-width: 768px) {
  .cta-box {
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
  }

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

  .cta-title {
    font-size: var(--text-2xl);
  }

  .cta-description {
    font-size: var(--text-base);
  }
}

/* CTA Card (alternative style) */
.cta-card {
  padding: var(--space-3xl);
  border-left: 4px solid var(--color-primary);
  background: #ffffff;
}

.cta-card .cta-title {
  color: var(--color-text-primary);
}

.cta-card .cta-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-actions .btn {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
}

@media (max-width: 576px) {
  .cta-actions {
    flex-direction: column;
  }
  
  .cta-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ========== STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-item {
  padding: var(--space-xl);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

/* ========== LOCATIONS ========== */
.location-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

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

.location-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.location-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
  display: block;
}

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

.location-info {
  padding: var(--space-xl);
}

.location-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-glow);
  border-radius: var(--radius-lg);
}

.location-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.location-info h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.location-info p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: #ffffff;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

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

/* ========== ANIMATIONS ========== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Animation delays */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  /* Never intercept pointer events until animation fully completes */
  pointer-events: none;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
  /* pointer-events restored only after transition via .anim-done (see main.js) */
}

[data-animate].anim-done {
  pointer-events: auto;
}

/* The courses slider always sits on top, regardless of animated siblings */
.courses-slider {
  position: relative;
  z-index: 4;
}

/* Buttons and links are ALWAYS clickable — never block them with animations */
.hero-actions a,
.hero-actions button,
.btn,
a.btn,
.footer a,
.footer-nav a,
.footer-link,
.footer-social a {
  pointer-events: auto !important;
}

/* Slider cards have no data-animate — always fully interactive from paint */

.delay-50  { transition-delay: 0.05s; }
.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-250 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.3s; }
.delay-350 { transition-delay: 0.35s; }
.delay-400 { transition-delay: 0.4s; }

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.bg-white { background: #ffffff; }
.bg-light { background: var(--color-bg-secondary); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========== LOGO ========== */
.nav-logo-img {
  height: 40px;
  width: auto;
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 32px;
  }
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  background: var(--color-bg-primary);
  border-radius: var(--radius-2xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
}

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

.modal-header {
  padding: var(--space-xl);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--color-primary-glow);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.modal-icon svg {
  width: 32px;
  height: 32px;
}

.modal-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.modal-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

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

.modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-secondary);
}

.modal-close:hover {
  background: var(--color-primary);
  color: white;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

/* Contact Type Selection */
.contact-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-type-btn {
  padding: var(--space-xl);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-primary);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.contact-type-btn:hover,
.contact-type-btn.active {
  border-color: var(--color-primary);
  background: var(--color-primary-glow);
}

.contact-type-btn svg {
  width: 32px;
  height: 32px;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.contact-type-btn:hover svg,
.contact-type-btn.active svg {
  color: var(--color-primary);
}

.contact-type-btn span {
  display: block;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-family: inherit;
  transition: all var(--transition-fast);
}

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

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox input {
  margin-top: 4px;
  accent-color: var(--color-primary);
}

.form-checkbox label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.form-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) var(--space-xl);
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-content {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cookie-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.cookie-text p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-md);
}

.cookie-btn {
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-btn-reject {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.cookie-btn-reject:hover {
  border-color: var(--color-text-secondary);
  color: var(--color-text-primary);
}

.cookie-btn-accept {
  background: var(--color-primary);
  border: none;
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-text {
    min-width: auto;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ========== TOAST NOTIFICATIONS ========== */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 10000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: #10b981;
}

.toast-error {
  background: #ef4444;
}

/* ========================================
   CONTACT WIZARD - Conversational Modal
======================================== */
.contact-wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  /* Never block clicks when closed — even during the closing transition */
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-wizard-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-wizard {
  background: #ffffff;
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.contact-wizard-overlay.active .contact-wizard {
  transform: scale(1) translateY(0);
}

.contact-wizard-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-secondary);
  z-index: 10;
}

.contact-wizard-close:hover {
  background: var(--color-text-primary);
  color: #ffffff;
}

.contact-wizard-close svg {
  width: 20px;
  height: 20px;
}

/* Progress Bar */
.contact-wizard-progress {
  height: 4px;
  background: var(--color-bg-tertiary);
  position: relative;
  overflow: hidden;
}

.contact-wizard-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps Container */
.contact-wizard-container {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 480px;
}

.contact-wizard-step {
  position: absolute;
  inset: 0;
  padding: var(--space-3xl) var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(50px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.contact-wizard-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  position: relative;
  max-height: calc(90vh - 60px);
  overflow-y: auto;
}

.contact-wizard-step.leaving {
  opacity: 0;
  transform: translateX(-50px);
}

/* Avatar */
.wizard-avatar {
  margin-bottom: var(--space-xl);
}

.wizard-avatar-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 173, 146, 0.3);
  animation: avatarPulse 2s ease-in-out infinite;
}

.wizard-avatar-icon svg {
  width: 32px;
  height: 32px;
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Typography */
.wizard-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.wizard-title-personalized {
  font-size: var(--text-2xl);
}

.wizard-text {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 400px;
  line-height: 1.6;
}

/* Options */
.wizard-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.wizard-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

@media (hover: hover) {
  .wizard-option:hover {
    border-color: var(--color-primary);
    background: rgba(0, 173, 146, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 173, 146, 0.12);
  }
}

.wizard-option.selected {
  border-color: var(--color-primary);
  background: rgba(0, 173, 146, 0.08);
}

.wizard-option:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.wizard-option-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .wizard-option:hover .wizard-option-icon {
    background: var(--color-primary);
    color: #ffffff;
  }
}

.wizard-option.selected .wizard-option-icon {
  background: var(--color-primary);
  color: #ffffff;
}

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

.wizard-option-content {
  flex: 1;
}

.wizard-option-title {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.wizard-option-desc {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Compact Options */
.wizard-option-compact {
  flex-direction: column;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  gap: var(--space-sm);
}

.wizard-option-icon-mini {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  transition: all 0.2s ease;
}

.wizard-option-icon-mini svg {
  width: 22px;
  height: 22px;
}

@media (hover: hover) {
  .wizard-option-compact:hover .wizard-option-icon-mini {
    background: var(--color-primary);
    color: #ffffff;
  }
}

.wizard-option-compact.selected .wizard-option-icon-mini {
  background: var(--color-primary);
  color: #ffffff;
}

.wizard-option-compact .wizard-option-title {
  font-size: var(--text-sm);
}

/* Trust Section in Wizard */
.wizard-trust-section {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-md);
}

.wizard-trust-title {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.wizard-trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.wizard-logo-text {
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.8;
}

/* Forms */
.wizard-form {
  width: 100%;
  max-width: 360px;
}

.wizard-input-group {
  margin-bottom: var(--space-lg);
  text-align: left;
}

.wizard-input,
.wizard-textarea {
  width: 100%;
  padding: var(--space-lg);
  font-size: var(--text-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
  font-family: inherit;
}

.wizard-input:focus,
.wizard-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-glow);
}

.wizard-input::placeholder,
.wizard-textarea::placeholder {
  color: var(--color-text-muted);
}

.wizard-textarea {
  resize: none;
  min-height: 100px;
}

.wizard-input-hint {
  display: block;
  margin-top: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Consent */
.wizard-consent {
  margin-bottom: var(--space-xl);
  text-align: left;
}

.wizard-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.wizard-checkbox input {
  display: none;
}

.wizard-checkbox-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 1px;
}

.wizard-checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.wizard-checkbox input:checked + .wizard-checkbox-mark {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.wizard-checkbox input:checked + .wizard-checkbox-mark::after {
  transform: rotate(45deg) scale(1);
}

.wizard-checkbox-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Submit Button */
.wizard-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 173, 146, 0.3);
}

.wizard-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-submit svg {
  width: 18px;
  height: 18px;
}

.wizard-submit-final {
  background: var(--color-text-primary);
}

.wizard-submit-final:hover:not(:disabled) {
  background: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Loading State */
.wizard-loading {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: wizardSpin 0.8s linear infinite;
}

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

/* Back Button */
.wizard-back {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-top: auto;
}

.wizard-back:hover {
  color: var(--color-text-primary);
}

.wizard-back svg {
  width: 16px;
  height: 16px;
}

/* Success State */
.wizard-success {
  padding: var(--space-xl) 0;
}

.wizard-success-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wizard-success-icon svg {
  width: 44px;
  height: 44px;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.wizard-text-success {
  margin-bottom: var(--space-xl);
}

.wizard-summary {
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.wizard-summary-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
}

.wizard-summary-item:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.wizard-summary-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  min-width: 80px;
}

.wizard-summary-value {
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-weight: 500;
}

.wizard-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wizard-close-btn:hover {
  border-color: var(--color-text-primary);
  background: var(--color-text-primary);
  color: #ffffff;
}

/* Responsive */
@media (max-width: 640px) {
  .contact-wizard-overlay {
    padding: 0;
    align-items: flex-end;
  }
  
  .contact-wizard {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }
  
  .contact-wizard-step {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .wizard-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  
  .wizard-option-compact {
    padding: var(--space-md) var(--space-sm);
  }
  
  .wizard-option-emoji {
    font-size: 24px;
  }
  
  .wizard-title {
    font-size: var(--text-2xl);
  }
  
  .wizard-avatar-icon {
    width: 60px;
    height: 60px;
  }
  
  .wizard-avatar-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ========== LOGO CAROUSEL ========== */
.logo-carousel {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-secondary);
  overflow: hidden;
}

.logo-carousel .container {
  display: block;
  text-align: center;
}

.logo-carousel-header {
  text-align: center;
  margin: 0 auto var(--space-2xl) auto;
  max-width: 100%;
}

.logo-carousel-title,
.logo-carousel-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.logo-carousel-title {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.logo-carousel-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.logo-carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 30s linear infinite;
}

.logo-carousel-track:hover {
  animation-play-state: paused;
}

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

.logo-carousel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-2xl);
  min-width: 180px;
  height: 80px;
}

.logo-carousel-item img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logo-carousel-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Placeholder logos (text-based) */
.logo-placeholder {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.5;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.logo-placeholder:hover {
  opacity: 0.8;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .logo-carousel-item {
    padding: 0 var(--space-xl);
    min-width: 140px;
    height: 60px;
  }
  
  .logo-carousel-item img {
    max-height: 40px;
    max-width: 100px;
  }
  
  .logo-placeholder {
    font-size: var(--text-base);
  }
}

/* ========== WIZARD TRUST LOGOS ========== */
.wizard-trust-section {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  text-align: center;
}

.wizard-trust-title {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.wizard-trust-logo {
  height: 28px;
  opacity: 0.7;
  filter: grayscale(30%);
  transition: all 0.3s ease;
}

.wizard-trust-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Text-based logos for wizard */
.wizard-logo-text {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  opacity: 0.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .wizard-trust-logos {
    gap: var(--space-md);
  }
  
  .wizard-trust-logo {
    height: 22px;
  }
  
  .wizard-logo-text {
    font-size: var(--text-xs);
  }
}

/* ========== CLIENT LOGOS STRIP (index.html) ========== */
.client-logo-strip {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.client-logo-strip:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ========== TEAM SECTION ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
}

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

.team-member-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-lg);
  border: 4px solid white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover .team-member-photo {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.team-member-role {
  font-size: var(--text-base);
  color: var(--color-primary);
  font-weight: 500;
}

.team-section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.team-section-header .section-description {
  text-align: center;
  margin: var(--space-md) auto 0;
}

.team-section-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .team-member-photo {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .team-member-photo {
    width: 140px;
    height: 140px;
  }
}

/* ========================================
   CASE STUDY CARDS - Success Stories
======================================== */
.case-study-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.case-study-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  margin: var(--space-md);
  border-radius: var(--radius-lg);
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: 0 var(--space-xl) var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-logo {
  margin-bottom: var(--space-lg);
  min-height: 36px;
  display: flex;
  align-items: center;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.case-study-logo img {
  max-height: 32px;
  width: auto;
}

.case-study-logo-text {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
}

.case-study-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex: 1;
}

/* ========================================
   LANGUAGES GRID - Simplified
======================================== */
/* ========== MOBILE GLOBAL OPTIMIZATIONS ========== */
@media (max-width: 768px) {
  /* Better touch targets */
  .btn {
    min-height: 48px;
    padding: var(--space-md) var(--space-lg);
  }
  
  .btn-lg {
    min-height: 52px;
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--text-base);
  }
  
  /* Cards */
  .card {
    border-radius: var(--radius-xl);
  }
  
  .card:active {
    transform: scale(0.98);
  }
  
  .features-split-section {
    grid-template-columns: 1fr;
  }

  .features-photo-panel {
    min-height: 220px;
    padding: var(--space-lg) 0;
  }

  .features-marquee-track img {
    height: 120px;
    width: 160px;
  }

  .features-cards-panel {
    padding: var(--space-2xl) var(--space-lg);
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-xl);
  }
  
  .feature-card:hover {
    transform: none;
  }
  
  .feature-icon {
    width: 56px;
    height: 56px;
  }
  
  .feature-icon svg {
    width: 28px;
    height: 28px;
  }
  
  /* Section spacing */
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-xl);
  }
  
  /* Stats */
  .stat-number {
    font-size: var(--text-3xl);
  }
  
  /* Forms - larger touch targets */
  .form-input,
  .form-textarea,
  .form-select {
    padding: var(--space-md);
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
  }
  
  /* Location cards */
  .location-card {
    flex-direction: column;
  }

  .location-info {
    padding: var(--space-lg);
  }
  
  /* CTA sections */
  .cta-box {
    padding: var(--space-xl);
  }
  
  .cta-card {
    padding: var(--space-xl);
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Team grid */
  .team-member-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Testimonials */
  .testimonial-card {
    padding: var(--space-xl);
  }
  
  .testimonial-text {
    font-size: var(--text-base);
  }
}

/* Very small screens */
@media (max-width: 375px) {
  :root {
    --container-padding: 1rem;
  }
  
  .btn {
    font-size: var(--text-sm);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
}

/* Safe area insets for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .header {
    padding-top: max(var(--space-md), env(safe-area-inset-top));
  }
  
  .footer {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  }
  
  .nav-menu {
    padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
  }
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.language-item {
  text-align: center;
  padding: var(--space-xl);
  background: #ffffff;
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.language-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.language-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.language-icon svg {
  width: 32px;
  height: 32px;
}

.language-item:hover .language-icon {
  background: var(--color-primary);
  color: #ffffff;
}

.language-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.language-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

@media (max-width: 992px) {
  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .languages-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .language-item {
    display: flex;
    align-items: center;
    text-align: left;
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .language-icon {
    margin: 0;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }

  .language-icon svg {
    width: 28px;
    height: 28px;
  }
}


/* =====================================================
   MOBILE FIXES — comprehensive pass
   ===================================================== */

/* ── 1. NAV: mobile header = [logo] [hamburger] only ── */

/* Desktop: hide the in-drawer lang-switcher (it stays in nav-actions) */
.nav-menu > li.nav-menu-lang {
  display: none;
}

@media (max-width: 1024px) {
  /* Hide the entire nav-actions from the header bar (lang-switcher + Contactar).
     Both live inside the drawer via nav-menu-lang and a Contactar link in the menu. */
  .nav-actions {
    display: none;
  }

  /* Ensure hamburger is always visible and right-aligned */
  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Nav header stays compact: logo + hamburger only */
  .nav {
    gap: var(--space-sm);
  }

  /* Show lang-switcher inside the drawer */
  .nav-menu > li.nav-menu-lang {
    display: block;
    width: 100%;
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    list-style: none;
  }

  .nav-menu-lang .lang-switcher {
    justify-content: flex-start;
    gap: var(--space-sm);
  }

  .nav-menu-lang .lang-btn {
    min-width: 44px;
    min-height: 44px;
    font-size: var(--text-sm);
    font-weight: 600;
    padding: 8px 14px;
  }
}

/* ── 2. PREVENT SLIDER FROM CAUSING PAGE-LEVEL HORIZONTAL SCROLL ── */
/* Only clip at section level — the immediate parent must stay visible so arrows don't clip */
.section:has(.courses-slider) {
  overflow-x: clip;
}

/* Wrapper injected by JS — positions arrows, allows overflow visually */
.slider-outer {
  position: relative;
}

/* Fallback for browsers that don't support :has() */
.courses-slider-wrapper {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure slider has negative margin trick to extend to screen edge on mobile */
@media (max-width: 768px) {
  .courses-slider {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    /* Allow scrolling within but don't leak to page */
    max-width: 100vw;
  }
}

/* ── 3. NEW SECTIONS: Oxford blue 2-col → stack on mobile ── */
@media (max-width: 768px) {
  /* Oxford certification section in ingles.html */
  section[style*="#192542"] > .container > div[style*="grid-template-columns: 1fr 1fr"],
  section[style*="192542"] .container > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: var(--space-2xl) !important;
  }

  /* Any inline 2-col grid inside dark sections */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Flex rows that should stack on mobile */
  [style*="display: flex"][style*="gap"] > div[style*="flex: 1"],
  [style*="display: flex"][style*="gap"] > div[style*="width: 50"] {
    width: 100% !important;
  }
}

/* ── 4. HERO SPLIT: ensure image is hidden on small screens to save space ── */
@media (max-width: 640px) {
  .hero-image-wrapper {
    display: none;
  }
  .hero-split {
    grid-template-columns: 1fr;
  }
}

/* ── 5. PRICING CARDS: ensure they're readable on small screens ── */
@media (max-width: 480px) {
  .card[style*="padding: var(--space-xl)"] {
    padding: var(--space-lg) !important;
  }

  /* Pricing numbers slightly smaller on tiny screens */
  span[style*="font-size: 3rem"] {
    font-size: 2.4rem !important;
  }
}

/* ── 6. STATS GRID: 2x2 on mobile ── */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-lg) !important;
  }
}

/* ── 7. TEAM GRID: 2-col on mobile ── */
@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── 8. MODAL: ensure contact wizard fits on small screens ── */
@media (max-width: 640px) {
  .contact-wizard-overlay {
    padding: var(--space-md);
    align-items: flex-end;
  }
  .contact-wizard {
    max-height: 88dvh;
    border-radius: var(--radius-2xl) var(--radius-2xl) var(--radius-md) var(--radius-md);
  }
}

/* ── 9. FOOTER: single column on small screens ── */
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-2xl) !important;
  }
}

/* ── 10. BUTTONS IN HERO: always full-width and tall enough on mobile ── */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 52px;
    text-align: center;
    justify-content: center;
  }
}

/* ── 11. CTA SECTIONS: stack button on narrow screens ── */
@media (max-width: 480px) {
  .cta-card {
    padding: var(--space-2xl) var(--space-lg) !important;
  }
}

/* ── 12. GRUPOS double carousel: narrower cards on mobile ── */
@media (max-width: 480px) {
  .grupos-carousel .service-card,
  .photo-carousel .service-card {
    flex: 0 0 75vw !important;
  }
}

/* ── GLOBAL iOS ZOOM FIX: all inputs/selects/textareas ≥16px on mobile ── */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* ── 13. MOBILE NAV: logo compact on very small phones ── */
@media (max-width: 360px) {
  .nav-logo img {
    height: 32px;
  }
}

/* ── 14. HERO: more breathing room below fixed header on mobile ── */
@media (max-width: 480px) {
  .hero {
    padding-top: 130px;
  }
}
