/* ==========================================================================
   Landing Pages SAG — estilos compartilhados
   Usado por index.html (todos os segmentos) e pelas LPs por segmento.
   ========================================================================== */

:root {
  --red: #e8231a;
  --red-dark: #b81912;
  --black: #0d0d0d;
  --dark: #141414;
  --dark2: #1c1c1c;
  --dark3: #242424;
  --border: #2e2e2e;
  --text: #e0e0e0;
  --text-muted: #8a8a8a;
  --white: #ffffff;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

/* ── HERO ── */
.hero {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(232,35,26,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero h1 .accent { color: var(--red); }
.hero p {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 40px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 16px 32px;
  border: 1px solid var(--border);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.btn-whatsapp:hover { border-color: var(--red); background: rgba(232,35,26,0.08); transform: translateY(-2px); }

/* ── WHATSAPP FLOATING WIDGET ── */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff;
  padding: 14px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.whatsapp-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-float .wa-text { white-space: nowrap; }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 0 10px rgba(37,211,102,0); }
}
@media (max-width: 480px) {
  .whatsapp-float .wa-text { display: none; }
  .whatsapp-float { padding: 14px; }
}

/* ── SECTION GENERIC ── */
section { padding: 80px 24px; }
.container { max-width: 1060px; margin: 0 auto; }
.section-tag {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-title .accent { color: var(--red); }
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ── BENEFITS ── */
.benefits { background: var(--dark2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.benefit-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.benefit-card:hover { border-color: var(--red); transform: translateY(-4px); }
.benefit-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.benefit-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ── WHY SAG ── */
.why { background: var(--black); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 680px) { .why-inner { grid-template-columns: 1fr; gap: 32px; } }
.why-points { display: flex; flex-direction: column; gap: 20px; }
.why-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 7px;
}
.why-point p { font-size: 16px; color: var(--text); line-height: 1.65; }
.why-point p strong { color: var(--white); }
.why-highlight {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 6px;
  padding: 36px 30px;
}
.why-highlight p {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.25;
}
.why-highlight p .accent { color: var(--red); }

/* ── STEPS ── */
.steps { background: var(--dark2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.step-num {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: rgba(232,35,26,0.08);
  position: absolute;
  top: -10px;
  right: 16px;
  line-height: 1;
  user-select: none;
}
.step-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ── FORM SECTION ── */
.form-section {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 80px 24px;
}
.form-wrap {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}
.form-wrap .section-title { margin-bottom: 8px; }
.form-wrap .section-sub { margin: 0 auto 36px; }

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}
.required-star { color: var(--red); }
input {
  width: 100%;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
input:focus { border-color: var(--red); }
.btn-submit {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ── CHAT WHATSAPP (pré-qualificação) ── */
.chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 22px;
  backdrop-filter: blur(2px);
}
.chat-overlay.open { display: flex; }
.chat-box {
  width: 100%;
  max-width: 380px;
  height: min(560px, calc(100vh - 44px));
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatIn 0.25s ease both;
}
@keyframes chatIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #075E54;
  padding: 12px 14px;
  flex-shrink: 0;
}
.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 24px; height: 24px; }
.chat-head-info { flex: 1; min-width: 0; }
.chat-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.chat-status {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7bf7a5;
}
.chat-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}
.chat-close:hover { color: #fff; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--dark2);
}
.chat-msg {
  max-width: 82%;
  padding: 10px 13px;
  font-size: 14.5px;
  line-height: 1.5;
  border-radius: 12px;
  word-wrap: break-word;
  animation: chatMsgIn 0.25s ease both;
}
@keyframes chatMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
  color: var(--text);
}
.chat-msg.me {
  align-self: flex-end;
  background: #075E54;
  border-bottom-right-radius: 3px;
  color: #fff;
}
.chat-msg.error {
  background: rgba(232,35,26,0.12);
  border-color: var(--red);
  color: #ffb3af;
}
.chat-typing {
  align-self: flex-start;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
  padding: 12px 14px;
  display: flex;
  gap: 4px;
}
.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: chatDot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--dark);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-form input {
  flex: 1;
  border-radius: 50px;
  padding: 12px 16px;
  background: var(--dark3);
}
.chat-send {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.chat-send:hover:not(:disabled) { background: #1eb556; transform: scale(1.05); }
.chat-send:disabled { opacity: 0.45; cursor: default; }
.chat-send svg { width: 20px; height: 20px; }
.chat-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  animation: chatMsgIn 0.25s ease both;
}
.chat-cta svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .chat-overlay { padding: 0; }
  .chat-box { max-width: none; height: 100%; border: none; border-radius: 0; }
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
footer strong { color: var(--text); }

/* ── ANIMS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero h1, .hero p, .hero .btn-primary {
  animation: fadeUp 0.7s ease both;
}
.hero p { animation-delay: 0.1s; }
/* LPs por capital: linha de atendimento local logo abaixo do texto do hero */
.hero .hero-local {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text);
  margin-top: -20px;
}
.hero .btn-primary { animation-delay: 0.2s; }

/* ── DIFERENCIAIS E FUNCIONALIDADES (cards clicáveis com modal) ──
   Conteúdo gerado por tools/gerar-conteudo.mjs a partir de conteudo/funcionalidades.json */
.diferenciais { background: var(--black); border-bottom: 1px solid var(--border); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feat-card {
  /* <button>: zera o estilo nativo para parecer com .benefit-card */
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feat-card:hover, .feat-card:focus-visible { border-color: var(--red); transform: translateY(-4px); outline: none; }
.feat-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feat-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.feat-more {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.feat-grid-dif .feat-card { border-top: 3px solid var(--red); background: var(--dark2); }
.feat-grid-dif .feat-card h3 { font-size: 24px; }

.feat-modal {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--dark2);
  color: var(--text);
  padding: 0;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
}
.feat-modal::backdrop { background: rgba(0,0,0,0.72); }
.feat-modal-box { position: relative; padding: 36px 32px 32px; }
/* Sticky (e não absolute): no celular o modal rola e o X continua à vista */
.feat-modal-close {
  position: sticky; top: 6px; float: right; z-index: 1;
  margin: -26px -22px 0 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark2); border: none; color: var(--text-muted);
  font-size: 32px; line-height: 1; cursor: pointer;
}
.feat-modal-close:hover { color: var(--white); }
.feat-modal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 28px 14px 0;
}
.feat-modal-intro { color: var(--text); margin-bottom: 18px; }
.feat-modal-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feat-modal-list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.feat-modal-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.feat-modal-list strong { color: var(--white); }
.feat-modal-note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.feat-modal-ctas { margin-top: 26px; }
@media (max-width: 520px) {
  .feat-modal-box { padding: 32px 20px 24px; }
  .feat-modal-close { margin: -22px -10px 0 0; }
}

/* ── CTA NO MEIO DA PÁGINA ── */
.cta-band { background: var(--dark); border-bottom: 1px solid var(--border); padding: 44px 24px; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.15;
  max-width: 520px;
}
.cta-band-text .accent { color: var(--red); }
.cta-band-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── PROVA SOCIAL ── */
.prova { background: var(--dark2); border-bottom: 1px solid var(--border); }
.logo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.logo-tile {
  height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
}
.logo-tile.claro { background: #f7f2ea; }
.logo-tile img { max-width: 100%; max-height: 64px; width: auto; height: auto; display: block; }
.prova-nomes { margin-top: 22px; color: var(--text-muted); font-size: 15px; }
.prova-quote {
  margin-top: 40px;
  border-left: 4px solid var(--red);
  padding-left: 24px;
}
.prova-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.2;
}
.prova-quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.prova-quote figcaption img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--red); }
.prova-quote figcaption strong { display: block; color: var(--white); }
.prova-quote figcaption span { color: var(--text-muted); font-size: 14px; }
.steps-cta { margin-top: 40px; text-align: center; }
.nowrap { white-space: nowrap; }
