/* =========================================================
   Somos Soluções — estilo do site
   Paleta derivada da logomarca (#006CB5)
   ========================================================= */

:root {
  --brand:        #006CB5;
  --brand-600:    #0079C9;
  --brand-700:    #005A96;
  --brand-800:    #084A79;
  --brand-900:    #042A4E;
  --brand-50:     #F2F8FD;
  --brand-100:    #E1EFFA;

  --ink:          #0C1B2A;
  --ink-soft:     #33465A;
  --muted:        #5A6B7D;
  --line:         #E2EAF3;
  --bg:           #FFFFFF;
  --bg-alt:       #F5F9FD;

  --radius:       16px;
  --radius-sm:    10px;
  --shadow:       0 1px 2px rgba(12, 27, 42, .04), 0 12px 32px -12px rgba(12, 27, 42, .14);
  --shadow-lg:    0 24px 60px -22px rgba(0, 74, 124, .35);

  --container:    1160px;
  --gutter:       clamp(20px, 5vw, 40px);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(16px, .55vw + 14.6px, 17.5px);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.018em; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 840px; }

/* Âncora do topo da página (ver index.html) */
.anchor-top { position: absolute; top: 0; left: 0; width: 0; height: 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .9rem;
}
.eyebrow-light { color: #9FD0F2; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; }
.section-sub { color: var(--muted); max-width: 62ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .92em 1.7em;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 600; font-size: .97rem; line-height: 1;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 20px -12px rgba(0, 108, 181, .9);
}
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-sm { padding: .72em 1.25em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--brand-700); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand-700); border-color: #fff; }
.btn-light:hover { background: var(--brand-50); border-color: var(--brand-50); color: var(--brand-800); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(12,27,42,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand img { width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--brand); }
.nav a.btn { color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(900px 520px at 78% -8%, var(--brand-100) 0%, rgba(225,239,250,0) 62%),
    linear-gradient(180deg, var(--brand-50) 0%, #fff 72%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.4rem); font-weight: 600; margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 2rem 0 1.6rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.hero-badges li { position: relative; padding-left: 20px; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .8;
}
.hero-art svg { width: 100%; height: auto; }

/* ---------- seções ---------- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head h2, .split-copy h2, .cta h2 { font-size: clamp(1.65rem, 2.9vw, 2.35rem); }

/* ---------- cards de serviço ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 28px); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--brand-100); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-800) 100%);
  color: #fff;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .97rem; }
.card-list { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.card-list li { position: relative; padding-left: 24px; font-size: .93rem; color: var(--ink-soft); }
.card-list li::before {
  content: ""; position: absolute; left: 2px; top: .48em;
  width: 11px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.4vw, 30px); counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--brand-100); }
.step-n { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--brand); margin-bottom: 10px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- diferenciais ---------- */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.features li {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm); padding: 22px 22px 18px;
}
.features h3 { font-size: 1.02rem; }
.features p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; font-size: 1.04rem; font-weight: 600; color: var(--ink); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover h3 { color: var(--brand-700); }
.faq details p { color: var(--muted); font-size: .97rem; padding: 0 44px 22px 0; margin: 0; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand) 100%);
  color: #fff; text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 62%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 760px; }
.cta h2 { color: #fff; }
.cta-sub { color: #CFE5F7; max-width: 58ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 2.2rem 0 1.2rem; }
.cta-note { font-size: .87rem; color: #A8CDEA; margin: 0; }
.cta-noscript { color: #E6F1FB; font-size: .98rem; }
.cta-noscript b { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-900); color: #B9CFE3; padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .93rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand img { width: auto; height: 38px; margin-bottom: 18px; }
.footer-brand p { max-width: 42ch; color: #9FBBD4; }
.site-footer h2 { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: #7FB4DC; margin-bottom: 1.1em; font-weight: 700; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav a, .footer-contact a { color: #DCEAF6; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact p { margin: 0 0 10px; }
.footer-local { color: #7FA3C2; font-size: .87rem; }
.footer-bottom { margin-top: clamp(34px, 4vw, 52px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 0; font-size: .85rem; color: #7FA3C2; }

/* ---------- animação de entrada ----------
   Só é aplicada quando há JavaScript (classe .js no <html>). Sem JS, o
   conteúdo aparece normalmente — importante para acessibilidade e indexação. */
.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: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  /* No mobile o texto vem primeiro: a headline e o CTA precisam estar na
     primeira dobra, e não a ilustração. */
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin-inline: auto; opacity: .9; }
  .lead, .section-sub { max-width: none; }

  /* PERFORMANCE (só mobile) — o conteúdo da primeira dobra aparece na hora.
     O Google mede o LCP pelo maior elemento visível, e ele ignora qualquer
     coisa com opacity:0. Como o .reveal só ganha opacidade depois que o
     JavaScript roda, a headline ficava invisível para a métrica até lá.
     Da segunda dobra para baixo a animação continua normalmente, e no
     desktop nada muda. */
  .js .hero-copy.reveal { opacity: 1; transform: none; transition: none; }

  /* PERFORMANCE (só mobile) — backdrop-filter obriga o navegador a recompor
     a área atrás do cabeçalho a cada quadro da rolagem, o que pesa em
     aparelho modesto. Fundo sólido entrega o mesmo resultado visual. */
  .site-header { background: #fff; backdrop-filter: none; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 20px 40px -24px rgba(12,27,42,.5);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 14px; border-bottom: none; justify-content: center; }
}

@media (max-width: 600px) {
  .cards, .steps, .features { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- impressão ---------- */
@media print {
  .site-header, .nav-toggle, .hero-art, .cta-actions { display: none !important; }
  body { color: #000; }
}
