/* ============================================================
   Sérgio Magalhães Consultoria | Landing Page
   Paleta: navy + dourado (premium financeiro)
   ============================================================ */

:root {
  --navy-900: #081830;
  --navy-800: #0a1f3c;
  --navy-700: #102a4c;
  --navy-600: #1b3a63;
  --gold:     #c5a253;
  --gold-soft:#d9bf86;
  --blue-100: #dceaf7;
  --blue-200: #b9d2ec;

  --ink:      #11203a;
  --muted:    #56657e;
  --line:     #e4e8ef;
  --bg:       #ffffff;
  --bg-soft:  #f5f7fa;

  --maxw: 1160px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(8,24,48,.06), 0 8px 24px rgba(8,24,48,.06);
  --shadow-md: 0 20px 50px rgba(8,24,48,.14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: 15px 28px; border-radius: 999px; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  border: 1.5px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-900); box-shadow: 0 10px 24px rgba(197,162,83,.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(197,162,83,.42); background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: rgba(16,42,76,.22); }
.btn-ghost:hover { border-color: var(--navy-800); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: #fff; transform: translateY(-2px); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  height: 40px; border-radius: 9px; overflow: hidden;
  border: 1px solid rgba(197,162,83,.35); flex-shrink: 0;
}
.brand-mark img { height: 100%; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-weight: 600; font-size: 1.06rem; color: var(--navy-800); }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(8,24,48,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-size: .94rem; font-weight: 500; color: var(--muted); transition: color .18s ease; }
.main-nav a:hover { color: var(--navy-800); }
.main-nav .nav-cta {
  color: var(--navy-900); font-weight: 600;
  border: 1.5px solid var(--gold); padding: 9px 20px; border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--gold); color: var(--navy-900); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(197,162,83,.10), transparent 60%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  color: #eaf1fb;
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px);
}
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(700px 380px at 12% 110%, rgba(46,108,223,.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 600; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.55rem); color: #fff; }
.hero-lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c4d3e8; max-width: 38ch; }
.hero-lead strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .btn-ghost { color: #eaf1fb; border-color: rgba(234,241,251,.32); }
.hero .btn-ghost:hover { border-color: #fff; }

.hero-segments { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 38px 0 0; }
.hero-segments li { position: relative; font-size: .9rem; color: #aebfd6; padding-left: 18px; }
.hero-segments li::before { content: "◇"; position: absolute; left: 0; color: var(--gold); font-size: .72rem; top: 2px; }

.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(197,162,83,.28);
  border-radius: 20px; padding: 30px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
}
.hero-card-head { display: flex; align-items: center; gap: 14px; }
.hero-card-mark {
  height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(197,162,83,.3);
}
.hero-card-mark img { height: 100%; width: auto; display: block; }
.hero-card-head strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: #fff; }
.hero-card-head span { font-size: .84rem; color: var(--blue-200); }
.hero-card-quote { margin: 22px 0; font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: #e7eefa; line-height: 1.5; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--gold); line-height: 1; }
.hero-stats span { font-size: .74rem; color: #a9bad2; margin-top: 6px; display: block; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy-900); color: #c4d3e8; border-top: 1px solid rgba(255,255,255,.06); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding: 20px 24px; }
.trust-inner > span { font-size: .82rem; letter-spacing: .04em; color: #8fa3bf; text-transform: uppercase; }
.trust-inner ul { display: flex; flex-wrap: wrap; gap: 12px 30px; list-style: none; padding: 0; margin: 0; }
.trust-inner li { font-family: var(--serif); font-size: 1.04rem; color: #e7eefa; }

/* ---------- Section base ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(165deg, var(--navy-900), var(--navy-700)); color: #eaf1fb; }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-tag { display: inline-block; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.section-tag.light { color: var(--gold-soft); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.section-dark .section-head h2 { color: #fff; }
.section-head p { margin-top: 18px; font-size: 1.08rem; color: var(--muted); }
.section-dark .section-head p { color: #c4d3e8; }
.section-head strong { color: var(--ink); }
.section-dark .section-head strong { color: var(--gold-soft); }

/* ---------- Pain grid ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--blue-200); }
.pain-num { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); font-weight: 700; }
.pain-card h3 { font-size: 1.22rem; margin: 12px 0 10px; }
.pain-card p { color: var(--muted); font-size: .98rem; }
.pain-punch { text-align: center; margin-top: 48px; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--navy-700); }
.pain-punch strong { color: var(--gold); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-media { display: flex; justify-content: center; }
.about-portrait {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 4/5; border-radius: 22px;
  background: var(--navy-800);
  border: 1px solid rgba(197,162,83,.3);
  display: grid; place-items: center; box-shadow: var(--shadow-md); overflow: hidden;
}
.about-logo { width: 92%; height: auto; display: block; }
.about-portrait-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: var(--gold); color: var(--navy-900); font-weight: 600; font-size: .8rem;
  padding: 7px 14px; border-radius: 999px; letter-spacing: .05em;
}
.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; margin-bottom: 20px; }
.about-copy p { color: #c4d3e8; margin-bottom: 16px; font-size: 1.04rem; }
.about-copy strong { color: #fff; }
.about-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 30px; color: #c4d3e8; font-size: 1rem; }
.about-points li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--navy-900); background: var(--gold); width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.about-points b { color: #fff; }

/* ---------- Audience ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.audience-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  background: var(--bg); transition: transform .2s ease, box-shadow .2s ease;
  border-top: 3px solid var(--gold);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.audience-card h3 { font-size: 1.16rem; margin-bottom: 12px; }
.audience-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--navy-800); color: var(--gold); font-size: 1.1rem; margin-bottom: 18px; }
.service-card h3 { font-size: 1.14rem; margin-bottom: 10px; line-height: 1.25; }
.service-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.timeline li { position: relative; padding-top: 26px; }
.timeline li::before { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li:last-child::before { right: 50%; }
.timeline li:first-child::before { left: 50%; }
.timeline-step {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy-800); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  border: 4px solid var(--bg); margin-bottom: 18px;
}
.timeline h3 { font-size: 1.2rem; margin-bottom: 6px; }
.timeline-time { font-size: .82rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.timeline p:not(.timeline-time) { color: var(--muted); font-size: .96rem; }

.method-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.method-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.method-box h3 { font-size: 1.24rem; margin-bottom: 20px; }
.chip-list, .check-list { list-style: none; padding: 0; margin: 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li { background: var(--bg); border: 1px solid var(--blue-200); color: var(--navy-700); font-size: .9rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 13px; color: var(--ink); font-size: .98rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }

/* ---------- Results ---------- */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.result-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 28px; font-family: var(--serif); font-size: 1.2rem; color: #eaf1fb;
  position: relative; padding-left: 56px; transition: transform .2s ease, border-color .2s ease;
}
.result-card::before {
  content: "✓"; position: absolute; left: 26px; top: 30px;
  color: var(--gold); font-weight: 700; font-family: var(--sans); font-size: 1.1rem;
}
.result-card:hover { transform: translateY(-4px); border-color: rgba(197,162,83,.5); }
.result-card-accent { background: linear-gradient(150deg, var(--gold), var(--gold-soft)); color: var(--navy-900); border-color: transparent; }
.result-card-accent::before { color: var(--navy-900); }

/* ---------- Clients ---------- */
.client-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 18px; padding: 0; margin: 0; }
.client-list li {
  display: grid; place-items: center;
  width: 200px; height: 110px; padding: 18px 24px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, transform .2s ease;
}
.client-list li:hover { border-color: var(--gold); transform: translateY(-3px); }
.client-list img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; display: block; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #eaf1fb; }
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.cta-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; margin-bottom: 18px; }
.cta-copy p { color: #c4d3e8; font-size: 1.06rem; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.cta-contacts li { border-left: 2px solid var(--gold); padding-left: 18px; }
.cta-contacts span { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: #8fa3bf; margin-bottom: 4px; }
.cta-contacts a, .cta-contacts strong { font-family: var(--serif); font-size: 1.2rem; color: #fff; font-weight: 600; }
.cta-contacts a:hover { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a6c2; padding: 50px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.brand-footer .brand-text strong { color: #fff; }
.footer-tagline { max-width: 46ch; color: #aebccf; }
.footer-legal { font-size: .85rem; color: #6f81a0; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-lead { max-width: none; }
  .about-inner, .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-media { order: -1; }
  .pain-grid, .service-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .method-extra { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 30px 70px; }
  .timeline li::before { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .timeline li:first-child::before { top: 27px; left: 26px; }
  .timeline li:last-child::before { right: auto; bottom: 50%; }
  .timeline-step { position: absolute; left: 0; top: 0; margin: 0; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { border: 0; padding: 16px 0; text-align: left; }
  .nav-toggle { display: flex; }
  .trust-inner { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .pain-grid, .service-grid, .audience-grid, .result-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 10px; }
  .hero-card { padding: 24px; }
  .btn { width: 100%; }
  .hero-actions, .cta-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
