/* ===== Relcon – identidade derivada da logo ===== */
:root {
  --navy: #12396B;        /* azul do escudo e do nome */
  --navy-900: #0B2547;
  --navy-700: #1A4A85;
  --teal: #23CBCA;        /* turquesa da maquininha */
  --teal-600: #17A9A8;
  --teal-50: #E8FAF9;
  --ink: #142235;
  --muted: #5B6B80;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 57, 107, .10);
  --shadow-lg: 0 24px 60px rgba(18, 57, 107, .18);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
.hero-grid > *, .split > *, .split > div { min-width: 0; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-700); }
h1, h2, h3, h4, h5 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; margin-top: 40px; }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 14px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: var(--sans); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(18,57,107,.25); }
.btn-primary:hover { background: var(--navy-700); }
.btn-accent { background: var(--teal); color: var(--navy-900); }
.btn-accent:hover { background: #4dd9d8; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(18,57,107,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 46px; width: auto; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; position: relative; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--teal); transition: width .2s; }
.menu a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); background: radial-gradient(1100px 500px at 85% -10%, var(--teal-50), transparent 60%), linear-gradient(180deg, #fff, var(--bg-alt)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal-600); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 40px; }
.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.hero-stats li { display: flex; flex-direction: column; border-left: 3px solid var(--teal); padding-left: 14px; }
.hero-stats strong { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.hero-stats span { font-size: .88rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 440px; }
.hero-shape { position: absolute; inset: 30px 10px 20px 40px; border-radius: 40px; background: linear-gradient(135deg, var(--navy), var(--navy-700)); transform: rotate(-4deg); z-index: 0; }
.hero-shape::after { content: ""; position: absolute; width: 180px; height: 180px; right: -30px; top: -30px; border-radius: 50%; background: var(--teal); opacity: .9; }
.card-float { position: absolute; z-index: 1; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 18px 20px; animation: float 6s ease-in-out infinite; }
.cf-head { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cf-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.cf-value { font-family: var(--serif); font-size: 1.8rem; color: var(--navy); font-weight: 700; }
.cf-sub { font-size: .82rem; color: var(--muted); }
.card-pay { top: 0; left: 0; width: 230px; }
.card-dre { top: 90px; right: 0; width: 290px; animation-delay: -2s; }
.card-link { bottom: 10px; left: 30px; width: 240px; animation-delay: -4s; }
.dre-row { display: flex; justify-content: space-between; font-size: .9rem; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.dre-row b { color: var(--navy); }
.dre-row b.neg { color: #b4475a; font-weight: 600; }
.dre-row.total { border: 0; font-weight: 700; }
.dre-row.total b { color: var(--teal-600); }
.bar { height: 8px; border-radius: 99px; background: var(--teal-50); margin: 8px 0 6px; overflow: hidden; }
.bar i { display: block; width: 24%; height: 100%; background: var(--teal); border-radius: 99px; }
.link-pill { background: var(--teal-50); color: var(--teal-600); font-weight: 600; padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* História */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > div > p { color: var(--muted); font-size: 1.05rem; }
.split > div > p b { color: var(--ink); }
.essence { background: linear-gradient(150deg, var(--navy), var(--navy-900)); color: #d6e2f2; border-radius: 28px; padding: 44px 40px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.essence::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid var(--teal); opacity: .25; }
.essence-kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
.essence-quote { font-family: var(--serif); font-size: clamp(3rem, 7vw, 4.6rem); color: #fff; font-weight: 700; line-height: 1; margin: 12px 0 20px; }
.essence p:last-child { position: relative; margin: 0; }

.timeline { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: linear-gradient(90deg, var(--navy), var(--teal)); }
.timeline li { position: relative; padding-top: 36px; }
.tl-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.timeline h4 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline p { color: var(--muted); font-size: .95rem; margin: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.value h4 { font-size: 1.05rem; margin-bottom: 4px; }
.value h4::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--teal); margin-right: 10px; }
.value p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Serviços: visão geral */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sol-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.sol-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal); }
.sol-card p { color: var(--muted); flex: 1; }
.sol-num { position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--teal-50); -webkit-text-stroke: 1.5px var(--teal); line-height: 1; }
.sol-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--navy); color: var(--teal); display: grid; place-items: center; margin-bottom: 20px; }
.sol-icon svg { width: 28px; height: 28px; }
.more { color: var(--navy); font-weight: 600; font-size: .95rem; }

/* Serviço: rótulo numerado */
.service-tag { display: inline-flex; align-items: center; gap: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.service-tag b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal); color: var(--navy-900); font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0; }
.service-tag.light { color: var(--teal); }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--muted); }
.checklist li b { color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317A9A8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pay-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); }
.pay-tile:nth-child(2), .pay-tile:nth-child(4) { transform: translateY(28px); }
.pay-tile svg { width: 36px; height: 36px; color: var(--teal-600); margin-bottom: 14px; }
.pay-tile h4 { margin-bottom: 4px; font-size: 1.15rem; }
.pay-tile p { margin: 0; color: var(--muted); font-size: .92rem; }

.split-rev > :first-child { order: 0; }
.browser { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4dbe5; }
.browser-bar span { margin-left: 12px; font-size: .8rem; color: var(--muted); background: #fff; padding: 4px 12px; border-radius: 8px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { padding: 48px 36px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #d6e2f2; }
.browser-body h4 { color: #fff; font-size: 2rem; }
.browser-body .btn-primary { background: var(--teal); color: var(--navy-900); box-shadow: none; }
.case-badge { display: inline-block; background: rgba(35,203,202,.18); color: var(--teal); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }

/* Gestão (seção escura) */
.section-dark { background: radial-gradient(800px 400px at 100% 0%, rgba(35,203,202,.18), transparent 60%), var(--navy-900); color: #c7d4e6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head.light p { color: #a9bbd3; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 28px 24px; }
.step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--teal); color: var(--teal); font-weight: 700; margin-bottom: 18px; }
.step p { margin: 0; font-size: .95rem; }

/* Região */
.region { padding: 56px 0; border-bottom: 1px solid var(--line); }
.region-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.region h2 { margin: 0; }
.states { display: flex; gap: 14px; flex-wrap: wrap; }
.states span { display: flex; flex-direction: column; align-items: center; min-width: 104px; padding: 16px 14px; border-radius: 16px; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.states small { font-family: var(--sans); font-size: .74rem; font-weight: 500; color: var(--teal); margin-top: 2px; }

/* Contato */
.wa-card { display: inline-flex; align-items: center; gap: 16px; margin-top: 12px; padding: 18px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s; }
.wa-card:hover { transform: translateY(-3px); }
.wa-card svg { width: 40px; height: 40px; color: #fff; background: #25D366; border-radius: 12px; padding: 8px; }
.wa-card small { display: block; color: var(--muted); font-size: .8rem; }
.wa-card b { font-size: 1.25rem; color: var(--navy); }
.form { background: #fff; border-radius: 24px; padding: 32px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); padding: 0; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(35,203,202,.18); }
.field .invalid { border-color: #d14b62; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { margin: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); font-size: .9rem; font-weight: 500; color: var(--ink); transition: .15s; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(35,203,202,.3); }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--teal-600); }
.form-status.err { color: #d14b62; }

/* Footer */
.site-footer { background: var(--navy-900); color: #a9bbd3; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo-wrap { background: #fff; display: inline-block; border-radius: 14px; padding: 10px 16px; margin-bottom: 16px; }
.footer-logo { height: 40px; width: auto; }
.site-footer h5 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a, .site-footer span { display: block; color: #a9bbd3; text-decoration: none; margin-bottom: 8px; font-size: .95rem; }
.site-footer a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: .85rem; }
.footer-bottom span { display: inline; margin: 0; font-size: .85rem; }

.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 24px rgba(37,211,102,.4); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsivo */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .split-rev > :first-child { order: 2; }
  .hero-visual { min-height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps, .values { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .menu { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: 0 20px 30px rgba(18,57,107,.08); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; }
  .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); }
}
@media (max-width: 560px) {
  .brand img { height: 38px; }
  .hero-visual { min-height: 400px; }
  .card-pay { width: 200px; }
  .card-dre { width: 250px; top: 100px; }
  .card-link { left: 0; bottom: -24px; width: 200px; }
  .hero-shape { inset: 40px 0 30px 20px; }
  .steps, .values, .timeline, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .pay-tile:nth-child(2), .pay-tile:nth-child(4) { transform: none; }
  .pay-tile { padding: 22px 18px; }
  .form { padding: 24px 18px; }
  .states span { min-width: calc(50% - 7px); }
  .hero-stats { gap: 20px; }
}
