/* ==========================================================================
   CEUV — Colégio Era Uma Vez
   Design system: storybook-playful, flat sticker UI, real photography.
   Built with flex layouts only (Elementor-portable: flex containers,
   headings, text, images, buttons, icon boxes, testimonials, accordion).
   ========================================================================== */

/* ---------- Self-hosted fonts (Google Fonts, Latin subset only) ---------- */
@font-face {
  font-family: "Mochiy Pop One";
  src: url("../fonts/mochiy-pop-one-v12-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-v32-latin-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors, sampled from the CEUV logo */
  --gold: #deab35;
  --gold-dark: #b98a1f;
  --pink: #e14b7c;
  --pink-dark: #c53764;
  --purple: #7f5ca4;
  --purple-dark: #664a87;
  --teal: #38ada6;
  --teal-dark: #2a8983;

  /* Neutrals */
  --ink: #3a3242;
  --body-text: #5b5564;
  --muted: #8a8393;
  --paper: #fffdf8;
  --cream: #fff6e8;
  --line: #ece3d6;
  --white: #ffffff;

  /* Type */
  --font-display: "Mochiy Pop One", "Baloo 2", cursive;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Shape & spacing */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --border-thick: 3px;
  --max-width: 1240px;
  --section-pad: 100px;
  --section-pad-mobile: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-transform: uppercase;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-pad) 0; }
@media (max-width: 900px) {
  section { padding: var(--section-pad-mobile) 0; }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-dark);
  background: #fde6ec;
  border: var(--border-thick) solid var(--pink);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.eyebrow.gold { color: var(--gold-dark); background: #fbf0da; border-color: var(--gold); }
.eyebrow.teal { color: var(--teal-dark); background: #e2f4f3; border-color: var(--teal); }
.eyebrow.purple { color: var(--purple-dark); background: #ece4f4; border-color: var(--purple); }

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}
h4, .h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 10px;
}
p.lead { font-size: 20px; color: var(--body-text); line-height: 1.6; }
@media (max-width: 900px) {
  h1, .h1 { font-size: 38px; }
  h2, .h2 { font-size: 30px; }
  h3, .h3 { font-size: 22px; }
  p.lead { font-size: 18px; }
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin: 0 0 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 17px 34px;
  border-radius: var(--radius-pill);
  border: var(--border-thick) solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink-dark);
  box-shadow: 0 5px 0 var(--pink-dark);
}
.btn-primary:hover { box-shadow: 0 7px 0 var(--pink-dark); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--pink-dark); }
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal-dark);
  box-shadow: 0 5px 0 var(--teal-dark);
}
.btn-teal:hover { box-shadow: 0 7px 0 var(--teal-dark); }
.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple-dark); }
.btn-white {
  background: var(--white);
  color: var(--pink-dark);
  border-color: var(--white);
  box-shadow: 0 5px 0 rgba(0,0,0,0.15);
}
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 3px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}
.nav-links a:hover { background: var(--cream); color: var(--pink-dark); }
.nav-links a.is-active { background: var(--pink); color: var(--white); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: var(--cream);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 980px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 3px solid var(--line);
    padding: 12px 24px 24px;
    gap: 4px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 14px 16px; }
  .nav-actions .btn-primary-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 64px;
  padding-bottom: 64px;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 56px;
}
.hero-copy { flex: 1 1 480px; }
.hero-media { flex: 1 1 420px; position: relative; display: flex; justify-content: center; }
.hero-media img {
  border-radius: var(--radius-lg);
  border: 6px solid var(--white);
  box-shadow: 0 16px 0 var(--cream);
  max-height: 560px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.hero-stat-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  border: var(--border-thick) solid var(--teal);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 0 var(--line);
}
.hero-stat-card .dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.hero-stat-card .dot svg { width: 24px; height: 24px; color: var(--white); }
.hero-stat-card strong { display: block; font-size: 15px; color: var(--ink); }
.hero-stat-card span { font-size: 13px; color: var(--muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 2px solid var(--line);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-weight: 700; font-size: 14px; color: var(--ink);
}
.hero-badge svg { width: 18px; height: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
@media (max-width: 980px) {
  .hero .container { flex-direction: column-reverse; }
  .hero-media img { max-height: 420px; }
}

/* decorative rainbow/star strip */
.storybook-strip { display: flex; align-items: center; gap: 18px; justify-content: center; opacity: 0.9; }
.storybook-strip svg { height: 28px; width: auto; }

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--ink);
  padding: 28px 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.trust-row .item {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 700; font-size: 15px;
}
.trust-row svg { width: 22px; height: 22px; color: var(--gold); flex: none; }

/* ---------- Cards / Icon boxes ---------- */
.grid-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.icon-box {
  flex: 1 1 210px;
  max-width: 270px;
  background: var(--white);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
@media (max-width: 700px) {
  .icon-box { max-width: none; }
}
.icon-box:hover { transform: translateY(-4px); }
.icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.icon-circle svg { width: 30px; height: 30px; color: var(--white); }
.icon-box .icon-circle { margin-bottom: 20px; }
.icon-box .h4 { margin-bottom: 10px; }
.icon-box p { font-size: 15px; margin: 0; }
.icon-box.c-pink { border-color: var(--pink); } .icon-box.c-pink .icon-circle { background: var(--pink); }
.icon-box.c-gold { border-color: var(--gold); } .icon-box.c-gold .icon-circle { background: var(--gold); }
.icon-box.c-teal { border-color: var(--teal); } .icon-box.c-teal .icon-circle { background: var(--teal); }
.icon-box.c-purple { border-color: var(--purple); } .icon-box.c-purple .icon-circle { background: var(--purple); }

.card {
  background: var(--white);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

/* ---------- Values band ---------- */
.values-band { background: var(--cream); }
.values-row { display: flex; flex-wrap: wrap; gap: 28px; }
.value-card {
  flex: 1 1 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px;
  border-bottom: 8px solid var(--pink);
}
.value-card:nth-child(2) { border-color: var(--gold); }
.value-card:nth-child(3) { border-color: var(--teal); }
.value-card h3 { margin-bottom: 14px; }

/* ---------- Split section (image + text) ---------- */
.split {
  display: flex;
  align-items: center;
  gap: 60px;
}
.split.reverse { flex-direction: row-reverse; }
.split-media, .split-copy { flex: 1 1 460px; }
.split-media img {
  border-radius: var(--radius-lg);
  border: 6px solid var(--white);
  box-shadow: 0 12px 0 var(--cream);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.split-media.wide img { aspect-ratio: 16/10; }
.check-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink); }
.check-list svg { width: 24px; height: 24px; flex: none; color: var(--teal); margin-top: 2px; }
@media (max-width: 980px) {
  .split, .split.reverse { flex-direction: column; }
}

/* ---------- Banner (duotone photo) sections ---------- */
.photo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.photo-banner .banner-copy {
  position: relative;
  z-index: 2;
  padding: 40px;
  color: var(--white);
  max-width: 520px;
}
.photo-banner .banner-copy .eyebrow { background: rgba(255,255,255,0.14); color: var(--white); border-color: rgba(255,255,255,0.6); }
.photo-banner .banner-copy h3 { color: var(--white); font-size: 30px; }
.photo-banner .banner-copy p { color: rgba(255,255,255,0.92); }
.photo-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%);
}
.banner-grid { display: flex; flex-wrap: wrap; gap: 28px; }
.banner-grid .photo-banner { flex: 1 1 320px; }

/* ---------- Testimonials ---------- */
.testimonial-row { display: flex; flex-wrap: wrap; gap: 28px; }
.testimonial {
  flex: 1 1 320px;
  background: var(--white);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stars { display: flex; gap: 4px; }
.stars svg { width: 18px; height: 18px; color: var(--gold); }
.testimonial p { font-size: 16px; color: var(--body-text); font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: var(--gold-dark); font-size: 16px;
}
.testimonial .who strong { display: block; font-size: 14px; color: var(--ink); }
.testimonial .who span { font-size: 13px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.gallery-grid figure {
  flex: 1 1 260px;
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 3px var(--line);
}
.gallery-grid img { aspect-ratio: 4/5; object-fit: cover; width: 100%; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- Accordion (diferenciais / FAQ) ---------- */
.accordion { display: flex; flex-direction: column; gap: 16px; }
.accordion-item {
  background: var(--white);
  border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-item.is-open { border-color: var(--purple); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 26px;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}
.accordion-trigger .plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
.accordion-item.is-open .accordion-trigger .plus { transform: rotate(45deg); background: var(--purple); color: var(--white); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel-inner { padding: 0 26px 26px; color: var(--body-text); }
.accordion-item.is-open .accordion-panel { max-height: 400px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--pink);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { margin-top: 14px; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }
@media (max-width: 900px) { .cta-band { padding: 40px 24px; } }

/* ---------- Contact ---------- */
.contact-grid { display: flex; gap: 48px; flex-wrap: wrap; }
.contact-form { flex: 1 1 420px; }
.contact-info { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal);
}
.field-row { display: flex; gap: 20px; }
.field-row .field { flex: 1; }
.info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: var(--border-thick) solid var(--line);
  border-radius: var(--radius-md); padding: 22px;
}
.info-card .icon-circle { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); display:flex;align-items:center;justify-content:center; flex:none; }
.info-card .icon-circle svg { width: 22px; height: 22px; color: var(--white); }
.info-card h4 { margin-bottom: 4px; }
.info-card p { font-size: 15px; margin: 0; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: var(--border-thick) solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.85); padding: 72px 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 320px; }
.footer-col { flex: 1 1 180px; }
.footer-col .h4 { color: var(--white); margin-bottom: 18px; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; }

/* Visually-hidden heading: keeps the document outline correct (h1 > h2 > h3…)
   for accessibility/SEO without changing the visual design. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 15px; }
.footer-col a:hover { color: var(--gold); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--gold); color: var(--gold); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  border: 3px solid var(--white);
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 56px 0 40px; text-align: center; }
.page-hero .section-head { margin-bottom: 0; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.breadcrumb a:hover { color: var(--pink-dark); }

/* ---------- Decorative stickers (rainbow / stars) ---------- */
.deco {
  position: absolute !important;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  max-width: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.deco.deco-rainbow { width: 160px !important; height: auto !important; }
.deco.deco-star { width: 34px !important; height: auto !important; }
.deco.deco-star.lg { width: 46px !important; }
.deco.deco-star.sm { width: 22px !important; }

.hero-media { z-index: 1; }
.hero-media img { position: relative; z-index: 1; }
.hero-media .deco-rainbow { top: -34px; left: -46px; opacity: 0.95; z-index: 0; }
.hero-media .deco-star { bottom: -14px; right: 22px; transform: rotate(12deg); z-index: 2; }

.page-hero .section-head { position: relative; }
.page-hero .deco-star.deco-left { top: -6px; left: -8px; transform: rotate(-14deg); }
.page-hero .deco-star.deco-right { top: 6px; right: -4px; transform: rotate(16deg); }
@media (max-width: 700px) {
  .page-hero .deco-star { display: none; }
}

.cta-band { position: relative; overflow: hidden; }
.cta-band .deco-star.deco-left { top: 20px; left: 24px; transform: rotate(-10deg); }
.cta-band .deco-star.deco-right { bottom: 24px; right: 32px; transform: rotate(14deg); }
@media (max-width: 700px) {
  .cta-band .deco-star { display: none; }
}

/* ---------- Utilities ---------- */
.bg-cream { background: var(--cream); }
.bg-ink { background: var(--ink); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag {
  font-weight: 800; font-size: 14px; padding: 8px 18px;
  border-radius: var(--radius-pill); background: var(--white);
  border: 2px solid var(--line); color: var(--ink);
}
