/* =====================================================
   Prevent Senior - Estilos principais
   ===================================================== */

:root {
  --azul: #00486c;
  --azul-escuro: #002a3f;
  --azul-claro: #e8f1f6;
  --verde: #25d366;
  --verde-escuro: #1da851;
  --cinza: #6c757d;
  --texto: #222;
  --branco: #fff;
  --borda: #dde3ea;
  --sombra: 0 4px 20px rgba(0, 40, 70, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TOPBAR ========== */
.topbar {
  background: #edf0f3;
  color: #333;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #dde2e6;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.topbar a {
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar a:hover { color: var(--azul); text-decoration: none; }
.topbar i { color: var(--azul); font-size: 14px; }
.topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--azul);
}
.topbar-wa {
  background: #e8f8ef;
  color: #146c2e !important;
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar-wa i { color: #25d366 !important; }
.topbar-social span { font-weight: 600; color: #555; }

.topbar-social {
  display: flex;
  gap: 12px;
}

.topbar-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.topbar-social a:hover {
  background: var(--azul-escuro);
  color: #fff;
}

/* ========== NAVBAR ========== */
.navbar {
  background: var(--branco);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  line-height: 1.2;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  color: var(--cinza);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 14px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.nav-links a:hover {
  background: var(--azul-claro);
  color: var(--azul);
  text-decoration: none;
}

.btn-nav {
  background: var(--azul) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-nav:hover {
  background: var(--azul-escuro) !important;
  color: #fff !important;
}
.btn-nav-wa {
  background: var(--verde) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.btn-nav-wa:hover {
  background: var(--verde-escuro) !important;
}

.menu-toggle {
  display: none;
  background: var(--azul);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #00486c 0%, #003a58 55%, #001f30 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 auto 18px !important;
}
.hero-list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  justify-items: start;
}
.hero-list-center {
  max-width: 520px;
  margin: 0 auto 28px;
}
.hero-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.hero-list i {
  color: var(--verde);
}
.btn-ghost {
  background: #f3f7fa;
  color: var(--azul) !important;
  border: 1px solid var(--borda);
}
.btn-lg { min-height: 52px; font-size: 16px; }
.hero-hours {
  margin: 22px auto 0 !important;
  font-size: 14px !important;
  opacity: 0.85;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: var(--sombra);
}
.step span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--azul);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}
.step h3 { color: var(--azul); margin-bottom: 8px; }
.step p { color: var(--cinza); font-size: 14px; }
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #146c2e;
  font-weight: 700;
  font-size: 13px;
}
.footer-wa { margin-top: 14px; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 45%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  color: #7ec8e8;
  font-size: 0.85em;
}

.hero p {
  font-size: 18px;
  opacity: 0.92;
  max-width: 620px;
  margin: 0 auto 28px;
}
.hero-copy p {
  margin: 0 0 20px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero .btn-green {
  min-width: 280px;
  letter-spacing: 0.3px;
}

/* ========== BOTÕES ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: 0.25s;
  line-height: 1.2;
}

.btn-green {
  background: var(--verde);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn-green:hover {
  background: var(--verde-escuro);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.45);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.btn-blue {
  background: var(--azul);
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 72, 108, 0.3);
}

.btn-blue:hover {
  background: var(--azul-escuro);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
}

/* ========== SEÇÕES ========== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: #f5f8fb;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(24px, 3vw, 30px);
  color: var(--azul);
  margin-bottom: 8px;
  font-weight: 800;
}

.section-title p {
  color: var(--cinza);
  font-size: 16px;
}

/* ========== CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cards-servicos {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--sombra);
  border: 1px solid #eef2f6;
  transition: 0.25s;
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

a.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 40, 70, 0.12);
  border-color: #25d366;
  text-decoration: none !important;
}

.card:hover .card-icon {
  background: #e8f8ef;
  color: #25d366;
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--azul-claro);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: 0.25s;
}

.card h3 {
  font-size: 17px;
  color: var(--azul);
  margin-bottom: 8px;
  font-weight: 700;
}

.card p {
  font-size: 14px;
  color: var(--cinza);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--borda);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: #fff;
  border: none;
  text-align: left;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--azul);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}

.faq-q:hover { background: #f7fafc; }

.faq-q i {
  color: var(--cinza);
  transition: 0.2s;
}

.faq-item.open .faq-q i {
  transform: rotate(180deg);
  color: var(--azul);
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.faq-item.open .faq-a {
  display: block;
}

/* ========== CTA ========== */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  color: #fff;
  border-radius: 16px;
  padding: 48px 24px;
}

.cta-box h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 22px;
}

/* ========== FORM PAGE ========== */
.page-header {
  background: linear-gradient(135deg, var(--azul), var(--azul-escuro));
  color: #fff;
  padding: 40px 0 30px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.9;
  font-size: 15px;
}

.breadcrumb {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.breadcrumb a { color: #fff; text-decoration: underline; }

.form-wrap {
  background: #f5f8fb;
  padding: 40px 0 60px;
  min-height: 60vh;
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--sombra);
  border: 1px solid #eef2f6;
}

.form-card h2 {
  font-size: 18px;
  color: var(--azul);
  border-bottom: 2px solid var(--azul-claro);
  padding-bottom: 10px;
  margin: 22px 0 18px;
  font-weight: 700;
}

.form-card h2:first-of-type {
  margin-top: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-bottom: 6px;
}

.required { color: #d32f2f; }

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--borda);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--texto);
  transition: 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0, 72, 108, 0.12);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  appearance: auto;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #f7fafc;
  border: 1px dashed var(--borda);
  border-radius: 8px;
  padding: 12px 14px;
}

.captcha-box span {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.captcha-box input {
  width: 90px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.alert {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
}

.alert.show { display: block; }

.alert-success {
  background: #e8f8ef;
  color: #146c2e;
  border: 1px solid #b7ebc6;
}

.alert-error {
  background: #fdecea;
  color: #a12622;
  border: 1px solid #f5c2c0;
}

.form-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== FOOTER ========== */
.footer {
  background: #121826;
  color: #a0a7b4;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 30px;
}

.footer h3 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer ul li {
  margin-bottom: 8px;
  font-size: 13px;
  list-style: none;
}

.footer a {
  color: #a0a7b4;
  text-decoration: none;
}

.footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #252d3d;
  padding-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

/* ========== CHATBOT ========== */
.chatbot {
  position: static;
  z-index: 99999;
  font-family: inherit;
  pointer-events: none;
}
.chatbot > * { pointer-events: auto; }
.chatbot-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--verde);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.chatbot-launcher i { font-size: 20px; }
.chatbot-window {
  position: fixed;
  inset: 0;
  z-index: 100001;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chatbot.is-open .chatbot-launcher { display: none; }
.chatbot-window[hidden] { display: none !important; }
body.chat-open { overflow: hidden; }
.chatbot-head {
  background: var(--azul);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.chatbot-head small {
  display: block;
  opacity: 0.8;
  font-size: 12px;
}
.chatbot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  background: #f4f7fa;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  max-width: min(640px, 92%);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.chat-msg.bot {
  background: #fff;
  color: #223;
  border: 1px solid #e6edf3;
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--azul);
  color: #fff;
  align-self: flex-end;
}
.chatbot-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: #f4f7fa;
  max-height: 38%;
  overflow-y: auto;
  flex-shrink: 0;
}
.chatbot-quick button {
  border: 1px solid #d5e0e8;
  background: #fff;
  color: var(--azul);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.chatbot-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e6edf3;
  background: #fff;
  flex-shrink: 0;
}
.chatbot-form input {
  flex: 1;
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
}
.chatbot-form button {
  width: 52px;
  border: none;
  border-radius: 12px;
  background: var(--azul);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.link-like {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.link-like:hover { color: #fff; }

/* ========== RESPONSIVO ========== */
@media (max-width: 992px) {
  .cards, .cards-servicos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-atend, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 16px;
    border-bottom: 1px solid #f2f2f2;
  }

  .navbar { position: relative; }
  .topbar { display: none !important; }

  .cards, .cards-servicos { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; margin: 0 4px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  .hero p { font-size: 15px; }
  .steps { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; max-width: none; }
  .chatbot-launcher span { display: none; }
  .chatbot-launcher { width: 56px; padding: 0; justify-content: center; }
}
