:root {
  --blue: #243e90;
  --blue-dark: #12275f;
  --blue-light: #5a8be0;
  --gold: #d4af37;
  --bg: #f5f7fb;
  --text: #243044;
  --muted: #627084;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 39, 95, .13);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); box-shadow: 0 5px 20px rgba(0,0,0,.06); backdrop-filter: blur(10px); }
.navbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--blue); }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.nav-links { display: flex; list-style: none; align-items: center; gap: 26px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; color: var(--blue-dark); }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 0; height: 3px; background: var(--gold); transition: .25s; }
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 3px; background: var(--blue); margin: 5px 0; border-radius: 99px; }

.hero { position: relative; overflow: hidden; background: radial-gradient(circle at right, rgba(90,139,224,.35), transparent 35%), linear-gradient(135deg, #fff 0%, #eff4ff 50%, #dce8ff 100%); }
.hero::before { content: ''; position: absolute; inset: auto -10% -45% -10%; height: 360px; background: var(--blue); transform: rotate(-3deg); opacity: .08; }
.hero-content { min-height: 620px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; position: relative; }
.eyebrow, .section-label { font-family: 'Montserrat', sans-serif; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: 10px; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--blue-dark); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }
.hero-text p:not(.eyebrow) { font-size: 1.15rem; max-width: 600px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; font-family: 'Montserrat', sans-serif; font-weight: 800; transition: .25s; }
.btn.primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow); }
.btn.secondary { background: var(--white); color: var(--blue); border: 2px solid rgba(36,62,144,.15); }
.btn.gold { background: var(--gold); color: var(--blue-dark); }
.btn:hover { transform: translateY(-2px); }
.hero-logo { justify-self: center; width: min(430px, 100%); background: rgba(255,255,255,.72); border-radius: 36px; padding: 28px; box-shadow: var(--shadow); }

.highlights { margin-top: -54px; position: relative; z-index: 2; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.highlight-grid div { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.highlight-grid strong { display: block; font-family: 'Montserrat', sans-serif; color: var(--blue); margin-bottom: 4px; }
.highlight-grid span { color: var(--muted); font-size: .94rem; }

.section { padding: 92px 0; }
.sobre { background: var(--white); }
.two-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; }
.text-card, .contact-card { background: var(--bg); border-radius: var(--radius); padding: 34px; box-shadow: inset 0 0 0 1px rgba(36,62,144,.08); }
.text-card p + p { margin-top: 16px; }

.niveis { background: var(--bg); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .25s; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 26px; }
.series { color: var(--blue); font-weight: 800; margin-bottom: 12px; }
.card-body p:last-child { color: var(--muted); }

.secretaria { padding: 76px 0; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: var(--white); }
.secretaria-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.secretaria h2 { color: var(--white); }
.secretaria p { color: rgba(255,255,255,.88); max-width: 680px; }
.section-label.light { color: #f1d97a; }

.contato { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: center; }
.contact-card p + p { margin-top: 14px; }
.contact-card a { color: var(--blue); font-weight: 700; }

.footer { background: var(--blue-dark); color: rgba(255,255,255,.82); padding: 26px 0; }
.footer-content { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.footer a { color: var(--white); font-weight: 700; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 82px; left: 0; right: 0; display: none; flex-direction: column; background: var(--white); padding: 24px; box-shadow: 0 16px 30px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .hero-content, .two-columns, .contact-grid { grid-template-columns: 1fr; }
  .hero-content { min-height: auto; padding: 70px 0 90px; }
  .hero-logo { width: min(320px, 86%); order: -1; }
  .highlight-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .secretaria-box { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .brand span { font-size: .95rem; }
  .brand img { width: 48px; height: 48px; }
  .navbar { min-height: 72px; }
  .nav-links { top: 72px; }
  .hero-content { padding: 48px 0 80px; }
  .hero-text p:not(.eyebrow) { font-size: 1rem; }
  .highlight-grid, .cards { grid-template-columns: 1fr; }
  .highlights { margin-top: -35px; }
  .section { padding: 68px 0; }
  .card img { height: 220px; }
  .footer-content { flex-direction: column; text-align: center; }
}
