/* ===== Design tokens (tema claro — marca Bonetto TI) ===== */
:root {
  --bg: #ffffff;
  --bg-2: #f4f8fc;
  --surface: #ffffff;
  --border: #e2e9f1;
  --text: #122231;
  --heading: #0c1c2b;
  --muted: #5c6b7b;
  --brand: #006cb6;
  --brand-dark: #00528a;
  --brand-light: #2b9fe3;
  --header-bg: rgba(255, 255, 255, .82);
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --shadow: 0 18px 40px -22px rgba(0, 76, 138, .28);
  --shadow-sm: 0 6px 18px -10px rgba(0, 76, 138, .25);
  --grad: linear-gradient(120deg, var(--brand), var(--brand-light));
}

/* ===== Tema escuro ===== */
:root[data-theme="dark"] {
  --bg: #0c1622;
  --bg-2: #0f1d2e;
  --surface: #152433;
  --border: #27384c;
  --text: #e7eef7;
  --heading: #f1f7fd;
  --muted: #9bb0c6;
  --brand: #3aa7ec;
  --brand-dark: #1f86c9;
  --brand-light: #62bdf5;
  --header-bg: rgba(12, 22, 34, .82);
  --grad-deep: linear-gradient(120deg, #0e4f7c, #0b3551);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .6);
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, .5);
}

body { transition: background-color .25s ease, color .25s ease; }

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; font-weight: 700; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #ffffff; box-shadow: 0 12px 26px -12px rgba(0, 108, 182, .65); }
.btn-primary:hover { box-shadow: 0 18px 32px -12px rgba(0, 108, 182, .7); }
.btn-ghost { border-color: var(--border); color: var(--brand); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem;
  font-weight: 700; color: var(--brand); margin-bottom: 12px;
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 104px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 88px; width: auto; }

/* ===== Logo (SVG) ===== */
.logo-mark { stroke: var(--brand); }
.logo-word { font-family: "Sora", "Inter", Arial, sans-serif; font-weight: 800; fill: var(--brand); }
.brand-logo .logo-word { font-size: 56px; }
.logo-sub { font-family: "Inter", Arial, sans-serif; font-weight: 600; fill: var(--muted); }

/* ===== Header tools / botão de tema ===== */
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: 18px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--brand);
  cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.theme-toggle:hover { border-color: var(--brand); background: var(--bg-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.brand-logo .logo-sub { font-size: 15px; }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s, background .15s; }
.nav a:hover { color: var(--brand); background: var(--bg-2); }
.nav .nav-cta { color: #fff; background: var(--grad); font-weight: 600; }
.nav .nav-cta:hover { color: #fff; background: var(--grad); filter: brightness(1.08); }

.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(--brand); 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; padding: 56px 0 48px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 0 auto 0; height: 600px;
  background:
    radial-gradient(620px 320px at 18% 8%, rgba(43, 159, 227, .18), transparent 70%),
    radial-gradient(620px 320px at 82% 0%, rgba(0, 108, 182, .14), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; color: var(--heading); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 720px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Sections ===== */
/* Compensa o cabeçalho fixo (104px) ao rolar até as âncoras do menu */
section[id] { scroll-margin-top: 104px; }
.section { padding: 44px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ===== Cards ===== */
.grid { display: grid; gap: 22px; }
.cards { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--brand-light); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.4rem;
  background: var(--grad); color: #fff; font-weight: 700; margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ===== Split (Sobre) ===== */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.split-text p { color: var(--muted); margin-bottom: 16px; }
.split-text .btn { margin-top: 10px; }
.split-list { list-style: none; display: grid; gap: 16px; }
.split-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.split-list .dot { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.split-list strong { display: block; margin-bottom: 4px; color: var(--text); }
.split-list div { color: var(--muted); }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
}
.step-num { font-family: "Sora", sans-serif; font-weight: 800; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ===== CTA ===== */
.section-cta { padding-top: 24px; padding-bottom: 84px; }
.cta-box {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between;
  background: var(--grad);
  border-radius: 24px; padding: 46px 44px;
  box-shadow: 0 26px 50px -24px rgba(0, 108, 182, .6);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 220px at 88% 0%, rgba(255, 255, 255, .22), transparent 70%);
  pointer-events: none;
}
.cta-text { position: relative; max-width: 540px; }
.cta-text .eyebrow { color: rgba(255, 255, 255, .85); }
.cta-text h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 10px; color: #fff; }
.cta-text p { color: rgba(255, 255, 255, .92); }
.cta-links { position: relative; display: flex; flex-wrap: wrap; gap: 14px; }
.cta-links .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .35); }
.cta-links .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.cta-links .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; align-items: start; padding-bottom: 44px; }
.footer-nav { grid-column: span 2; }
.footer-nav-links {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, auto);
  grid-auto-flow: column; gap: 0 32px;
}
.footer-nav h4, .footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.footer-nav-links a, .footer-col a { display: block; color: var(--text); padding: 5px 0; font-size: .95rem; transition: color .15s; }
.footer-nav-links a:hover, .footer-col a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border); padding-block: 22px; color: var(--muted); font-size: .9rem;
}
.to-top:hover { color: var(--brand); }

/* Tema escuro — gradiente profundo nos botões primários, no CTA do menu e nos ícones de serviço */
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .nav .nav-cta,
:root[data-theme="dark"] .card-icon {
  background: var(--grad-deep);
}
:root[data-theme="dark"] .btn-primary {
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 18px 32px -12px rgba(0, 0, 0, .6);
}
/* Botão primário da faixa de contato — azul bem claro (suave) em vez de branco puro */
:root[data-theme="dark"] .cta-links .btn-primary {
  background: #d3e6f6;
  color: #0b3551;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5);
}

/* Faixa de contato (CTA) — no escuro, gradiente mais profundo para não estourar de claro */
:root[data-theme="dark"] .cta-box {
  background: var(--grad-deep);
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .65);
}
:root[data-theme="dark"] .cta-box::before {
  background: radial-gradient(520px 220px at 88% 0%, rgba(98, 189, 245, .18), transparent 70%);
}

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-column: auto; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 104px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 14px 24px 22px; box-shadow: var(--shadow-sm);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; }
  .hero { padding: 40px 0 40px; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav-links { grid-template-columns: 1fr; grid-auto-flow: row; }
  .cta-box { padding: 32px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
