/* =========================================================
   ATEN SOLUÇÕES — folha de estilo principal
   Paleta: fundo quase preto + branco + âmbar (o "sol")
   ========================================================= */

:root {
  --bg: #0A0A0B;
  --bg-alt: #0E0E11;
  --surface: #131317;
  --border: #1F1F25;
  --border-soft: #17171C;
  --text: #FFFFFF;
  --text-dim: #A1A1AA;
  --text-faint: #71717A;
  --accent: #FFB23F;
  --accent-2: #FF7A18;
  --radius: 16px;
  --radius-pill: 100px;
  --container: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: #0A0A0B; }

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

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- brilho que segue o mouse ---------- */
.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at 50% 0%, rgba(255, 178, 63, .10), transparent 70%);
  transition: background .25s ease-out;
}
main, .nav, .footer { position: relative; z-index: 1; }

/* =========================================================
   NAVEGAÇÃO
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { letter-spacing: .26em; font-size: 13px; font-weight: 500; white-space: nowrap; }
.logo-text b { font-weight: 700; color: var(--accent); }

.logo-mark { position: relative; width: 38px; height: 38px; flex: 0 0 38px; color: var(--text); }
.logo-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sun { animation: slowSpin 40s linear infinite; color: var(--accent); }
.arrow { animation: pulseArrow 2.4s ease-in-out infinite; }
@keyframes slowSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseArrow { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(4px); } }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: #0A0A0B; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   BOTÕES
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #fff, #F4F4F5);
  color: #0A0A0B; border-color: #fff; font-weight: 600;
}
.btn-primary:hover { box-shadow: 0 10px 34px rgba(255, 178, 63, .28); }
.btn-ghost { border-color: #2A2A31; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 110px 0 90px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 24, .16), transparent 75%);
  filter: blur(10px);
}

.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(255, 178, 63, .28);
  background: rgba(255, 178, 63, .06);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 22px;
}

h1 {
  font-size: clamp(38px, 7vw, 72px); line-height: 1.05;
  letter-spacing: -.03em; font-weight: 600;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #FFD79A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lead {
  max-width: 640px; margin: 24px auto 0;
  font-size: clamp(16px, 2vw, 19px); color: var(--text-dim);
}

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 820px; margin: 72px auto 0;
  border-top: 1px solid var(--border); padding-top: 34px;
}
.hero-stats li { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -.02em; color: var(--accent); }
.hero-stats span { font-size: 13px; color: var(--text-faint); line-height: 1.4; }

/* =========================================================
   SEÇÕES
   ========================================================= */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border-soft); }

.section-head { max-width: 700px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.section-sub { color: var(--text-dim); margin-top: 14px; font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- cards de serviço ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 178, 63, .4); background: #16161B; }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; margin-bottom: 18px; font-size: 19px;
  background: rgba(255, 178, 63, .1); color: var(--accent);
  border: 1px solid rgba(255, 178, 63, .2);
}
.card h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.card p { color: var(--text-dim); margin-top: 10px; font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li {
  font-size: 12px; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 4px 11px;
}

/* ---------- passos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { border-top: 1px solid var(--border); padding-top: 22px; }
.step-n { font-size: 13px; color: var(--accent); letter-spacing: .18em; }
.step h3 { font-size: 18px; font-weight: 600; margin-top: 10px; }
.step p { color: var(--text-dim); font-size: 15px; margin-top: 8px; }

/* ---------- cases ---------- */
.case {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; background: linear-gradient(180deg, rgba(255, 178, 63, .05), transparent 60%);
}
.case-metric {
  font-size: clamp(38px, 6vw, 52px); font-weight: 600; letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.case h3 { font-size: 17px; font-weight: 600; margin-top: 14px; }
.case > p:not(.case-metric):not(.case-tag) { color: var(--text-dim); font-size: 15px; margin-top: 8px; }
.case-tag { font-size: 12px; color: var(--text-faint); margin-top: 18px; letter-spacing: .04em; }

.quote {
  max-width: 780px; margin: 56px auto 0; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px;
  background: var(--surface);
}
.quote blockquote { font-size: clamp(18px, 2.6vw, 23px); line-height: 1.5; letter-spacing: -.015em; }
.quote figcaption { color: var(--text-faint); font-size: 14px; margin-top: 18px; }

/* ---------- blocos em duas colunas ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; }
.split .cta { justify-content: flex-start; }

.pillars { display: grid; gap: 12px; }
.pillars li {
  border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px;
  background: var(--surface); color: var(--text-dim); font-size: 15px;
}
.pillars b { display: block; color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 4px; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact-list { margin-top: 28px; display: grid; gap: 2px; }
.contact-list li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px;
}
.contact-list li > span:first-child { color: var(--text-faint); }
.contact-list a { color: var(--accent); }
.contact-list a:hover { text-decoration: underline; }

.form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: #0D0D10; color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 15px; font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #52525B; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 178, 63, .14);
}
.field.invalid input, .field.invalid textarea { border-color: #F87171; }
.field .erro { color: #F87171; font-size: 12px; margin-top: 6px; display: block; }

/* honeypot: escondido de humanos, visível para bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { font-size: 14px; margin-top: 14px; min-height: 20px; }
.form-msg.ok { color: #4ADE80; }
.form-msg.erro { color: #F87171; }
.form-note { font-size: 12px; color: var(--text-faint); margin-top: 10px; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--bg-alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { letter-spacing: .26em; font-size: 13px; margin-bottom: 8px; }
.footer-logo b { color: var(--accent); }
.muted { color: var(--text-faint); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft);
}

/* ---------- botão flutuante do WhatsApp ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #073B22;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .32);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =========================================================
   ANIMAÇÃO DE ENTRADA
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visivel { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 720px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 10, 11, .97);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.aberto { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--border-soft); font-size: 16px; }
  .nav-links .nav-cta { margin-top: 16px; border-bottom: 0; justify-content: center; }

  .hero { padding: 70px 0 64px; }
  .section { padding: 68px 0; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .cta .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; }
}

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