/* ============================================================
   Colégio CEMA — recriação simplificada em HTML + CSS puro
   Paleta e tipografia extraídas do site original (redecema)
   ============================================================ */

:root {
  --primary: hsl(0, 82%, 50%);          /* vermelho CEMA */
  --primary-soft: hsla(0, 82%, 50%, .1);
  --secondary: hsl(234, 75%, 24%);      /* azul-marinho CEMA */
  --foreground: hsl(228, 60%, 10%);
  --muted: hsl(220, 20%, 96%);
  --muted-foreground: hsl(220, 10%, 46%);
  --border: hsl(220, 15%, 90%);
  --white: #ffffff;
  --star: #facc15;
  --radius: .75rem;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--foreground);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; }

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

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.icon {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-xs { width: .75rem; height: .75rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: .5rem;
  padding: .625rem 1.25rem;
  font-weight: 600;
  transition: opacity .2s, box-shadow .2s, background-color .2s;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { opacity: .9; }
.btn-white {
  background: var(--white); color: var(--primary);
  font-weight: 700; padding: .875rem 2rem;
  box-shadow: var(--shadow-lg);
}
.btn-white:hover { box-shadow: var(--shadow-xl); }
.btn-outline {
  border: 2px solid var(--white); color: var(--white);
  font-weight: 700; padding: .875rem 2rem;
}
.btn-outline:hover { background: rgb(255 255 255 / .1); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { opacity: .9; }

/* Cabeçalhos de seção */
.section { padding: 5rem 0; scroll-margin-top: 5.5rem; }
.section-alt { background: linear-gradient(180deg, var(--muted), var(--white)); }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2, .split-text h2 {
  margin-top: .5rem;
  font-size: 1.875rem;
  font-weight: 800;
}
.section-sub {
  max-width: 42rem;
  margin: 1rem auto 0;
  color: var(--muted-foreground);
}
.eyebrow {
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
}
.eyebrow-light { color: rgb(255 255 255 / .7); }
.highlight { color: var(--primary); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgb(255 255 255 / .95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}

.topbar { background: var(--secondary); color: var(--white); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .375rem;
  padding-bottom: .375rem;
  font-size: .875rem;
}
.topbar-contacts { display: flex; align-items: center; gap: 1rem; }
.topbar-contacts a {
  display: flex; align-items: center; gap: .25rem;
  transition: color .2s;
}
.topbar-contacts a:hover { color: var(--primary); }
.topbar-contacts a.topbar-email { display: none; }
.topbar-city { font-size: .75rem; display: none; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-ava {
  display: flex; align-items: center; gap: .35rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / .12);
  transition: background-color .2s;
}
.topbar-ava:hover { background: rgb(255 255 255 / .25); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand { display: flex; align-items: center; gap: .5rem; }
.brand-logo {
  height: 3rem; width: 3rem;
  border-radius: 50%; object-fit: cover;
}
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
}
.nav-links { display: none; list-style: none; align-items: center; gap: 1.5rem; }
.nav-links a {
  font-weight: 500;
  color: rgb(10 16 61 / .8);
  transition: color .2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: none; }

/* Menu mobile — 100% CSS via :target */
.menu-btn { color: var(--foreground); }
.menu-close { display: none; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: .75rem 1rem 1rem;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.mobile-menu a { font-weight: 500; color: rgb(10 16 61 / .8); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { color: var(--white); }

.header:has(#menu-mobile:target) .mobile-menu { display: block; }
.header:has(#menu-mobile:target) .menu-open { display: none; }
.header:has(#menu-mobile:target) .menu-close { display: inline-flex; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(0, 82%, 50%, .9), hsla(234, 75%, 24%, .9));
}
.hero-content {
  position: relative;
  text-align: center;
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.hero-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}
.hero-content p {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  color: rgb(255 255 255 / .9);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.br-desktop { display: none; }

/* ============ SOBRE ============ */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s;
}
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon {
  margin: 0 auto 1rem;
  height: 3.5rem; width: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}
.feature-card h3 { font-size: 1.125rem; font-weight: 700; }
.feature-card p {
  margin-top: .5rem;
  font-size: .875rem;
  color: var(--muted-foreground);
}

.founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background: var(--secondary);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--white);
}
.founder-photo {
  height: 12rem; width: 12rem;
  border-radius: 50%; object-fit: cover;
  border: 4px solid rgb(255 255 255 / .2);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.founder-text { text-align: center; }
.founder-text h3 { margin-top: .25rem; font-size: 1.5rem; font-weight: 700; }
.founder-text p {
  margin-top: .75rem;
  line-height: 1.65;
  color: rgb(255 255 255 / .85);
}

/* ============ MÉTODO POSITIVO ============ */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
.split-text .lead {
  margin-top: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.checklist {
  margin-top: 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.checklist li { display: flex; align-items: center; gap: .75rem; }
.icon-check { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.split-img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
}

/* ============ PES ENGLISH ============ */
.photo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
.photo-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  transition: transform .5s;
}
.photo-card:hover img { transform: scale(1.05); }
.photo-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, hsla(234, 75%, 24%, .8), transparent);
  color: var(--white);
}
.photo-card h3 { font-size: 1.25rem; font-weight: 700; }
.photo-card figcaption p {
  font-size: .875rem;
  color: rgb(255 255 255 / .8);
}

/* ============ EJA ============ */
.eja-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
.eja-info h3 { font-size: 1.25rem; font-weight: 700; }
.eja-info .lead { margin-top: .75rem; line-height: 1.65; color: var(--muted-foreground); }
.eja-info .checklist li { align-items: flex-start; line-height: 1.5; }
.eja-info .checklist .icon-check { margin-top: .2rem; }
.eja-offer {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--muted);
  border-radius: .5rem;
}
.eja-offer p { margin-top: .25rem; }
.eja-access { display: flex; flex-direction: column; gap: 1.25rem; }
.access-card {
  background: var(--secondary);
  color: var(--white);
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.access-card .feature-icon { background: rgb(255 255 255 / .12); color: var(--white); margin-bottom: .25rem; }
.access-card h3 { font-size: 1.125rem; font-weight: 700; }
.access-card p { font-size: .9rem; color: rgb(255 255 255 / .85); }
.access-card .btn { margin-top: .5rem; padding: .75rem 1.5rem; }
.access-card .btn .icon { width: 1.1rem; height: 1.1rem; }
.access-card small { font-size: .75rem; color: rgb(255 255 255 / .6); }
.access-card-light {
  background: var(--white);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.access-card-light .feature-icon { background: var(--primary-soft); color: var(--primary); }
.access-card-light p { color: var(--muted-foreground); }
.access-card-light small { color: var(--muted-foreground); }
.eja-help { font-size: .875rem; color: var(--muted-foreground); text-align: center; }
.eja-help a { color: var(--primary); font-weight: 700; }

/* ============ DEPOIMENTOS ============ */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.testimonial-card {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-lg); }
.quote-mark {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 2rem; height: 2rem;
  color: hsla(0, 82%, 50%, .15);
}
.stars {
  color: var(--star);
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.testimonial-text {
  font-style: italic;
  line-height: 1.65;
  color: rgb(10 16 61 / .9);
  margin-bottom: 1rem;
}
.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}
.author-name { font-weight: 700; font-size: .875rem; }
.author-role { font-size: .75rem; color: var(--muted-foreground); }

/* ============ MATRÍCULA ============ */
.form-card {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.form-field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .375rem;
}
.form-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--white);
  padding: .625rem 1rem;
  font: inherit;
  color: var(--foreground);
}
.form-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(0, 82%, 50%, .35);
}

.series { display: flex; flex-direction: column; gap: .5rem; }
.serie-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.serie-group[open] { border-color: var(--primary); }
.serie-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  font-weight: 600;
  background: hsla(220, 20%, 96%, .5);
  transition: background-color .2s;
}
.serie-group summary::-webkit-details-marker { display: none; }
.serie-group summary:hover { background: var(--muted); }
.chevron {
  width: 1.25rem; height: 1.25rem;
  color: var(--muted-foreground);
  transition: transform .2s;
}
.serie-group[open] .chevron { transform: rotate(180deg); }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem;
  background: var(--white);
}
.chips input[type="radio"] { display: none; }
.chip {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  background: var(--muted);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chips input[type="radio"]:checked + .chip {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-submit {
  width: 100%;
  padding: .875rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-submit:hover { box-shadow: var(--shadow-lg); }
.btn-submit .icon { width: 1.25rem; height: 1.25rem; }

/* Página de obrigado (destino do formulário) */
.success-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: linear-gradient(180deg, var(--muted), var(--white));
}
.success-card {
  max-width: 32rem;
  width: 100%;
  background: var(--white);
  border-radius: 1rem;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.success-icon {
  width: 4rem; height: 4rem;
  color: var(--primary);
  margin: 0 auto 1rem;
}
.success-card h1 { font-size: 1.5rem; font-weight: 700; }
.success-card p { margin-top: .5rem; color: var(--muted-foreground); }
.success-card .btn { margin-top: 1.5rem; }

/* ============ LOCALIZAÇÃO ============ */
.location {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-row { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
  height: 3rem; width: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.info-row h3 { font-weight: 700; font-size: 1rem; }
.info-row p { color: var(--muted-foreground); }
.location-map {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 20rem;
}
.location-map iframe {
  width: 100%; height: 100%;
  border: 0;
  min-height: 320px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-logo {
  height: 2.5rem; width: 2.5rem;
  border-radius: 50%; object-fit: cover;
}
.footer-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
}
.footer-company { font-size: .75rem; color: rgb(255 255 255 / .7); }
.footer-info {
  font-size: .875rem;
  color: rgb(255 255 255 / .8);
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.footer-copy { font-size: .875rem; color: rgb(255 255 255 / .7); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.footer-links a { font-weight: 700; color: var(--white); }
.footer-links a:hover { color: var(--primary); }
.footer-links span { color: rgb(255 255 255 / .5); }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* ≥ 640px (sm) */
@media (min-width: 640px) {
  .topbar-contacts a.topbar-email { display: flex; }
  .topbar-city { display: inline; }
  .br-desktop { display: block; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content p { font-size: 1.25rem; }
  .hero-actions { flex-direction: row; }
  .section-head h2, .split-text h2 { font-size: 2.25rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* ≥ 768px (md) */
@media (min-width: 768px) {
  .hero-content h1 { font-size: 3.75rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .founder { flex-direction: row; padding: 3rem; }
  .founder-text { text-align: left; }
  .photo-cards { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* ≥ 1024px (lg) */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu, .header:has(#menu-mobile:target) .mobile-menu { display: none; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .eja-grid { grid-template-columns: 1.2fr 1fr; }
  .location { grid-template-columns: 1fr 1fr; }
  .location-map { height: auto; }
  .footer-inner { flex-direction: row; align-items: center; }
  .footer-copy { text-align: right; }
}
