/* ============================================================
   Centro Educacional Maria Zélia — v3
   Estilo inspirado em diasdosaber.com.br (Fraunces + Manrope, creme,
   hero circular com confetes + doodle de sol, faixas escuras),
   recolorido para a marca real (teal / coral / sol).
   ============================================================ */

:root {
  --bg: #FFFBF2;
  --peach: #FFF3E0;
  --paper: #FFFFFF;
  --ink: #241E1B;
  --muted: #6F6960;

  --sun: #F8B500;
  --sun-soft: #FFD66B;
  --coral: #EF4136;
  --coral-deep: #D2362C;
  --teal: #0E9B95;
  --teal-deep: #0B5E5B;
  --blue: #3E86C9;
  --dark: #07403E;          /* faixa escura (trust / contato / footer) */
  --dark-2: #052F2E;
  --wa: #25D366;

  --line: #EFE6D4;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-s: 0 8px 22px -14px rgba(60, 40, 12, .4);
  --shadow-m: 0 22px 50px -26px rgba(60, 40, 12, .5);
  --r: 22px;
  --r-lg: 30px;

  --fs-h1: clamp(2.4rem, 1.5rem + 4.6vw, 4.2rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.8vw, 3.1rem);
  --fs-body: clamp(1rem, .97rem + .18vw, 1.1rem);
  --fs-lead: clamp(1.08rem, 1rem + .5vw, 1.3rem);
  --pad-y: clamp(3.6rem, 9vw, 7rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: var(--fs-body); line-height: 1.62; overflow-x: clip; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .ff { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.05; letter-spacing: -.015em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding-block: var(--pad-y); position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.eyebrow::before { content: "✦"; font-size: .9em; color: var(--sun); }
.eyebrow.tl { color: var(--teal-deep); }
.eyebrow.on-dark { color: var(--sun-soft); }
.eyebrow.center { justify-content: center; }
.shead { max-width: 660px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.shead h2 { font-size: var(--fs-h2); margin: 12px 0 14px; }
.shead p { color: var(--muted); font-size: var(--fs-lead); }
.ink-accent { color: var(--coral); font-style: italic; }
.ink-accent.tl { color: var(--teal-deep); }

/* ---------- Buttons (pill) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1rem; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s var(--ease), filter .2s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 16px 32px -16px rgba(37, 211, 102, .8); }
.btn--cta { background: linear-gradient(120deg, var(--sun), var(--coral)); color: #fff; box-shadow: 0 16px 34px -16px rgba(239, 65, 54, .7); }
.btn--cta:hover, .btn--wa:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.6px solid var(--line); box-shadow: var(--shadow-s); }
.btn--ghost.on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--block { width: 100%; }

/* ---------- Announce bar ---------- */
.announce { background: linear-gradient(120deg, var(--sun), var(--coral)); color: #fff; text-align: center; font-size: .82rem; font-weight: 700; padding: 8px 16px; letter-spacing: .01em; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 251, 242, .88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand b { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; }
.brand b span { display: block; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-deep); margin-top: 2px; }
.nav__links { display: none; }
.nav__toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 9px; cursor: pointer; }
.nav__toggle span { width: 23px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu bottom-sheet */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(20,16,12,.5); opacity: 0; transition: opacity .35s var(--ease); }
.sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); border-radius: 26px 26px 0 0; padding: 14px 22px calc(24px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .42s var(--ease); }
.sheet.open { visibility: visible; }
.sheet.open .sheet__scrim { opacity: 1; }
.sheet.open .sheet__panel { transform: translateY(0); }
.sheet__grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 14px; }
.sheet a { display: block; padding: 15px 6px; font-size: 1.12rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: 16px; }

/* ---------- Confetti / doodle ---------- */
.dot { position: absolute; border-radius: 50%; z-index: 2; }
.doodle-sun { position: absolute; z-index: 2; color: var(--sun); }
.doodle-sun svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(1.5rem, 5vw, 3rem); padding-bottom: clamp(2.5rem, 7vw, 4rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(620px 380px at 92% -4%, rgba(248,181,0,.22), transparent 62%), radial-gradient(520px 380px at 6% 4%, rgba(14,155,149,.1), transparent 60%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; gap: 8px; }
.hero__copy { text-align: center; }
.hero h1 { font-size: var(--fs-h1); margin: 14px 0 16px; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero h1 .tl { color: var(--teal-deep); font-style: italic; }
.hero__sub { font-size: var(--fs-lead); color: var(--muted); max-width: 32ch; margin: 0 auto 24px; }
.hero__media { position: relative; width: min(78vw, 360px); margin: 8px auto 26px; aspect-ratio: 1; }
.hero__photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: var(--shadow-m); position: relative; z-index: 1; }
.hero__ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px dashed rgba(14,155,149,.4); z-index: 0; }
.hero__badge { position: absolute; right: -6px; bottom: 16px; z-index: 3; background: #fff; border-radius: 14px; box-shadow: var(--shadow-m); padding: 10px 14px; display: flex; align-items: center; gap: 9px; }
.hero__badge .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(248,181,0,.18); color: #B07C09; display: grid; place-items: center; }
.hero__badge .ic svg { width: 18px; height: 18px; }
.hero__badge b { font-size: .82rem; font-family: 'Fraunces', serif; display: block; line-height: 1.1; }
.hero__badge small { font-size: .72rem; color: var(--muted); }
.hero__cta { display: flex; flex-direction: column; gap: 12px; max-width: 380px; margin: 0 auto; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow-s); }
.chip svg { width: 16px; height: 16px; color: var(--teal); }

/* ---------- Trust strip (dark) ---------- */
.trust { background: var(--dark); color: #fff; }
.trust__in { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 30px 0; }
.trust__item { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.trust__item .ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.1); display: grid; place-items: center; margin-bottom: 4px; }
.trust__item .ic svg { width: 21px; height: 21px; color: var(--sun-soft); }
.trust__item b { display: block; font-family: 'Fraunces', serif; font-size: 1.05rem; line-height: 1.15; }
.trust__item small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; margin-top: 2px; }

/* ---------- #escola ---------- */
.escola__grid { display: grid; gap: 28px; }
.escola__txt p { color: var(--muted); margin-bottom: 14px; }
.escola__txt .quoteline { font-family: 'Fraunces', serif; font-style: italic; color: var(--teal-deep); font-size: 1.2rem; line-height: 1.45; }
.escola__ph { position: relative; }
.escola__ph .ph { aspect-ratio: 5/4; border-radius: var(--r-lg); box-shadow: var(--shadow-m); overflow: hidden; }
.escola__ph .ph img { width: 100%; height: 100%; object-fit: cover; }
.escola__ph .float { position: absolute; left: 14px; bottom: -14px; background: linear-gradient(120deg, var(--sun), var(--coral)); color: #fff; font-weight: 800; font-size: .85rem; padding: 11px 16px; border-radius: 13px; box-shadow: var(--shadow-m); display: flex; align-items: center; gap: 8px; }
.escola__ph .float svg { width: 17px; height: 17px; }

/* ---------- numbered cards ---------- */
.cards6 { display: grid; gap: 14px; }
.card6 { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-s); display: flex; gap: 15px; align-items: flex-start; }
.card6 .num { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 600; color: #fff; font-size: 1rem; }
.card6:nth-child(3n+1) .num { background: var(--coral); }
.card6:nth-child(3n+2) .num { background: var(--teal); }
.card6:nth-child(3n) .num { background: var(--sun); color: var(--ink); }
.card6 h3 { font-size: 1.16rem; margin-bottom: 4px; }
.card6 p { color: var(--muted); font-size: .98rem; }

/* ---------- quote ---------- */
.quote { background: var(--peach); }
.quote blockquote { max-width: 20ch; margin: 0 auto; text-align: center; font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.4rem); line-height: 1.3; }
.quote .src { display: block; margin-top: 18px; font-family: 'Manrope', sans-serif; font-style: normal; font-weight: 800; font-size: .85rem; letter-spacing: .04em; color: var(--coral); text-transform: uppercase; }

/* ---------- pedagogia grid ---------- */
.peda { display: grid; gap: 14px; }
.peda__c { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-s); }
.peda__c .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; }
.peda__c .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.peda__c h3 { font-size: 1.1rem; margin-bottom: 5px; }
.peda__c p { color: var(--muted); font-size: .94rem; }
.bg-sun { background: rgba(248,181,0,.16); color: #B07C09; }
.bg-teal { background: rgba(14,155,149,.13); color: var(--teal-deep); }
.bg-coral { background: rgba(239,65,54,.1); color: var(--coral-deep); }
.bg-blue { background: rgba(62,134,201,.12); color: var(--blue); }

/* ---------- inclusão feature ---------- */
.feature__ph { position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-m); margin-bottom: 26px; }
.feature__ph img { width: 100%; height: 100%; object-fit: cover; }
.feature__ph .scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,94,91,.5), transparent 55%); }
.feature h2 { font-size: var(--fs-h2); margin: 12px 0 14px; }
.feature p { color: var(--muted); margin-bottom: 14px; }
.feature .hl { color: var(--teal-deep); font-family: 'Fraunces', serif; font-style: italic; font-size: 1.18rem; line-height: 1.4; }

/* ---------- galeria ---------- */
.galeria { background: var(--peach); }
.track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 12px; margin-inline: -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.track::-webkit-scrollbar { display: none; }
.track .slide { flex: 0 0 84%; max-width: 460px; scroll-snap-align: center; aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-m); position: relative; }
.track .slide img { width: 100%; height: 100%; object-fit: cover; }
.track__nav { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.track__arrow { width: 50px; height: 50px; border-radius: 50%; border: 1.6px solid var(--teal); background: var(--paper); color: var(--teal-deep); cursor: pointer; display: grid; place-items: center; transition: .2s var(--ease); }
.track__arrow:active { transform: scale(.94); }
.track__arrow:disabled { opacity: .3; }
.track__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--shadow-s); overflow: hidden; }
.faq__q { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; padding: 18px 48px 18px 20px; position: relative; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.06rem; color: var(--ink); min-height: 56px; }
.faq__q::after { content: ""; position: absolute; right: 20px; top: 24px; width: 11px; height: 11px; border-right: 2.4px solid var(--teal); border-bottom: 2.4px solid var(--teal); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq__item.open .faq__q::after { transform: rotate(-135deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__item.open .faq__a { max-height: 320px; }
.faq__a p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- contato (dark) ---------- */
.contato { background: var(--dark); color: #fff; text-align: center; position: relative; overflow: hidden; }
.contato::before { content: ""; position: absolute; inset: 0; background: radial-gradient(460px 280px at 50% 0%, rgba(248,181,0,.2), transparent 62%); }
.contato__in { position: relative; z-index: 1; }
.contato h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.contato h2 em { font-style: italic; color: var(--sun-soft); }
.contato p { color: rgba(255,255,255,.85); max-width: 34ch; margin: 0 auto 26px; }
.contato__btns { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { background: var(--dark-2); color: rgba(255,255,255,.8); padding: 52px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer__brand img { width: 42px; height: 42px; border-radius: 50%; }
.footer__brand b { font-family: 'Fraunces', serif; color: #fff; }
.footer p { font-size: .94rem; margin-bottom: 18px; }
.footer__col { margin-top: 28px; }
.footer h4 { font-family: 'Fraunces', serif; color: #fff; margin-bottom: 12px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a, .footer__list span { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.footer__list svg { width: 18px; height: 18px; flex: none; color: var(--sun-soft); margin-top: 3px; }
.foot__bar { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.55); display: grid; gap: 6px; }
.foot__bar a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; display: inline-flex; align-items: center; gap: 9px; background: var(--wa); color: #fff; font-weight: 800; font-size: .95rem; padding: 13px 18px; border-radius: 999px; box-shadow: 0 16px 34px -12px rgba(37, 211, 102, .7); transition: transform .2s var(--ease); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float .lbl { display: none; }
@media (min-width: 720px) { .wa-float .lbl { display: inline; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.vis { opacity: 1; transform: none; }

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 760px) {
  .trust__in { grid-template-columns: repeat(4, 1fr); padding: 34px 0; }
  .trust__item { flex-direction: row; text-align: left; align-items: center; gap: 12px; }
  .trust__item .ic { margin-bottom: 0; }
  .cards6 { grid-template-columns: 1fr 1fr; }
  .peda { grid-template-columns: 1fr 1fr; }
  .footer__cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
  .foot__bar { grid-template-columns: 1fr auto; }
  .track .slide { flex-basis: 48%; }
}

@media (min-width: 960px) {
  .nav__links { display: flex; align-items: center; gap: 28px; }
  .nav__links a { font-weight: 700; font-size: .95rem; color: var(--ink); position: relative; }
  .nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--sun); transition: width .3s var(--ease); }
  .nav__links a:hover::after { width: 100%; }
  .nav__links .btn { min-height: 44px; padding: 0 22px; font-size: .92rem; }
  .nav__toggle { display: none; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero__copy { text-align: left; }
  .hero__sub { margin-left: 0; }
  .hero__cta { margin: 0; flex-direction: row; max-width: none; }
  .hero__chips { justify-content: flex-start; }
  .hero__media { width: min(40vw, 440px); margin: 0; }
  .escola__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
  .peda { grid-template-columns: repeat(4, 1fr); }
  .cards6 { grid-template-columns: repeat(3, 1fr); }
  .feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .feature__ph { margin-bottom: 0; order: 2; }
  .track .slide { flex-basis: 32%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
