/* Lucydia School Complex — purple / white / gold */
:root {
  --purple: #5b21b6;
  --purple-dark: #3b0f75;
  --purple-deep: #2a0a58;
  --gold: #f5b921;
  --gold-dark: #d99e06;
  --ink: #1e1233;
  --muted: #6b6480;
  --bg: #faf8ff;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(43, 15, 102, 0.14);
  --font-head: 'Fredoka', 'Segoe UI', sans-serif;
  --font-body: 'Poppins', 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none; font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--purple-deep); box-shadow: 0 8px 20px rgba(245,185,33,.35); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(91,33,182,.35); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- topbar ---------- */
.topbar {
  background: var(--purple-deep); color: #e9e2f7;
  font-size: .8rem; padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }
.topbar a { color: var(--gold); font-weight: 600; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  box-shadow: 0 2px 14px rgba(43,15,102,.08);
  transition: padding .25s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.nav.shrunk .nav-inner { padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--purple); letter-spacing: .04em; }
.brand-text small { font-size: .6rem; letter-spacing: .32em; color: var(--muted); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 30px; font-size: .92rem; font-weight: 500;
  color: var(--ink); transition: .2s;
}
.nav-link:hover, .nav-link.active { color: var(--purple); background: rgba(91,33,182,.08); }
.nav-cta { margin-left: 8px; padding: 10px 20px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: var(--purple); border-radius: 3px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero slider ---------- */
.hero { position: relative; height: clamp(520px, 82vh, 720px); overflow: hidden; }
.slides, .slide { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center 25%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s ease, transform 6s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; transform: scale(1); z-index: 1; }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(42,10,88,.88) 8%, rgba(59,15,117,.55) 45%, rgba(42,10,88,.15) 80%);
}
.slide-caption {
  position: relative; z-index: 2; color: #fff;
  width: min(1180px, 92%); margin: 0 auto;
}
.slide-caption .badge {
  display: inline-block; background: rgba(245,185,33,.18); border: 1px solid var(--gold);
  color: var(--gold); padding: 6px 16px; border-radius: 30px;
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 18px;
}
.slide-caption h1 {
  font-family: var(--font-head); font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.08; font-weight: 700; margin-bottom: 18px;
  animation: capUp .9s ease both .2s;
}
.slide-caption h1 em { font-style: normal; color: var(--gold); }
.slide-caption p {
  font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 560px;
  color: #e9e2f7; margin-bottom: 28px; font-weight: 300;
  animation: capUp .9s ease both .35s;
}
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: capUp .9s ease both .5s; }
@keyframes capUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 1.7rem; cursor: pointer; backdrop-filter: blur(4px);
  transition: .25s; line-height: 1;
}
.slide-arrow:hover { background: var(--gold); color: var(--purple-deep); border-color: var(--gold); }
.slide-arrow.prev { left: 22px; }
.slide-arrow.next { right: 22px; }
.dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: .25s; }
.dot.active { background: var(--gold); transform: scale(1.25); }

/* ---------- stats ---------- */
.stats { background: var(--purple); padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { color: #fff; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: -10px; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.18); }
.stat-num, .stat-suffix { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--gold); }
.stat-label { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #d8cff0; }

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: linear-gradient(180deg, #f3efff, #faf8ff); }
.section-dark { background: var(--purple-deep); color: #fff; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; color: var(--purple); font-weight: 600; font-size: .82rem;
  letter-spacing: .22em; text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow.light { color: var(--gold); }
.section-head h2, .about-grid h2, .contact-grid h2 {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15; color: var(--ink); margin-bottom: 12px;
}
.section-dark .section-head h2 { color: #fff; }
.accent { color: var(--purple); }
.section-dark .accent, .cta-banner .accent { color: var(--gold); }
.section-head p { color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img::before {
  content: ''; position: absolute; inset: -16px auto auto -16px; width: 70%; height: 70%;
  border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-img-badge {
  position: absolute; bottom: -18px; right: 24px;
  background: var(--purple); color: #fff; border-radius: 14px;
  padding: 14px 22px; text-align: center; box-shadow: var(--shadow);
}
.about-img-badge strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--gold); display: block; }
.about-img-badge span { font-size: .72rem; letter-spacing: .06em; }
.about-grid p { color: var(--muted); margin-bottom: 18px; }
.checklist { list-style: none; margin-bottom: 26px; }
.checklist li { padding: 7px 0 7px 34px; position: relative; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: .75rem;
  display: grid; place-items: center; font-weight: 700;
}

/* ---------- programs ---------- */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 30px 20px;
  text-align: center; box-shadow: 0 6px 18px rgba(43,15,102,.07);
  border: 1px solid rgba(91,33,182,.08);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--gold); }
.card-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: grid; place-items: center; font-size: 1.7rem;
}
.card h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.card-age { color: var(--gold-dark); font-weight: 600; font-size: .8rem; margin: 4px 0 10px; }
.card p:last-child { font-size: .86rem; color: var(--muted); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 30px 26px;
  border-left: 4px solid var(--purple);
  box-shadow: 0 6px 18px rgba(43,15,102,.06);
  transition: transform .3s, border-color .3s;
}
.feature:hover { transform: translateY(-5px); border-left-color: var(--gold); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.feature h3 { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--muted); }

/* ---------- gallery ---------- */
.gallery-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter {
  padding: 9px 22px; border-radius: 30px; border: 1.5px solid rgba(255,255,255,.3);
  background: transparent; color: #d8cff0; font-family: var(--font-body);
  font-weight: 500; font-size: .88rem; cursor: pointer; transition: .25s;
}
.filter:hover, .filter.active { background: var(--gold); color: var(--purple-deep); border-color: var(--gold); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-item {
  position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4/3; transition: opacity .3s, transform .3s;
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.07); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(42,10,88,.9));
  color: #fff; font-size: .85rem; font-weight: 500;
  opacity: 0; transition: opacity .3s;
}
.g-item:hover figcaption { opacity: 1; }
.g-item.hide { display: none; }

/* ---------- testimonials ---------- */
.testimonial-slider { max-width: 720px; margin: 0 auto; position: relative; min-height: 150px; }
.t-slide {
  position: absolute; inset: 0; opacity: 0; text-align: center;
  transition: opacity .6s; pointer-events: none;
}
.t-slide.active { position: relative; opacity: 1; pointer-events: auto; }
.t-slide p { font-size: 1.15rem; font-style: italic; color: var(--ink); margin-bottom: 14px; }
.t-slide cite { color: var(--purple); font-weight: 600; font-style: normal; }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d9d2ec; cursor: pointer; transition: .25s; }
.t-dot.active { background: var(--purple); transform: scale(1.3); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.step {
  background: #fff; border-radius: var(--radius); padding: 30px 22px; text-align: center;
  box-shadow: 0 6px 18px rgba(43,15,102,.07); position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--purple-deep); font-family: var(--font-head); font-weight: 700;
  font-size: 1.3rem; display: grid; place-items: center;
}
.step h3 { font-family: var(--font-head); margin-bottom: 6px; }
.step p { font-size: .86rem; color: var(--muted); }
.step a { color: var(--purple); font-weight: 600; }
.cta-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--purple), var(--purple-dark));
  border-radius: var(--radius); padding: 36px 40px; color: #fff;
}
.cta-banner h3 { font-family: var(--font-head); font-size: 1.5rem; }
.cta-banner p { color: #d8cff0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 16px; margin-top: 24px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border-radius: 14px; padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(43,15,102,.06);
}
.contact-card > span { font-size: 1.5rem; }
.contact-card strong { font-family: var(--font-head); color: var(--purple); }
.contact-card p { font-size: .9rem; color: var(--muted); }
.contact-card a { color: var(--purple); font-weight: 600; }
.contact-form-wrap {
  background: #fff; border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow); border-top: 5px solid var(--gold);
}
.contact-form h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 18px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 16px; margin-bottom: 14px;
  border: 1.5px solid #e4def2; border-radius: 10px;
  font-family: var(--font-body); font-size: .92rem; color: var(--ink);
  background: #fbfaff; outline: none; transition: border-color .2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--purple); }
.form-note { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--purple-deep); color: #cfc6e8; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding: 60px 0 40px;
}
.footer h4 { font-family: var(--font-head); color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer a { display: block; padding: 4px 0; font-size: .9rem; transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer p { font-size: .88rem; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #b3a6d9; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: .8rem; color: #a99ac9;
  width: min(1180px, 92%); margin: 0 auto;
}
.footer-bar a { color: var(--gold); display: inline; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,5,45,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
}
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ---------- misc ---------- */
.to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--purple); color: #fff; font-size: 1.3rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: .3s; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hamburger { display: flex; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--purple-deep); flex-direction: column; align-items: stretch;
    padding: 90px 26px 30px; gap: 4px; z-index: 99;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .menu.open { transform: none; }
  .menu .nav-link { color: #e9e2f7; padding: 13px 16px; }
  .menu .nav-link:hover, .menu .nav-link.active { background: rgba(245,185,33,.15); color: var(--gold); }
  .nav-cta { margin: 14px 0 0; text-align: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .stat + .stat::before { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-arrow { display: none; }
  .topbar-inner { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .features, .gallery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta-banner { text-align: center; justify-content: center; }
  .section { padding: 64px 0; }
}
