/* ============================================
   COLÉGIO ALTIORA — CSS Principal
   Versão 1.0
   ============================================ */

:root {
  --navy: #1B3A5C;
  --navy-dark: #0f2238;
  --navy-light: #2a5080;
  --gold: #E8A820;
  --gold-light: #f5c347;
  --white: #ffffff;
  --bg: #f8f9fc;
  --muted: #5a6478;
  --border: rgba(27,58,92,0.1);
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(27,58,92,0.08);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: #1a1a2e; background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* CONTAINER */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* TOPBAR */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-right a { color: rgba(255,255,255,0.7); margin-left: 14px; transition: color .2s; }
.topbar-right a:hover { color: var(--gold); }

/* HEADER / NAV */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 68px;
}
.logo-img { height: 48px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 22px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 3px solid transparent;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.nav-item > a:hover { border-bottom-color: var(--gold); }
.nav-item.has-dropdown { position: relative; }
.nav-item.has-dropdown > a::after { content: ' ▾'; font-size: 10px; color: var(--muted); }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 210px;
  padding: 8px 0;
  box-shadow: var(--shadow);
  z-index: 200;
}
.nav-item.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--navy);
  transition: background .15s;
}
.dropdown li a:hover { background: #f0f5fb; }
.btn-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border-radius: 6px !important;
  padding: 9px 18px !important;
  font-weight: 600 !important;
  border-bottom: none !important;
  margin-left: 8px;
}
.btn-cta:hover { background: var(--gold-light) !important; }

/* MENU MOBILE TOGGLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: .3s;
}

/* BOTÕES GENÉRICOS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 24px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-navy-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-navy-outline:hover { background: rgba(27,58,92,0.05); }

/* HERO */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27,58,92,0.95) 45%, rgba(27,58,92,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 24px;
  max-width: 620px;
}
.hero-badge {
  display: inline-block;
  background: rgba(232,168,32,0.18);
  border: 1px solid rgba(232,168,32,0.4);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .5px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p { font-size: 15.5px; color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--gold); font-family: var(--font-head); }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.55); }

/* SECTIONS */
.sec { padding: 72px 0; }
.sec-white { background: var(--white); }
.sec-bg { background: var(--bg); }
.sec-gold { background: var(--gold); }
.sec-navy { background: var(--navy); }
.sec-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.sec h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.sec-sub { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 580px; margin-bottom: 40px; }
.sec-hdr { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 16px; }
.link-more { font-size: 13.5px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.link-more:hover { color: var(--gold); }

/* PROPOSTA */
.proposta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.proposta-img { border-radius: var(--radius); overflow: hidden; }
.proposta-img img { width: 100%; height: 360px; object-fit: cover; }
.proposta-content p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.proposta-content .link-more { display: inline-block; margin-top: 8px; }

/* PILARES */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 32px;
}
.pilar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}
.pilar:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pilar-icon { font-size: 32px; margin-bottom: 12px; }
.pilar h4 { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.pilar p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tutoria-banner {
  background: #f0f5fb;
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
}
.tutoria-banner strong { color: var(--navy); }

/* SEGMENTOS */
.seg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.seg { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s; }
.seg:hover { box-shadow: var(--shadow); }
.seg-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seg-thumb--inf { background: #FEF7E6; }
.seg-thumb--f1 { background: #E8F4FD; }
.seg-thumb--f2 { background: #EDF7F0; }
.seg-emoji { font-size: 52px; }
.seg-body { padding: 20px; }
.seg-body h3 { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.seg-body p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.seg-link { font-size: 13px; font-weight: 600; color: var(--navy); }
.seg-link:hover { color: var(--gold); }
.tag-new { display: inline-block; background: #E8F7EE; color: #1a7a45; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-bottom: 8px; }

/* GALERIA */
.galeria-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.galeria-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galeria-item:hover img { transform: scale(1.03); }
.galeria-item--grande { grid-row: span 2; }
.galeria-item--grande img { height: 400px; }
.galeria-item:not(.galeria-item--grande) img { height: 193px; }
.galeria-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(27,58,92,0.75));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 20px 14px 10px;
}

/* CTA MATRÍCULA */
.matricula-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.matricula-text h2 { font-family: var(--font-head); font-size: clamp(20px, 3vw, 26px); font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.matricula-text p { font-size: 14.5px; color: rgba(27,58,92,0.75); max-width: 520px; line-height: 1.7; }
.matricula-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: var(--bg); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: box-shadow .2s; }
.post:hover { box-shadow: var(--shadow); }
.post-thumb { height: 120px; }
.post-thumb--1 { background: linear-gradient(135deg, #1B3A5C, #2a5080); }
.post-thumb--2 { background: linear-gradient(135deg, #E8A820, #f5c347); }
.post-thumb--3 { background: linear-gradient(135deg, #1a7a45, #27a862); }
.post-body { padding: 18px; }
.post-cat { font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 6px; }
.post-body h4 { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.45; margin-bottom: 8px; }
.post-body p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.post-date { font-size: 12px; color: var(--muted); display: block; }

/* FOOTER */
.footer { background: var(--navy-dark); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.5); line-height: 1.75; }
.footer-col h5 { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 15px; transition: background .2s; }
.social a:hover { background: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================
   RESPONSIVO
   ============================================ */

/* Tablets (≤ 900px) */
@media (max-width: 900px) {
  .pilares-grid { grid-template-columns: repeat(3, 1fr); }
  .proposta-grid { grid-template-columns: 1fr; gap: 32px; }
  .proposta-img img { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile (≤ 680px) */
@media (max-width: 680px) {
  /* Topbar */
  .topbar { font-size: 11px; justify-content: center; text-align: center; }
  .topbar-left { justify-content: center; gap: 10px; }

  /* Nav mobile */
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    gap: 0;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-item > a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
  }
  .nav-item.has-dropdown:hover .dropdown,
  .nav-item.has-dropdown.open .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #f8f9fc;
    padding: 4px 0;
  }
  .dropdown li a { padding-left: 40px; font-size: 13px; }
  .btn-cta { margin: 12px 24px 0; text-align: center; justify-content: center; }

  /* Hero */
  .hero { min-height: 520px; }
  .hero-overlay { background: rgba(27,58,92,0.88); }
  .hero-content { padding: 52px 24px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .hero-stats { gap: 20px; }

  /* Sections */
  .sec { padding: 52px 0; }
  .pilares-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .seg-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .galeria-item--grande img { height: 240px; }
  .galeria-item:not(.galeria-item--grande) img { height: 200px; }

  /* CTA */
  .matricula-cta { flex-direction: column; text-align: center; }
  .matricula-btns { justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; }

  /* Sec header */
  .sec-hdr { flex-direction: column; align-items: flex-start; }
}
