/* ==========================================================================
   Maioral Crédito — Site institucional
   Sistema editorial: tipografia grande, sem ícones, sem cartões decorativos.
   Hierarquia por escala e espaço, não por caixa.
   ========================================================================== */

:root {
  --gold: #B8923D;
  --blue: #2E5BFF;
  --ink: #0F1B3D;
  --bg: #F5F3ED;
  --bg-alt: #ECE9E0;
  --line: #D6D1C0;
  --line-soft: #E2DDCE;
  --text: #12172B;
  --text-muted: #5B6178;
  --text-dim: #8B90A3;
  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1180px;
  --edge: 32px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--text); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--edge);
}

.gold { color: var(--gold); }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--text-dim);
  flex-shrink: 0;
}

section { padding: 120px 0; border-top: 1px solid var(--line); }
.hero { border-top: none; padding-top: 156px; padding-bottom: 0; }

.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 22px; }
.section-lead { font-size: 17px; color: var(--text-muted); max-width: 620px; line-height: 1.7; }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 30px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: opacity .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 800; }
.btn-gold:hover { opacity: .88; }
.btn-line { border-color: var(--line); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 3px;
  transition: color .15s ease, border-color .15s ease, gap .15s ease;
}
.link-arrow:hover { color: var(--gold); border-color: var(--gold); gap: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  background: rgba(245, 243, 237, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.brand-logo { width: 32px; height: 32px; flex-shrink: 0; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: color .15s ease;
}
.main-nav a .idx { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { width: 20px; height: 1px; background: var(--text); display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-title {
  font-size: clamp(44px, 8.4vw, 108px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.03em;
  margin: 8px 0 56px;
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 56px;
  flex-wrap: wrap;
}
.hero-lead { font-size: 17px; color: var(--text-muted); max-width: 420px; line-height: 1.7; }
.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.stat-strip { border-top: 1px solid var(--line); }
.stat-strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 28px var(--edge);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: var(--gold); }
.stat-lbl { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }

/* ==========================================================================
   Bancos parceiros
   ========================================================================== */
.banks-section { padding: 56px 0; }
.strip-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 24px; }

.marquee {
  overflow: hidden;
  display: flex;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.banks-strip {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  animation: marquee 32s linear infinite;
}
.banks-strip li { padding: 6px 22px 6px 0; margin-right: 22px; border-right: 1px solid var(--line); white-space: nowrap; transition: color .15s ease; }
.banks-strip li:last-child { border-right: none; margin-right: 0; }
.banks-strip li:hover { color: var(--text); }
.banks-strip li.more { color: var(--gold); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ==========================================================================
   Data ticker (hero) — telemetry-style continuous feed
   ========================================================================== */
.data-ticker {
  overflow: hidden;
  display: flex;
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.ticker-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  animation: marquee 22s linear infinite;
}
.ticker-track span {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  padding: 12px 0;
}
.ticker-track span::after {
  content: '•';
  color: var(--line);
  margin: 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  .banks-strip, .ticker-track { animation: none; }
}

/* ==========================================================================
   Compare
   ========================================================================== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 72px;
}
.compare-col { padding-left: 24px; border-left: 2px solid var(--line); }
.compare-col.good { border-left-color: var(--gold); }
.compare-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: 18px; }
.compare-col.good .compare-label { color: var(--gold); }
.compare-col ul { display: flex; flex-direction: column; gap: 14px; }
.compare-col li { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.compare-col.good li { color: var(--text); }

/* ==========================================================================
   Indexed list (diferenciais / como funciona)
   ========================================================================== */
.idx-list { display: flex; flex-direction: column; }
.idx-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}
.idx-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.idx-n { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--gold); padding-top: 3px; }
.idx-list h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.idx-list p { font-size: 14.5px; color: var(--text-muted); max-width: 560px; line-height: 1.65; }

/* ==========================================================================
   Statement sections (stat callouts)
   ========================================================================== */
.statement-section { text-align: left; }
.statement { font-size: clamp(20px, 2.6vw, 28px); max-width: 720px; color: var(--text); line-height: 1.4; margin-bottom: 8px; }
.big-number {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 152px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  line-height: .95;
  margin: 8px 0 24px;
  letter-spacing: -.02em;
}
.statement-foot { font-size: 15.5px; color: var(--text-muted); max-width: 620px; line-height: 1.75; }

.perk-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.perk-list li {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  padding: 18px 28px 18px 0;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}
.perk-list li:last-child { border-right: none; margin-right: 0; }

/* ==========================================================================
   Benefícios (clínica / paciente)
   ========================================================================== */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.audience-col { padding-top: 24px; border-top: 2px solid var(--line); }
.audience-label { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 28px; }
.audience-col dl { display: flex; flex-direction: column; gap: 22px; }
.audience-col dt { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.audience-col dd { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ==========================================================================
   Band section (resgate de carteira)
   ========================================================================== */
.band-section { padding: 72px 0; }
.band-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.band-row h3 { font-size: 22px; margin: 6px 0 14px; max-width: 520px; }
.band-row p { font-size: 14.5px; color: var(--text-muted); max-width: 480px; line-height: 1.65; }

/* ==========================================================================
   Cobertura nacional (mapa)
   ========================================================================== */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}
.uf-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.uf-list li {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 6px 9px;
}
.coverage-map { text-align: center; }
.coverage-map svg { width: 100%; height: auto; max-width: 360px; }
.uf-shape {
  fill: var(--gold);
  fill-opacity: .08;
  stroke: var(--gold);
  stroke-opacity: .45;
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill-opacity .15s ease;
}
.uf-shape:hover { fill-opacity: .22; }
.map-caption { font-size: 12px; color: var(--text-dim); margin-top: 14px; }

@media (max-width: 980px) {
  .coverage-grid { grid-template-columns: 1fr; }
  .coverage-map svg { max-width: 260px; }
}

/* ==========================================================================
   Founder
   ========================================================================== */
.founder-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
}
.founder-photo {
  width: 180px; height: 230px;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--line);
}
.founder-name { font-size: 24px; margin-bottom: 6px; }
.founder-role { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; }
.founder-bio { font-size: 15px; color: var(--text-muted); line-height: 1.8; max-width: 640px; margin-bottom: 22px; }

/* ==========================================================================
   Contato
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 18px; }

.contact-methods { display: flex; flex-direction: column; margin-top: 40px; }
.contact-methods > div { padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.contact-methods > div:last-child { border-bottom: 1px solid var(--line); }
.contact-methods dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.contact-methods dd { font-size: 15px; font-weight: 600; }
.contact-methods a:hover { color: var(--gold); }

.contact-form { border-top: 2px solid var(--gold); padding-top: 28px; }
.form-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 24px; }
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 8px; }
.fg input, .fg textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 10px 0;
  outline: none;
  resize: vertical;
  transition: border-color .2s ease;
}
.fg input:focus, .fg textarea:focus { border-color: var(--gold); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-dim); }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 12px; color: var(--text-dim); margin-top: 16px; text-align: center; }
.contact-form .btn { margin-top: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: var(--text-muted); }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: var(--text-dim);
}

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(15, 27, 61, .28);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal-left.in-view { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal-right.in-view { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1); }
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  :root { --edge: 24px; }
  section { padding: 88px 0; }
  .compare { grid-template-columns: 1fr; gap: 32px; }
  .audience-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder-row { grid-template-columns: 1fr; }
  .founder-photo { width: 130px; height: 166px; }
  .stat-strip-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; padding-left: 0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-line { display: none; }
  .hero { padding-top: 128px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .idx-list li { grid-template-columns: 1fr; gap: 8px; }
  .fg-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .band-row { align-items: flex-start; }
  .wa-float { width: 50px; height: 50px; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 84px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 24px var(--edge) 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-120%);
  transition: transform .25s ease;
  z-index: 99;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav a.btn-gold, .mobile-nav a.btn-gold:hover { color: var(--ink); }
