/* =========================================================
   ESCOLA ESTADÃO — STYLES.CSS
   Reconstruído para o HTML atual
   ========================================================= */

:root {
  --navy: #0b2f5b;
  --navy-2: #12365c;
  --blue: #0875a8;
  --blue-dark: #075f89;
  --blue-soft: #eaf3fb;
  --yellow: #ffd45f;
  --text: #26384a;
  --muted: #617184;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --border: rgba(11,47,91,.12);
  --shadow: 0 14px 40px rgba(11,47,91,.10);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* =========================
   TOPBAR
========================= */
.topbar {
  background: #082746;
  color: rgba(255,255,255,.92);
  font-size: .84rem;
}

.topbar .container {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-right {
  color: #d9e8f5;
}

/* =========================
   CABEÇALHO / NAVEGAÇÃO
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease, background .3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 25px rgba(0,0,0,.10);
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-title {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 850;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: .79rem;
  font-weight: 650;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links a {
  padding: 10px 9px;
  border-radius: 10px;
  color: var(--navy-2);
  font-size: .9rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a.current-section,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: #f1f7fb;
}

.nav-links .nav-cta {
  margin-left: 4px;
  padding-inline: 15px;
  background: var(--navy);
  color: #fff;
}
.nav-links .nav-cta:hover {
  background: var(--blue);
  color: #fff;
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: auto;
  background: var(--navy);
  border-radius: 2px;
  content: "";
  transition: .25s ease;
}
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; left: 0; }
.menu-icon::after { position: absolute; top: 7px; left: 0; }

.menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-button[aria-expanded="true"] .menu-icon::before {
  top: 0; transform: rotate(45deg);
}
.menu-button[aria-expanded="true"] .menu-icon::after {
  top: 0; transform: rotate(-45deg);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 78px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(35,160,211,.35), transparent 31%),
    linear-gradient(125deg, #082746 0%, #0b2f5b 52%, #0a527c 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -190px;
  bottom: -250px;
  border: 70px solid rgba(255,255,255,.035);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(320px,.88fr);
  gap: 56px;
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.5rem, 5.1vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero h1 span {
  color: var(--yellow);
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #dceaf5;
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: #3f3400;
  box-shadow: 0 9px 25px rgba(0,0,0,.15);
}
.btn-primary:hover { background: #ffdf79; }

.btn-light {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.btn-light:hover { background: rgba(255,255,255,.17); }

.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-dark); }

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 28px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}

.hero-logo-wrap {
  min-height: 350px;
  display: grid;
  place-items: center;
  padding: 35px;
  background: rgba(255,255,255,.96);
}

.hero-logo-wrap img {
  width: min(290px, 90%);
  height: auto;
}

.hero-card footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: #e7f2fa;
  font-size: .82rem;
}

.dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255,212,95,.12);
}

/* =========================
   ACESSOS RÁPIDOS
========================= */
.quick-links {
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 15px;
}

.quick-card {
  min-height: 160px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(11,47,91,.10);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.quick-card:hover,
.quick-card.card-active {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,.11);
}

.quick-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.quick-card h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1rem;
}

.quick-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* =========================
   SEÇÕES GERAIS
========================= */
.section {
  padding: 82px 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.section-heading p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 9px 30px rgba(11,47,91,.065);
}

.course-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 25px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--accent, var(--blue));
}

.course-card:hover,
.course-card.card-active {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,.11);
}

.course-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 15px;
  background: var(--accent-soft, var(--blue-soft));
  color: var(--accent, var(--blue));
  font-size: 1.05rem;
  font-weight: 900;
}

.course-card h3 {
  margin: 0 0 9px;
  color: var(--navy);
  line-height: 1.2;
}

.course-card p {
  margin: 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft, var(--blue-soft));
  color: var(--accent, var(--blue));
  font-size: .75rem;
  font-weight: 800;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* =========================
   INFORMAÇÕES DA ESCOLA
========================= */
.school-info { padding: 72px 0; }

.school-info-grid {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  gap: 28px;
  align-items: start;
}

.info-panel,
.useful-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(11,47,91,.08);
}

.info-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.info-title-row h3,
.useful-panel h3 {
  color: var(--navy);
}

.info-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf3fb;
  color: #0b4f82;
  font-size: .85rem;
  font-weight: 700;
}

.school-data-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.school-data-item {
  padding: 16px;
  border-radius: 16px;
  background: #f7f9fc;
}

.school-data-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-2);
  font-size: .9rem;
}

.school-data-item a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.school-data-item.full { grid-column: 1/-1; }

.education-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.education-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4cc;
  color: #6a5200;
  font-size: .84rem;
  font-weight: 700;
}

.useful-panel p { color: var(--muted); }

.useful-links {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.useful-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.useful-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11,47,91,.09);
}

.useful-link span:first-child {
  color: var(--navy-2);
  font-weight: 700;
}

.map-button { margin-top: 14px; }

/* =========================
   AVISOS / CALENDÁRIO
========================= */
.notice-layout {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr);
  gap: 25px;
  align-items: stretch;
}

.notice-list {
  display: grid;
  gap: 14px;
}

.notice {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.notice:hover,
.notice.card-active {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,.11);
}

.notice-date {
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--navy);
  line-height: 1.05;
}

.notice-date span {
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.notice-date strong {
  margin-top: 4px;
  font-size: 1.35rem;
}

.notice h3 {
  margin: 0 0 5px;
  color: var(--navy);
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.calendar-card {
  padding: 30px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, #0b2f5b, #075f89);
  box-shadow: var(--shadow);
}

.calendar-card h3 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.calendar-card p { color: #dceaf5; }

.calendar-preview {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 6px;
  margin: 25px 0;
}

.calendar-preview span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: .77rem;
}

.calendar-preview span.active {
  background: var(--yellow);
  color: #403500;
  font-weight: 900;
}

/* =========================
   PROPOSTA PEDAGÓGICA
========================= */
.feature-panel {
  display: grid;
  grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr);
  gap: 48px;
  align-items: center;
}

.feature-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(8,117,168,.18), rgba(11,47,91,.2)),
    radial-gradient(circle at 25% 30%, #4bb2d5, transparent 34%),
    linear-gradient(135deg, #0b2f5b, #0875a8);
  box-shadow: var(--shadow);
}

.feature-visual::before,
.feature-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}
.feature-visual::before {
  width: 280px; height: 280px; left: -60px; bottom: -70px;
}
.feature-visual::after {
  width: 200px; height: 200px; right: -40px; top: -35px;
}

.visual-label {
  position: absolute;
  z-index: 2;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 13px;
  background: rgba(255,255,255,.93);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  font-weight: 850;
}
.visual-label.one { left: 28px; top: 75px; }
.visual-label.two { right: 28px; bottom: 70px; }

.feature-panel h2 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: clamp(1.8rem,3vw,2.5rem);
  line-height: 1.15;
}

.feature-panel p { color: var(--muted); }

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 11px 0;
  padding-left: 29px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 900;
}

/* =========================
   RODAPÉ
========================= */
.site-footer {
  padding: 58px 0 25px;
  background: #071f39;
  color: #dce8f2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .75fr .8fr 1.15fr;
  gap: 35px;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  color: #fff;
}

.site-footer p {
  color: #b9cada;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #c9d9e6;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--yellow);
}

.footer-links span {
  color: #b9cada;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #9fb4c6;
  font-size: .84rem;
}

/* =========================
   ANIMAÇÕES / INTERAÇÕES
========================= */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { transform: translateY(-4px); }

/* =========================
   RESPONSIVIDADE
========================= */
@media (max-width: 1050px) {
  .brand-title { font-size: .91rem; }
  .brand-subtitle { display: none; }
  .nav-links a { padding-inline: 7px; font-size: .84rem; }

  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .topbar-right { display: none; }

  .navbar { min-height: 78px; }
  .brand-logo { width: 55px; height: 55px; }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open,
  .nav-links.active,
  .nav-links.show {
    display: grid;
  }

  .nav-links a {
    width: 100%;
    padding: 11px 12px;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    padding: 60px 0 62px;
  }

  .hero-grid,
  .feature-panel,
  .notice-layout,
  .school-info-grid {
    grid-template-columns: 1fr;
  }

  .hero-card { max-width: 580px; }
  .hero-logo-wrap { min-height: 280px; }

  .section { padding: 65px 0; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .school-data-grid { grid-template-columns: 1fr; }
  .school-data-item.full { grid-column: auto; }
  .info-title-row { flex-direction: column; }
}

@media (max-width: 580px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar .container {
    min-height: 34px;
    font-size: .76rem;
  }

  .brand-title {
    max-width: 215px;
    font-size: .82rem;
  }

  .nav-links {
    left: 14px;
    right: 14px;
  }

  .hero h1 { font-size: clamp(2.2rem, 12vw, 3.25rem); }
  .hero p { font-size: 1rem; }

  .button-row {
    display: grid;
  }

  .button-row .btn { width: 100%; }

  .quick-links { margin-top: -18px; }
  .quick-grid,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-card { min-height: auto; }

  .notice {
    grid-template-columns: 58px 1fr;
    padding: 16px;
  }

  .calendar-card,
  .info-panel,
  .useful-panel,
  .course-card {
    padding: 22px;
  }

  .feature-visual { min-height: 300px; }

  .visual-label.one { left: 18px; top: 55px; }
  .visual-label.two { right: 18px; bottom: 50px; }

  .hero-card footer,
  .footer-bottom {
    flex-direction: column;
  }
}

/* =========================
   ACESSIBILIDADE
========================= */
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
