/* PROENTEC — identidade neutra (verde/amarelo/azul, inspirada no material da campanha) */
:root {
  --green: #2d8a5c;
  --green-dark: #23744c;
  --charcoal: #22262c;
  --yellow: #ffc400;
  --blue: #0d3b66;
  --blue-deep: #092c4d;
  --ink: #1c2733;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --bg-soft: #f2f7f4;
  --card: #ffffff;
  --line: #e3eae6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 59, 102, 0.10);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; padding: 16px 0; }
.brand { display: flex; align-items: center; text-decoration: none; }

/* Wordmark PROENTEC: PROEN grafite + TEC verde, filete duplo na divisão */
.logo { display: inline-flex; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em; line-height: 1; }
.logo-a { color: var(--charcoal); border-bottom: 3px solid var(--charcoal); padding-bottom: 5px; margin-right: 2px; }
.logo-b { color: var(--green); border-bottom: 3px solid var(--green); padding-bottom: 5px; }
.logo-dark .logo-a { color: #fff; border-bottom-color: #fff; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 999px; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 6px 18px rgba(45, 138, 92, 0.35);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue); padding: 12px 26px;
}
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(255, 196, 0, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(11, 138, 62, 0.12), transparent 60%),
    linear-gradient(180deg, #f8fbf9 0%, #eef5f0 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  align-items: center; padding: 72px 0 64px;
}
.badge {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  color: var(--blue); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.15; font-weight: 800; color: var(--blue-deep);
  margin-bottom: 18px;
}
.hl { color: var(--green); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-blob {
  position: absolute; inset: -8% -6% auto auto; width: 62%; aspect-ratio: 1;
  border-radius: 50%; background: var(--yellow); opacity: 0.35; z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: 22px; box-shadow: var(--shadow); object-fit: cover;
}
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 8px 18px 8px 8px;
  font-weight: 700; font-size: 0.9rem; color: var(--blue-deep);
  box-shadow: 0 12px 30px rgba(13, 59, 102, 0.22);
}
.fc-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(45, 138, 92, 0.14); color: var(--green);
}
.fc-icon svg { width: 16px; height: 16px; }
.fc-icon-blue { background: rgba(13, 59, 102, 0.1); color: var(--blue); }
.fc-top { top: 6%; left: -6%; }
.fc-bottom { bottom: 7%; right: -4%; }

.stats-strip { background: var(--blue); color: #fff; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 26px 0; text-align: center;
}
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--yellow); }
.stat span { font-size: 0.88rem; opacity: 0.85; }

/* ---------- Countdown (páginas de cidade) ---------- */
.cd-box { margin: 6px 0 26px; }
.cd-deadline { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.countdown { display: flex; gap: 12px; }
.cd-tile {
  width: 84px; padding: 12px 0; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.08);
}
.cd-num {
  display: block; font-size: 1.85rem; font-weight: 800; line-height: 1.15;
  color: var(--blue-deep); font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--muted);
}
.cd-closed {
  margin: 6px 0 26px; padding: 16px 20px; border-radius: 14px;
  background: #fdecec; border: 1px solid #f5c6c4; color: #a12622; max-width: 46ch;
}
.btn-disabled { opacity: 0.55; pointer-events: none; }
.form-closed { text-align: center; padding: 24px 6px; }
.form-closed h3 { color: #a12622; font-size: 1.25rem; margin-bottom: 8px; }
.form-closed p { color: var(--muted); }

/* ---------- Popup de saída ---------- */
.exit-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.exit-modal[hidden] { display: none; }
.exit-overlay { position: absolute; inset: 0; background: rgba(9, 44, 77, 0.55); }
.exit-card {
  position: relative; width: 100%; max-width: 440px; text-align: center;
  background: #fff; border-radius: 20px; padding: 36px 30px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: exit-pop 0.22s ease;
}
@keyframes exit-pop { from { transform: scale(0.93); opacity: 0; } }
.exit-x {
  position: absolute; top: 8px; right: 14px; background: none; border: 0;
  font-size: 1.7rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.exit-x:hover { color: var(--ink); }
.exit-card h3 { font-size: 1.35rem; color: var(--blue-deep); margin: 16px 0 8px; }
.exit-card > p { color: var(--muted); margin-bottom: 18px; }
.exit-card .countdown { justify-content: center; margin-bottom: 22px; }
.exit-card .cd-tile { width: 76px; box-shadow: none; background: var(--bg-soft); }
.exit-later {
  margin-top: 12px; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 0.9rem; color: var(--muted);
}
.exit-later:hover { color: var(--ink); }

/* ---------- Mapa (páginas de cidade) ---------- */
.map-wrap {
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; width: 100%; height: 430px; border: 0; }
.map-wrap img { display: block; width: 100%; height: auto; }

/* ---------- CTA de lâmina ---------- */
.section-cta {
  margin-top: 44px; display: flex; flex-direction: column;
  align-items: center; gap: 10px; text-align: center;
}
.cta-hint { font-size: 0.88rem; font-weight: 600; color: var(--muted); }

/* ---------- Pills de cursos ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: 0.93rem; color: var(--blue-deep);
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker {
  display: inline-block; color: var(--green); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin-bottom: 10px;
}
.kicker-light { color: var(--yellow); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--blue-deep); line-height: 1.2; }
.section-sub { color: var(--muted); margin-top: 10px; }

.cols { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.col-text p { margin-bottom: 16px; font-size: 1.04rem; color: #33414f; }
.values { display: grid; gap: 16px; margin-top: 26px; }

.collage { position: relative; padding: 0 12% 18% 0; }
.collage-dot {
  position: absolute; right: 2%; top: -6%; width: 44%; aspect-ratio: 1;
  border-radius: 50%; background: var(--yellow); opacity: 0.45;
}
.collage-a {
  position: relative; display: block; width: 82%; height: auto;
  border-radius: 18px; box-shadow: var(--shadow);
}
.collage-b {
  position: absolute; right: 0; bottom: 0; width: 52%; height: auto;
  border-radius: 18px; border: 6px solid #fff;
  box-shadow: 0 16px 40px rgba(13, 59, 102, 0.18);
}
.values { grid-template-columns: 1fr 1fr; }
.value-card {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: 0 8px 24px rgba(13, 59, 102, 0.06);
}
.vc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(45, 138, 92, 0.12); color: var(--green);
}
.vc-icon svg { width: 22px; height: 22px; }
.vc-icon-blue { background: rgba(13, 59, 102, 0.09); color: var(--blue); }
.value-card h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--blue-deep); }
.value-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Cursos ---------- */
.grid-cursos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.curso {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.curso:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.curso-img { display: block; width: 100%; height: auto; aspect-ratio: 16/11; object-fit: cover; }
.curso-body { padding: 18px 20px 22px; }
.curso h3 { font-size: 1.02rem; color: var(--blue-deep); margin-bottom: 6px; }
.curso p { font-size: 0.9rem; color: var(--muted); }

/* ---------- Faixa professores ---------- */
.banda { padding: 0 0 80px; background: var(--bg-soft); }
.banda-card {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
}
.banda-img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.banda-copy { padding: 44px 48px; color: #fff; }
.banda-copy h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 6px 0 12px; }
.banda-copy p { color: rgba(255, 255, 255, 0.85); margin-bottom: 22px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); color: var(--blue-deep); font-weight: 800; font-size: 1.05rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; color: var(--blue-deep); margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--muted); }
.note {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 24px 9px 9px; font-weight: 600; color: var(--ink);
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.07);
}
.note-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 196, 0, 0.22); color: #8a6d00;
}
.note-icon svg { width: 19px; height: 19px; }

/* ---------- Form ---------- */
.section-form {
  background:
    radial-gradient(800px 400px at 110% 0%, rgba(255, 196, 0, 0.12), transparent 55%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
}
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-intro h2 { color: #fff; margin-bottom: 14px; }
.form-intro p { color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; font-weight: 600; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--yellow); font-weight: 800;
}

.form-card {
  background: #fff; color: var(--ink); border-radius: 18px;
  padding: 34px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: var(--blue-deep); }
.field .opt { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.field .req { font-weight: 500; color: var(--green); font-size: 0.85rem; }
.field input {
  width: 100%; font-family: var(--font); font-size: 1rem;
  padding: 13px 15px; border: 1.5px solid #d4dde2; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 138, 62, 0.15);
}
.field input.invalid { border-color: #d33; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.form-error {
  background: #fdecec; color: #a12622; border: 1px solid #f5c6c4;
  border-radius: 10px; padding: 12px 14px; font-size: 0.92rem; margin-bottom: 16px;
}
.form-disclaimer { margin-top: 14px; font-size: 0.8rem; color: var(--muted); text-align: center; }

/* success */
.form-success { text-align: center; padding: 10px 0; }
.success-icon { width: 62px; height: 62px; margin: 0 auto 12px; color: var(--green); }
.success-icon svg { width: 100%; height: 100%; }
.form-success h3 { font-size: 1.4rem; color: var(--green-dark); margin-bottom: 8px; }
.form-success > p { color: #33414f; }
.protocolo {
  margin: 22px auto; max-width: 340px;
  background: var(--bg-soft); border: 2px dashed var(--green);
  border-radius: 12px; padding: 18px;
}
.protocolo span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.protocolo strong { font-size: 1.5rem; letter-spacing: 0.05em; color: var(--blue-deep); font-weight: 800; }
.success-note { font-size: 0.92rem; color: var(--muted); max-width: 44ch; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: rgba(255, 255, 255, 0.8); padding: 40px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand .logo { font-size: 1.15rem; }
.footer-brand p { font-size: 0.9rem; max-width: 44ch; margin-top: 12px; }
.footer-copy { font-size: 0.85rem; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0; }
  .hero-visual { max-width: 520px; }
  .fc-top { left: 0; }
  .fc-bottom { right: 0; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; gap: 40px; }
  .collage { max-width: 480px; }
  .grid-cursos { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .banda-card { grid-template-columns: 1fr; }
  .banda-img { min-height: 220px; max-height: 300px; }
  .banda-copy { padding: 30px 26px; }
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .grid-cursos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .countdown { gap: 8px; }
  .cd-tile { width: auto; flex: 1; }
  .map-wrap iframe { height: 320px; }
}
