/* ── shared.css — Alerta Lousada ─────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #25AADD;
  --blue-d: #1A85B5;  /* hover / dark */
  --red:    #D72924;
  --lblue:  #E8F6FC;
  --gray:   #64748B;
  --light:  #F0F9FF;
  --text:   #1A2A3A;
  --ok:     #16A34A;
  --warn:   #D97706;
  --border: #D0E8F5;
  --radius: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: var(--light);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--blue);
  color: #fff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: 0 2px 16px rgba(37,170,221,.35);
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 34px;
  width: auto;
  background: rgba(255,255,255,.95);
  border-radius: 6px;
  padding: 3px 10px;
}
.logo-name {
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: -.3px;
}
.logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,.75);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 1px;
}
nav.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .2s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,.15); }
.nav-btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(37,170,221,.1);
  padding: 18px;
  margin-bottom: 14px;
}
.card.info {
  background: var(--lblue);
  border: 1px solid rgba(37,170,221,.25);
}
.card.success {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
}
.card.warn {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  transition: background .2s, transform .1s;
  letter-spacing: -.2px;
}
.btn:hover  { background: var(--blue-d); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #CBD5E1; cursor: not-allowed; }
.btn.secondary {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn.secondary:hover { background: var(--lblue); }
.btn.danger {
  background: var(--red);
  color: #fff;
}
.btn.danger:hover { background: #B01F1B; }
.btn.sm {
  padding: 8px 14px;
  font-size: 12px;
  width: auto;
}

/* ── Status badges ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Footer ─────────────────────────────────────────── */
footer.site-footer {
  background: #1A2A3A;
  color: rgba(255,255,255,.65);
  padding: 32px 20px;
  margin-top: 60px;
}
.footer-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }
.footer-brand { }
.footer-logo  { height: 30px; background: rgba(255,255,255,.15); border-radius: 5px; padding: 3px 8px; opacity: .85; margin-bottom: 10px; }
.footer-name  { color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.footer-text  { font-size: 12px; line-height: 1.6; }
.footer-disclaimer h4 { color: #fff; font-size: 12px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.footer-disclaimer p  { font-size: 11.5px; line-height: 1.65; }
.footer-bottom {
  max-width: 900px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Spinner ─────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .8s linear infinite; }

/* ── Scroll ──────────────────────────────────────────── */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
