/* Colégio Reggio Emilia — demo estática. Mobile-first, sem dependências. */
:root {
  --indigo: #302080;
  --indigo-dark: #1f1557;
  --lime: #a8c808;
  --orange: #f07800;
  --ink: #1b1240;          /* texto sobre laranja (contraste 6.3:1) */
  --text: #2a2540;
  --muted: #555068;
  --bg: #faf8f3;
  --surface: #ffffff;
  --line: #e6e2d8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31, 21, 87, .06), 0 8px 24px rgba(31, 21, 87, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg);
  padding-bottom: 2.25rem; /* espaço para a faixa de demo */
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--indigo); text-underline-offset: .18em; }
a:hover { color: var(--indigo-dark); }
h1, h2, h3 { color: var(--indigo); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .demo-bar :focus-visible { outline-color: var(--lime); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }
.section--white { background: var(--surface); }
.section--indigo { background: var(--indigo); color: #fff; }
.section--indigo h2, .section--indigo h3 { color: #fff; }
.section--indigo a { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: .75rem; padding-left: .9rem; position: relative;
}
.eyebrow::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: var(--lime); }
.on-dark .eyebrow { color: var(--lime); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.on-dark .lead { color: #e8e5f5; }
.section-head { max-width: 48rem; margin-bottom: 2.25rem; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--indigo); color: #fff;
  padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; outline-color: var(--lime); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Placeholders de conteúdo a confirmar */
.placeholder {
  display: inline-block; background: #fff3c4; color: #5c3600; border: 2px dashed #b36b00;
  border-radius: 6px; padding: .1em .5em; font-size: .9em; font-weight: 600;
}
.placeholder-box {
  display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 4 / 3;
  background: #fff3c4; color: #5c3600; border: 2px dashed #b36b00; border-radius: var(--radius); padding: 1rem; font-weight: 600;
}

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .75rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; cursor: pointer; font: inherit; font-weight: 700;
}
.btn:hover { transform: translateY(-1px); }
.btn--cta { background: var(--orange); color: var(--ink); box-shadow: 0 4px 14px rgba(240, 120, 0, .28); }
.btn--cta:hover { background: #ff8a1a; color: var(--ink); }
.btn--outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn--outline:hover { background: var(--indigo); color: #fff; }
.btn--light { background: transparent; color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--indigo); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Cabeçalho */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding: .5rem 0; }
.brand { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--indigo); font-weight: 800; line-height: 1.1; }
.brand img { width: 48px; height: 48px; flex: 0 0 auto; }
@media (max-width: 959px) { .header-inner { column-gap: .5rem; } .brand span { font-size: 1rem; } }
.brand small { display: none; font-weight: 600; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }
.nav-toggle {
  display: none; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border-radius: 999px;
  border: 2px solid var(--indigo); background: #fff; color: var(--indigo); font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 .75rem; display: flex; flex-direction: column; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .65rem .75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); font-weight: 600; }
.site-nav a:not(.btn):hover { background: #f1eff9; color: var(--indigo); }
.site-nav a[aria-current="page"] { color: var(--indigo); background: #eeebfa; box-shadow: inset 4px 0 0 var(--lime); }
.site-nav .btn { margin-top: .5rem; width: 100%; }

@media (min-width: 420px) { .brand small { display: block; } }

/* Com JS: menu recolhível no mobile. Sem JS: menu sempre visível (fallback). */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

@media (min-width: 960px) {
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; width: auto; }
  .site-nav ul { flex-direction: row; align-items: center; padding: 0; gap: .15rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime); }
  .site-nav .btn { margin: 0 0 0 .75rem; width: auto; }
}

/* Hero */
.hero { background: var(--indigo); color: #fff; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; padding: 3rem 0; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--lime); }
.hero p { color: #e8e5f5; font-size: 1.15rem; max-width: 36rem; }
.hero-media img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.hero-tags li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; font-weight: 600; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding: 4.5rem 0; gap: 3.5rem; } }

.page-hero { background: var(--indigo); color: #fff; padding: 3rem 0 3.25rem; }
.page-hero h1 { color: #fff; margin-bottom: .4em; }
.page-hero p { color: #e8e5f5; max-width: 44rem; font-size: 1.15rem; margin: 0; }

/* Grades e cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid var(--line); position: relative;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--accent { border-top: 4px solid var(--lime); }
.card--dark { background: var(--indigo-dark); color: #e8e5f5; border-color: transparent; }
.card--dark h3 { color: #fff; }

.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature-dot { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; background: #eef4cc; display: grid; place-items: center; color: var(--indigo); font-weight: 800; }
.feature h3 { font-size: 1.05rem; margin-bottom: .25em; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

.seg-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.seg-card .seg-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.seg-card img, .seg-card .placeholder-box { border-radius: 0; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-width: 0 0 2px; }
.seg-card .meta { font-size: .9rem; color: var(--muted); }
.seg-card .more { margin-top: auto; font-weight: 700; padding-top: .5rem; }
.seg-card .more::after { content: " →"; }

/* Estatísticas */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 1.4rem; }
.stat strong { display: block; font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1; color: var(--lime); font-weight: 800; margin-bottom: .4rem; }
.stat > span { color: #fff; }
.stat small { display: block; color: #d7d2ee; margin-top: .4rem; font-size: .85rem; }

/* Conquistas */
.medal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.medal-list li { background: #f1eff9; color: var(--indigo); border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; font-weight: 600; }
.photo-pair { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.photo-pair img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--wide-text { grid-template-columns: 1.2fr 1fr; } }
.rounded { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Depoimentos */
.quote { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; }
.quote blockquote p::before { content: "“"; color: var(--orange); font-size: 2.5rem; line-height: 0; vertical-align: -.45em; margin-right: .1em; font-weight: 800; }
.quote figcaption { margin-top: auto; font-weight: 700; color: var(--indigo); font-size: .95rem; }
.note { font-size: .9rem; color: var(--muted); margin-top: 1.25rem; }

/* Linha do tempo */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 3px; background: var(--lime); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 2rem 4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year {
  position: absolute; left: 0; top: 0; width: 47px; height: 47px; border-radius: 50%; background: var(--indigo); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .78rem; box-shadow: 0 0 0 4px var(--bg);
}
.timeline h3 { margin-bottom: .25em; padding-top: .55rem; }

/* Pilares / MVV */
.pillar-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; margin-bottom: .75rem; }

/* Segmentos */
.subnav { position: sticky; top: 72px; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: .6rem 0; display: flex; gap: .5rem; overflow-x: auto; }
.subnav a { display: block; white-space: nowrap; padding: .4rem .9rem; border-radius: 999px; background: #f1eff9; text-decoration: none; font-weight: 600; font-size: .92rem; }
.subnav a:hover { background: var(--indigo); color: #fff; }
.segment { scroll-margin-top: 140px; }
.segment + .segment { border-top: 1px solid var(--line); }
.segment-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .segment-grid { grid-template-columns: 1fr 1.35fr; gap: 3rem; align-items: start; } }
.segment-media img, .segment-media .placeholder-box { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tagline { font-size: 1.15rem; font-weight: 600; color: var(--muted); margin-top: -.3em; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.info-list li { padding: .7rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.info-list strong { color: var(--indigo); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: .2rem; top: .45em; width: .55rem; height: .9rem; border: solid var(--indigo); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.chips { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { background: #eef4cc; color: var(--ink); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; font-weight: 600; }
.track-grid { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .track-grid { grid-template-columns: 1fr 1fr; } }
.track-grid ul { margin: .25rem 0 .5rem; }

/* Passo a passo */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-weight: 800; margin-bottom: .75rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Formulário */
.form-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 2.25rem; } }
fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
legend { font-size: 1.2rem; font-weight: 800; color: var(--indigo); padding: 0; margin-bottom: .25rem; }
.fieldset-hint { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.req { color: #a33a00; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 2px solid #8a85a0; border-radius: var(--radius-sm);
  padding: .7rem .85rem; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--indigo); outline: 3px solid #c9c1f0; outline-offset: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; min-height: 44px; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--indigo); }
.counter { font-size: .85rem; color: var(--muted); text-align: right; margin-top: .25rem; }
.form-foot { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--line); font-size: .95rem; }
.form-status { margin-top: 1rem; font-weight: 600; color: var(--indigo); }

/* Contato */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); }
.contact-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.contact-list a, .contact-list .value { font-size: 1.1rem; font-weight: 700; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: #ece9e0; }
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 2px solid currentColor; text-decoration: none; font-weight: 700; }

/* CTA final */
.cta-band { background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-dark) 100%); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: 2.5rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--lime); opacity: .18; right: -60px; top: -60px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e8e5f5; max-width: 38rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; position: relative; z-index: 1; }

/* Rodapé */
.site-footer { background: var(--indigo-dark); color: #e2def3; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer-brand img { width: 64px; height: 64px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.demo-tag { background: var(--lime); color: var(--ink); font-weight: 800; border-radius: 999px; padding: .1rem .7rem; }

/* Faixa fixa de demonstração */
.demo-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); color: #fff; text-align: center;
  font-size: .85rem; font-weight: 700; padding: .45rem 1rem; border-top: 3px solid var(--lime);
}

@media print { .site-header, .demo-bar, .nav-toggle { position: static; } }
