/* ==========================================================================
   COLEGIO SALZILLO — Design System CSS
   Version: 1.0.0
   Description: Premium educational website design system
   Author: Tictag Branding Digital
   ========================================================================== */

/* ==========================================================================
   §1. GOOGLE FONTS IMPORT
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Nunito+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   §2. CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ========================================================================== */
:root {
  /* ── Color Palette ─────────────────────────────────────────────────────── */
  --primary:        #25347A;
  --primary-light:  #35479E;
  --primary-dark:   #182354;
  --primary-rgb:    37, 52, 122;

  --secondary:      #0082BE;
  --secondary-light:#2FA6DC;
  --secondary-dark: #005E8C;
  --secondary-rgb:  0, 130, 190;

  --accent:         #FFB300;
  --accent-light:   #FFE082;
  --accent-dark:    #FF8F00;
  --accent-rgb:     255, 179, 0;

  --cream:          #FAF8F0;
  --cream-dark:     #F0EDDF;
  --white:          #FFFFFF;
  --dark:           #1a1a2e;
  --dark-rgb:       26, 26, 46;

  /* Neutral Scale */
  --gray-50:        #FAFAFA;
  --gray-100:       #F5F5F5;
  --gray-200:       #EEEEEE;
  --gray-300:       #E0E0E0;
  --gray-400:       #BDBDBD;
  --gray-500:       #9E9E9E;
  --gray-600:       #757575;
  --gray-700:       #616161;
  --gray-800:       #424242;
  --gray-900:       #212121;

  /* Semantic Colors */
  --success:        #0082BE;
  --warning:        #F57C00;
  --error:          #D32F2F;
  --info:           #1976D2;

  /* ── Typography ────────────────────────────────────────────────────────── */
  --font-heading:   'Plus Jakarta Sans', sans-serif;
  --font-body:      'Nunito Sans', sans-serif;

  /* Type Scale (modular, clamp for fluid) */
  --text-xs:        clamp(0.6875rem, 0.65rem + 0.15vw, 0.75rem);     /* ~11-12px */
  --text-sm:        clamp(0.8125rem, 0.77rem + 0.18vw, 0.875rem);    /* ~13-14px */
  --text-base:      clamp(0.9375rem, 0.88rem + 0.25vw, 1rem);        /* ~15-16px */
  --text-md:        clamp(1rem, 0.93rem + 0.3vw, 1.125rem);          /* ~16-18px */
  --text-lg:        clamp(1.125rem, 1rem + 0.5vw, 1.25rem);          /* ~18-20px */
  --text-xl:        clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);          /* ~20-24px */
  --text-2xl:       clamp(1.5rem, 1.2rem + 1.2vw, 2rem);            /* ~24-32px */
  --text-3xl:       clamp(1.875rem, 1.4rem + 1.8vw, 2.5rem);        /* ~30-40px */
  --text-4xl:       clamp(2.25rem, 1.5rem + 3vw, 3.25rem);          /* ~36-52px */
  --text-5xl:       clamp(2.75rem, 1.6rem + 4.5vw, 4.5rem);         /* ~44-72px */
  --text-6xl:       clamp(3.5rem, 2rem + 6vw, 6rem);                /* ~56-96px */

  /* Line Heights */
  --leading-none:   1;
  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* Letter Spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.02em;
  --tracking-wider:  0.05em;
  --tracking-widest: 0.1em;

  /* ── Spacing ───────────────────────────────────────────────────────────── */
  --space-1:    0.25rem;  /* 4px  */
  --space-2:    0.5rem;   /* 8px  */
  --space-3:    0.75rem;  /* 12px */
  --space-4:    1rem;     /* 16px */
  --space-5:    1.25rem;  /* 20px */
  --space-6:    1.5rem;   /* 24px */
  --space-8:    2rem;     /* 32px */
  --space-10:   2.5rem;   /* 40px */
  --space-12:   3rem;     /* 48px */
  --space-16:   4rem;     /* 64px */
  --space-20:   5rem;     /* 80px */
  --space-24:   6rem;     /* 96px */
  --space-32:   8rem;     /* 128px */

  /* Section Spacing */
  --section-py:     clamp(4rem, 3rem + 5vw, 7.5rem);  /* 64-120px */
  --section-py-sm:  clamp(3rem, 2rem + 4vw, 5rem);

  /* ── Border Radius ─────────────────────────────────────────────────────── */
  --radius-sm:      0.375rem;   /* 6px  */
  --radius-md:      0.625rem;   /* 10px */
  --radius-lg:      0.875rem;   /* 14px */
  --radius-xl:      1.25rem;    /* 20px */
  --radius-2xl:     1.5rem;     /* 24px */
  --radius-3xl:     2rem;       /* 32px */
  --radius-full:    9999px;
  --radius-blob:    30% 70% 70% 30% / 30% 30% 70% 70%;

  /* ── Shadows ───────────────────────────────────────────────────────────── */
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:      0 2px 4px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 24px rgba(0,0,0,0.10);
  --shadow-xl:      0 12px 40px rgba(0,0,0,0.12);
  --shadow-2xl:     0 20px 60px rgba(0,0,0,0.15);
  --shadow-inner:   inset 0 2px 4px rgba(0,0,0,0.06);
  --shadow-glow:    0 0 20px rgba(var(--accent-rgb), 0.3);
  --shadow-card:    0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-mega:    0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-nav:     0 4px 30px rgba(0,0,0,0.08);
  --shadow-colored-primary: 0 8px 24px rgba(var(--primary-rgb), 0.25);
  --shadow-colored-secondary: 0 8px 24px rgba(var(--secondary-rgb), 0.25);
  --shadow-colored-accent: 0 8px 24px rgba(var(--accent-rgb), 0.3);

  /* ── Transitions ───────────────────────────────────────────────────────── */
  --ease-out:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out:    cubic-bezier(0.645, 0.045, 0.355, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:    cubic-bezier(0.68, -0.55, 0.265, 1.55);

  --duration-fast:    150ms;
  --duration-normal:  300ms;
  --duration-slow:    500ms;
  --duration-slower:  700ms;
  --duration-slowest: 1000ms;

  --transition-base:     all var(--duration-normal) var(--ease-smooth);
  --transition-fast:     all var(--duration-fast) var(--ease-smooth);
  --transition-slow:     all var(--duration-slow) var(--ease-smooth);
  --transition-transform:transform var(--duration-normal) var(--ease-smooth);
  --transition-opacity:  opacity var(--duration-normal) var(--ease-smooth);
  --transition-colors:   color var(--duration-normal) var(--ease-smooth),
                         background-color var(--duration-normal) var(--ease-smooth),
                         border-color var(--duration-normal) var(--ease-smooth);

  /* ── Z-Index Scale ─────────────────────────────────────────────────────── */
  --z-behind:       -1;
  --z-default:      1;
  --z-sticky:       100;
  --z-nav:          1000;
  --z-dropdown:     1100;
  --z-overlay:      2000;
  --z-modal:        3000;
  --z-loader:       9999;

  /* ── Layout ────────────────────────────────────────────────────────────── */
  --container-max:  1280px;
  --container-wide: 1440px;
  --container-narrow: 800px;
  --container-px:   clamp(1rem, 0.5rem + 2vw, 1.5rem);
  --grid-gap:       clamp(1rem, 0.5rem + 2vw, 2rem);
  --nav-height:     80px;
  --nav-height-scrolled: 64px;
}

/* ==========================================================================
   §3. GLOBAL RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
  hanging-punctuation: first last;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Selection */
::selection {
  background-color: rgba(var(--accent-rgb), 0.3);
  color: var(--dark);
}
::-moz-selection {
  background-color: rgba(var(--accent-rgb), 0.3);
  color: var(--dark);
}

/* Focus Visible — Accessibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: calc(var(--z-loader) + 1);
  padding: var(--space-3) var(--space-6);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--duration-normal) var(--ease-smooth);
}
.skip-link:focus {
  top: 0;
}

/* ── Base Elements ───────────────────────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;           /* Alt-text styling */
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 0.75rem;
}

/* Lazy load placeholder */
img[data-src] {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-smooth);
}
img[data-src].loaded,
img.loaded {
  opacity: 1;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--dark);
  text-wrap: balance;
}

h1 { font-size: var(--text-5xl); font-weight: 800; }
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 {
  text-wrap: pretty;
  max-width: 72ch;
}

strong { font-weight: 700; }
em     { font-style: italic; }

hr {
  border: none;
  height: 1px;
  background: var(--gray-200);
  margin: var(--space-8) 0;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding-left: var(--space-6);
  font-style: italic;
  color: var(--gray-700);
  font-size: var(--text-lg);
}

/* ==========================================================================
   §4. LAYOUT SYSTEM
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

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

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

.grid--auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid--auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* 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-3); }
.gap-md     { gap: var(--space-6); }
.gap-lg     { gap: var(--space-10); }

/* Section */
.section {
  padding-block: var(--section-py);
  position: relative;
  overflow: hidden;
}

.section--cream   { background-color: var(--cream); }
.section--white   { background-color: var(--white); }
.section--dark    { background-color: var(--dark); color: var(--gray-200); }
.section--primary { background-color: var(--primary); color: var(--white); }

/* ==========================================================================
   §5. NAVBAR — PREMIUM GLASSMORPHISM
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--duration-slow) var(--ease-smooth);
  background: transparent;
}

/* Scrolled state — glassmorphism */
.navbar.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--container-px);
  height: 100%;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  z-index: calc(var(--z-nav) + 5);
}

.navbar__logo-img {
  height: 44px;
  width: auto;
  transition: var(--transition-transform);
}

.navbar.scrolled .navbar__logo-img {
  height: 36px;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--white);
  transition: var(--transition-colors);
}

.navbar.scrolled .navbar__logo-text {
  color: var(--primary);
}

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

.navbar__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  white-space: nowrap;
}

.navbar.scrolled .navbar__link {
  color: var(--gray-700);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .navbar__link:hover,
.navbar.scrolled .navbar__link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.06);
}

/* Dropdown arrow */
.navbar__link-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-normal) var(--ease-smooth);
  flex-shrink: 0;
}

.navbar__item:hover .navbar__link-chevron,
.navbar__item.mega-open .navbar__link-chevron {
  transform: rotate(180deg);
}

/* Active link underline */
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Nav Item (parent for mega menu) */
.navbar__item {
  position: relative;
}

/* ── Mega Menu ───────────────────────────────────────────────────────────── */
.mega-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  background: var(--white);
  border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  box-shadow: var(--shadow-mega);
  padding: var(--space-10) 0 var(--space-12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth),
              visibility var(--duration-normal);
  pointer-events: none;
  border-top: 1px solid var(--gray-100);
}

.navbar.scrolled ~ .mega-menu,
.navbar.scrolled .mega-menu {
  top: var(--nav-height-scrolled);
}

/* Show state */
.navbar__item:hover .mega-menu,
.navbar__item.mega-open .mega-menu,
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mega Menu backdrop */
.mega-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: calc(var(--z-dropdown) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              visibility var(--duration-normal);
}

.mega-menu__backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: 260px 1fr 320px;
  gap: var(--space-10);
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Mega — Left column (stages) */
.mega-menu__stages {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mega-menu__stage-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
}

.mega-menu__stage-link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: var(--transition-base);
  color: var(--gray-700);
}

.mega-menu__stage-link:hover {
  background: var(--cream);
  color: var(--primary);
  transform: translateX(4px);
}

.mega-menu__stage-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: var(--transition-base);
}

.mega-menu__stage-icon--infantil  { background: #E8F5E9; color: #0082BE; }
.mega-menu__stage-icon--primaria  { background: #E3F2FD; color: #1565C0; }
.mega-menu__stage-icon--eso       { background: #FFF3E0; color: #E65100; }
.mega-menu__stage-icon--bach      { background: #F3E5F5; color: #7B1FA2; }
.mega-menu__stage-icon--fp        { background: #E0F2F1; color: #00695C; }

.mega-menu__stage-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-menu__stage-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--dark);
}

.mega-menu__stage-desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 400;
}

/* Mega — Middle column (featured programs) */
.mega-menu__featured {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-left: var(--space-8);
  border-left: 1px solid var(--gray-200);
}

.mega-menu__featured-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--gray-500);
}

.mega-menu__featured-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  text-decoration: none;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.mega-menu__featured-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.mega-menu__featured-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mega-menu__featured-card-icon--bilingue {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}

.mega-menu__featured-card-icon--vess {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}

.mega-menu__featured-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mega-menu__featured-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--dark);
}

.mega-menu__featured-card-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-normal);
}

.mega-menu__featured-card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.mega-menu__featured-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.mega-menu__featured-card:hover .mega-menu__featured-card-link svg {
  transform: translateX(4px);
}

/* Mega — Right column (CTA card) */
.mega-menu__cta {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  text-decoration: none;
  border: 1px solid var(--gray-100);
}

.mega-menu__cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  z-index: 0;
}

.mega-menu__cta-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.mega-menu__cta-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-3);
  backdrop-filter: blur(8px);
}

.mega-menu__cta-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.mega-menu__cta-text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
}

.mega-menu__cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  text-decoration: none;
}

.mega-menu__cta-button:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Dropdown Simple (El Colegio) ────────────────────────────────────────── */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: var(--z-dropdown);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth),
              visibility var(--duration-normal);
  pointer-events: none;
  border: 1px solid var(--gray-100);
}

.navbar__item:hover .dropdown,
.navbar__item.dropdown-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Dropdown arrow/nub */
.dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--gray-100);
  border-top: 1px solid var(--gray-100);
  border-radius: 2px 0 0 0;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition-base);
}

.dropdown__link:hover {
  background: var(--cream);
  color: var(--primary);
  transform: translateX(4px);
}

.dropdown__link-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition-base);
}

.dropdown__link:hover .dropdown__link-icon {
  background: var(--primary);
  color: var(--white);
}

/* ── Nav CTA Button ──────────────────────────────────────────────────────── */
.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-base);
  white-space: nowrap;
  margin-left: var(--space-4);
  box-shadow: var(--shadow-colored-accent);
}

.navbar__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.4);
}

.navbar__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.navbar__cta:hover svg {
  transform: translateX(3px);
}

/* ── Mobile Hamburger ────────────────────────────────────────────────────── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 5);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.navbar__hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .navbar__hamburger:hover {
  background: rgba(var(--primary-rgb), 0.06);
}

.navbar__hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-smooth);
  transform-origin: center;
}

.navbar.scrolled .navbar__hamburger-line {
  background: var(--dark);
}

.navbar__hamburger-line + .navbar__hamburger-line {
  margin-top: 6px;
}

/* Hamburger active state */
.navbar__hamburger.active .navbar__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.navbar__hamburger.active .navbar__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.active .navbar__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Mobile Nav Overlay ──────────────────────────────────────────────────── */
.navbar__mobile {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) + 1);
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + var(--space-6)) var(--container-px) var(--space-8);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.navbar__mobile.is-open {
  transform: translateX(0);
}

.navbar__mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition-colors);
}

.navbar__mobile-link:hover {
  color: var(--primary);
}

.navbar__mobile-submenu {
  display: none;
  padding-left: var(--space-4);
}

.navbar__mobile-submenu.is-open {
  display: block;
}

.navbar__mobile-submenu-link {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-50);
}

.navbar__mobile-submenu-link:hover {
  color: var(--primary);
}

.navbar__mobile-cta {
  margin-top: auto;
  padding-top: var(--space-8);
}

/* ==========================================================================
   §6. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) var(--container-px) var(--space-16);
}

/* Video Background */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay Gradient */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(var(--dark-rgb), 0.5) 0%,
      rgba(var(--dark-rgb), 0.35) 40%,
      rgba(var(--primary-rgb), 0.45) 100%
    );
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
  color: var(--white);
}

/* Hero Tag Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-6);
  backdrop-filter: blur(8px);
}

.hero__badge-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* Hero Title */
.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tight);
}

.hero__title-highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero__title-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.5;
}

/* Hero word wrapper for GSAP text reveal */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__title .word-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

/* Hero Subtitle */
.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* Hero CTA Group */
.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-base);
}

.hero__scroll:hover {
  color: var(--white);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scrollLine 2s var(--ease-smooth) infinite;
}

@keyframes scrollLine {
  0%   { top: -50%; }
  100% { top: 150%; }
}

/* ==========================================================================
   §7. BUTTONS
   ========================================================================== */

/* ── Primary Button ──────────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
  overflow: hidden;
  border: 2px solid transparent;
  white-space: nowrap;
  isolation: isolate;
}

.btn--primary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  box-shadow: var(--shadow-colored-secondary);
}

.btn--primary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(var(--secondary-rgb), 0.35);
}

.btn--accent {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  box-shadow: var(--shadow-colored-accent);
}

.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px);
}

/* Button with text-swap hover effect */
.btn--swap {
  overflow: hidden;
}

.btn__text-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.2em;
  line-height: 1.2;
}

.btn__text {
  display: block;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.btn--swap:hover .btn__text {
  transform: translateY(-100%);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--duration-normal) var(--ease-smooth);
  flex-shrink: 0;
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* ── Secondary / Outline Button ──────────────────────────────────────────── */
.btn--secondary {
  background: transparent;
  color: var(--dark);
  border-color: var(--gray-300);
}

.btn--secondary:hover {
  border-color: var(--dark);
  background: var(--dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* White outline (on dark bg) */
.btn--white-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--white-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--dark);
  transform: translateY(-3px);
}

/* Small button */
.btn--sm {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  gap: var(--space-1);
}

/* Large button */
.btn--lg {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-md);
}

/* Icon-only button */
.btn--icon-only {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================================================
   §8. TEXT MARQUEE
   ========================================================================== */
.marquee {
  padding: var(--space-8) 0;
  overflow: hidden;
  background: var(--cream);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.marquee--dark {
  background: var(--dark);
  border-color: rgba(255, 255, 255, 0.08);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll var(--marquee-duration, 30s) linear infinite;
}

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

.marquee__content {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-shrink: 0;
  padding-right: var(--space-10);
}

.marquee__item {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: var(--tracking-tight);
}

.marquee--dark .marquee__item {
  color: rgba(255, 255, 255, 0.15);
}

.marquee__separator {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.5;
}

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

/* Reverse direction */
.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

/* ==========================================================================
   §9. SECTION HEADER — TAG BADGE + TITLE
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 720px;
  margin-inline: auto;
}

.section-header--left {
  text-align: left;
  margin-inline: 0;
}

/* Tag Badge */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--cream);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: var(--space-5);
}

.tag-badge--green {
  background: #E8F5E9;
  border-color: #A5D6A7;
  color: var(--secondary-dark);
}

.tag-badge--blue {
  background: #E3F2FD;
  border-color: #90CAF9;
  color: var(--primary);
}

.tag-badge__icon {
  width: 16px;
  height: 16px;
}

/* Section Title */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  position: relative;
}

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

/* Decorative underline shape */
.section-title__underline {
  display: block;
  width: 80px;
  height: 6px;
  background: var(--accent);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.section-header .section-title__underline {
  margin-inline: auto;
}

.section-header--left .section-title__underline {
  margin-inline: 0;
}

/* Wavy underline SVG */
.section-title__wave {
  display: block;
  width: 120px;
  height: 12px;
  margin-top: var(--space-3);
  color: var(--accent);
}

.section-header .section-title__wave {
  margin-inline: auto;
}

/* Section Description */
.section-desc {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  max-width: 600px;
}

.section-header .section-desc {
  margin-inline: auto;
}

.section-desc--white {
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   §10. FEATURE CARDS
   ========================================================================== */
.feature-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-smooth);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

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

/* Icon Container */
.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: 1.75rem;
  transition: var(--transition-base);
}

.feature-card__icon--blue    { background: #E3F2FD; color: #1565C0; }
.feature-card__icon--green   { background: #E8F5E9; color: #0082BE; }
.feature-card__icon--yellow  { background: #FFF8E1; color: #F57F17; }
.feature-card__icon--purple  { background: #F3E5F5; color: #7B1FA2; }
.feature-card__icon--orange  { background: #FFF3E0; color: #E65100; }
.feature-card__icon--teal    { background: #E0F2F1; color: #00695C; }
.feature-card__icon--red     { background: #FFEBEE; color: #C62828; }
.feature-card__icon--pink    { background: #FCE4EC; color: #AD1457; }

.feature-card:hover .feature-card__icon {
  transform: scale(1.1) rotate(-3deg);
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-3);
}

.feature-card__text {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-5);
}

.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-base);
}

.feature-card__link:hover {
  gap: var(--space-3);
  color: var(--secondary);
}

.feature-card__link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.feature-card__link:hover svg {
  transform: translateX(3px);
}

/* ── Horizontal Feature Card ─────────────────────────────────────────────── */
.feature-card--horizontal {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
}

.feature-card--horizontal .feature-card__icon {
  margin-bottom: 0;
}

/* ==========================================================================
   §11. PROGRAM / STICKY CARDS
   ========================================================================== */
.programs {
  position: relative;
}

.program-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
  border: 1px solid var(--gray-100);
}

/* Sticky behavior (activated via JS/GSAP) */
.program-card--sticky {
  position: sticky;
  top: calc(var(--nav-height-scrolled) + var(--space-6));
}

.program-card__image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.program-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-smooth);
}

.program-card:hover .program-card__image img {
  transform: scale(1.05);
}

.program-card__stage-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.program-card__stage-badge--infantil  { background: rgba(0, 130, 190, 0.9); }
.program-card__stage-badge--primaria  { background: rgba(21, 101, 192, 0.9); }
.program-card__stage-badge--eso       { background: rgba(230, 81, 0, 0.9); }
.program-card__stage-badge--bach      { background: rgba(123, 31, 162, 0.9); }
.program-card__stage-badge--fp        { background: rgba(0, 105, 92, 0.9); }

.program-card__body {
  padding: var(--space-8);
}

.program-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-3);
}

.program-card__desc {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.program-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.program-card__feature {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--cream);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
}

.program-card__feature-icon {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}

/* ==========================================================================
   §12. COUNTER SECTION
   ========================================================================== */
.counters {
  padding: var(--section-py) 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.counters__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--white);
}

.counters__shape--1 { width: 300px; height: 300px; top: -100px; left: -80px; }
.counters__shape--2 { width: 200px; height: 200px; bottom: -60px; right: -40px; }
.counters__shape--3 { width: 100px; height: 100px; top: 50%; right: 20%; }

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

.counter-item {
  text-align: center;
  padding: var(--space-6);
  position: relative;
}

/* Divider between items */
.counter-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

/* Animated digit container */
.counter-item__number {
  font-family: var(--font-heading);
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--white);
  line-height: var(--leading-none);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.counter-item__digit-col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}

.counter-item__digit-strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.5s var(--ease-in-out);
}

.counter-item__digit-strip span {
  display: block;
  height: 1em;
  line-height: 1;
}

.counter-item__suffix {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--accent);
}

.counter-item__label {
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
}

/* ==========================================================================
   §13. ABOUT / STATS CARDS
   ========================================================================== */
.about-card {
  background: var(--white);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

.about-card__image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.about-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card__body {
  padding: var(--space-8);
}

.about-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
}

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

.about-card__stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.about-card__stat-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ==========================================================================
   §14. CTA SECTION
   ========================================================================== */
.cta-section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-section__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-section__shape {
  position: absolute;
  border-radius: var(--radius-blob);
  opacity: 0.08;
  will-change: transform;
}

.cta-section__shape--1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -120px;
  right: -80px;
  animation: float 8s ease-in-out infinite;
}

.cta-section__shape--2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: -100px;
  left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

.cta-section__shape--3 {
  width: 150px;
  height: 150px;
  background: var(--white);
  top: 40%;
  left: 30%;
  animation: float 6s ease-in-out infinite 2s;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-5);
}

.cta-section__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  max-width: 540px;
  margin-inline: auto;
}

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

/* ==========================================================================
   §15. BLOG CARDS
   ========================================================================== */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.blog-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-smooth);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.06);
}

.blog-card__category {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.blog-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
  transition: var(--transition-colors);
}

.blog-card:hover .blog-card__title {
  color: var(--primary);
}

.blog-card__excerpt {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-5);
  flex: 1;
  /* Clamp to 3 lines */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-base);
  margin-top: auto;
}

.blog-card__read-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.blog-card__read-more:hover {
  color: var(--secondary);
  gap: var(--space-3);
}

.blog-card__read-more:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   §16. TESTIMONIALS — INFINITE SCROLL
   ========================================================================== */
.testimonials {
  padding: var(--section-py) 0;
  overflow: hidden;
  background: var(--cream);
}

.testimonials__track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.testimonials:hover .testimonials__track {
  animation-play-state: paused;
}

.testimonial-card {
  width: 400px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  position: relative;
}

.testimonial-card__quote-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  font-style: italic;
}

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

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--dark);
}

.testimonial-card__role {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* Stars */
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-card__star {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ==========================================================================
   §17. FAQ ACCORDION
   ========================================================================== */
.faq {
  max-width: 800px;
  margin-inline: auto;
}

.faq__item {
  border-bottom: 1px solid var(--gray-200);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-colors);
}

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

.faq__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.faq__icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.faq__item.active .faq__icon {
  background: var(--primary);
  transform: rotate(45deg);
}

.faq__item.active .faq__icon svg {
  color: var(--white);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-smooth),
              padding var(--duration-slow) var(--ease-smooth);
}

.faq__answer-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

/* ==========================================================================
   §18. FOOTER
   ========================================================================== */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding-top: var(--section-py);
  position: relative;
  overflow: hidden;
}

/* Decorative top wave/curve */
.footer__wave {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  width: 100%;
  color: var(--white);
  line-height: 0;
}

.footer__wave svg {
  width: 100%;
  height: auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-12);
  padding-bottom: var(--space-12);
}

/* Footer brand column */
.footer__brand {
  padding-right: var(--space-8);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
}

.footer__logo-img {
  height: 44px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--white);
}

.footer__brand-text {
  font-size: var(--text-base);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer__social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* Footer Nav Columns */
.footer__column {}

.footer__column-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--white);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--text-sm);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav-link {
  font-size: var(--text-base);
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__nav-link:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer__nav-link::before {
  content: '';
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-smooth);
}

.footer__nav-link:hover::before {
  width: 12px;
}

/* Newsletter */
.footer__newsletter {
  margin-top: var(--space-4);
}

.footer__newsletter-text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-4);
}

.footer__newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.footer__newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-size: var(--text-sm);
  outline: none;
  transition: var(--transition-base);
}

.footer__newsletter-input::placeholder {
  color: var(--gray-600);
}

.footer__newsletter-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.footer__newsletter-btn {
  padding: var(--space-3) var(--space-5);
  background: var(--accent);
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

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

/* Footer Bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-8);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

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

.footer__legal-link {
  font-size: var(--text-sm);
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition-colors);
}

.footer__legal-link:hover {
  color: var(--white);
}

/* ==========================================================================
   §19. BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
  font-weight: 500;
}

.breadcrumbs__link {
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition-colors);
}

.breadcrumbs__link:hover {
  color: var(--primary);
}

.breadcrumbs__separator {
  color: var(--gray-400);
  font-size: 0.7em;
}

.breadcrumbs__current {
  color: var(--primary);
  font-weight: 600;
}

/* On dark backgrounds */
.breadcrumbs--white .breadcrumbs__link { color: rgba(255,255,255,0.6); }
.breadcrumbs--white .breadcrumbs__link:hover { color: var(--white); }
.breadcrumbs--white .breadcrumbs__separator { color: rgba(255,255,255,0.3); }
.breadcrumbs--white .breadcrumbs__current { color: var(--white); }

/* ==========================================================================
   §20. BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-sticky);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   §21. FORM STYLES
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--dark);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--dark);
  transition: var(--transition-base);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

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

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

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: var(--error);
}

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

/* ==========================================================================
   §22. PAGE TRANSITION OVERLAY
   ========================================================================== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(-100%);
}

.page-transition.entering {
  animation: pageTransitionEnter var(--duration-slow) var(--ease-smooth) forwards;
}

.page-transition.leaving {
  animation: pageTransitionLeave var(--duration-slow) var(--ease-smooth) forwards;
}

@keyframes pageTransitionEnter {
  0%   { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes pageTransitionLeave {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* ==========================================================================
   §23. UTILITY CLASSES
   ========================================================================== */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-white   { color: var(--white); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent  { color: var(--accent); }

.bg-cream     { background-color: var(--cream); }
.bg-white     { background-color: var(--white); }
.bg-dark      { background-color: var(--dark); }

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

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

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

.overflow-hidden { overflow: hidden; }

/* ==========================================================================
   §24. CSS KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%      { transform: translateY(-15px) rotate(2deg); }
  66%      { transform: translateY(8px) rotate(-1deg); }
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes counterSlide {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--counter-target)); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(3deg); }
  75%      { transform: rotate(-3deg); }
}

/* ==========================================================================
   §25. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── ≤1200px ─────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .mega-menu__inner {
    grid-template-columns: 240px 1fr 280px;
    gap: var(--space-8);
  }

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

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

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

/* ── ≤992px ──────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  :root {
    --nav-height: 72px;
    --nav-height-scrolled: 60px;
  }

  /* Show hamburger, hide desktop nav */
  .navbar__hamburger {
    display: flex;
  }

  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  /* Mega menu hidden on tablet/mobile (use mobile nav instead) */
  .mega-menu {
    display: none;
  }

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

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

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

  .footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .hero__title {
    font-size: var(--text-4xl);
  }
}

/* ── ≤768px ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--section-py-sm);
  }

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

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

  .counter-item::after {
    display: none;
  }

  .counter-item__number {
    font-size: var(--text-4xl);
  }

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

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

  .testimonial-card {
    width: 320px;
  }

  .about-card__stats {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .cta-section__buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-inline: auto;
  }

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

  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 42px;
    height: 42px;
  }
}

/* ── ≤480px ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --container-px: 1rem;
    --nav-height: 64px;
    --nav-height-scrolled: 56px;
  }

  .hero {
    min-height: 85vh;
    min-height: 85dvh;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

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

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

  .feature-card__icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .blog-card__image {
    height: 180px;
  }

  .faq__question {
    font-size: var(--text-base);
    padding: var(--space-4) 0;
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .footer__newsletter-form {
    flex-direction: column;
  }

  .footer__newsletter-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .counters__grid {
    grid-template-columns: 1fr 1fr;
  }

  .counter-item {
    padding: var(--space-4) var(--space-2);
  }

  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   §26. PRINT STYLES
   ========================================================================== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .navbar,
  .back-to-top,
  .page-transition,
  .footer__social,
  .footer__newsletter,
  .hero__video-wrap,
  .hero__overlay,
  .hero__scroll,
  .marquee,
  .cta-section__shapes {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }

  .section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }
}

/* ==========================================================================
   §27. LOADING SCREEN
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  transition: opacity var(--duration-slow) var(--ease-smooth),
              visibility var(--duration-slow);
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__logo {
  width: 60px;
  height: 60px;
  animation: pulse 2s ease-in-out infinite;
}

.loader__bar-track {
  width: 200px;
  height: 3px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-smooth);
}

.loader__text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

/* ==========================================================================
   §28. INNER PAGE HERO (subpages)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.page-hero__bg-shape {
  position: absolute;
  border-radius: var(--radius-blob);
  opacity: 0.05;
  background: var(--white);
}

.page-hero__bg-shape--1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -100px;
}

.page-hero__bg-shape--2 {
  width: 300px;
  height: 300px;
  bottom: -100px;
  left: -80px;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.page-hero__desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
}

/* ==========================================================================
   §29. GALLERY / IMAGE GRID
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-4);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slower) var(--ease-smooth);
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--dark-rgb), 0.6), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
  display: flex;
  align-items: flex-end;
  padding: var(--space-5);
}

.gallery__item:hover .gallery__item-overlay {
  opacity: 1;
}

.gallery__item-caption {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--white);
}

/* ==========================================================================
   §30. TIMELINE (for history section)
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-10) + 8px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.timeline__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--dark);
  margin-bottom: var(--space-2);
}

.timeline__text {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   §31. CONTACT INFO CARDS
   ========================================================================== */
.contact-card {
  display: flex;
  align-items: start;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: var(--transition-base);
}

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

.contact-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--dark);
  margin-bottom: var(--space-1);
}

.contact-card__text {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-normal);
}

.contact-card__text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card__text a:hover {
  color: var(--secondary);
}

/* ==========================================================================
   §32. TABS
   ========================================================================== */
.tabs {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gray-600);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition-base);
  white-space: nowrap;
}

.tab:hover {
  color: var(--dark);
}

.tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
  animation: fadeIn var(--duration-normal) var(--ease-smooth);
}

.tab-panel.active {
  display: block;
}

/* ==========================================================================
   §33. BADGES / PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--primary { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.badge--secondary { background: rgba(var(--secondary-rgb), 0.1); color: var(--secondary); }
.badge--accent { background: rgba(var(--accent-rgb), 0.15); color: var(--accent-dark); }
