:root {
  --bg: #ffffff;
  --soft: #f6f8fb;
  --text: #0f172a;
  --muted: #475569;
  --line: #e5e7eb;

  /* COR PRINCIPAL: Azul #2F6AB2 */
  --brand: #2F6AB2;
  --brand2: #4582ce;
  
  --radius: 18px;
  --shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  overflow-x: hidden; /* Importante para o menu lateral não quebrar o layout */
}

a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.link { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--text); cursor: pointer; transition: .18s;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05); font-size: 0.95rem;
}
.btn:active { transform: scale(0.98); }
.btn:hover { transform: translateY(-1px); }
.btn i { width: 18px; height: 18px; }

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: transparent; color: #ffffff; font-weight: 900;
}

.btn.soft {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; box-shadow: none; backdrop-filter: blur(10px);
}
.btn.soft:hover { border-color: rgba(255, 255, 255, .38); }
.btn.full { width: 100%; }
.btn.sm { padding: 10px 12px; border-radius: 12px; }

/* Header & Logos */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logos { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 42px; width: auto; display: block; object-fit: contain; }
.brand-logo.secondary { height: 38px; opacity: .98; }

.brand-badge {
  font-weight: 700; font-size: .85rem; color: var(--text);
  padding: 6px 10px; border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px; background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(8px); line-height: 1; white-space: nowrap;
}

/* Navigation Desktop */
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); font-weight: 800; font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* ===== Menu Mobile (Gaveta Lateral) ===== */

/* Botão Hambúrguer */
.menu-btn {
  display: none; /* Escondido no desktop */
  background: transparent; border: 0; cursor: pointer; padding: 8px;
  z-index: 100; position: relative;
}
.menu-btn span {
  display: block; width: 26px; height: 2px;
  background: var(--text); margin: 6px 0;
  border-radius: 99px; transition: all 0.3s ease;
}

/* Animação X */
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); background: var(--brand); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); background: var(--brand); }

/* Gaveta Lateral */
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 280px; max-width: 85vw;
  background: #fff;
  z-index: 90;
  padding-top: 80px; padding-left: 24px; padding-right: 24px;
  box-shadow: -5px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; gap: 0;
}

.mobile-nav.show { transform: translateX(0); }

/* Backdrop Escuro (Cobre o site quando menu abre) */
.mobile-nav.show::before {
  content: ''; position: fixed;
  top: 0; bottom: 0; width: 100vw;
  right: 280px; /* Começa onde o menu termina */
  background: rgba(15, 23, 42, 0.5); /* Escuro transparente */
  backdrop-filter: blur(2px);
  z-index: -1;
  pointer-events: none; /* Deixa clicar fora para fechar se configurado no JS */
}

.mobile-nav a {
  display: block; font-size: 1.1rem; font-weight: 700;
  color: var(--text); padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--brand); padding-left: 6px; transition: .2s; }

.mobile-nav .btn { margin-top: 24px; width: 100%; }

/* ===== Banner FULL WIDTH ===== */
.banner-full { width: 100%; background: #fff; border-bottom: 1px solid var(--line); }

.banner-swiper {
  width: 100vw; position: relative;
  left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}

.banner-bg {
  position: relative;
  height: clamp(620px, 82vh, 920px);
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

.banner-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .10) 100%),
    /* Tons de Azul Ajustados */
    radial-gradient(900px 420px at 18% 20%, rgba(47, 106, 178, .22), transparent 60%),
    radial-gradient(800px 420px at 80% 18%, rgba(59, 130, 246, .16), transparent 60%);
}

.banner-overlay-content {
  position: relative; z-index: 2; padding: 0;
  color: #fff; max-width: 980px; width: 100%;
}

.kicker {
  color: rgba(255, 255, 255, .88); font-weight: 900;
  letter-spacing: .10em; text-transform: uppercase; font-size: .78rem;
}

.banner-overlay-content h1,
.banner-overlay-content h2 {
  margin: 14px 0 14px; line-height: 1.05; color: #fff;
  text-shadow: 0 18px 46px rgba(0, 0, 0, .40);
}
.banner-overlay-content h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.banner-overlay-content h2 { font-size: clamp(2.1rem, 4.0vw, 3.2rem); }

.sub {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6; text-shadow: 0 12px 32px rgba(0, 0, 0, .30); margin: 0;
}

.mark {
  background: rgba(47, 106, 178, .24);
  border: 1px solid rgba(47, 106, 178, .40);
  color: #fff; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}

.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.banner-micro {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px;
  color: rgba(255, 255, 255, .92); font-weight: 800; font-size: .92rem;
}
.banner-micro span, .banner-bullets span {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 10px 12px; border-radius: 999px; backdrop-filter: blur(10px);
}
.banner-micro i, .banner-bullets i { width: 16px; height: 16px; color: #93c5fd; }

.banner-bullets {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 18px; font-weight: 900; color: rgba(255, 255, 255, .92);
}

/* Swiper Controls */
.swiper-button-prev, .swiper-button-next { color: rgba(255, 255, 255, .92); }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 18px; font-weight: 900; }
.swiper-pagination-bullet { background: rgba(255, 255, 255, .45); opacity: 1; }
.swiper-pagination-bullet-active { background: rgba(47, 106, 178, .90); }

/* Sections */
.section { padding: 54px 0; }
.soft-bg { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0 0 8px; font-size: 1.75rem; line-height: 1.2; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  display: flex; flex-direction: column; height: 100%;
}
.card i { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.card h3 { margin: 10px 0 6px; font-size: 1.02rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.45; }

.cta-row {
  margin-top: 18px; border: 1px solid rgba(47, 106, 178, .25);
  background: #fff; border-radius: var(--radius); padding: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}
.cta-title { font-weight: 900; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.checklist i { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; flex-shrink: 0; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); overflow: hidden;
}
.panel-top {
  padding: 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(47, 106, 178, .10), #fff);
}
.panel-title { font-weight: 900; font-size: 1.05rem; }
.panel-sub { color: var(--muted); margin-top: 4px; }
.panel-body { padding: 16px; }

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-weight: 900;
}

/* FAQ */
.faq { display: grid; gap: 10px; }
details {
  border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
summary { cursor: pointer; font-weight: 900; list-style: none; }
summary::-webkit-details-marker { display: none; }
details > div { margin-top: 10px; line-height: 1.5; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Floating WA */
.float-wa {
  position: fixed; right: 18px; bottom: 24px; z-index: 60;
  display: flex; gap: 10px; align-items: center;
  padding: 12px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #ffffff; font-weight: 900; box-shadow: 0 18px 40px rgba(15, 23, 42, .25);
  transition: transform .2s;
}
.float-wa:hover { transform: translateY(-3px); }
.float-wa:active { transform: scale(0.95); }
.float-wa i { width: 18px; height: 18px; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; z-index: 80; }
.modal.show { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .65); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(560px, 94%);
  margin: 7vh auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 24px; box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
}
.modal-close {
  position: absolute; right: 16px; top: 16px; background: var(--soft);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; color: var(--text);
}

.form { display: grid; gap: 12px; margin-top: 16px; }
.form label { font-weight: 900; font-size: .92rem; }
.form input {
  width: 100%; padding: 14px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--text); outline: none; font-size: 1rem;
}
.form input:focus { border-color: rgba(47, 106, 178, .45); box-shadow: 0 0 0 3px rgba(47, 106, 178, .10); }

.alert {
  border-radius: 14px; padding: 10px 12px; border: 1px solid rgba(239, 68, 68, .30);
  background: rgba(239, 68, 68, .08); color: #7f1d1d;
}

/* =========================================
   MELHORIAS RESPONSIVAS (MOBILE E TABLET) 
   ========================================= */

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 768px) {
  /* 1. Ajuste de Espaçamentos Globais */
  .container { width: 92%; }
  .section { padding: 36px 0; }
  
  /* 2. Banner Otimizado */
  .banner-bg { height: auto; min-height: 520px; padding: 60px 0 40px; }
  .banner-overlay { background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%); }
  .banner-overlay-content h1 { font-size: 2.1rem; margin-top: 10px; }
  .banner-overlay-content h2 { font-size: 1.8rem; }
  
  /* 3. Botões Largos */
  .banner-actions { flex-direction: column; width: 100%; gap: 10px; }
  .banner-actions .btn { width: 100%; padding: 14px; }
  .cta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-row .btn { width: 100%; margin-top: 10px; }
  
  /* 4. Ajustes de Logos */
  .brand-logo { height: 32px; }
  .brand-logo.secondary { height: 28px; }
  .brand-badge { font-size: 0.75rem; padding: 4px 8px; }
  
  /* 5. Rodapé */
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  
  /* 6. Modal Mobile */
  .modal-card { 
    margin: 0; position: absolute; bottom: 0; 
    width: 100%; border-radius: 24px 24px 0 0; 
    padding-bottom: 30px;
  }
}