/* assets/css/style.css  — TEMA CLARO (AZUL + VERDE) */

:root{
  /* Base */
  --bg1:#f0f9ff;          /* azul bem claro */
  --bg2:#ecfdf5;          /* verde bem claro */
  --surface:#ffffff;      /* cartões */
  --surface-2:#f8fafc;    /* áreas suaves */
  --text:#0f172a;         /* slate-900 */
  --muted:#475569;        /* slate-600 */
  --line:rgba(15, 23, 42, .10);

  /* Identidade (alegre e institucional) */
  --accent:#2563eb;       /* azul */
  --accent-2:#10b981;     /* verde */
  --accent-soft:rgba(37,99,235,.12);
  --accent-soft-2:rgba(16,185,129,.12);

  /* Sombras */
  --shadow: 0 10px 28px rgba(2, 6, 23, .10);
  --shadow-soft: 0 8px 18px rgba(2, 6, 23, .08);

  /* Bordas */
  --radius:18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 20% 0%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(1200px 500px at 80% 0%, rgba(16,185,129,.16), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(1120px, 92%); margin:0 auto; }

/* =========================
   HEADER (TOPO)
========================= */
.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}

.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{ display:flex; gap:12px; align-items:center; }
.brand__logo{
  width:44px; height:44px; border-radius:14px; object-fit:cover;
  border:1px solid var(--line);
  box-shadow: 0 8px 16px rgba(2,6,23,.10);
  background:#fff;
}
.brand__title{ font-weight:800; letter-spacing:.2px; }
.brand__subtitle{ font-size:12px; color:var(--muted); margin-top:2px; }

/* Menu */
.menu{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.menu__link{
  font-size:14px;
  color:var(--muted);
  padding:8px 12px;
  border-radius:999px;
  transition: .2s ease;
}
.menu__link:hover{
  color:var(--text);
  background:rgba(2,6,23,.06);
}
.menu__link.is-active{
  color:var(--accent);
  background:var(--accent-soft);
  border:1px solid rgba(37,99,235,.22);
}
.menu__link--pill{
  border:1px solid rgba(37,99,235,.25);
  background:linear-gradient(135deg, rgba(37,99,235,.10), rgba(16,185,129,.10));
  color:var(--text);
}

/* =========================
   MAIN
========================= */
main{ padding:26px 0 34px; }

/* HERO */
.hero{
  border:1px solid rgba(2,6,23,.10);
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(900px 240px at 80% 0%, rgba(16,185,129,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.92));
  border-radius: calc(var(--radius) + 6px);
  padding:22px;
  box-shadow: var(--shadow);
}

.hero h1{ margin:0 0 6px; font-size:26px; }
.hero p{ margin:0 0 16px; color:var(--muted); }

/* Busca */
.search{
  display:flex; gap:10px; flex-wrap:wrap;
}

.search input{
  flex:1;
  min-width:220px;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid rgba(2,6,23,.12);
  background:rgba(255,255,255,.95);
  color:var(--text);
  outline:none;
  transition:.2s ease;
}

.search input:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

.search button{
  padding:13px 16px;
  border-radius:14px;
  border:1px solid rgba(37,99,235,.35);
  background:linear-gradient(135deg, rgba(37,99,235,.95), rgba(16,185,129,.85));
  color:#fff;
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
}

.search button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37,99,235,.22);
}

.section-title{
  margin:22px 0 10px;
  font-weight:800;
  letter-spacing:.2px;
}

/* Cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:16px;
}

.card{
  grid-column: span 4;
  border:1px solid rgba(2,6,23,.10);
  background:rgba(255,255,255,.88);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow-soft);
  transition:.2s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(2,6,23,.12);
}

.card h3{ margin:0 0 6px; font-size:16px; }
.card p{ margin:0 0 12px; color:var(--muted); font-size:13px; line-height:1.35; }

.card a.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(37,99,235,.24);
  background:linear-gradient(180deg, rgba(37,99,235,.10), rgba(255,255,255,.70));
  color:var(--accent);
  font-weight:700;
  transition:.2s ease;
}

.card a.btn:hover{
  background:linear-gradient(180deg, rgba(37,99,235,.16), rgba(255,255,255,.75));
  transform: translateY(-1px);
}

/* =========================
   FOOTER
========================= */
.footer{
  border-top:1px solid var(--line);
  background:rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
  padding:22px 0 12px;
}

.footer__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  color:var(--muted);
  font-size:13px;
}

.footer__grid a{ color:var(--muted); }
.footer__grid a:hover{ color:var(--accent); }

.footer__bottom{
  border-top:1px solid var(--line);
  margin-top:14px; padding-top:12px;
  color:var(--muted); font-size:12px;
}

/* Responsivo */
@media (max-width: 900px){
  .card{ grid-column: span 6; }
  .footer__grid{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .card{ grid-column: span 12; }
  .menu{ gap:6px; }
  .menu__link{ padding:7px 10px; }
  .hero h1{ font-size:22px; }
}
