/* =========================================================
   EBL Master Corretora de Seguros
   Estilos pensados primeiro para o celular (mobile-first)
   e adaptados para tablet e computador.
   ========================================================= */

:root {
  --navy: #0C3B60;       /* títulos */
  --blue: #0C4E7E;       /* azul da marca */
  --blue-2: #0C6A9D;
  --green: #157E43;      /* verde da marca (botões) */
  --green-dark: #0F6234;
  --green-soft: #E2F1E7;
  --blue-soft: #E1EEF7;
  --ink: #10283D;        /* texto */
  --ink-2: #3E5266;      /* texto secundário */
  --muted: #56687A;
  --line: #E3EAF1;
  --line-2: #C9D5E1;
  --bg-soft: #F3F7FA;
  --white: #FFFFFF;

  --font-title: "Montserrat", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 59, 96, 0.08);
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); }
a:hover { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-title); color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid rgba(12, 106, 157, 0.45); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 960px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 12px;
  padding: 14px 22px; min-height: 48px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue); }
.btn-lg { font-size: 17px; padding: 16px 24px; min-height: 54px; }
.btn-sm { padding: 10px 18px; min-height: 44px; border-radius: 999px; }
/* Ícone oficial do WhatsApp (preenchido, herda a cor do texto) */
.wa-icon { fill: currentColor; stroke: none; flex: none; }
.btn .wa-icon { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-title); font-weight: 800; font-size: 18px; color: var(--blue); letter-spacing: .5px; }
.brand-sub { font-family: var(--font-title); font-weight: 600; font-size: 9.5px; color: var(--blue); letter-spacing: 1.1px; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: transparent; color: var(--blue); cursor: pointer;
}
.menu-toggle:hover { background: var(--bg-soft); }

/* Menu no celular: abre como lista abaixo do cabeçalho */
.main-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 4px;
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: 0 16px 24px rgba(12, 59, 96, 0.08);
}
.main-nav.open { display: flex; }
.main-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  font-weight: 500; font-size: 17px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.main-nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-inner { display: flex; flex-direction: column; gap: 36px; padding-top: 40px; padding-bottom: 48px; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }

.badge {
  align-self: flex-start;
  background: var(--green-soft); color: var(--green-dark);
  font-weight: 700; font-size: 11.5px; letter-spacing: .6px;
  padding: 7px 12px; border-radius: 999px;
}
.hero h1 { font-weight: 800; font-size: clamp(30px, 8.2vw, 56px); letter-spacing: -0.5px; line-height: 1.1; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 580px; }

.hero-ctas { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.hero-ctas .btn { width: 100%; }

.checks { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero-cards { display: flex; flex-direction: column; gap: 12px; }
.product-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid #DCE5EE; border-radius: 18px;
  padding: 18px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.product-card:hover { border-color: var(--blue-2); transform: translateY(-2px); color: var(--ink); }
.product-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.product-icon svg { width: 28px; height: 28px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-green { background: var(--green-soft); } .icon-green svg { stroke: var(--green); }
.icon-blue { background: var(--blue-soft); } .icon-blue svg { stroke: var(--blue-2); }
.product-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.product-text strong { font-family: var(--font-title); font-weight: 700; font-size: 18px; color: var(--navy); }
.product-text span { font-size: 14.5px; color: #4A5D70; line-height: 1.4; }
.chev { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.susep-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--blue); color: var(--white);
  border-radius: 18px; padding: 16px 18px; font-size: 14.5px; line-height: 1.4;
}
.susep-card svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #9FD27A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Seções ---------- */
.section-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; margin-bottom: 28px; }
.section-head h2 { font-weight: 800; font-size: clamp(26px, 6.4vw, 40px); }
.section-head p { font-size: 17px; color: var(--ink-2); max-width: 620px; }

/* ---------- Parceiras ---------- */
.partners { padding: 52px 0; }
.group-title { font-weight: 700; font-size: 17px; margin: 24px 0 12px; }
.logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.logo-grid li {
  height: 76px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.logo-grid img { max-width: 100%; max-height: 34px; width: auto; height: auto; object-fit: contain; }
.logo-grid img.tall { max-height: 46px; }
.logo-grid img.sm { max-height: 26px; }

/* ---------- Cotação ---------- */
.quote { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0; scroll-margin-top: 68px; }

.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--white); border: 1px solid #DCE5EE; border-radius: 999px;
  padding: 5px; margin: 0 auto 20px; max-width: 440px;
}
.tabs button {
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border: 0; border-radius: 999px; min-height: 48px; padding: 8px 12px;
  background: transparent; color: var(--blue); cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--blue); color: var(--white); }

.quote-form, .success {
  background: var(--white); border: 1px solid #DCE5EE; border-radius: 20px;
  padding: 24px 18px; box-shadow: var(--shadow);
}
.quote-form { display: flex; flex-direction: column; gap: 32px; }

.block { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.block > legend {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 14px; font-family: var(--font-title); font-weight: 700; font-size: 19px; color: var(--navy);
}
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-size: 15px; flex: none;
}

.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; color: #1D3347; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 13.5px; font-weight: 400; color: var(--muted); }

input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; min-height: 50px;
  font-family: var(--font-body); font-size: 16px; /* 16px evita o zoom automático no iPhone */
  color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230C4E7E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px;
}
input::placeholder { color: #8796A5; }
input:focus, select:focus { outline: 3px solid rgba(12, 106, 157, .25); border-color: var(--blue-2); }
input.invalido { border-color: #C0392B; }

/* Escolhas em "pílulas" (são radios de verdade, acessíveis) */
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice > legend { padding: 0 0 10px; font-size: 15px; font-weight: 500; color: #1D3347; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 18px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--white);
  font-size: 15px; font-weight: 500; color: #1D3347; cursor: pointer; user-select: none;
  transition: background-color .12s, border-color .12s, color .12s;
}
.pill span:hover { border-color: var(--blue-2); }
.pill input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); font-weight: 700; }
.pill input:focus-visible + span { outline: 3px solid rgba(12, 106, 157, .45); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--green); }

.form-footer { display: flex; flex-direction: column-reverse; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.btn-submit { width: 100%; }
.lgpd { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.lgpd svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 40px 20px; }
.success:focus { outline: none; }
.success-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.success-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { font-weight: 800; font-size: 23px; }
.success p { font-size: 16px; color: var(--ink-2); max-width: 480px; }
.success .btn { width: 100%; max-width: 340px; }

/* ---------- Como funciona ---------- */
.how { padding: 52px 0; }
.steps { display: grid; grid-template-columns: 1fr; gap: 14px; }
.steps li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 800; font-size: 19px;
}
.step-green { background: var(--green); }
.steps h3 { font-weight: 700; font-size: 19px; }
.steps p { color: var(--ink-2); }

/* ---------- Por que ---------- */
.why { background: var(--blue); color: var(--white); padding: 52px 0; }
.why-inner { display: flex; flex-direction: column; gap: 28px; }
.why h2 { color: var(--white); font-weight: 800; font-size: clamp(26px, 6.4vw, 40px); }
.why-intro { display: flex; flex-direction: column; gap: 14px; }
.why-intro p { font-size: 17px; color: #D6E6F2; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.why-grid li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.why-grid h3 { color: var(--white); font-weight: 700; font-size: 17px; }
.why-grid p { font-size: 15px; color: #D6E6F2; }

/* ---------- CTA ---------- */
.cta { padding: 48px 0; }
.cta-box { background: var(--green-soft); border-radius: 22px; padding: 28px 22px; display: flex; flex-direction: column; gap: 20px; }
.cta-box h2 { font-weight: 800; font-size: 25px; line-height: 1.2; }
.cta-box p { font-size: 16px; color: #2F4558; margin-top: 8px; }
.cta-box .btn { width: 100%; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 44px 0 96px; font-size: 15px; color: var(--ink-2); }
.footer-cols { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer-brand img { width: 160px; }
.footer-title { font-family: var(--font-title); font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 10px; }
.site-footer ul { display: flex; flex-direction: column; gap: 4px; }
.site-footer li { min-height: 32px; display: flex; align-items: center; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid #DCE5EE; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 60;
  color: var(--white);
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.wa-float:hover { background: #1EBE5A; color: var(--white); }
.wa-float .wa-icon { width: 32px; height: 32px; }
/* Esconde o botão flutuante enquanto a pessoa preenche o formulário */
body.preenchendo .wa-float { opacity: 0; pointer-events: none; }

/* =========================================================
   Tablet (a partir de 640px)
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas .btn { width: auto; }
  .checks { flex-direction: row; flex-wrap: wrap; gap: 10px 24px; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .quote-form { padding: 36px 32px; }
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
  .btn-submit { width: auto; }
  .lgpd { justify-content: flex-start; text-align: left; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; }
  .cta-box .btn { width: auto; flex: none; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

/* =========================================================
   Computador (a partir de 960px)
   ========================================================= */
@media (min-width: 960px) {
  .header-inner { min-height: 76px; }
  .brand img { width: 46px; }
  .brand-name { font-size: 20px; }
  .brand-sub { font-size: 10.5px; letter-spacing: 1.2px; }
  .menu-toggle { display: none; }
  .main-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 26px;
    padding: 0; border: 0; box-shadow: none; background: transparent;
  }
  .main-nav a:not(.btn) { min-height: 44px; border: 0; font-size: 15px; color: #1D3347; }
  .main-nav a:not(.btn):hover { color: var(--blue-2); }
  .main-nav .btn { margin-top: 0; }

  .hero-inner { flex-direction: row; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 88px; }
  .hero-text { flex: 1.35; gap: 24px; }
  .hero-cards { flex: 1; gap: 16px; }
  .badge { font-size: 13px; padding: 8px 14px; }
  .lead { font-size: 20px; }
  .product-card { padding: 26px; gap: 20px; }
  .product-icon { width: 60px; height: 60px; }
  .product-text strong { font-size: 20px; }

  .partners, .how, .why { padding: 88px 0; }
  .quote { padding: 88px 0; scroll-margin-top: 76px; }
  .section-head { margin-bottom: 36px; }
  .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .logo-grid li { height: 84px; }
  .logo-grid img { max-height: 36px; }
  .logo-grid img.tall { max-height: 52px; }
  .logo-grid img.sm { max-height: 28px; }
  .tabs { max-width: 420px; }
  .quote-form { padding: 40px; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps li { padding: 32px; }
  .why-inner { flex-direction: row; align-items: flex-start; gap: 48px; }
  .why-intro { flex: 1; }
  .why-grid { flex: 1.6; gap: 20px; }
  .why-grid li { padding: 26px; }
  .cta { padding: 72px 0; }
  .cta-box { padding: 48px; }
  .cta-box h2 { font-size: 30px; }
  .footer-cols { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 40px; }
  .site-footer { padding-bottom: 40px; }
}

/* Aviso de limite de cotações (proteção contra robôs) */
.limite-aviso { margin: 0; flex-basis: 100%; font-size: 14px; color: #8A1C1C; background: #FDECEC; border: 1px solid #F3C2C2; border-radius: 10px; padding: 10px 14px; }
