/* ============================================================
   Escola Evolução — Design System
   Tipografia: Zilla Slab (display) + IBM Plex Sans (corpo)
   Paleta extraída da marca real (logo fornecida pelo cliente)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* cores de marca (amostradas do arquivo de logo oficial) */
  --orange: #db8741;
  --orange-dark: #b96b2c;
  --orange-tint: #f4e3d1;
  --green: #3d6b58;
  --green-dark: #2c5344;
  --green-tint: #dfe9e4;
  --ink: #232325;
  --charcoal: #3a3a3c;
  --charcoal-soft: #58585b;
  --bg: #ffffff;
  --bg-soft: #eef2ef;
  --line: #e7e1d6;
  --white: #ffffff;

  /* tipografia */
  --font-display: "Zilla Slab", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, Segoe UI, sans-serif;

  /* escala fluida */
  --step-1: clamp(0.9rem, 0.86rem + 0.2vw, 1rem);
  --step0: clamp(1.05rem, 1rem + 0.25vw, 1.125rem);
  --step1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step2: clamp(1.6rem, 1.4rem + 1vw, 2rem);
  --step3: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --step4: clamp(2.6rem, 2.1rem + 2.5vw, 3.75rem);

  --container: 1160px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step0);
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: var(--step4); font-weight: 700; }
h2 { font-size: var(--step3); }
h3 { font-size: var(--step2); }
h4 { font-size: var(--step1); font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p.lead { font-size: var(--step1); color: var(--charcoal-soft); max-width: 52ch; }

a { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

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

section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
section.ink {
  background: var(--ink);
  color: #d8d6d2;
}
section.ink h2, section.ink h3, section.ink h4 { color: var(--white); }
section.ink p { color: #c3c1bd; }

@media (max-width: 760px) {
  section { padding: 56px 0; }
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-dark);
  font-weight: 600;
  font-size: var(--step0);
  margin-bottom: 18px;
}
.eyebrow-line .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step0);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost.on-dark { color: var(--white); border-color: #6b6b6e; }
.btn-ghost.on-dark:hover { background: var(--white); color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step-1);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--orange-dark);
  border-bottom-color: var(--orange);
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { padding: 10px 20px; font-size: var(--step-1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle svg { width: 28px; height: 28px; color: var(--ink); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--step0); }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-label { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-art img {
  width: 100%;
  max-width: 420px;
  opacity: 0.94;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, var(--orange-tint) 0%, transparent 68%);
  z-index: -1;
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 220px; }
  .hero { padding: 40px 0 56px; }
}

/* ---------- Diferenciais (linhas editoriais, não cards genéricos) ---------- */
.diferenciais-list { border-top: 1px solid var(--line); margin-top: 40px; }
.diferencial-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.diferencial-row .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--orange-tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-dark);
}
.diferencial-row:nth-child(even) .icon-wrap { background: var(--green-tint); color: var(--green-dark); }
.diferencial-row .icon-wrap svg { width: 28px; height: 28px; }
.diferencial-row h3 { margin-bottom: 6px; font-size: var(--step1); }
.diferencial-row p { margin: 0; color: var(--charcoal-soft); }

@media (max-width: 620px) {
  .diferencial-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .diferencial-row .icon-wrap { width: 44px; height: 44px; }
}

/* ---------- Chips de valores ---------- */
.values-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.value-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--charcoal);
}
.value-chip:nth-child(3n+1) { border-color: var(--orange); color: var(--orange-dark); }
.value-chip:nth-child(3n+2) { border-color: var(--green); color: var(--green-dark); }

/* ---------- Timeline (história — sequência real) ---------- */
.timeline { position: relative; margin-top: 48px; padding-left: 32px; border-left: 3px solid var(--orange-tint); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -39px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--orange-tint);
}
.timeline-item .year {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange-dark);
  font-size: var(--step1);
  display: block;
  margin-bottom: 4px;
}
.timeline-item p { margin: 0; color: var(--charcoal-soft); }

/* ---------- Pull quote (missão) ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--step2);
  color: var(--ink);
  line-height: 1.35;
  max-width: 44ch;
  margin: 0;
  font-weight: 600;
}

/* ---------- Passos numerados (processo real: rematrícula) ---------- */
.steps { display: grid; gap: 28px; margin-top: 32px; counter-reset: step; }
.step-item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
.step-item .num {
  counter-increment: step;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step1);
  display: flex; align-items: center; justify-content: center;
}
.step-item .num::before { content: counter(step); }
.step-item h4 { margin-bottom: 4px; }
.step-item p { margin: 0; color: var(--charcoal-soft); }

/* ---------- Documentos ---------- */
.doc-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; max-width: 46ch; }
.doc-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-weight: 500;
}
.doc-list svg { width: 22px; height: 22px; color: var(--green-dark); flex-shrink: 0; margin-top: 2px; }

/* ---------- Banner de destaque (matrículas / CTA) ---------- */
.banner {
  background: var(--green);
  color: var(--white);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.banner h3 { color: var(--white); margin-bottom: 6px; }
.banner p { color: #dfeee8; margin: 0; }
.banner .btn-primary { background: var(--white); color: var(--green-dark); }
.banner .btn-primary:hover { background: var(--orange-tint); color: var(--ink); }

/* ---------- Estado vazio (galeria / informativos) ---------- */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
}
.empty-state img { width: 72px; margin: 0 auto 20px; opacity: 0.55; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { margin: 0 auto; color: var(--charcoal-soft); }

/* ---------- Álbuns (galeria — quando houver fotos) ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.album-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.album-card .thumb { aspect-ratio: 4/3; background: var(--bg-soft); }
.album-card .meta { padding: 16px; }
.album-card .meta h4 { margin: 0 0 4px; }
.album-card .meta span { color: var(--charcoal-soft); font-size: var(--step-1); }
@media (max-width: 760px) { .album-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .album-grid { grid-template-columns: 1fr; } }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange-tint); color: var(--orange-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-list svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: var(--step-1); color: var(--charcoal-soft); font-weight: 500; }
.contact-list a, .contact-list span.value { font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--orange-dark); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; }

.social-row { display: flex; gap: 14px; margin-top: 28px; }
.social-row a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.social-row a:hover { border-color: var(--orange); color: var(--orange-dark); }
.social-row svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Formulário (Netlify Forms) ---------- */
.form-grid { display: grid; gap: 18px; margin-top: 28px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--step-1); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: var(--step0);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--orange); }
.form-note { font-size: var(--step-1); color: var(--charcoal-soft); margin-top: 8px; }

/* ---------- Page header (páginas internas) ---------- */
.page-hero { padding: 56px 0 8px; }
.page-hero .eyebrow-line { margin-bottom: 14px; }
.page-hero p.lead { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c3c1bd; padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3a3a3d;
}
.footer-grid img.brand-mark { height: 40px; width: auto; margin-bottom: 16px; }
.footer-grid p { color: #a9a7a3; max-width: 40ch; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: var(--step-1); text-transform: none; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #c3c1bd; text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  font-size: var(--step-1);
  color: #8b8985;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Utilitários ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
