/* ==========================================================================
   SturmTech — Site institucional
   Tema: dark executive editorial. Navy carrega a superfície, laranja é o gesto.
   ========================================================================== */

/* ----- Tokens ----- */
:root {
  --bg: #0A1228;
  --surface: #0C1A3B;
  --surface-2: #0D1F42;
  --border: #172E5E;
  --border-soft: rgba(186, 200, 224, 0.10);

  --ink: #EEF2FA;
  --ink-2: #BAC8E0;
  --muted: #8A99B8;

  --accent: #E8631A;
  --accent-hover: #D05516;
  --accent-soft: rgba(232, 99, 26, 0.12);
  --accent-glow: rgba(232, 99, 26, 0.28);

  --success: #2ECC87;
  --whatsapp: #25D366;

  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 10px;
  --radius-lg: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;

  /* z-index semântico */
  --z-header: 100;
  --z-dropdown: 200;
  --z-modal: 400;
  --z-toast: 600;
}

/* ----- Reset ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ----- Tipografia ----- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display, .h2 { font-weight: 700; }

p { text-wrap: pretty; }

.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.025em; }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 60ch;
}

/* Kicker — usado com parcimônia, NÃO em toda seção */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: none;
}
.kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--alt { background: var(--surface); }

.section-head { max-width: 64ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .h2 { margin-block: 0.75rem 1rem; }

/* ----- Botões ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.005em;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #160a02; /* navy/quase-preto sobre laranja = 5.5:1, passa AA */
  box-shadow: 0 6px 24px -8px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 10px 32px -8px var(--accent-glow); }

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--ink); }

.btn--whatsapp { background: var(--whatsapp); color: #042f17; }
.btn--whatsapp:hover { filter: brightness(1.05); }

.btn--block { width: 100%; }

/* ----- Tags ----- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  padding: 0.3em 0.8em;
  border-radius: 999px;
}
.tag--accent { background: var(--accent-soft); color: #F4A06B; border-color: transparent; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.header[data-scrolled="true"] { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-family: var(--font-body);
  box-shadow: 0 4px 16px -6px var(--accent-glow);
}
.brand .mark::after { content: "S"; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* CTA "Entre em contato" dentro do nav */
.nav-cta .btn { padding: 0.6em 1.1em; font-size: 0.92rem; }
.nav-cta .btn::after { content: none; }
.nav-cta .btn--whatsapp,
.nav-cta .btn--whatsapp:hover { color: #042f17; }

.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(232, 99, 26, 0.10), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(91, 141, 239, 0.06), transparent 70%);
  pointer-events: none;
}
.hero .container {
  position: relative;
}
.hero-copy { max-width: 60rem; }
.hero-copy h1 { max-width: 18ch; }
.hero-copy .pillars {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
}
.hero-copy .pillars span { display: inline-flex; align-items: center; gap: 0.5em; }
.hero-copy .pillars span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy h1 .accent { color: var(--accent); }
.hero-copy .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ==========================================================================
   Diagnóstico (gargalos) — lista variada, não cards idênticos
   ========================================================================== */
.problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.problem {
  display: flex;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.problem:nth-child(2n) { border-right: none; }
.problem .bullet {
  flex-shrink: 0;
  width: 9px; height: 9px;
  margin-top: 0.5em;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
.problem h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.problem p { color: var(--ink-2); font-size: 0.97rem; }

/* ==========================================================================
   Soluções
   ========================================================================== */
.solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.solution {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.solution:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.7);
}
.solution .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  color: var(--accent);
}
.solution .icon svg { width: 24px; height: 24px; }
.solution h3 { font-size: 1.3rem; }
.solution p { color: var(--ink-2); font-size: 0.97rem; flex: 1; }

/* ==========================================================================
   Método — sequência numerada 01–04 (numeração justificada)
   ========================================================================== */
.steps { display: grid; gap: 0; position: relative; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.step:last-child { border-bottom: none; }
.step .marker {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.step .marker .n {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--accent);
  line-height: 1;
}
.step .marker .line { width: 1px; flex: 1; min-height: 32px; background: var(--border); }
.step:last-child .marker .line { display: none; }
.step-body { max-width: 60ch; }
.step-body h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: 0.5rem; }
.step-body p { color: var(--ink-2); }

/* ==========================================================================
   Formatos (planos)
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.plan:hover { transform: translateY(-4px); }
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 24px 60px -30px var(--accent-glow);
}
.plan .plan-tier { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.plan h3 { font-size: 1.5rem; }
.plan .badge {
  position: absolute; top: -0.7rem; right: 1.5rem;
  background: var(--accent); color: #160a02;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 0.3em 0.8em; border-radius: 999px;
}
.plan p { color: var(--ink-2); flex: 1; font-size: 0.97rem; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--surface); padding: clamp(1.5rem, 3vw, 2.5rem); }
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  line-height: 1;
}
.stat .n .accent { color: var(--accent); }
.stat .k { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }

/* ==========================================================================
   Experiência (áreas)
   ========================================================================== */
.experience { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.area { background: var(--surface-2); padding: 1.5rem; transition: background-color 0.3s; }
.area:hover { background: var(--surface); }
.area .area-name { color: var(--ink); font-weight: 600; font-family: var(--font-body); font-size: 1.02rem; }
.area .area-desc { color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }

/* ==========================================================================
   Sobre
   ========================================================================== */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232,99,26,.10), transparent 60%),
    var(--surface-2);
  display: grid; place-items: center;
  color: var(--muted); font-size: 0.9rem;
  position: relative; overflow: hidden;
}
.about-photo span { position: relative; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-name { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--ink); margin-bottom: 0.4rem; }
.about-role { color: var(--accent); font-weight: 500; margin-bottom: 1.5rem; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final { text-align: center; }
.cta-final .container { display: grid; place-items: center; gap: 1.5rem; }
.cta-final h2 { max-width: 18ch; }
.cta-final h2 .accent { color: var(--accent); }
.cta-final .hero-cta { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-2); font-size: 0.95rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-meta { color: var(--muted); font-size: 0.88rem; }
.footer-tagline { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ==========================================================================
   Reveal (motion) — enhancing default visível
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* Stagger real: o container não some; os filhos entram em sequência */
.reveal[data-stagger] { opacity: 1; transform: none; }
.reveal[data-stagger] > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: var(--z-toast);
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #042f17;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  animation: wa-pulse 2.6s var(--ease-out) infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float:active { transform: scale(0.96); }

@keyframes wa-pulse {
  0%   { box-shadow: 0 10px 30px -8px rgba(0,0,0,.5), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 10px 30px -8px rgba(0,0,0,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 30px -8px rgba(0,0,0,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .experience, .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .header[data-menu-open="true"] .nav-links {
    display: flex; flex-direction: column; gap: 1.25rem;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 1.75rem var(--gutter) 2rem;
  }
  .header[data-menu-open="true"] .nav-links a { font-size: 1.1rem; }
  .problems { grid-template-columns: 1fr; }
  .problem { border-right: none; }
  .areas { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal[data-stagger] > * { opacity: 1; transform: none; }
  .btn:hover, .solution:hover, .plan:hover { transform: none; }
}
