/* Fonts loaded via <link> in header.php for performance (Inter + Manrope) */

:root {
  /* Brand Colors Extracted from Logo */
  --color-primary: #0B3970; /* Deep Navy Blue */
  --color-primary-hover: #082a53;
  --color-secondary: #28A9E0; /* Cyan */
  --color-accent: #F9B72A; /* Bright Yellow */
  --color-accent-hover: #e0a325;
  
  /* Surface Colors */
  --color-canvas: #ffffff;
  --color-canvas-soft: #F8F9FA; /* Soft grayish-blue for modern look */
  --color-canvas-dark: #e9ecef;
  
  /* Text Colors */
  --color-ink: #0E0F0C;
  --color-mute: #6c757d;
  --color-white: #ffffff;
  
  /* Typography */
  --font-family: 'Inter', system-ui, sans-serif;
  --font-display: 'Outfit', 'Manrope', system-ui, sans-serif; /* High-impact display font */
  
  /* Radii (Pill-like and Rounded Cards) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
}

/* Tuition Page Font Override */
.tuition-page {
  --font-display: 'Carter One', system-ui, sans-serif;
}

/* Ensure navbar and footer always use the clean brand font (Manrope) on all pages */
.navbar,
.navbar *,
.footer,
.footer * {
  --font-display: 'Manrope', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offsets anchor links so they don't hide behind the navbar */
}

body {
  font-family: var(--font-family);
  color: var(--color-ink);
  background-color: var(--color-canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Typography Hierarchy
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}

.display-mega {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.display-sm {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.body-lg {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-mute);
}

.body-md {
  font-size: 1rem;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-mute);
}

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

/* ============================================
   Layout & Containers
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

.section-soft {
  background-color: var(--color-canvas-soft);
}

.section-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-primary h1, .section-primary h2, .section-primary h3, .section-primary p {
  color: var(--color-white);
}

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

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  background-color: var(--color-canvas);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav-brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  align-items: center;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 600;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-secondary);
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 3px;
}

/* Hide fallback underline on desktop when JS sliding indicator is present */
.nav-links:has(.js-nav-active-indicator) a.active::after {
  display: none;
}

/* Dynamic sliding indicator styling */
.js-nav-active-indicator {
  position: absolute;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 3px;
  transition: left 0.35s cubic-bezier(0.23, 1, 0.32, 1), width 0.35s cubic-bezier(0.23, 1, 0.32, 1), top 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease;
  pointer-events: none;
  z-index: 5;
}

/* Responsive adjustment for mobile navigation indicator */
@media (max-width: 768px) {
  .js-nav-active-indicator {
    display: none !important;
  }
  .nav-links:has(.js-nav-active-indicator) a.active::after {
    display: block; /* Restore standard fallback active line in vertical list */
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease, transform 160ms ease-out;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-ink);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: scale(0.97);
}

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

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

.btn-outline:active {
  transform: scale(0.97);
}

/* ============================================
   Responsive CTA Labels
   ============================================ */
.cta-full {
  display: inline;
}

.cta-short {
  display: none;
}

/* ============================================
   Cards
   ============================================ */
.card {
  background-color: var(--color-canvas);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
  height: 100%;
  border-left: 4px solid transparent;
  text-align: left;
}

.card p {
  text-align: left;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
  border-left: 4px solid var(--color-accent);
}

.card:hover .card-icon {
  transform: rotateY(180deg);
}

.card-soft {
  background-color: var(--color-canvas-soft);
  box-shadow: none;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0 var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--color-canvas-soft) 0%, var(--color-canvas) 100%);
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
}

.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 10;
}

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

.hero-content {
  max-width: 100%;
}

.hero-image {
  text-align: right;
  width: 100%;
}

.hero-graphic {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  margin-left: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* ============================================
   Text Animations — Letter Drop (Hero)
   ============================================ */
.animate-hero-text .hero-word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.3em;
}

.animate-hero-text .hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(100px) rotateX(-90deg);
  animation: letterDrop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.animate-hero-text .hero-letter:hover {
  transform: scale(1.1) translateY(-5px) !important;
}

@keyframes letterDrop {
  0% {
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* ============================================
   Hero Reveal — Simple slide-up + fade-in
   ============================================ */
.hero-reveal {
  opacity: 0;
  transform: translateY(32px);
  animation: heroRevealIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes heroRevealIn {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Scroll Reveal System
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --stagger: 0;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal[style*='--stagger'] {
  transition-delay: calc(var(--stagger) * 80ms);
}

/* ============================================
   Background Path Animations (Neural SVG)
   ============================================ */
.neural-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 6s ease-in-out infinite alternate;
}

@keyframes drawPath {
  0% { stroke-dashoffset: 1000; opacity: 0; }
  50% { opacity: 0.8; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.neural-node {
  animation: pulseNode 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulseNode {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0.6; }
}

/* ============================================
   Client Logos
   ============================================ */
.client-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-canvas-dark);
  border-bottom: 1px solid var(--color-canvas-dark);
}

.client-logos img {
  height: 40px;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  object-fit: contain;
}

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

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

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

.form-input, .form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid #ccc;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(40, 169, 224, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--color-mute);
  opacity: 0.5;
  font-weight: 400;
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236b7280%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.lead-card {
  background-color: var(--color-canvas);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: 0 20px 40px rgba(11, 57, 112, 0.1);
  border: 1px solid var(--color-canvas-soft);
}

/* ============================================
   Tuition Demo Form — Checkbox & Radio
   ============================================ */
.form-checkbox-group,
.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-checkbox-label,
.form-radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.form-checkbox-label:hover,
.form-radio-label:hover {
  border-color: var(--color-secondary);
  background: rgba(40, 169, 224, 0.05);
}

.form-checkbox-label input:checked + span,
.form-radio-label input:checked + span {
  font-weight: 600;
}

.form-checkbox-label:has(input:checked),
.form-radio-label:has(input:checked) {
  border-color: var(--color-secondary);
  background: rgba(40, 169, 224, 0.1);
}

.other-specify {
  margin-top: var(--space-sm);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-4xl) 0 var(--space-2xl);
  border-top: 3px solid var(--color-accent);
}

.footer-logo {
  filter: brightness(0) invert(1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-col h4 {
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  display: block;
}

.footer-col a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   Badges
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.badge-primary {
  background-color: rgba(11, 57, 112, 0.1);
  color: var(--color-primary);
}

.badge-accent {
  background-color: rgba(249, 183, 42, 0.2);
  color: #b38012;
}

/* ============================================
   Utility — Stagger Children
   ============================================ */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* ============================================
   Card Bullet Lists
   ============================================ */
.card-list {
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-ink);
  margin-bottom: var(--space-xl);
  padding: 0;
}

.card-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.card-list li:last-child {
  margin-bottom: 0;
}

.card-list i {
  color: var(--color-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Floating WhatsApp Button
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.whatsapp-float .whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background: var(--color-ink);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.8); }
}

.whatsapp-float.pulse {
  animation: whatsappPulse 2s ease-in-out 3;
}

/* ============================================
   Promo Popup
   ============================================ */
.promo-popup {
  position: fixed;
  bottom: 96px;
  right: 24px;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  z-index: 998;
  max-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
  border-left: 4px solid var(--color-accent);
}

.promo-popup.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.promo-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-mute);
  padding: 4px;
  line-height: 1;
}

.promo-popup h4 {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.promo-popup p {
  font-size: 0.875rem;
  color: var(--color-mute);
  margin-bottom: var(--space-md);
}

/* ============================================
   Modal Styles
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: var(--space-xl);
}

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

.modal-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 0;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.modal-header {
  background: var(--color-primary);
  color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: white;
  margin-bottom: 0;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.8;
}

.modal-close:hover {
  opacity: 1;
}

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

/* ============================================
   Responsive — Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Navigation */
  .mobile-menu-btn {
    display: block !important;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-canvas);
    padding: var(--space-lg) var(--space-xl);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    align-items: flex-start;
    border-top: 1px solid var(--color-canvas-dark);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    margin-bottom: var(--space-md);
  }
  .nav-links .btn {
    width: 100%;
    text-align: center;
  }

  /* Sections */
  .section {
    padding: var(--space-3xl) 0;
  }

  /* Hero — aligned to bottom-left on mobile to prevent 'detached' feeling */
  .hero {
    padding: var(--space-xl) 0 var(--space-md) 0;
    min-height: calc(100dvh - 80px);
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    text-align: left;
    gap: 0;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: auto;
    position: relative;
    z-index: 10;
    flex-grow: 1;
    padding-bottom: var(--space-xl);
    gap: 12px;
  }

  .hero-content h1, 
  .hero-content .display-mega, 
  .hero-content .display-xl, 
  .hero-content .display-md,
  .hero-content .section-kicker {
    margin-bottom: var(--space-xs) !important;
  }

  .hero-content p.body-lg {
    margin-bottom: var(--space-lg) !important;
    font-size: 0.95rem !important;
  }

  .hero-content > * {
    margin: 0 !important;
  }

  .hero-actions {
    margin-top: 8px !important;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 12px;
    width: 100%;
  }

  .hero-actions .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }



  .hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
    margin: 0;
  }

  .hero-graphic {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    margin: 0;
  }

  /* Display sizes */
  .display-mega {
    font-size: clamp(2.5rem, 11vw, 3.5rem) !important;
    line-height: 1.05 !important;
  }
  .display-xl {
    font-size: clamp(2.2rem, 9vw, 3rem) !important;
    line-height: 1.05 !important;
  }
  .display-md {
    font-size: clamp(1.75rem, 6vw, 2rem) !important;
  }

  /* Grids */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }



  /* CTA label toggle */
  .cta-full {
    display: none;
  }
  .cta-short {
    display: inline;
  }

  /* Responsive content */
  .content-desktop {
    display: none !important;
  }
  .content-mobile {
    display: block !important;
  }

  /* WhatsApp float */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }

  /* Promo popup */
  .promo-popup {
    bottom: 80px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

/* Desktop-only overrides (reinforcement above 768px) */
@media (min-width: 769px) {
  .cta-full {
    display: inline;
  }
  .cta-short {
    display: none;
  }
  .content-mobile {
    display: none !important;
  }
  .content-desktop {
    display: block !important;
  }
}

/* ============================================
   Utility Enhancements
   ============================================ */

.text-gradient-blue {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-kicker {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 900;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
    font-family: var(--font-display);
}

.progress-line {
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.05);
    margin: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}
.progress-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transition: width 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.scroll-reveal.revealed .progress-line::after,
.progress-line.revealed::after {
    width: 100%;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* ============================================
   Floating Background Elements
   ============================================ */
.hero-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.floating-bg-icon {
    position: absolute;
    animation: floatSlow 8s ease-in-out infinite;
    opacity: 0.06; /* Default opacity, overridden inline if needed */
}
.floating-bg-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

  .scroll-reveal {
    opacity: 0;
    transform: none;
    transition: opacity 0.4s ease;
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: none;
  }

  .hero-reveal {
    opacity: 0;
    transform: none;
    animation: none;
  }

  .hero-reveal.revealed,
  .hero-reveal {
    opacity: 1;
    transform: none;
  }

  .animate-hero-text .hero-letter {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }

  .whatsapp-float:hover {
    transform: none;
  }
}
