/* ==========================================================================
   BUILDING BLOCKS ACADEMY - STYLESHEET
   Early Childhood Development (ECD) Center - Sinoville, Pretoria
   ========================================================================== */

/* 1. GOOGLE FONTS & IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* 2. DESIGN SYSTEM TOKENS (CSS VARIABLES) */
:root {
  /* Color Palette (Curated pastel blocks & readable slate) */
  --bg-primary: #FDFBF7;       /* Warm Cream */
  --bg-secondary: #F7F3EA;     /* Soft Warm Sand */
  --text-main: #2D3748;        /* Deep Slate */
  --text-muted: #4A5568;       /* Slate Gray */
  --text-light: #718096;       /* Light Slate */
  
  /* Brand Pastel Blocks */
  --color-coral: #F08A75;      /* Warm Coral Accent */
  --color-coral-light: #FCE8E4;
  --color-mint: #A2D2C8;       /* Soft Mint Accent */
  --color-mint-light: #EBF6F4;
  --color-gold: #F6D087;       /* Gentle Gold Accent */
  --color-gold-light: #FAF4E4;
  --color-blue: #95C1D8;       /* Sky Blue Accent */
  --color-blue-light: #EBF2F6;

  /* UI Interactive Colors */
  --primary: var(--color-coral);
  --primary-hover: #E27660;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  
  /* Glassmorphism */
  --glass-bg: rgba(253, 251, 247, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-blur: 12px;

  /* Typography */
  --font-headers: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(45, 55, 72, 0.05), 0 2px 4px -1px rgba(45, 55, 72, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(45, 55, 72, 0.08), 0 4px 6px -2px rgba(45, 55, 72, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(45, 55, 72, 0.12), 0 10px 10px -5px rgba(45, 55, 72, 0.06);

  /* Border Radii (Friendly rounded block feel) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headers);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

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

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

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* 4. UTILITIES & REUSABLE LAYOUTS */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--color-coral-light);
  color: var(--color-coral);
  border-radius: var(--radius-pill);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(240, 138, 117, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 138, 117, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--text-main);
}

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

.btn-mint {
  background-color: var(--color-mint);
  color: var(--text-main);
  box-shadow: 0 4px 14px rgba(162, 210, 200, 0.4);
}

.btn-mint:hover {
  background-color: #8fc2b8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(162, 210, 200, 0.5);
}

/* 5. HEADER / NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}

.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-headers);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-headers);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-mint);
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-main);
  transition: var(--transition-normal);
  border-radius: var(--radius-pill);
}

/* 6. HERO SECTION */
.hero {
  position: relative;
  padding: 180px 0 100px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: var(--color-mint-light);
  color: #2D6A5F;
  border-radius: var(--radius-pill);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--color-coral);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-title span {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero-title span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--color-gold-light);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-container {
  width: 100%;
  max-width: 480px;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 12px solid var(--white);
  transform: rotate(-2deg);
  transition: var(--transition-slow);
}

.hero-img-container:hover {
  transform: rotate(0deg) scale(1.02);
}

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

/* Floating Elements */
.floating-shape {
  position: absolute;
  z-index: -1;
  opacity: 0.6;
}

.shape-1 {
  top: 10%;
  right: -5%;
  width: 150px;
  height: 150px;
  background-color: var(--color-gold-light);
  border-radius: 40% 60% 60% 40% / 40% 50% 50% 60%;
  animation: float-slow 12s infinite alternate ease-in-out;
}

.shape-2 {
  bottom: 5%;
  left: -5%;
  width: 200px;
  height: 200px;
  background-color: var(--color-mint-light);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: float-slow 16s infinite alternate-reverse ease-in-out;
}

.floating-block {
  position: absolute;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float-card 6s infinite alternate ease-in-out;
}

.fb-1 {
  top: 15%;
  left: -20px;
}

.fb-2 {
  bottom: 15%;
  right: -20px;
  animation-delay: -3s;
}

.fb-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.fb-icon.coral { background-color: var(--color-coral-light); color: var(--color-coral); }
.fb-icon.blue { background-color: var(--color-blue-light); color: var(--color-blue); }

.fb-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
}

.fb-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 7. ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--white);
}

.about-img-box.large {
  grid-row: span 2;
  border-radius: var(--radius-lg);
  transform: translateY(20px);
}

.about-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-item {
  background-color: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid var(--color-mint);
  transition: var(--transition-normal);
}

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

.stat-number {
  font-family: var(--font-headers);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.about-list-icon {
  width: 28px;
  height: 28px;
  background-color: var(--color-mint-light);
  color: #2D6A5F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.about-list-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-list-text p {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* 8. PROGRAMS SECTION (CRECHE / TODDLER / PRESCHOOL) */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.program-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
}

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

/* Themes per program */
.program-card.creche::before { background-color: var(--color-coral); }
.program-card.creche .program-age { background-color: var(--color-coral-light); color: var(--color-coral); }
.program-card.creche .program-icon { background-color: var(--color-coral-light); color: var(--color-coral); }

.program-card.toddler::before { background-color: var(--color-gold); }
.program-card.toddler .program-age { background-color: var(--color-gold-light); color: #B38627; }
.program-card.toddler .program-icon { background-color: var(--color-gold-light); color: #B38627; }

.program-card.preschool::before { background-color: var(--color-blue); }
.program-card.preschool .program-age { background-color: var(--color-blue-light); color: var(--color-blue); }
.program-card.preschool .program-icon { background-color: var(--color-blue-light); color: var(--color-blue); }

.program-header {
  padding: 32px 32px 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.program-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.program-age {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.8rem;
}

.program-body {
  padding: 0 32px 32px 32px;
  flex-grow: 1;
}

.program-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.program-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

.program-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
}

.program-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.program-feat-item i {
  font-size: 1rem;
}

.program-card.creche .program-feat-item i { color: var(--color-coral); }
.program-card.toddler .program-feat-item i { color: var(--color-gold); }
.program-card.preschool .program-feat-item i { color: var(--color-blue); }

/* 9. FEATURES & ECD STANDARDS */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-box {
  background-color: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  text-align: center;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-mint);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.fb-mint { background-color: var(--color-mint-light); color: #2D6A5F; }
.fb-coral { background-color: var(--color-coral-light); color: var(--color-coral); }
.fb-gold { background-color: var(--color-gold-light); color: #B38627; }
.fb-blue { background-color: var(--color-blue-light); color: var(--color-blue); }

.feature-box h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 10. CALL TO ACTION BANNER */
.cta-banner {
  background: linear-gradient(135deg, #A2D2C8 0%, #76B3A6 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: 80px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* 11. CONTACT & ENROLLMENT FORM */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.contact-card-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.info-items-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-mint-light);
  color: #2D6A5F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.info-text a:hover {
  color: var(--color-coral);
}

/* Interactive Map Container */
.map-container {
  height: 250px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.map-placeholder {
  text-align: center;
  padding: 24px;
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--color-coral);
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

.map-placeholder h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.map-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Inquiry Form */
.form-panel {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-panel h3 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.form-panel > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.9375rem;
}

.enrollment-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-headers);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-coral);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(240, 138, 117, 0.15);
}

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

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-coral);
}

/* 12. SUCCESS DIALOG / STATE */
.success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 55, 72, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.success-overlay.active {
  display: flex;
  opacity: 1;
}

.success-modal {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: var(--color-mint-light);
  color: #2D6A5F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px auto;
}

.success-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.success-message {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* 13. FOOTER */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-icon:hover {
  background-color: var(--color-coral);
  color: var(--white);
  border-color: var(--color-coral);
  transform: translateY(-2px);
}

.footer-nav-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--color-coral);
  padding-left: 4px;
}

.footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.footer-contact-item i {
  color: var(--color-coral);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-link {
  font-size: 0.875rem;
  color: var(--text-light);
}

.footer-legal-link:hover {
  color: var(--color-coral);
}

/* 14. ANIMATIONS */
@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, 15px) scale(1.05); }
  100% { transform: translate(-10px, -5px) scale(0.98); }
}

@keyframes float-card {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* 15. RESPONSIVE DESIGN (MEDIA QUERIES) */

/* 1024px Grid adjustments */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .about-grid {
    gap: 40px;
  }
  
  .programs-grid {
    gap: 20px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    gap: 40px;
  }
  
  .footer-grid {
    gap: 40px;
  }
}

/* 768px Mobile Navigation & Flex Column */
@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  
  .section-title {
    font-size: 2.125rem;
  }

  /* Navigation */
  .hamburger {
    display: block;
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    flex-direction: column;
    align-items: flex-start;
    padding: 120px 40px 40px 40px;
    gap: 24px;
    transition: var(--transition-slow);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-actions {
    display: none; /* Hide in mobile header, show inside mobile nav menu if needed */
  }

  /* Grid Stack layouts */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-description {
    margin: 0 auto 32px auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-img-container {
    max-width: 380px;
    height: 380px;
  }
  
  .floating-block {
    display: none; /* Hide floating cards on tablet/mobile to declutter */
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-collage {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .about-img-box.large {
    transform: none;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-info {
    text-align: center;
    align-items: center;
  }
  
  .footer-nav-col {
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-contact {
    text-align: center;
  }
  
  .footer-contact-item {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
}

/* 480px Extra Small Devices */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-img-container {
    max-width: 290px;
    height: 290px;
    border-width: 8px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-panel {
    padding: 24px;
  }
}
