/* ============================================================= */
/*  Blooming Kids Phonics — styles.css                           */
/*  Sections: tokens · base · layout · buttons · header · hero · */
/*  cards · program · why-us · steps · gallery · facts · faq ·   */
/*  contact · footer · lightbox · animations · responsive        */
/* ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bloom-sunshine: #FFD93D;
  --bloom-coral:    #FF6B6B;
  --bloom-orange:   #FF9A3C;
  --bloom-teal:     #4ECDC4;
  --bloom-sky:      #45B7D1;
  --bloom-purple:   #A29BFE;
  --bloom-green:    #55EFC4;
  --bloom-pink:     #FD79A8;

  --bg-cream: #FFFBF0;
  --bg-card:  #FFFFFF;
  --bg-dark:  #2D3436;

  --text-dark:  #2D3436;
  --text-body:  #4A4A5A;
  --text-muted: #888899;
  --text-white: #FFFFFF;

  --grad-hero:        linear-gradient(135deg, #FF6B6B 0%, #FF9A3C 45%, #FFD93D 100%);
  --grad-section-cool: linear-gradient(160deg, #E8F8FF 0%, #F0E8FF 60%, #E8FFF8 100%);
  --grad-section-warm: linear-gradient(160deg, #FFF8E8 0%, #FFE8F0 60%, #FFF0E8 100%);
  --grad-card-blue:   linear-gradient(135deg, #45B7D1 0%, #4ECDC4 100%);
  --grad-card-purple: linear-gradient(135deg, #A29BFE 0%, #FD79A8 100%);
  --grad-card-green:  linear-gradient(135deg, #55EFC4 0%, #45B7D1 100%);
  --grad-card-warm:   linear-gradient(135deg, #FF9A3C 0%, #FFD93D 100%);
  --grad-coral:       linear-gradient(135deg, #FF6B6B 0%, #FF9A3C 100%);
  --grad-teal:        linear-gradient(135deg, #4ECDC4 0%, #45B7D1 100%);
  --grad-purplepink:  linear-gradient(135deg, #A29BFE 0%, #FD79A8 100%);
  --grad-footer:      linear-gradient(135deg, #2D3436 0%, #4A4A5A 100%);

  --shadow-card:  0 8px 32px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 48px rgba(0,0,0,0.14);
  --shadow-btn:   0 4px 16px rgba(255,107,107,0.35);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-pill: 999px;

  --header-h: 76px;
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-cream);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Fredoka', cursive; color: var(--text-dark); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.25; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p  { font-size: 1.05rem; line-height: 1.75; color: var(--text-body); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* The [hidden] attribute must always win over component display rules below */
[hidden] { display: none !important; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--bloom-coral); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-weight: 700; z-index: 2000; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Visible focus everywhere */
:focus-visible { outline: 3px solid var(--bloom-sky); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

.section { padding: clamp(60px, 9vw, 110px) 0; position: relative; }
.section-cool  { background: var(--grad-section-cool); }
.section-warm  { background: var(--grad-section-warm); }
.section-cream { background: var(--bg-cream); }

.section-intro { max-width: 760px; margin: 0 auto clamp(36px, 6vw, 60px); text-align: center; }
.section-intro h2 { margin-bottom: 18px; }
.section-intro p { margin-bottom: 14px; }

.pill-badge {
  display: inline-block; background: rgba(255,255,255,.7);
  color: var(--bloom-coral); font-weight: 800; font-size: .9rem;
  padding: 8px 18px; border-radius: var(--radius-pill); margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: 'Fredoka', cursive; font-weight: 600; font-size: 1.05rem;
  padding: 14px 28px; border-radius: var(--radius-pill);
  transition: transform .2s, box-shadow .2s, background .3s, color .3s;
}
.btn-cta { background: var(--grad-hero); color: #fff; box-shadow: var(--shadow-btn); }
.btn-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow-hover); }
.btn-cta:active { transform: scale(.98); }
.btn-block { width: 100%; margin-top: 8px; }

.btn-outline { border: 2px solid currentColor; color: var(--bloom-coral); background: transparent; }
.btn-outline:hover { background: var(--bloom-coral); color: #fff; }
.hero .btn-outline { color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--bloom-coral); }
.btn-dark-outline { color: var(--bloom-coral); }

.btn-ghost { border: 2px solid var(--bloom-coral); color: var(--bloom-coral); background: transparent; }
.btn-ghost:hover { background: var(--grad-hero); border-color: transparent; color: #fff; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.08); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: 'Fredoka', cursive; }
.logo-line-1 { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.logo-line-2 { font-size: .85rem; font-weight: 600; color: var(--bloom-coral); }

.main-nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-link { font-weight: 700; color: var(--text-body); position: relative; padding: 6px 0; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--bloom-coral); border-radius: 3px; transition: width .25s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta { flex-shrink: 0; padding: 11px 22px; font-size: 1rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.hamburger span { width: 26px; height: 3px; background: var(--text-dark); border-radius: 3px; transition: .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-close { display: none; position: absolute; top: 18px; right: 18px; color: var(--text-dark); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--grad-hero);
  padding: clamp(60px, 10vw, 120px) 0 90px; color: #fff;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.18); filter: blur(40px); z-index: 0;
}
.hero::before { width: 340px; height: 340px; top: -120px; right: -80px; }
.hero::after  { width: 300px; height: 300px; bottom: -120px; left: -100px; }

.float-letters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.float-letter {
  position: absolute; top: var(--top); left: var(--left);
  font-family: 'Fredoka', cursive; font-size: var(--size); color: rgba(255,255,255,.16);
  animation: float var(--dur) ease-in-out var(--delay) infinite;
}

.hero-inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr;
  gap: 40px; align-items: center;
}
.hero-text .pill-badge { background: rgba(255,255,255,.25); color: #fff; }
.hero-text h1 { color: #fff; margin-bottom: 22px; text-shadow: 0 3px 14px rgba(0,0,0,.12); }
.hero-sub { color: rgba(255,255,255,.95); font-size: 1.2rem; max-width: 540px; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero illustration */
.hero-illustration { display: flex; justify-content: center; }
.scene { position: relative; width: min(420px, 90%); aspect-ratio: 1 / .85; }
.scene-book { position: absolute; top: 18%; left: 0; width: 100%; filter: drop-shadow(0 14px 24px rgba(0,0,0,.2)); }
.scene-blocks { position: absolute; top: 2%; right: 6%; display: flex; gap: 8px; }
.abc-block {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  font-family: 'Fredoka', cursive; font-size: 1.5rem; color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.block-a { background: var(--bloom-coral); transform: rotate(-8deg); }
.block-b { background: var(--bloom-teal); transform: rotate(4deg) translateY(-6px); }
.block-c { background: var(--bloom-purple); transform: rotate(10deg); }
.scene-flower { position: absolute; bottom: -4%; left: 8%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.15)); }
.flower-head { transform-origin: 40px 38px; animation: grow 3.5s ease-in-out infinite; }
.sparkle { position: absolute; font-size: 1.5rem; animation: twinkle 2.5s ease-in-out infinite; }
.sparkle-1 { top: 6%;  left: 4%;  animation-delay: 0s; }
.sparkle-2 { top: 40%; right: 2%; animation-delay: .8s; }
.sparkle-3 { bottom: 18%; right: 24%; animation-delay: 1.4s; }

.scroll-indicator {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.9); z-index: 1; animation: bounce 1.8s ease-in-out infinite;
}

/* ---------- 7. Info cards (what-is-phonics) ---------- */
.card-grid { display: grid; gap: 22px; }
.card-grid-2x2 { grid-template-columns: 1fr; }
.info-card {
  color: #fff; padding: 30px 26px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); transition: transform .25s, box-shadow .25s;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.info-card h3 { color: #fff; margin: 14px 0 8px; }
.info-card p { color: rgba(255,255,255,.95); font-size: 1rem; }
.card-icon { font-size: 2.6rem; }

.grad-blue { background: var(--grad-card-blue); }
.grad-purple { background: var(--grad-card-purple); }
.grad-green { background: var(--grad-card-green); }
.grad-warm { background: var(--grad-card-warm); }
.grad-coral { background: var(--grad-coral); }
.grad-teal { background: var(--grad-teal); }
.grad-purplepink { background: var(--grad-purplepink); }

.callout-banner {
  margin-top: 44px; background: var(--bloom-sunshine); color: var(--text-dark);
  padding: 28px 34px; border-radius: var(--radius-md); text-align: center;
  box-shadow: var(--shadow-card);
}
.callout-banner p { color: var(--text-dark); font-size: 1.2rem; font-weight: 700; font-style: italic; }
.callout-banner cite { display: block; margin-top: 12px; font-size: .95rem; color: #6b5d1f; font-style: normal; font-weight: 700; }

/* ---------- 8. Program levels ---------- */
.level-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.level-card {
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.level-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.level-top { padding: 30px 26px; color: #fff; text-align: center; }
.level-icon { font-size: 2.8rem; display: block; }
.level-top h3 { color: #fff; margin: 8px 0 4px; }
.level-age { font-weight: 700; opacity: .95; }
.level-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.level-body ul { display: grid; gap: 10px; margin-bottom: 20px; flex: 1; }
.level-body li { padding-left: 26px; position: relative; font-size: 1rem; }
.level-body li::before { content: '🌟'; position: absolute; left: 0; font-size: .9rem; }
.level-link { font-family: 'Fredoka', cursive; font-weight: 600; color: var(--bloom-coral); }
.level-link:hover { text-decoration: underline; }

.highlight-strip {
  margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 20px;
  background: var(--bg-card); padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.highlight-item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.highlight-icon { font-size: 2.2rem; }
.highlight-item strong { font-family: 'Fredoka', cursive; color: var(--text-dark); font-size: 1.15rem; }
.highlight-item span { color: var(--text-muted); }

/* ---------- 9. Why us ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center;
  margin-bottom: 50px;
}
.illus-card {
  border-radius: var(--radius-lg); aspect-ratio: 16 / 10; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  box-shadow: var(--shadow-card);
}
.illus-emoji { font-size: clamp(2.5rem, 7vw, 4rem); }
.illus-stars, .illus-chart { font-size: 2rem; }
.feature-text h3 { margin-bottom: 12px; }

.stats-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.stat-card {
  color: #fff; border-radius: var(--radius-pill); padding: 26px 16px; text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-number { display: block; font-family: 'Fredoka', cursive; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; }
.stat-label { font-weight: 700; font-size: .95rem; opacity: .95; }
.stats-note { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- 10. How it works (steps) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 30px; counter-reset: step; }
.step { background: var(--bg-card); padding: 30px 24px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); text-align: center; position: relative; }
.step-circle {
  width: 56px; height: 56px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  font-family: 'Fredoka', cursive; font-size: 1.6rem; margin: 0 auto 6px; box-shadow: var(--shadow-card);
}
.step-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.step h3 { margin-bottom: 8px; }

/* ---------- 11. Gallery ---------- */
.section-dotgrid {
  background:
    radial-gradient(circle, rgba(162,155,254,.18) 1.5px, transparent 1.5px) 0 0 / 22px 22px,
    var(--bg-cream);
}
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
.gallery-item {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--grad, #eee); box-shadow: var(--shadow-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.04); }
.gallery-placeholder { width: 100%; height: 100%; min-height: 140px; background: var(--grad); display: flex; align-items: center; justify-content: center; transition: transform .4s ease; }
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }
.placeholder-icon { font-size: 44px; opacity: .75; pointer-events: none; }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background .3s ease; border-radius: 16px; }
.gallery-item:hover .gallery-overlay, .gallery-item:focus .gallery-overlay { background: rgba(0,0,0,.28); }
.gallery-overlay svg { opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; }
.gallery-item:hover .gallery-overlay svg, .gallery-item:focus .gallery-overlay svg { opacity: 1; transform: scale(1); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent); color: #fff;
  font-size: 12px; font-weight: 800; border-radius: 0 0 16px 16px;
  transform: translateY(100%); transition: transform .3s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus .gallery-caption { transform: translateY(0); }
.gallery-more { text-align: center; margin-top: 30px; }
/* Video tile ▶ badge */
.gallery-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center; padding-left: 2px;
}

/* ---------- 12. Facts ---------- */
.facts-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.fact-card {
  background: #fff; padding: 26px; border-radius: var(--radius-md);
  border-left: 6px solid var(--bloom-coral); box-shadow: var(--shadow-card);
}
.fact-card h3 { margin-bottom: 10px; }
.fact-card p { font-size: 1rem; }
.accent-coral  { border-left-color: var(--bloom-coral); }
.accent-teal   { border-left-color: var(--bloom-teal); }
.accent-purple { border-left-color: var(--bloom-purple); }
.accent-sky    { border-left-color: var(--bloom-sky); }
.accent-green  { border-left-color: var(--bloom-green); }
.accent-pink   { border-left-color: var(--bloom-pink); }

/* ---------- 13. FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; border-left: 6px solid transparent; transition: border-color .25s; }
.faq-item.open { border-left-color: var(--bloom-coral); }
.faq-q-wrap { margin: 0; }
.faq-question {
  width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 24px; font-family: 'Fredoka', cursive; font-size: 1.1rem;
  color: var(--text-dark); font-weight: 600;
}
.faq-toggle { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; background: var(--bloom-coral); border-radius: 2px; transition: transform .3s; }
.faq-toggle::before { top: 50%; left: 0; width: 22px; height: 3px; transform: translateY(-50%); }
.faq-toggle::after  { left: 50%; top: 0; width: 3px; height: 22px; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-toggle::after { transform: translateX(-50%) scaleY(0); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 1rem; }

/* ---------- 14. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.contact-info, .contact-card { min-width: 0; }      /* allow grid items to shrink */
.contact-info h2 { margin-bottom: 18px; }
.contact-chips { display: grid; gap: 10px; margin: 24px 0; }
.contact-chips li { background: rgba(255,255,255,.7); padding: 12px 18px; border-radius: var(--radius-md); font-weight: 700; color: var(--text-dark); box-shadow: var(--shadow-card); overflow-wrap: anywhere; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges li { background: var(--bloom-green); color: #1c4a3c; padding: 8px 16px; border-radius: var(--radius-pill); font-weight: 800; font-size: .9rem; }

.contact-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px; }
.enquiry-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: none; padding: 0; }
.field legend, .field > label { font-weight: 700; color: var(--text-dark); font-size: .95rem; }
.req { color: var(--bloom-coral); }
.field input, .field select, .field textarea {
  font-family: 'Nunito', sans-serif; font-size: 1rem; padding: 12px 14px;
  border: 2px solid #e6e6ee; border-radius: var(--radius-sm); background: #fff; color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bloom-sky); box-shadow: 0 0 0 3px rgba(69,183,209,.18); }
.field input.invalid, .field select.invalid { border-color: var(--bloom-coral); }
.field input.invalid.shake, .field select.invalid.shake { animation: shake .4s; }
.error-msg { color: var(--bloom-coral); font-size: .85rem; font-weight: 700; min-height: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 16px; }
.radio { display: flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }

/* Success state */
.form-success { text-align: center; padding: 20px 10px; }
.form-success h3 { margin: 14px 0 10px; }
.success-check { margin: 0 auto; }
.success-circle { stroke-dasharray: 226; stroke-dashoffset: 226; animation: draw 0.6s ease forwards; }
.success-tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.4s ease 0.5s forwards; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--grad-footer); color: rgba(255,255,255,.85); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding: clamp(50px, 8vw, 80px) 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-family: 'Fredoka', cursive; font-size: 1.3rem; color: #fff; }
.footer-logo strong { color: var(--bloom-coral); }
.footer-tagline { color: rgba(255,255,255,.7); margin: 14px 0; }
.footer-socials { display: flex; gap: 14px; color: #fff; }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .2s; }
.footer-socials a:hover { background: var(--bloom-coral); }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1.1rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { margin-bottom: 8px; }
.btn-footer { color: #fff; padding: 10px 20px; font-size: .95rem; margin-top: 8px; }
.btn-footer:hover { background: #fff; color: var(--bg-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .9rem; }
.footer-bottom p { color: rgba(255,255,255,.7); text-align: center; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 16. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s ease;
}
.lightbox:not([hidden]) { opacity: 1; }
.lb-content { max-width: min(640px, 90vw); width: 100%; border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 32px 80px rgba(0,0,0,.5); }
.lb-img { width: 100%; max-height: 75vh; object-fit: cover; display: block; }
.lb-video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.lb-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lb-placeholder { width: 100%; min-height: 360px; display: flex; align-items: center; justify-content: center; font-size: 90px; }
.lb-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent); color: #fff; font-size: 14px; font-weight: 800; padding: 24px 20px 16px; text-align: center; }
.lb-counter { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); }
.lb-close, .lb-prev, .lb-next {
  position: fixed; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center;
  transition: background .2s; backdrop-filter: blur(4px);
}
.lb-close { top: 16px; right: 16px; }
.lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }

/* ---------- 17. Animations ---------- */
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-22px) rotate(var(--r)); } }
@keyframes grow { 0%,100% { transform: scale(.95); } 50% { transform: scale(1.06); } }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }
@keyframes twinkle { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--delay, 0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 18. Responsive ---------- */
@media (min-width: 480px) {
  .card-grid-2x2 { grid-template-columns: 1fr 1fr; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .highlight-strip { grid-template-columns: repeat(3, 1fr); }
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .feature-row { grid-template-columns: 1fr 1.2fr; }
  .feature-row-reverse .feature-illustration { order: 2; }

  /* Masonry gallery — explicit placements */
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; }
  .slot-a { grid-column: 1 / 3; grid-row: 1 / 2; }
  .slot-b { grid-column: 3 / 4; grid-row: 1 / 3; }
  .slot-c { grid-column: 4 / 5; grid-row: 1 / 2; }
  .slot-d { grid-column: 1 / 2; grid-row: 2 / 3; }
  .slot-e { grid-column: 2 / 3; grid-row: 2 / 3; }
  .slot-f { grid-column: 4 / 5; grid-row: 2 / 3; }
  .slot-g { grid-column: 1 / 2; grid-row: 3 / 4; }
  .slot-h { grid-column: 2 / 4; grid-row: 3 / 4; }
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}

/* Mobile nav (below 768) */
@media (max-width: 767px) {
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 auto 0; top: var(--header-h);
    background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.12);
    transform: translateY(-120%); transition: transform .35s ease; margin: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.menu-open { transform: translateY(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 28px; }
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-link { display: block; padding: 16px 0; font-size: 1.1rem; }
  .nav-close { display: block; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
