/* Colégio Liceu Albert Einstein – Material Design 3, mobile first */

:root {
  /* Esquema de cores MD3 gerado a partir do azul do logotipo (#1f4480) */
  --primary: #1f4480;
  --on-primary: #ffffff;
  --primary-container: #d8e2ff;
  --on-primary-container: #001a42;
  --secondary-container: #dae2f9;
  --on-secondary-container: #131c2b;
  --tertiary: #b3261e;
  --tertiary-container: #ffdad6;
  --on-tertiary-container: #410002;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --surface: #faf9fd;
  --surface-low: #f4f3f8;
  --surface-container: #eeedf3;
  --surface-high: #e8e7ed;
  --on-surface: #1a1b20;
  --on-surface-variant: #44474f;
  --outline: #74777f;
  --outline-variant: #c4c6d0;
  --whats: #128c4b;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 28px;
  --r-full: 999px;
  --elev-1: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 3px 1px rgba(0, 0, 0, .15);
  --elev-3: 0 1px 3px rgba(0, 0, 0, .3), 0 4px 8px 3px rgba(0, 0, 0, .15);
  --font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 1rem/1.5 var(--font);
  letter-spacing: .01em;
  color: var(--on-surface);
  background: var(--surface);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0 0 12px; font-weight: 500; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.01em; font-weight: 400; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 400; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--outline-variant); margin: 8px 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 12px 16px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { font-size: .875rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.lead { font-size: 1.125rem; color: var(--on-surface-variant); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px;
  border: 1px solid transparent; border-radius: var(--r-full);
  font: 500 .9375rem/1.25 var(--font); letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: box-shadow .15s, background-color .15s;
}
.btn .icon { width: 20px; height: 20px; }
.btn--filled { background: var(--primary); color: var(--on-primary); }
.btn--filled:hover { box-shadow: var(--elev-1); background: #1a3a6e; }
.btn--tonal { background: var(--secondary-container); color: var(--on-secondary-container); }
.btn--tonal:hover { box-shadow: var(--elev-1); }
.btn--outlined { background: transparent; color: var(--primary); border-color: var(--outline); }
.btn--outlined:hover, .btn--text:hover { background: rgba(31, 68, 128, .08); }
.btn--text { background: transparent; color: var(--primary); padding-inline: 12px; }
.btn--whats { background: var(--whats); color: #fff; }
.btn--whats:hover { box-shadow: var(--elev-1); }
.btn--inverse { background: #fff; color: var(--primary); }
.btn--inverse-outlined { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--lg { min-height: 56px; font-size: 1rem; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent; color: var(--on-surface); cursor: pointer; }
.icon-btn:hover { background: rgba(26, 27, 32, .08); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.actions--center { align-items: center; }

/* ---------- Barra superior ---------- */
.top-bar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--outline-variant); }
.top-bar__in { display: flex; align-items: center; gap: 8px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--primary); margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: var(--r-s); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__txt strong { font-size: 1.375rem; font-weight: 700; }
.brand__txt small { font-size: .75rem; letter-spacing: .02em; }
.nav-desktop, .top-bar__cta { display: none; }

/* ---------- Gaveta de navegação ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .4); }
.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: min(320px, 86vw);
  display: flex; flex-direction: column; padding: 12px;
  background: var(--surface-low); border-radius: 0 var(--r-l) var(--r-l) 0; overflow-y: auto;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px 16px; }
.drawer__title { font-size: 1.125rem; font-weight: 500; color: var(--primary); }
.drawer__label { margin: 12px 16px 4px; font-size: .8125rem; font-weight: 500; color: var(--on-surface-variant); }
.drawer__item { display: flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: var(--r-full); color: var(--on-surface-variant); font-weight: 500; text-decoration: none; }
.drawer__item:hover { background: rgba(26, 27, 32, .08); }
.drawer__item[aria-current="page"] { background: var(--secondary-container); color: var(--on-secondary-container); }
.drawer__cta { margin: 16px 8px 8px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--primary-container), var(--surface)); padding: 40px 0 32px; }
.hero__in { display: grid; gap: 24px; }
.hero__logo { order: -1; justify-self: center; width: 160px; }
.hero__logo img { border-radius: var(--r-xl); background: #fff; box-shadow: var(--elev-1); }
.hero--exam { padding-top: 24px; }
.hero--exam .eyebrow { display: inline-block; padding: 6px 12px; border-radius: var(--r-s); background: var(--tertiary-container); color: var(--on-tertiary-container); letter-spacing: .04em; }

.facts { display: grid; gap: 12px; margin: 24px 0 0; }
.facts div { padding: 12px 16px; border-radius: var(--r-m); background: rgba(255, 255, 255, .7); }
.facts dt { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; color: var(--on-surface-variant); }
.facts dt .icon { width: 18px; height: 18px; color: var(--primary); }
.facts dd { margin: 4px 0 0; font-size: 1.0625rem; font-weight: 500; }

/* ---------- Faixa do exame ---------- */
.banner {
  display: grid; gap: 6px; padding: 24px; margin-top: 8px;
  border-radius: var(--r-xl); background: var(--primary); color: var(--on-primary); text-decoration: none;
}
.banner:hover { box-shadow: var(--elev-3); }
.banner strong { font-size: 1.5rem; font-weight: 500; line-height: 1.2; }
.banner__tag { justify-self: start; padding: 4px 12px; border-radius: var(--r-s); background: #fff; color: var(--primary); font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.banner__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 500; }

/* ---------- Seções e cartões ---------- */
.section { padding-top: 48px; padding-bottom: 48px; }
.section--tonal { background: var(--surface-container); }
.section--primary { background: var(--primary); color: var(--on-primary); }
.section--primary .icon { display: inline-block; vertical-align: -5px; }
.section__sub { color: var(--on-surface-variant); margin-bottom: 24px; }
.page-head { background: var(--primary-container); color: var(--on-primary-container); padding: 24px 0 32px; }
.page-head .lead { color: inherit; }
.crumbs { font-size: .875rem; margin-bottom: 16px; color: var(--on-surface-variant); }

.grid { display: grid; gap: 16px; }
.card { padding: 24px; border-radius: var(--r-m); background: var(--surface-low); border: 1px solid var(--outline-variant); position: relative; }
.section--tonal .card { background: var(--surface); }
.card h3 a { color: var(--on-surface); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(h3 a:hover) { box-shadow: var(--elev-1); }
.card p { color: var(--on-surface-variant); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border: 1px solid var(--outline-variant); border-radius: var(--r-s); font-size: .875rem; font-weight: 500; color: var(--on-surface-variant); background: var(--surface); }

.case { text-align: center; }
.case .chips { justify-content: center; }
.case__photo { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; }
.case__photo--ph { display: grid; place-items: center; background: var(--primary-container); color: var(--primary); }
.case__photo--ph .icon { width: 40px; height: 40px; }
.case__course { font-weight: 500; color: var(--primary) !important; }
.case blockquote { margin: 16px 0 0; font-style: italic; color: var(--on-surface-variant); }

.prose h2 { margin-top: 32px; font-size: 1.5rem; }
.prose h3 { margin-top: 24px; }
.prose ul { margin: 0 0 16px; }
.prose li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.prose li::before { content: ""; position: absolute; left: 6px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.prose--checks li { padding: 16px 16px 16px 52px; border-radius: var(--r-m); background: var(--surface-low); border: 1px solid var(--outline-variant); }
.section--tonal .prose--checks li { background: var(--surface); }
.prose--checks li::before { left: 16px; top: 16px; width: 24px; height: 24px; background: var(--primary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f4480' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/16px no-repeat; }

.faq { border-bottom: 1px solid var(--outline-variant); }
.faq summary { padding: 16px 32px 16px 0; font-weight: 500; font-size: 1.0625rem; cursor: pointer; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--primary); }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--on-surface-variant); }

.empty { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--primary-container); color: var(--primary); }
.empty .icon { width: 44px; height: 44px; }
.empty--ok { background: #c8f0d6; color: #0b6b35; }
.protocol { display: inline-block; padding: 12px 24px; border-radius: var(--r-m); background: var(--primary-container); color: var(--on-primary-container); font-size: 1.75rem; font-weight: 700; letter-spacing: .12em; }

/* ---------- Formulários ---------- */
.form-card { padding: 24px 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--outline-variant); box-shadow: var(--elev-1); }
.form-card h2 { font-size: 1.5rem; }
.form-card__sub, .form-card__foot { font-size: .875rem; color: var(--on-surface-variant); }
.form-card__foot { margin: 12px 0 0; text-align: center; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; color: var(--on-surface-variant); }
.field small, .check small { font-weight: 400; color: var(--outline); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  border: 1px solid var(--outline); border-radius: var(--r-s);
  background: var(--surface); color: var(--on-surface); font: 400 1rem/1.5 var(--font);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.field__msg { margin: 4px 0 0; font-size: .8125rem; color: var(--on-surface-variant); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field--error label, .field--error .field__msg { color: var(--error); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; margin-bottom: 16px; font-size: .875rem; color: var(--on-surface-variant); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); }
.check .field__msg { grid-column: 2; }
.notice { padding: 14px 16px; border-radius: var(--r-m); margin: 16px 0; font-weight: 500; }
.notice--ok { background: #c8f0d6; color: #07401f; }
.notice--erro { background: var(--error-container); color: #410002; }

.split { display: grid; gap: 32px; }
.contact-list li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--outline-variant); }
.contact-list .icon { color: var(--primary); margin-top: 2px; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Rodapé ---------- */
.footer { background: #14213a; color: #dfe2ee; padding: 40px 0 104px; font-size: .9375rem; }
.footer a, .footer .linklike { color: #dfe2ee; }
.footer__grid { display: grid; gap: 32px; }
.footer__name { font-size: 1.125rem; font-weight: 500; color: #fff; }
.footer__h { font-weight: 500; color: #fff; margin-bottom: 8px; }
.footer li { margin-bottom: 4px; }
.footer li a, .footer li .linklike { display: inline-block; padding: 6px 0; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.footer__social a:hover { background: rgba(255, 255, 255, .2); }
.footer__legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .8125rem; color: #aab0c4; }

/* ---------- FAB do WhatsApp ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px 0 16px;
  border-radius: var(--r-l); background: var(--whats); color: #fff; font-weight: 500; text-decoration: none; box-shadow: var(--elev-3);
}
.fab:hover { filter: brightness(1.08); }

/* ---------- Aviso de cookies ---------- */
.cookie {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 60; max-width: 560px; margin: 0 auto;
  padding: 24px; border-radius: var(--r-xl); background: var(--surface-high); box-shadow: var(--elev-3);
  max-height: calc(100vh - 16px); overflow-y: auto;
}
.cookie h2 { font-size: 1.25rem; }
.cookie p { font-size: .875rem; color: var(--on-surface-variant); }
.cookie__opts { display: grid; gap: 4px; margin-bottom: 16px; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: .9375rem; }
.switch input { width: 22px; height: 22px; accent-color: var(--primary); }
.cookie__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie__actions .btn { flex: 1 1 auto; }

/* ---------- A partir de 600px ---------- */
@media (min-width: 600px) {
  .wrap { padding: 0 24px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions--center { justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 32px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .cookie__actions .btn { flex: 0 0 auto; }
}

/* ---------- A partir de 960px ---------- */
@media (min-width: 960px) {
  .icon-btn#drawer-open { display: none; }
  .top-bar__in { min-height: 72px; gap: 16px; }
  .top-bar__cta { display: inline-flex; }
  .nav-desktop { display: flex; align-items: center; gap: 4px; }
  .nav-desktop > a, .menu__btn {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-full);
    background: transparent; color: var(--on-surface-variant); font: 500 .9375rem var(--font); text-decoration: none; cursor: pointer;
  }
  .nav-desktop > a:hover, .menu__btn:hover { background: rgba(26, 27, 32, .08); }
  .nav-desktop > a[aria-current="page"] { background: var(--secondary-container); color: var(--on-secondary-container); }
  .menu { position: relative; }
  .menu__btn::after { content: ""; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; border-bottom-width: 0; }
  .menu__list { position: absolute; top: 48px; left: 0; min-width: 240px; padding: 8px 0; border-radius: var(--r-s); background: var(--surface-container); box-shadow: var(--elev-3); }
  .menu__list a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; color: var(--on-surface); text-decoration: none; }
  .menu__list a:hover { background: rgba(26, 27, 32, .08); }

  .hero { padding: 72px 0 56px; }
  .hero__in { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 48px; }
  .hero__in--form { grid-template-columns: 1fr 440px; align-items: start; }
  .hero__logo { order: 0; width: 320px; }
  .banner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 24px; padding: 28px 32px; }
  .banner > span:nth-of-type(2) { grid-column: 2; }
  .banner__tag { grid-row: span 2; }
  .banner__go { grid-row: 1 / span 2; grid-column: 3; margin: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer { padding-bottom: 40px; }
  .fab { right: 24px; bottom: 24px; }
}

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