/*
  styles.css — Estilos leves, acessíveis e performáticos.
  - Sem frameworks
  - Fontes do sistema
  - Layout responsivo
*/

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --primary: #f97316; /* laranja 500 */
  --primary-600: #ea580c; /* laranja 600 */
  --surface: #fff7ed; /* laranja muito claro */
  --border: #e5e7eb;
  --info: #f59e0b; /* âmbar para mensagens informativas */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .brand { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.site-header .brand-name { font-weight: 600; }
.site-header .site-nav { display: flex; gap: 16px; padding: 12px 16px; }
.site-header .site-nav a { color: var(--text); opacity: 0.8; }
.site-header .site-nav a:hover { opacity: 1; }
/* Ajuste de tamanho do logo no header */
.brand-logo { width: 32px; height: 32px; display: block; }
.hero { background: linear-gradient(180deg, var(--surface), #fff); border-bottom: 1px solid var(--border); }
.hero-content { padding: 48px 16px; max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 12px; }
.hero-sub { color: var(--muted); margin: 0 auto 16px; max-width: 700px; }
.hero-actions { display: inline-flex; gap: 12px; margin-top: 16px; }

.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-600); }

.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.info-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }

.alert { border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
/* Alertas com tom alaranjado */
.alert.info { background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; }

.timeline { list-style: none; padding: 0; border-left: 2px solid var(--border); margin: 16px 0 0 8px; }
.timeline li { padding: 8px 0 8px 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 16px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; }
.timeline .date { font-weight: 600; margin-right: 6px; }
.timeline .desc { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 16px; text-align: center; color: var(--muted); }

/* Acessibilidade */
:focus { outline: 3px solid #fdba74; outline-offset: 2px; }

/* Responsivo */
@media (max-width: 640px) {
  .site-header .site-nav { flex-wrap: wrap; }
}
/* Novo layout: hero em grid e seções alternadas */
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.hero-left { padding: 32px 0; }
.hero-right { padding: 32px 0; }
.pill { display: inline-block; margin-top: 12px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Banner de cookies (antigo) removido e substituído pelo modal */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8); /* mais escuro */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 9999; /* acima de qualquer header */
}
.cookie-box {
  background: #fff;
  color: #0b0b0b;
  width: min(560px, calc(100% - 32px));
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.cookie-box h2 { margin-top: 0; }
.cookie-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn:hover { filter: brightness(0.98); }
.btn.primary:hover { background: var(--primary-600); }

.cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.info-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff; }

.alert { border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
/* Alertas com tom alaranjado */
.alert.info { background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; }

.timeline { list-style: none; padding: 0; border-left: 2px solid var(--border); margin: 16px 0 0 8px; }
.timeline li { padding: 8px 0 8px 12px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 16px; width: 10px; height: 10px; background: var(--primary); border-radius: 50%; }
.timeline .date { font-weight: 600; margin-right: 6px; }
.timeline .desc { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 16px; text-align: center; color: var(--muted); }

/* Acessibilidade */
:focus { outline: 3px solid #fdba74; outline-offset: 2px; }

/* Responsivo */
@media (max-width: 640px) {
  .site-header .site-nav { flex-wrap: wrap; }
}
/* Novo layout: hero em grid e seções alternadas */
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.hero-left { padding: 32px 0; }
.hero-right { padding: 32px 0; }
.pill { display: inline-block; margin-top: 12px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Banner de cookies (antigo) removido e substituído pelo modal */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8); /* mais escuro */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 9999; /* acima de qualquer header */
}
.cookie-box {
  background: #fff;
  color: #0b0b0b;
  width: min(560px, calc(100% - 32px));
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.cookie-box h2 { margin-top: 0; }
.cookie-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }

/* Escurece e desabilita interação do conteúdo enquanto o overlay está ativo */
body.overlay-active #conteudo {
  filter: brightness(0.25) blur(2px);
  pointer-events: none;
}

/* Fallback se browser não suportar backdrop-filter */
@supports not (backdrop-filter: blur(2px)) {
  .cookie-overlay { background: rgba(0, 0, 0, 0.85); }
}
.cookie-box h2 { margin: 0 0 8px; }
.cookie-box p { margin: 0 0 12px; color: var(--muted); }
.cookie-actions { display: flex; justify-content: flex-end; gap: 8px; }