/* =========================================================
   THEME GRUPO F EDUCACIONAL
   Mobile First • Responsivo • Institucional
   ========================================================= */

/* RESET */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}

/* VARIÁVEIS */
:root{
  --primary:#1E40AF;
  --secondary:#2563EB;
  --bg:#f6f8fc;
  --white:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
  --shadow:0 16px 36px rgba(15,23,42,.12);
}

/* BASE */
body{
  background:var(--bg);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
}

/* CONTAINER */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar{
  background:#0b1f3b;
  color:#e5e7eb;
  font-size:13px;
}
.topbar .wrap{
  display:flex;
  justify-content:space-between;
  padding:8px 0;
}
.topbar a{color:#93c5fd;font-weight:700}

/* =========================================================
   HEADER
   ========================================================= */
.header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
}
.header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand img{height:44px}

/* NAV DESKTOP */
.nav{
  display:flex;
  align-items:center;
  gap:12px;
}
.nav a{
  font-weight:800;
  padding:10px 12px;
  border-radius:12px;
}
.nav a:hover{background:#f1f5f9}

/* CTA */
.cta{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#fff;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  box-shadow:0 10px 20px rgba(30,64,175,.25);
}

/* DROPDOWN */
.dropdown{position:relative}
.dropdown-menu{
  position:absolute;
  right:0;
  top:42px;
  background:#fff;
  border-radius:14px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  min-width:240px;
  display:none;
}
.dropdown:hover .dropdown-menu{display:block}
.dropdown-menu a{
  display:block;
  padding:10px 12px;
  font-weight:700;
}
.dropdown-menu a:hover{background:#f1f5f9}

/* =========================================================
   HAMBURGER / MOBILE MENU
   ========================================================= */
.burger{
  display:none;
  width:44px;height:44px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}
.burger span,
.burger span::before,
.burger span::after{
  content:"";
  display:block;
  width:18px;height:2px;
  background:#000;
  margin:auto;
  position:relative;
}
.burger span::before{top:-6px}
.burger span::after{top:6px}

.mobile-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  z-index:2000;
}
.mobile-menu{
  position:fixed;
  right:0;top:0;
  width:80%;
  max-width:360px;
  height:100%;
  background:#fff;
  z-index:2001;
  transform:translateX(100%);
  transition:.3s;
  padding:18px;
}
.mobile-menu.open{transform:translateX(0)}
.mobile-overlay.open{display:block}

.mobile-menu a{
  display:block;
  padding:14px;
  font-weight:900;
  border-radius:12px;
}
.mobile-menu a:hover{background:#f1f5f9}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background:#fff;
  border-radius:28px;
  margin-top:18px;
  padding:22px;
  box-shadow:var(--shadow);
}
.hero-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:20px;
}
.hero h1{
  font-size:42px;
  font-weight:950;
}
.hero p{color:var(--muted)}
.hero .btns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* FORM */
.form-card{
  background:#fff;
  border-radius:18px;
  border:1px solid var(--border);
  padding:18px;
}
.form-card input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  margin-bottom:10px;
}

/* =========================================================
   BANNERS
   ========================================================= */
.banner{
  margin-top:16px;
  border-radius:22px;
  overflow:hidden;
  position:relative;
}
.banner img{
  width:100%;
  height:320px;
  object-fit:cover;
}

/* =========================================================
   CATEGORIAS
   ========================================================= */
.categorias{
  margin-top:26px;
}
.categorias-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  border-radius:22px;
  overflow:hidden;
}
.categoria{
  position:relative;
  height:240px;
}
.categoria img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.categoria::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(0deg,rgba(0,0,0,.7),rgba(0,0,0,.2));
}
.categoria span{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:22px;
  font-weight:900;
  z-index:2;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  margin-top:40px;
  background:#071a33;
  color:#e5e7eb;
  padding:36px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.footer h4{color:#fff}
.footer a{color:#c7d2fe;font-weight:700}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media(max-width:980px){
  .nav{display:none}
  .burger{display:block}
  .hero-grid{grid-template-columns:1fr}
  .hero h1{font-size:30px}
  .categorias-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .banner img{height:200px}
}
