/* Neonate Edu Consultant — front-end theme
   Colours & fonts are injected from the admin panel into :root (see partials/head.php) */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body), system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-heading), Georgia, serif; color: var(--ink-strong); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--primary); text-decoration: none; transition: .25s; }
a:hover { color: var(--accent); }
img, video { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section.tint { background: var(--surface); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 800; color: var(--primary); background: color-mix(in oklab, var(--primary) 12%, transparent);
  padding: 7px 15px; border-radius: 99px; margin-bottom: 14px;
}
.lead { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; border-radius: 99px;
  font-weight: 700; font-size: .96rem; border: 0; cursor: pointer; font-family: inherit;
  background: var(--primary); color: #fff; transition: transform .25s, box-shadow .25s, background .25s;
  box-shadow: 0 10px 26px color-mix(in oklab, var(--primary) 32%, transparent);
}
.btn:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 16px 36px color-mix(in oklab, var(--primary) 42%, transparent); }
.btn.accent { background: var(--accent); color: #26210b; box-shadow: 0 10px 26px color-mix(in oklab, var(--accent) 38%, transparent); }
.btn.ghost { background: transparent; color: var(--ink-strong); border: 2px solid color-mix(in oklab, var(--ink-strong) 18%, transparent); box-shadow: none; }
.btn.ghost:hover { background: var(--ink-strong); color: #fff; }
.btn.light { background: #fff; color: var(--primary); }
.btn.sm { padding: 10px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.topbar { background: var(--dark); color: #cfe6e0; font-size: .82rem; padding: 9px 0; }
.topbar .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.topbar a { color: #cfe6e0; }
.topbar a:hover { color: var(--accent); }
.topbar .socials { display: flex; gap: 14px; }

.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in oklab, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-heading); font-weight: 800; font-size: 1.16rem; color: var(--ink-strong); }
.brand img { height: 46px; width: auto; }
.brand .mark { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.brand small { display: block; font-family: var(--font-body); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--ink-strong); position: relative; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.menu a:hover::after, .menu a.active::after { transform: scaleX(1); transform-origin: left; }
.menu a.is-button { background: var(--accent); color: #26210b; padding: 11px 22px; border-radius: 99px; margin-left: 8px; }
.menu a.is-button::after { display: none; }
.menu a.is-button:hover { transform: translateY(-2px); }
.burger { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--ink-strong); cursor: pointer; }
@media (max-width: 980px) {
  .burger { display: block; }
  .menu { position: fixed; inset: 0 0 0 32%; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 84px 22px; background: var(--bg); box-shadow: -20px 0 60px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .35s cubic-bezier(.4,0,.2,1); }
  .menu.open { transform: none; }
  .menu a { padding: 14px 10px; border-bottom: 1px solid var(--line); }
  .menu a.is-button { margin-top: 14px; text-align: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 86vh, 840px); display: grid; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 22s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, color-mix(in oklab, var(--dark) 92%, transparent) 12%, color-mix(in oklab, var(--dark) 55%, transparent) 62%, transparent); }
.hero-inner { position: relative; z-index: 2; padding: 96px 0; max-width: 720px; }
.hero h1 { color: #fff; }
.hero p { color: #dcece8; font-size: 1.1rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 38px; }
.hero-badges div { font-size: .84rem; color: #bcd8d1; display: flex; align-items: center; gap: 8px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; z-index: 3; translate: -50% 0; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 99px; }
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 8px; translate: -50% 0; width: 4px; height: 8px; border-radius: 4px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--dark); color: #a9cfc7; padding: 14px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: slide 26s linear infinite; font-weight: 600; letter-spacing: .05em; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; text-align: center; transition: .35s; }
.stat:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(0,0,0,.09); border-color: color-mix(in oklab, var(--primary) 35%, transparent); }
.stat b { display: block; font-family: var(--font-heading); font-size: 2.4rem; color: var(--primary); line-height: 1; }
.stat span { font-size: .86rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: .4s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-10px); box-shadow: 0 26px 54px rgba(0,0,0,.12); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.09); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--muted); font-size: .94rem; }
.card .tag { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #26210b; font-size: .72rem; font-weight: 800; padding: 6px 12px; border-radius: 99px; }
.card-link { margin-top: auto; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 7px; align-items: center; }
.card-link:hover { gap: 13px; }

.icon-badge { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 16%, transparent), color-mix(in oklab, var(--accent) 20%, transparent)); color: var(--primary); font-size: 1.5rem; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: clamp(28px, 5vw, 62px); align-items: center; }
.split-media { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.16); }
.split-media img, .split-media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .float-card { position: absolute; bottom: 18px; left: 18px; right: 18px; background: color-mix(in oklab, var(--card) 92%, transparent); backdrop-filter: blur(10px); padding: 16px 18px; border-radius: 16px; font-size: .88rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 26px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .96rem; }
.checklist li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in oklab, var(--primary) 15%, transparent); color: var(--primary); display: grid; place-items: center; font-size: .78rem; font-weight: 800; }

/* ---------- Destinations ---------- */
.dest { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 3/4; color: #fff; display: flex; align-items: flex-end; }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.dest::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,20,17,.92), rgba(4,20,17,.15) 62%); }
.dest:hover img { transform: scale(1.12); }
.dest-body { position: relative; z-index: 2; padding: 22px; }
.dest-body h3 { color: #fff; margin-bottom: 4px; }
.dest-body p { color: #cfe3de; font-size: .86rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: .45s; }
.dest:hover .dest-body p { max-height: 90px; opacity: 1; }

/* ---------- Testimonials ---------- */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -14px; right: 22px; font-family: Georgia, serif; font-size: 6rem; color: color-mix(in oklab, var(--primary) 14%, transparent); line-height: 1; }
.quote .who { display: flex; gap: 13px; align-items: center; margin-top: 18px; }
.quote .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; }
.quote .who span { font-size: .8rem; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 3px; }

/* ---------- Gallery ---------- */
.masonry { columns: 3; column-gap: 18px; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.masonry figure { break-inside: avoid; margin: 0 0 18px; border-radius: 18px; overflow: hidden; position: relative; cursor: zoom-in; }
.masonry img, .masonry video { width: 100%; transition: transform .7s, filter .5s; }
.masonry figure:hover img { transform: scale(1.07); filter: saturate(1.15); }
.masonry figcaption { position: absolute; inset: auto 0 0 0; padding: 26px 16px 14px; color: #fff; font-size: .85rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transition: .35s; }
.masonry figure:hover figcaption { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,14,12,.94); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; animation: fade .3s ease; }
.lightbox img, .lightbox video { max-height: 86vh; border-radius: 14px; }
.lightbox .close { position: absolute; top: 18px; right: 24px; font-size: 2.2rem; color: #fff; cursor: pointer; background: none; border: 0; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin-bottom: 12px; overflow: hidden; }
.acc button { width: 100%; text-align: left; background: none; border: 0; padding: 18px 22px; font: 600 1rem/1.5 var(--font-body); color: var(--ink-strong); cursor: pointer; display: flex; justify-content: space-between; gap: 14px; }
.acc .ans { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc .ans div { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }
.acc.open .ans { max-height: 420px; }
.acc.open button span.ico { transform: rotate(45deg); }
.acc button span.ico { transition: .3s; color: var(--primary); font-size: 1.4rem; line-height: 1; }

/* ---------- Forms ---------- */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 38px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-strong); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 13px; border: 1.5px solid var(--line);
  background: var(--bg); font: inherit; font-size: .96rem; color: var(--ink); transition: .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 14%, transparent); }
.field textarea { min-height: 130px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .two { grid-template-columns: 1fr; } }
.alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: .93rem; border: 1px solid; }
.alert.success { background: color-mix(in oklab, #14a37f 12%, transparent); border-color: #14a37f55; color: #0b6c53; }
.alert.error { background: color-mix(in oklab, #d64545 12%, transparent); border-color: #d6454555; color: #a12727; }
.alert.info { background: color-mix(in oklab, var(--accent) 14%, transparent); border-color: color-mix(in oklab, var(--accent) 40%, transparent); color: #7a5a00; }

/* ---------- Payment ---------- */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pay-methods label { border: 2px solid var(--line); border-radius: 16px; padding: 16px; text-align: center; cursor: pointer; transition: .25s; font-weight: 700; font-size: .9rem; display: block; }
.pay-methods input { position: absolute; opacity: 0; }
.pay-methods input:checked + label { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 8%, transparent); transform: translateY(-3px); }
.pay-methods .m { display: block; font-size: 1.7rem; margin-bottom: 6px; }
.bank-box { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 18px; white-space: pre-line; font-size: .92rem; }

/* ---------- CTA / Footer ---------- */
.cta-band { background: linear-gradient(120deg, var(--dark), color-mix(in oklab, var(--primary) 70%, var(--dark))); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 62px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe6e0; max-width: 60ch; margin-inline: auto; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%); top: -160px; right: -120px; animation: floaty 9s ease-in-out infinite alternate; }
@keyframes floaty { to { transform: translate(-30px, 40px) scale(1.15); } }

.site-footer { background: var(--dark); color: #a9c8c1; padding: 64px 0 0; margin-top: 0; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #a9c8c1; font-size: .93rem; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--accent); transform: translateX(4px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding: 20px 0; font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: .9rem; }

.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37,211,102,.45); animation: pulse 2.4s infinite; }
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: clamp(64px, 11vw, 130px) 0 clamp(48px, 8vw, 88px); color: #fff; overflow: hidden; background: var(--dark); }
.page-hero img, .page-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #cfe6e0; }
.crumbs { font-size: .84rem; color: #a9c8c1; margin-bottom: 10px; }
.crumbs a { color: var(--accent); }

.prose { font-size: 1.02rem; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose img { border-radius: 18px; margin: 1.4em 0; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"] { transform: scale(.9); }
[data-reveal].in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-media img, .hero-media video { animation: none; }
}
.no-anim [data-reveal] { opacity: 1; transform: none; }
