* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter','Segoe UI',sans-serif;
  line-height: 1.6;
  background-color: #f6f7fb;
  color: #2b2f38;
  display: flex; flex-direction: column; min-height: 100vh;
}

/* Disclaimer topo */
.aviso-oficial {
  background: #fff8e1;
  color: #5b4708;
  border-bottom: 2px solid #f0c419;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  text-align: center;
}
.aviso-oficial strong { color: #7a5c00; }

/* Header */
.site-header {
  background: linear-gradient(90deg,#003366,#0055a5);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.site-header .left { display: flex; align-items: center; gap: 0.75rem; }
.site-header .logo { height: 36px; flex-shrink: 0; border-radius: 6px; background:#fff; padding:2px; }
.site-header .titulo { font-size: 1.15rem; font-weight: 600; margin: 0; white-space: nowrap; }

.menu-toggle {
  display: none; font-size: 1.6rem; cursor: pointer;
  background: none; border: none; color: white; padding: 0.25rem 0.5rem;
}

.wrapper { display: flex; flex: 1; }

nav {
  width: 240px; background: #ffffff;
  padding: 1.5rem 1rem; border-right: 1px solid #ececf3;
  display: flex; flex-direction: column; gap: 0.4rem;
}
nav a {
  text-decoration: none; color: #3a3f4b; padding: 0.6rem 0.85rem;
  border-radius: 8px; font-size: 0.95rem;
  transition: background .15s, color .15s;
}
nav a:hover { background: #e6eef7; color: #003366; }
nav a.active-link { background: #003366; color: #fff; font-weight: 600; }

main {
  flex: 1; padding: 2rem clamp(1rem,3vw,2.5rem);
  max-width: 960px;
}
main h2 { font-size: 1.7rem; margin-bottom: 1rem; color: #2b2f38; }
main h3 { margin-top: 1.2rem; margin-bottom: 0.5rem; color: #3a3f4b; }
main p { margin-bottom: 1rem; color: #4a4f5b; }
main img { max-width: 100%; height: auto; border-radius: 12px; margin-bottom: 1rem; }

.cta-button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(90deg,#003366,#0055a5);
  color: #fff; padding: 0.85rem 1.4rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0,51,102,0.25);
  transition: transform .15s, box-shadow .15s;
}
.cta-button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,51,102,0.35); }
.cta-button span { font-size: 1.2rem; }

.destaque-section {
  margin-top: 2.5rem; padding: 1.5rem; background: #fff;
  border-radius: 12px; border: 1px solid #ececf3;
}
.destaque-section h2 { font-size: 1.3rem; margin-bottom: 0.75rem; }

footer {
  background: #2b2f38; color: #cfd2da;
  padding: 1.2rem 1rem; text-align: center; font-size: 0.85rem;
}

/* Cookie banner */
#cookie-consent {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 480px; margin: 0 auto;
  background: #ffffff; color: #2b2f38;
  padding: 1rem; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  font-size: 0.85rem; z-index: 2000;
}
#cookie-consent a { color: #003366; }
#cookie-consent button {
  margin-top: 0.6rem; background: #003366; color: #fff;
  border: none; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer;
}

/* Chatbot */
#chatbot-container { width: 100%; }
.chat-container {
  width: 100%; max-width: 520px; margin: 0 auto;
  background: #fff; border: 1px solid #ececf3;
  border-radius: 14px; padding: 1rem; box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
}
#chat-box {
  height: 360px; overflow-y: auto; padding: 0.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fafafe; border-radius: 10px;
}
.chat-message {
  max-width: 80%; padding: 0.6rem 0.85rem;
  border-radius: 12px; font-size: 0.9rem; line-height: 1.4;
  word-wrap: break-word;
}
.bot-message { background: #e6eef7; color: #002244; align-self: flex-start; }
.user-message { background: #003366; color: #fff; align-self: flex-end; }
.chat-options { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 0.6rem; }
.option-button {
  background: #003366; color: #fff; border: none;
  padding: 0.6rem 0.9rem; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; transition: background .15s;
}
.option-button:hover { background: #0055a5; }
.cancel-button { background: #9aa0ad; }
.cancel-button:hover { background: #7e8392; }

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .wrapper { flex-direction: column; }
  nav {
    position: fixed; top: 0; left: 0; height: 100%;
    width: 75%; max-width: 280px;
    transform: translateX(-100%);
    z-index: 1500; box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  }
  nav.active { transform: translateX(0); }
  main { padding: 1.25rem; }
}

/* CTA principal dentro do chat */
.option-button.primary {
    background: linear-gradient(135deg, #003366, #0055a5);
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
    display: block;
}
.option-button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,51,102,0.35);
}
.option-button.cta-final {
    background: linear-gradient(135deg, #b00020, #e53935);
    text-align: center;
    font-size: 1.1rem;
    padding: 1rem;
    animation: pulseCta 1.6s ease-in-out infinite;
}
@keyframes pulseCta {
    0%,100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.55); }
    50%     { box-shadow: 0 0 0 10px rgba(229,57,53,0); }
}

/* Botão CTA final - azul do site */
.cta-final {
  display: inline-block;
  background: #0055a5;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(0,85,165,0.25);
}
.cta-final:hover { background: #003366; }
.cta-final:active { transform: translateY(1px); }
