/* ============================================================
   COSTA SAÚDE — Design System
   Paleta extraída da logo oficial (ondas + cruz de saúde)
   Tipografia: Newsreader (display) + Manrope (corpo)
   ============================================================ */

:root {
  /* Cores — extraídas da logo por clusterização de cores.
     Dourado promovido a cor de assinatura (exclusividade); verde
     reservado a usos mínimos e pontuais (ícone de saúde). */
  --navy-975: #071527;
  --navy-950: #0e2340;
  --navy-900: #173058;
  --navy-800: #223f6e;
  --ocean-600: #2e5680;
  --ocean-500: #3d6d9c;
  --sky-400: #6598b5;
  --sky-300: #93b7cb;
  --sky-100: #e2ecf1;
  --teal-700: #2c4a44;
  --teal-500: #4c7a70;
  --leaf-500: #6c9b67;
  --leaf-100: #e7eee4;
  --gold-600: #a9814a;
  --gold-500: #c6a15f;
  --gold-400: #d9bc82;
  --gold-300: #e8d5ab;
  --teal-accent: #4f9e8f;
  --teal-accent-light: #8fc9bd;
  --sand-100: #f2ede0;
  --canvas: #f4f7f6;
  --canvas-alt: #eaf1ef;
  --ink-900: #142235;
  --ink-600: #4c5f6b;
  --ink-400: #82949e;
  --line-200: #dbe4e1;
  --white: #ffffff;
  --red-600: #b3433a;

  /* Tipografia */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 35, 64, 0.08);
  --shadow-md: 0 10px 28px rgba(14, 35, 64, 0.12);
  --shadow-lg: 0 24px 56px rgba(14, 35, 64, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
h1 em, h2 em { font-style: italic; color: var(--ocean-600); }

p { margin: 0 0 1em; color: var(--ink-600); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--leaf-500);
}

.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* --------------------------------------------------------
   Botões
   -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--ocean-500), var(--navy-900)); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(23, 48, 88, 0.32); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy-900); border: 1.5px solid var(--line-200); }
.btn-secondary:hover { border-color: var(--ocean-600); color: var(--ocean-600); }
.btn-whatsapp { background: #1f9e5a; color: var(--white); }
.btn-whatsapp:hover { background: #188349; }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 2.5px solid var(--ocean-500); outline-offset: 2px; }

/* --------------------------------------------------------
   Header
   -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 247, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-200);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 54px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy-900); line-height: 1.1; }
.brand-text span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-500); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: 0.93rem; font-weight: 500; color: var(--ink-600); transition: color 0.15s ease; }
.main-nav a:hover { color: var(--navy-900); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; background: none; border: 1.5px solid var(--line-200); border-radius: var(--radius-sm); padding: 8px 10px; }
  .header-actions .btn-primary { padding: 10px 14px; font-size: 0.82rem; white-space: nowrap; }
  .brand-text { font-size: 1rem; }
}
@media (max-width: 400px) {
  .site-header .container { height: auto; padding-top: 14px; padding-bottom: 14px; }
  .brand-text span { display: none; }
}

/* --------------------------------------------------------
   Introdução — oceano real, cinematográfico e curto
   -------------------------------------------------------- */
.intro-wave {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; pointer-events: none; background: #06182a;
  animation: introOceanExit .95s 1.55s cubic-bezier(.65,0,.25,1) forwards,
             introHideAtEnd .1s 2.55s forwards;
}
.intro-ocean-photo {
  position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover;
  filter: saturate(.96) contrast(1.05);
  animation: introOceanMove 2.6s ease-out both;
}
.intro-ocean-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,20,35,.20), rgba(4,20,35,.48)),
              radial-gradient(circle at 50% 38%, rgba(255,255,255,.08), rgba(4,20,35,.12) 35%, rgba(4,20,35,.35) 100%);
}
.intro-brand { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-shadow: 0 12px 38px rgba(0,0,0,.36); }
.intro-icon { width: min(260px, 42vw); height: auto; opacity: 0; transform: translateY(18px) scale(.94); animation: introIconIn .55s .16s cubic-bezier(.22,1,.36,1) forwards, introBrandOut .45s 1.35s ease-in forwards; filter: drop-shadow(0 12px 28px rgba(0,0,0,.34)); }
.iw-main { display:block; text-align:center; font-family:var(--font-display); font-style:italic; font-weight:600; font-size:clamp(3rem,7.8vw,6.4rem); color:#fff; opacity:0; animation:introTextIn .5s .28s ease-out forwards, introBrandOut .45s 1.35s ease-in forwards; }
.iw-sub { display:block; text-align:center; font-family:var(--font-body); font-weight:600; font-size:.92rem; letter-spacing:.30em; text-transform:uppercase; color:rgba(255,255,255,.78); margin-top:10px; opacity:0; animation:introSubIn .45s .40s ease-out forwards, introBrandOut .45s 1.35s ease-in forwards; }
.intro-horizon { position:absolute; left:0; right:0; bottom:9%; height:1px; background:linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent); opacity:.7; }
@keyframes introOceanMove { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes introOceanExit { to { opacity:0; transform:scale(1.025); } }
@keyframes introHideAtEnd { to { visibility:hidden; } }
@keyframes introIconIn { to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes introTextIn { to { opacity:1; } }
@keyframes introSubIn { to { opacity:1; } }
@keyframes introBrandOut { to { opacity:0; transform:translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .intro-wave { display:none; } }

.hero-backdrop .wv-layer {
  animation: waveSettle 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.55s;
}
.hero-backdrop .wv-layer.wv-2 { animation-delay: 0.7s; }
@keyframes waveSettle {
  from { transform: translateY(26px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-975);
  padding: 150px 0 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-backdrop svg { width: 100%; height: 100%; }
.hero-photo, .hero-photo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.025); animation: heroSeaDrift 14s ease-out both; }
@keyframes heroSeaDrift { from { transform: scale(1.08); } to { transform: scale(1.025); } }
.hero-photo-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(6,21,37,.88) 0%, rgba(6,21,37,.68) 34%, rgba(6,21,37,.18) 67%, rgba(6,21,37,.34) 100%),
    linear-gradient(180deg, rgba(4,17,31,.16) 0%, rgba(4,17,31,.16) 52%, rgba(4,17,31,.78) 100%);
}
.hero-wave-edge { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 760px; padding-bottom: 58px; }
.hero-copy .eyebrow { color: var(--teal-accent-light); }
.hero-copy .eyebrow::before { background: var(--teal-accent); }
.hero-copy h1 { color: var(--white); font-size: clamp(3rem, 6.5vw, 5.5rem); font-weight: 400; line-height: .98; max-width: 760px; }
.hero-copy h1 em { color: #e7c06c; font-weight: 500; }
.hero-sub { font-size: 1.16rem; max-width: 590px; color: rgba(255,255,255,.82); line-height: 1.75; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 34px 0 56px; }
.hero .btn-primary { font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.hero .btn-secondary { border-color: rgba(255,255,255,0.28); color: var(--white); }
.hero .btn-secondary:hover { border-color: var(--white); }

.hero-benefits { display: flex; flex-wrap: wrap; gap: 20px 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.14); padding-bottom: 60px; }
.hero-benefit { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.82); letter-spacing: 0.01em; }
.hero-benefit svg { color: var(--teal-accent-light); flex-shrink: 0; }


.hero-scroll { position:absolute; z-index:3; left:50%; bottom:26px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:2px; color:rgba(255,255,255,.76); text-decoration:none; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; }
.hero-scroll-arrow { font-size:1.5rem; line-height:1; animation:scrollHint 1.6s ease-in-out infinite; }
@keyframes scrollHint { 0%,100%{transform:translateY(0);opacity:.65} 50%{transform:translateY(5px);opacity:1} }
@media (max-width: 720px) {
  .hero { padding-top: 118px; min-height: 100svh; }
  .hero-copy { padding-bottom: 94px; }
  .hero-actions { margin-bottom: 34px; }
  .hero-benefits { padding-bottom: 20px; gap: 14px 20px; }
  .hero-scroll { bottom: 18px; }
}

/* Linha do horizonte — divisor de assinatura entre seções */
.horizon-divider { position: relative; height: 64px; overflow: hidden; }
.horizon-divider svg { width: 100%; height: 100%; }

/* --------------------------------------------------------
   Credibilidade — linha editorial, não grid de caixas
   -------------------------------------------------------- */
.credibility { background: var(--navy-975); padding: 0 0 90px; }
.credibility .container { display: flex; flex-wrap: wrap; gap: 0 48px; }
.credibility-item {
  flex: 1 1 220px;
  padding: 26px 0 0;
  border-top: 1px solid var(--teal-accent);
  display: flex; flex-direction: column; gap: 12px;
}
.credibility-item svg { display: none; }
.credibility-item span { font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: rgba(255,255,255,0.86); line-height: 1.4; }

@media (max-width: 720px) { .credibility { padding-bottom: 56px; } .credibility .container { gap: 26px 0; } .credibility-item { flex: 1 1 100%; } }

/* --------------------------------------------------------
   Soluções — Plano de Saúde em destaque + demais informativo
   -------------------------------------------------------- */
.solution-featured {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  background: linear-gradient(155deg, var(--navy-900), var(--ocean-600));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.solution-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.solution-featured-icon {
  width: 62px; height: 62px; border-radius: 16px;
  background: rgba(255,255,255,0.14); color: var(--teal-accent-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.solution-featured-body h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.solution-featured-body p { color: rgba(255,255,255,0.78); margin-bottom: 0; max-width: 520px; }
.solution-featured .solution-tag { background: var(--leaf-500); }
.solution-featured-cta { white-space: nowrap; pointer-events: none; }

.other-solutions { margin-top: 40px; text-align: center; }
.other-solutions-label { font-size: 0.85rem; font-weight: 700; color: var(--ink-400); margin-bottom: 16px; }
.other-solutions-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.other-solution-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 20px;
  background: var(--canvas-alt); color: var(--navy-800);
  font-size: 0.87rem; font-weight: 600;
}
.other-solution-chip svg { color: var(--teal-accent); flex-shrink: 0; }
.other-solutions-link { font-size: 0.87rem; font-weight: 700; color: var(--ocean-600); }
.other-solutions-link:hover { color: var(--navy-900); }

@media (max-width: 720px) {
  .solution-featured { grid-template-columns: 1fr; text-align: center; padding: 30px 26px; }
  .solution-featured-icon { margin: 0 auto; }
  .solution-featured-body h3 { justify-content: center; }
  .solution-featured-body p { max-width: none; }
}

/* --------------------------------------------------------
   Conexão humana — fotografia real ligada ao conceito "Costa"
   -------------------------------------------------------- */
.human { background: var(--white); }
.human-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.human-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.human-photo img, .human-photo-fallback, .human-photo-fallback svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.human-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,35,64,0) 40%, rgba(14,35,64,0.35) 100%); }
.human-copy h2 { font-size: 2rem; }
.human-copy p { font-size: 1.05rem; max-width: 480px; }

@media (max-width: 860px) {
  .human-inner { grid-template-columns: 1fr; gap: 30px; }
  .human-photo { aspect-ratio: 16/10; }
}

/* Foto real na seção Sobre, com leve moldura e véu de marca */
.about-mark { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-mark img, .about-mark-fallback, .about-mark-fallback svg { width: 100%; height: 100%; aspect-ratio: 1/1; display: block; object-fit: cover; }
.about-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(23,48,88,0.28), rgba(79,158,143,0.12)); mix-blend-mode: multiply; }
.about { background: var(--canvas-alt); }
.about .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about-mark { width: 100%; }
.about-copy .placeholder-note {
  margin-top: 18px; font-size: 0.82rem; color: var(--teal-700);
  background: var(--sand-100); border: 1px dashed var(--teal-accent);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
@media (max-width: 900px) {
  .about .container { grid-template-columns: 1fr; gap: 32px; }
  .about-mark { order: -1; max-width: 420px; margin: 0 auto; }
}

/* --------------------------------------------------------
   Por que escolher
   -------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.why-item { padding: 26px 20px; }
.why-item .why-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--leaf-100); color: var(--leaf-500); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.why-item h3 { font-size: 1rem; margin-bottom: 6px; }
.why-item p { font-size: 0.87rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------
   Parceiros
   -------------------------------------------------------- */
.partners { background: var(--navy-950); }
.partners .section-head h2, .partners .eyebrow { color: var(--white); }
.partners .eyebrow { color: var(--teal-accent-light); }
.partners .eyebrow::before { background: var(--teal-accent); }
.partners-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.partner-cell {
  background: var(--navy-950);
  min-height: 108px;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  transition: background 0.2s ease;
}
.partner-cell:hover { background: rgba(255,255,255,0.04); }
.partner-cell img { max-height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.82; }
.partner-cell:hover img { opacity: 1; }
.partner-word {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  color: rgba(255,255,255,0.62); text-align: center; letter-spacing: 0.01em;
}
.partner-cell:hover .partner-word { color: var(--white); }
.partners-note { margin-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.4); text-align: center; }

@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------
   Formulário
   -------------------------------------------------------- */
.form-section { background: var(--white); }
.form-shell {
  max-width: 720px; margin: 0 auto;
  background: var(--canvas);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-lg);
  padding: 44px;
}
@media (max-width: 560px) { .form-shell { padding: 26px 20px; border-radius: var(--radius-md); } }

.step-indicator { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; font-size: 0.8rem; font-weight: 700; color: var(--ink-400); }
.step-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-200); }
.step-indicator .dot.active { background: var(--ocean-600); }
.step-indicator .dot.done { background: var(--leaf-500); }

.solution-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .solution-picker { grid-template-columns: 1fr; } }
.solution-option {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-200); background: var(--white);
  cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.solution-option:hover { border-color: var(--sky-400); }
.solution-option.selected { border-color: var(--ocean-600); background: var(--sky-100); }
.solution-option .opt-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--leaf-100); color: var(--leaf-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.solution-option .opt-label { font-weight: 700; font-size: 0.94rem; color: var(--navy-900); }

.form-back { display: inline-flex; align-items: center; gap: 6px; font-size: 0.83rem; font-weight: 700; color: var(--ocean-600); margin-bottom: 22px; background: var(--sky-100); border: none; border-radius: 20px; cursor: pointer; padding: 7px 14px; }
.form-back:hover { background: var(--sky-100); color: var(--navy-900); }

.form-section-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-700); margin: 26px 0 14px; }
.form-section-title:first-child { margin-top: 0; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.83rem; font-weight: 600; color: var(--navy-800); }
.field .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.95rem; padding: 11px 13px;
  border: 1.5px solid var(--line-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink-900);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean-600); }
.field textarea { min-height: 88px; resize: vertical; }
.field-error { display: none; font-size: 0.78rem; color: var(--red-600); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-600); }
.field.invalid .field-error { display: block; }

.pf-pj-toggle { display: inline-flex; border: 1.5px solid var(--line-200); border-radius: var(--radius-sm); padding: 3px; margin-bottom: 22px; }
.pf-pj-toggle button { border: none; background: none; padding: 8px 18px; border-radius: 5px; font-weight: 600; font-size: 0.85rem; color: var(--ink-400); cursor: pointer; }
.pf-pj-toggle button.active { background: var(--navy-900); color: var(--white); }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; }
.consent-row input { margin-top: 4px; flex-shrink: 0; }
.consent-row label { font-size: 0.82rem; color: var(--ink-600); }
.consent-row a { color: var(--ocean-600); font-weight: 600; }

.form-alert { display: none; background: #fbeae8; border: 1px solid #e6b3ac; color: var(--red-600); padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 20px; }
.form-alert.show { display: block; }
.form-footer-note { font-size: 0.78rem; color: var(--ink-400); text-align: center; margin-top: 14px; }

.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--white); border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Estado de sucesso */
.success-state { display: none; text-align: center; padding: 12px 0; }
.success-state.show { display: block; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--leaf-100); color: var(--leaf-500); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-protocol { font-size: 0.85rem; color: var(--ink-400); margin-bottom: 26px; }
.success-protocol strong { color: var(--navy-900); }
.success-options { max-width: 340px; margin: 0 auto; }
.success-option-caption { font-size: 0.82rem; margin-top: 10px; }
.success-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 0.78rem; color: var(--ink-400); }
.success-divider::before, .success-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-200); }

/* --------------------------------------------------------
   WhatsApp flutuante
   -------------------------------------------------------- */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%;
  background: #1f9e5a; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* --------------------------------------------------------
   Footer
   -------------------------------------------------------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 42px; filter: brightness(0) invert(1); }
.footer-brand span { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.62); margin-bottom: 9px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: 0.78rem; color: rgba(255,255,255,0.4); }

@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   PAINÉIS INTERNOS — Admin & Corretor
   ============================================================ */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy-975); padding: 24px; }
.login-card { width: 100%; max-width: 400px; background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-lg); }
.login-card .brand { justify-content: center; margin-bottom: 6px; }
.login-card .brand-mark { height: 150px; }
.login-sub { text-align: center; font-size: 0.88rem; color: var(--ink-400); margin-bottom: 28px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { margin-top: 6px; }
.form-footer-note { font-size: 0.78rem; color: var(--ink-400); text-align: center; margin-top: 16px; }

.app-shell { display: flex; min-height: 100vh; background: var(--canvas); }
.app-sidebar { width: 236px; flex-shrink: 0; background: var(--navy-975); color: rgba(255,255,255,0.7); padding: 28px 20px; display: flex; flex-direction: column; }
.app-sidebar .brand { margin-bottom: 40px; }
.app-sidebar .brand-mark { height: 42px; filter: brightness(0) invert(1); }
.app-sidebar .brand-text { color: var(--white); font-size: 1rem; }
.app-sidebar .brand-text span { color: var(--teal-accent-light); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-link { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 600; cursor: pointer; color: rgba(255,255,255,0.62); }
.nav-link:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav-link.active { background: var(--ocean-600); color: var(--white); }
.sidebar-foot { margin-top: auto; font-size: 0.75rem; color: rgba(255,255,255,0.35); }

.app-main { flex: 1; padding: 36px 44px; overflow-x: hidden; }
.app-topbar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 8px; }
.app-topbar h1 { font-size: 1.5rem; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-md); padding: 20px 22px; }
.stat-card span { display: block; font-size: 0.78rem; color: var(--ink-400); margin-bottom: 8px; font-weight: 600; }
.stat-card strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy-900); }
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .app-main { padding: 24px 18px; }
  .app-shell { flex-direction: column; }
  .app-sidebar { width: 100%; flex-direction: row; align-items: center; padding: 16px 20px; }
  .app-sidebar .brand { margin-bottom: 0; }
  .sidebar-nav { flex-direction: row; margin-left: auto; }
  .sidebar-foot { display: none; }
}

.data-table-card { background: var(--white); border: 1px solid var(--line-200); border-radius: var(--radius-md); overflow: hidden; }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-200); }
.table-toolbar input, .table-toolbar select { font-family: inherit; font-size: 0.85rem; padding: 9px 12px; border: 1.5px solid var(--line-200); border-radius: var(--radius-sm); background: var(--canvas); }
.table-toolbar input { flex: 1; min-width: 180px; }
#table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
thead th { text-align: left; padding: 12px 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-400); border-bottom: 1px solid var(--line-200); white-space: nowrap; }
tbody td { padding: 14px 20px; border-bottom: 1px solid var(--line-200); color: var(--ink-900); white-space: nowrap; }
tbody tr { cursor: pointer; transition: background 0.15s ease; }
tbody tr:hover { background: var(--canvas-alt); }
tbody tr:last-child td { border-bottom: none; }
.empty-state { padding: 48px 20px; text-align: center; color: var(--ink-400); font-size: 0.9rem; }

.badge { display: inline-flex; padding: 4px 11px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.badge-novo { background: var(--sky-100); color: var(--ocean-600); }
.badge-em_contato { background: #fdf0da; color: #a9711b; }
.badge-em_negociacao { background: #e9e2fb; color: #6947c4; }
.badge-convertido { background: var(--leaf-100); color: var(--leaf-500); }
.badge-nao_convertido { background: #fbeae8; color: var(--red-600); }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(14,28,46,0.5); z-index: 100; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.show { display: flex; }
.modal-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; max-width: 560px; width: 100%; position: relative; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 20px; right: 24px; font-size: 1.4rem; cursor: pointer; color: var(--ink-400); }
.modal-close:hover { color: var(--navy-900); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 22px 0; }
.detail-item span { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-400); margin-bottom: 4px; }
.detail-item strong { font-size: 0.92rem; color: var(--navy-900); font-weight: 600; }
.status-select { margin-top: 4px; }

/* --------------------------------------------------------
   Acesso interno — Corretor / Admin
   -------------------------------------------------------- */
.internal-access { background: var(--canvas-alt); padding: 72px 0; }
.ia-head { text-align: center; margin-bottom: 36px; }
.ia-head .eyebrow { justify-content: center; }
.ia-head h2 { font-size: 1.6rem; }

.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 780px; margin: 0 auto; }
.access-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.access-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.access-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--ocean-600), var(--teal-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.access-card:hover::after { transform: scaleX(1); }
.access-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--sky-100); color: var(--ocean-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.access-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.access-card p { font-size: 0.88rem; margin-bottom: 16px; }
.access-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--navy-900); }
.access-card:hover .access-cta { color: var(--ocean-600); }
.access-card:hover .access-cta svg { transform: translateX(3px); }
.access-cta svg { transition: transform 0.2s ease; }

@media (max-width: 620px) { .access-grid { grid-template-columns: 1fr; } }

.success-restart { display: block; margin: 22px auto 0; background: none; border: none; font-size: 0.82rem; font-weight: 700; color: var(--ink-400); text-decoration: underline; cursor: pointer; }
.success-restart:hover { color: var(--ocean-600); }

/* --------------------------------------------------------
   Revelação suave ao rolar — dá vida à página
   -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1.in-view { transition-delay: 0.05s; }
.reveal-d2.in-view { transition-delay: 0.12s; }
.reveal-d3.in-view { transition-delay: 0.19s; }
.reveal-d4.in-view { transition-delay: 0.26s; }
.reveal-d5.in-view { transition-delay: 0.33s; }
.reveal-d6.in-view { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view { opacity: 1; transform: none; transition: none; }
}

/* Badges de tipo de usuário (Admin / Corretor) */
.badge-role-admin { background: #e9e2fb; color: #6947c4; }
.badge-role-corretor { background: var(--sky-100); color: var(--ocean-600); }
.badge-role-pendente { background: #fdf0da; color: #a9711b; }
.user-row-actions { display: flex; gap: 8px; align-items: center; }
.user-row-actions select { font-size: 0.8rem; padding: 5px 8px; border: 1px solid var(--line-200); border-radius: 6px; }
.user-row-actions button { font-size: 0.78rem; font-weight: 700; color: var(--red-600); background: none; border: none; cursor: pointer; padding: 4px 6px; }
.user-row-actions button:hover { text-decoration: underline; }
.user-row-self { font-size: 0.75rem; color: var(--ink-400); font-style: italic; }

/* --------------------------------------------------------
   Operadoras e seguradoras — vitrine pública
   -------------------------------------------------------- */
.operators { background: var(--white); padding: 86px 0; }
.operators .section-head { max-width: 720px; margin-left: auto; margin-right: auto; }
.operators-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 36px auto 0;
}
.operator-card {
  min-height: 138px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(14, 35, 64, 0.045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.operator-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(35, 101, 154, .24);
}
.operator-card img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: 66px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.operator-card span {
  font-size: .76rem;
  font-weight: 700;
  color: var(--ink-400);
  text-align: center;
}
.operators-note {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
  font-size: .78rem;
  color: var(--ink-400);
}
.operators-cta { display: flex; justify-content: center; margin-top: 24px; }
@media (max-width: 820px) { .operators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .operators { padding: 64px 0; }
  .operators-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .operator-card { min-height: 112px; padding: 16px 12px; }
  .operator-card img { height: 48px; }
}
