/* ============================================================
   Semler Consultoria — site institucional
   Paleta navy + dourado · Inter (texto) + Playfair Display (títulos)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

:root {
  --navy: #0d2b45;
  --navy-2: #15406a;
  --navy-deep: #071d33;
  --gold: #f4a922;
  --gold-2: #ffc75a;
  --accent: #c97a06;
  --ink: #172036;
  --muted: #56627c;
  --bg-soft: #f6f8fb;
  --line: #e4e9f1;
  --ok: #15946a;
  --serif: 'Playfair Display', Georgia, serif;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --sh-sm: 0 4px 14px rgba(13,43,69,.07);
  --sh-md: 0 14px 34px rgba(13,43,69,.12);
  --sh-lg: 0 28px 70px rgba(7,29,51,.28);
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.18; letter-spacing: -.4px; font-variant-numeric: lining-nums; }
.proof-num, .finding strong, .case-side strong, .step-num, .timeline strong, .chip strong, .about-side blockquote { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.7vw, 19px); color: var(--muted); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.gold { color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 650; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e8920c); color: #1b1404; font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(244,169,34,.4); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-line:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: var(--sh-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--gold);
  font-family: var(--serif); font-weight: 800; font-size: 23px; box-shadow: var(--sh-sm);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-family: var(--serif); font-size: 21px; color: var(--navy); }
.logo-text small { font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: 15px; font-weight: 500; color: var(--navy); }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; color: var(--navy); place-items: center; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Abertura (hero) ---------- */
.hero { position: relative; padding: 72px 0 96px; background: linear-gradient(180deg, var(--bg-soft), #fff 70%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero .lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

.portrait { position: relative; max-width: 440px; margin-left: auto; width: 100%; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  box-shadow: var(--sh-lg);
}
.portrait-frame::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 28%, rgba(244,169,34,.32), transparent 58%);
}
.portrait-frame::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(7,29,51,.92));
}
.portrait-frame picture, .portrait-frame img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 93%; width: auto; max-width: none; z-index: 1;
}
.portrait-name { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; text-align: center; color: #fff; }
.portrait-name strong { display: block; font-family: var(--serif); font-size: 23px; }
.portrait-name span { font-size: 13px; color: rgba(255,255,255,.8); }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 11px 15px; box-shadow: var(--sh-md);
  font-size: 13px; line-height: 1.3; color: var(--muted);
}
.chip strong { display: block; color: var(--navy); font-size: 15px; }
.chip-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff4df; color: var(--accent); flex-shrink: 0; }
.chip-icon svg { width: 18px; height: 18px; }
.chip-1 { top: 34px; left: -38px; }
.chip-2 { bottom: 96px; right: -30px; }

/* ---------- Faixa de números ---------- */
.proof { background: var(--navy); color: #fff; padding: 48px 0 44px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.proof-num { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--gold); line-height: 1.05; }
.proof-label { margin-top: 8px; font-size: 12.5px; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.proof-claim { max-width: 760px; margin: 34px auto 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: rgba(255,255,255,.92); }
.proof-claim strong { color: var(--gold); font-weight: 700; }

/* ---------- Seções ---------- */
.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-tight { padding: 72px 0; }

/* Dores */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.pain {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 24px;
}
.pain-mark { width: 30px; height: 30px; border-radius: 50%; background: #fdecea; color: #c2410c; display: grid; place-items: center; flex-shrink: 0; font-weight: 800; }
.pain p { font-size: 16.5px; color: var(--ink); font-weight: 500; }
.pains-close { text-align: center; margin-top: 30px; color: var(--muted); font-size: 16px; }
.pains-close strong { color: var(--navy); }

/* Pilares */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--gold-2); }
.pillar-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--gold); }
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { margin-bottom: 8px; font-size: 20px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* Diagnóstico real (números) */
.findings { position: relative; overflow: hidden; padding: 92px 0; color: #fff; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); }
.findings::before { content: ''; position: absolute; right: -180px; top: -160px; width: 560px; height: 460px; background: radial-gradient(ellipse, rgba(244,169,34,.18), transparent 65%); }
.findings > * { position: relative; }
.findings .section-head h2 { color: #fff; }
.findings .section-head p { color: rgba(255,255,255,.72); }
.findings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.finding { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 26px 26px 24px; }
.finding strong { display: block; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; color: var(--gold); line-height: 1.05; margin-bottom: 8px; }
.finding span { color: rgba(255,255,255,.82); font-size: 15px; }
.findings-note { text-align: center; margin-top: 30px; color: rgba(255,255,255,.72); }
.findings-note strong { color: #fff; }

/* Análises (porta de entrada) */
.offers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.offer {
  position: relative; border-radius: var(--r-lg); padding: 36px 34px; overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; box-shadow: var(--sh-md);
}
.offer::before { content: ''; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(244,169,34,.22), transparent 65%); }
.offer > * { position: relative; }
.offer-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #1b1404; background: var(--gold); border-radius: 999px; padding: 5px 12px; margin-bottom: 18px; }
.offer h3 { color: #fff; font-size: 25px; margin-bottom: 12px; }
.offer p { color: rgba(255,255,255,.82); margin-bottom: 18px; }
.offer ul { margin-bottom: 26px; }
.offer li { display: flex; gap: 10px; padding: 6px 0; color: rgba(255,255,255,.92); font-size: 15px; }
.offer li svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }

/* Case */
.case { display: grid; grid-template-columns: 1.3fr .7fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.case-body { padding: 44px; }
.case-body h3 { font-size: 26px; margin-bottom: 16px; }
.case-body p { color: var(--muted); margin-bottom: 14px; }
.case-body p strong { color: var(--ink); }
.case-side { background: var(--bg-soft); border-left: 1px solid var(--line); padding: 44px 36px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.case-side strong { display: block; font-family: var(--serif); font-size: 30px; color: var(--navy); line-height: 1.1; }
.case-side span { font-size: 14px; color: var(--muted); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: passo; }
.step { position: relative; padding: 26px 22px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #1b1404; font-weight: 800; font-family: var(--serif); font-size: 20px; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }
.steps-note { text-align: center; margin-top: 28px; color: var(--muted); }
.steps-note strong { color: var(--navy); }

/* RoboCont */
.product { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 6px solid #ff6600; border-radius: var(--r-lg); padding: 40px 44px; box-shadow: var(--sh-sm); }
.product .eyebrow { color: #e05a00; }
.product h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.product p { color: var(--muted); max-width: 640px; }
.product-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.product-list span { font-size: 13px; font-weight: 600; color: #263238; background: #f4f6f8; border-radius: 999px; padding: 6px 12px; }
.btn-robocont { background: #ff6600; color: #fff; }
.btn-robocont:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,102,0,.35); }

/* Sobre */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about-side { position: sticky; top: 110px; }
.about-side blockquote { font-family: var(--serif); font-size: 26px; line-height: 1.35; color: var(--navy); border-left: 4px solid var(--gold); padding-left: 22px; }
.about-side cite { display: block; margin-top: 16px; padding-left: 26px; font-style: normal; font-size: 14px; color: var(--muted); }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 16.5px; }
.about-text p strong { color: var(--ink); }
.timeline { margin-top: 26px; border-left: 2px solid var(--line); padding-left: 22px; }
.timeline li { position: relative; padding: 0 0 18px; }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #fff4df; }
.timeline strong { display: block; color: var(--navy); }
.timeline span { color: var(--muted); font-size: 15px; }

/* Dúvidas */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.faq-q:hover { color: var(--accent); }
.faq-q svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .25s; }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-a { max-height: 400px; }
.faq-a p { color: var(--muted); padding-bottom: 22px; }

/* Chamada final */
.final { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; top: -220px; transform: translateX(-50%); width: 640px; height: 440px; background: radial-gradient(ellipse, rgba(244,169,34,.2), transparent 65%); }
.final > * { position: relative; }
.final h2 { color: #fff; margin-bottom: 14px; }
.final p { color: rgba(255,255,255,.82); max-width: 600px; margin: 0 auto 30px; font-size: 17px; }
.final-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.final-note { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.65); }

/* Rodapé */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo-text strong { color: #fff; }
.footer .logo-text small { color: rgba(255,255,255,.6); }
.footer-about { margin-top: 14px; max-width: 340px; }
.footer h4 { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: var(--gold); }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); }

/* Botão flutuante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Entrada suave */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .chip-1 { left: -12px; }
  .chip-2 { right: -8px; }
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid, .about, .case, .product { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .portrait { margin: 0 auto; max-width: 380px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .offers, .pains { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: repeat(2, 1fr); }
  .case-side { border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .case-side > div { flex: 1 1 150px; }
  .about-side { position: static; }
  .product { padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 12px 24px 22px;
    border-top: 1px solid var(--line); box-shadow: var(--sh-md);
  }
  .nav.is-open a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .btn { margin-top: 14px; }
  .nav-toggle { display: grid; }
  .header-inner { height: 68px; }
  .section, .findings { padding: 68px 0; }
  .finding { padding: 20px; }
  .case-body { padding: 30px 26px; }
  .case-side { padding: 26px; gap: 18px; }
  .finding span { font-size: 14px; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .chip { padding: 9px 12px; font-size: 12px; }
  .chip strong { font-size: 14px; }
  .chip-1 { top: 18px; left: 8px; }
  .chip-2 { bottom: 132px; right: 8px; }
  .portrait-name span { font-size: 12px; padding: 0 16px; display: block; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
