/* ==========================================================================
   DESIGN SYSTEM — Centre De Formation Get Your Dream
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-primary: #3A6F2D;
  --color-primary-light: #4A8A38;
  --color-primary-dark: #2D5A24;
  --color-secondary: #A8C686;
  --color-secondary-light: #C4DAA8;
  --color-accent: #A8C686;
  --color-bg: #F8F7F2;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EFF5E8;
  --color-text: #2F3A33;
  --color-text-secondary: #5A6B5E;
  --color-text-inverse: #FFFFFF;
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #128C7E;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', sans-serif;

  --text-display: clamp(36px, 5vw, 56px);
  --text-h1: clamp(28px, 4vw, 44px);
  --text-h2: clamp(24px, 3vw, 36px);
  --text-h3: clamp(20px, 2.5vw, 24px);
  --text-h4: 20px;
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;
  --space-5xl: 96px;
  --space-section: clamp(64px, 8vw, 120px);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Arabic text support */
[lang="ar"], .ar { font-family: var(--font-arabic); direction: rtl; text-align: right; }

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

.section { padding: var(--space-section) 0; }
.section--alt { background: var(--color-surface-alt); }
.section--dark { background: var(--color-primary-dark); color: var(--color-text-inverse); }

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

.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark p, .section--dark span { color: var(--color-text-inverse); }

.display { font-size: var(--text-display); font-weight: 800; }
.h1 { font-size: var(--text-h1); }
.h2 { font-size: var(--text-h2); }
.h3 { font-size: var(--text-h3); }
.h4 { font-size: var(--text-h4); }

.section-title {
  font-size: var(--text-h2);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn--primary {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border-color: var(--color-secondary);
}
.btn--primary:hover {
  background: #D0553D;
  border-color: #D0553D;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(168,198,134,0.3);
}

.btn--secondary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}
.btn--secondary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(58,111,45,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-text-inverse);
  border-color: var(--color-whatsapp);
}
.btn--whatsapp:hover {
  background: var(--color-whatsapp-dark);
  border-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

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

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-base);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--color-primary-dark);
}

.header__logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.header__logo span { color: var(--color-secondary); }

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

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

.nav__link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover, .nav__link.active { color: var(--color-primary); }

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: 2px;
  font-size: var(--text-caption);
  font-weight: 600;
}

.lang-toggle button {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  background: transparent;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.lang-toggle button.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: var(--color-surface);
  z-index: 999;
  padding: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color var(--transition-fast);
}

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

.mobile-menu__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245,166,35,0.12) 0%, transparent 40%);
  pointer-events: none;
}

.hero--with-image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero--with-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

.hero--with-image .hero__content {
  position: relative;
  z-index: 3;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--color-text-inverse);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: var(--text-small);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(8px);
}

.hero__title {
  font-size: var(--text-display);
  font-weight: 800;
  margin-bottom: var(--space-md);
  line-height: 1.1;
  color: #A8C686;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 4px 32px rgba(0,0,0,0.6);
}

.hero__subtitle {
  font-size: var(--text-h3);
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: var(--space-md);
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.hero__tagline {
  font-size: var(--text-body-lg);
  opacity: 0.8;
  margin-bottom: var(--space-2xl);
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--color-accent);
}

.hero__stat-label {
  font-size: var(--text-small);
  opacity: 0.8;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(0,0,0,0.04);
}

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

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 24px;
}

.card__icon--primary { background: rgba(58,111,45,0.1); color: var(--color-primary); }
.card__icon--secondary { background: rgba(168,198,134,0.1); color: var(--color-secondary); }
.card__icon--accent { background: rgba(245,166,35,0.1); color: var(--color-accent); }

.card__title {
  font-size: var(--text-h4);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: 1.6;
}

.card__list {
  margin-top: var(--space-md);
}

.card__list li {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card__list li::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   GRID
   ========================================================================== */
.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   SERVICE CARDS (Homepage)
   ========================================================================== */
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border-left: 4px solid var(--color-primary);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-left-color: var(--color-secondary);
}

.service-card__icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.service-card__title {
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.service-card__items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.service-card__tag {
  background: var(--color-surface-alt);
  color: var(--color-primary-dark);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-caption);
  font-weight: 500;
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stat-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

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

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.reason-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.reason-card__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-body);
}

.reason-card__content { flex: 1; }

.reason-card__title {
  font-size: var(--text-body);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.reason-card__text {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #D0553D 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-sm);
  color: var(--color-text-inverse);
}

.cta-banner__text {
  font-size: var(--text-body-lg);
  opacity: 0.9;
  margin-bottom: var(--space-xl);
}

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

/* ==========================================================================
   LANGUAGE CARDS
   ========================================================================== */
.lang-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  text-align: center;
  border: 2px solid transparent;
}

.lang-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}

.lang-card__flag {
  font-size: 40px;
  margin-bottom: var(--space-md);
}

.lang-card__name {
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
}

.lang-card__details {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  margin-bottom: var(--space-md);
}

.lang-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  color: var(--color-primary);
  font-weight: 700;
}

.lang-card__price span {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
  font-weight: 400;
  font-family: var(--font-body);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }

.contact-info__item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.contact-info__item:hover { background: var(--color-surface-alt); }

.contact-info__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 20px;
}

.contact-info__label {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-info__value {
  font-size: var(--text-body);
  font-weight: 500;
}

/* Form */
.form { display: flex; flex-direction: column; gap: var(--space-md); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

.form__group { display: flex; flex-direction: column; gap: var(--space-xs); }

.form__label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58,111,45,0.15);
}

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

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: calc(72px + var(--space-3xl)) 0 var(--space-3xl);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}

.page-hero--with-image {
  background-size: cover;
  background-position: center;
}

.page-hero--with-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
}

.page-hero--with-image > * {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-size: var(--text-h1);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--color-text-inverse);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.page-hero__subtitle {
  font-size: var(--text-body-lg);
  opacity: 0.85;
  max-width: 600px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.footer__brand-name span { color: var(--color-secondary); }

.footer__desc {
  font-size: var(--text-small);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

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

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  font-size: 18px;
}

.footer__social a:hover { background: var(--color-primary); }

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--color-text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

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

.footer__link {
  font-size: var(--text-small);
  transition: color var(--transition-fast);
}

.footer__link:hover { color: var(--color-text-inverse); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-caption);
}

/* ==========================================================================
   WHATSAPP FLOATING BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: all var(--transition-base);
}

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

.whatsapp-float svg { width: 32px; height: 32px; fill: currentColor; }

/* ==========================================================================
   PRICING TABLE
   ========================================================================== */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-table th {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 600;
}

.pricing-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: var(--text-small);
}

.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--color-surface-alt); }

.pricing-table .price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   TABS
   ========================================================================== */
.tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid rgba(0,0,0,0.06);
}

.tab-btn {
  padding: var(--space-md) var(--space-xl);
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.accordion { display: flex; flex-direction: column; gap: var(--space-md); }

.accordion__item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion__header {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition-fast);
}

.accordion__header:hover { background: var(--color-surface-alt); }

.accordion__icon {
  transition: transform var(--transition-base);
  font-size: 20px;
  color: var(--color-text-secondary);
}

.accordion__item.open .accordion__icon { transform: rotate(180deg); }

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__body__inner {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: 1.7;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023px) {
  .nav { display: none; }
  .hamburger { display: flex; }

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

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

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

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

  .hero { min-height: auto; padding: calc(72px + var(--space-2xl)) 0 var(--space-2xl); }

  .hero__stats { gap: var(--space-lg); }

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

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

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

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

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

  .cta-banner { padding: var(--space-2xl) var(--space-lg); }

  .whatsapp-float { bottom: 16px; right: 16px; width: 56px; height: 56px; }

  .tabs { gap: var(--space-xs); }

  .tab-btn { padding: var(--space-sm) var(--space-md); font-size: var(--text-caption); }
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC
   ========================================================================== */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.about-value {
  text-align: center;
  padding: var(--space-xl);
}

.about-value__icon {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.about-value__title {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.about-value__text {
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   VIDEO EMBED
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.video-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.video-card__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__info {
  padding: var(--space-md);
}

.video-card__title {
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.video-card__meta {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   CERTIFICATION BADGE
   ========================================================================== */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.cert-badge__icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: white;
}

/* ==========================================================================
   MAP
   ========================================================================== */
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

@media (max-width: 639px) {
  .map-container iframe { height: 250px; }
}

/* ==========================================================================
   PHOTO GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-md);
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--color-text-inverse);
  font-size: var(--text-small);
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item__caption {
  opacity: 1;
}

/* Masonry-style for mixed aspect ratios */
.gallery-masonry {
  columns: 3;
  column-gap: var(--space-md);
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-md);
  aspect-ratio: auto;
}

.gallery-masonry .gallery-item img {
  height: auto;
}

@media (max-width: 1023px) {
  .gallery-masonry { columns: 2; }
}

@media (max-width: 639px) {
  .gallery-masonry { columns: 1; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Photo with text layout */
.photo-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.photo-text-grid.reverse { direction: rtl; }
.photo-text-grid.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .photo-text-grid { grid-template-columns: 1fr; }
}

/* Flyer card */
.flyer-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  background: var(--color-surface);
}

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

.flyer-card img {
  width: 100%;
  height: auto;
  display: block;
}

.flyer-card__info {
  padding: var(--space-md);
}

.flyer-card__title {
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.flyer-card__meta {
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  cursor: pointer;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Classroom photo row */
.classroom-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.classroom-photos .gallery-item {
  aspect-ratio: 3/4;
}

/* ==========================================================================
   PROGRAM DETAIL CARDS (Formations page)
   ========================================================================== */
.program-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.program-card__header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--space-xl);
  color: var(--color-text-inverse);
}

.program-card__title {
  font-size: var(--text-h3);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-xs);
}

.program-card__duration {
  font-size: var(--text-small);
  opacity: 0.85;
}

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

.program-card__desc {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.program-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.program-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-text-secondary);
}

.program-card__feature::before {
  content: '✓';
  color: var(--color-primary);
  font-weight: 700;
}
