/* =========================================================
   ViS Tech Strategy — Design System
   Paleta oficial (guia da marca, pág. 03)
   ========================================================= */

/* ---------- Fontes locais (Poppins) ---------- */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --marinho:      #0D1B3D;  /* dominante 60% */
  --profundo:     #143A63;  /* secundária 25% */
  --petroleo:     #0F5C6B;
  --petroleo-cl:  #1F6D6E;
  --ambar:        #E0A317;  /* destaque 10% */
  --ouro-claro:   #F2D99B;
  --cinza-claro:  #E6E8EB;  /* apoio 5% */

  --branco:       #ffffff;
  --texto:        #0D1B3D;
  --texto-mut:    #4a5468;
  --texto-claro:  rgba(255,255,255,.82);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1160px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(13,27,61,.08);
  --shadow-hover: 0 18px 44px rgba(13,27,61,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--texto);
  background: var(--branco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--marinho); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-accent {
  background: var(--ambar); color: var(--marinho);
  box-shadow: 0 8px 20px rgba(224,163,23,.28);
}
.btn-accent:hover { background: #f0b12c; transform: translateY(-2px); }
.hero-explore {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--profundo); padding: 14px 4px;
  border-bottom: 2px solid transparent; transition: border-color .25s var(--ease);
}
.hero-explore:hover { border-bottom-color: var(--ambar); }
.hero-explore span { transition: transform .25s var(--ease); }
.hero-explore:hover span { transform: translateY(3px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--cinza-claro);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.brand img { width: auto; height: 62px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-weight: 500; color: var(--texto); position: relative; padding: 6px 0; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--ambar); transition: width .25s var(--ease);
}
.nav-list a:hover::after, .nav-list a:focus::after { width: 100%; }
.nav-cta { padding: 11px 20px; font-size: .95rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--marinho); transition: .3s var(--ease); border-radius: 2px; }
.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); }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section-light { background: #f6f8fb; }
.section-dark { background: var(--marinho); color: var(--texto-claro); }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--marinho); max-width: 20ch; }
.section-title::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 4px;
  background: var(--ambar); margin-top: 18px;
}
.section-intro { max-width: 62ch; color: var(--texto-mut); font-size: 1.08rem; margin-bottom: 12px; }
.lead { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--marinho); }
.emphasis { font-weight: 600; color: var(--profundo); }

/* ---------- Hero (claro, preenchido com camadas azul/cinza translúcidas) ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: #fff;
  background-image:
    radial-gradient(rgba(13,27,61,.07) 1.1px, transparent 1.6px),
    radial-gradient(60% 85% at 88% 12%, rgba(20,58,99,.10), transparent 62%),
    radial-gradient(55% 75% at 4% 90%, rgba(15,92,107,.09), transparent 60%),
    radial-gradient(40% 55% at 55% 110%, rgba(230,232,235,.85), transparent 70%),
    linear-gradient(135deg, #f2f5fa 0%, #fdfdfe 42%, #ecf0f6 100%);
  background-size: 28px 28px, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  color: var(--texto);
  padding: clamp(60px, 9vh, 110px) 0 clamp(50px, 7vh, 90px);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--profundo); margin: 0 0 20px;
}
.hero-kicker::before {
  content: ""; flex: none; width: 34px; height: 3px; border-radius: 3px;
  background: var(--ambar);
}
.hero-title {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.18; color: var(--marinho);
}
.hero-title-2 { display: block; color: var(--profundo); margin-top: .15em; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--texto-mut); max-width: 50ch; margin-top: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }
.reveal-mobile { display: none; }

/* Pilares da marca (chips do guia, em versão editorial) */
.hero-pillars {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  list-style: none; padding: 22px 0 0; margin: 42px 0 0;
  border-top: 1px solid rgba(13,27,61,.12);
  color: var(--texto-mut); font-size: .95rem; font-weight: 500;
}
.hero-pillars li { display: flex; align-items: center; gap: 10px; }
.hero-pillars li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
}
.hero-pillars li:nth-child(1)::before { background: var(--profundo); }
.hero-pillars li:nth-child(2)::before { background: var(--ambar); }
.hero-pillars li:nth-child(3)::before { background: var(--petroleo); }

/* Mascote Devis — apoiado no chão, sombra de contato */
.hero-mascot { position: relative; display: flex; justify-content: center; padding-bottom: 14px; }
.hero-mascot::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 56%; height: 26px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(13,27,61,.18), transparent 74%);
}
.hero-mascot img {
  width: min(100%, 300px); height: auto;
  filter: drop-shadow(0 10px 16px rgba(13,27,61,.10));
}

/* Motivo de circuito (marca) — base escura (bloco de impacto) */
.hero-circuit {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 12% 78%, rgba(224,163,23,.5) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 22%, rgba(224,163,23,.4) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 85%, rgba(31,109,110,.5) 0 3px, transparent 4px);
}
.hero-circuit::before {
  content: ""; position: absolute; right: -60px; top: 40px; width: 380px; height: 380px;
  border: 1.5px solid rgba(255,255,255,.08); border-radius: 40px; transform: rotate(18deg);
}
.hero-circuit::after {
  content: ""; position: absolute; left: -80px; bottom: -60px; width: 300px; height: 300px;
  border: 1.5px solid rgba(224,163,23,.14); border-radius: 40px; transform: rotate(-12deg);
}

/* Variante clara do circuito dentro do hero:
   malha de circuitos translúcida cobrindo toda a área (motivo da marca) */
.hero .hero-circuit {
  opacity: 1; z-index: 0;
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='1440' height='760' viewBox='0 0 1440 760'><g fill='none' stroke='%23143A63' stroke-opacity='.13' stroke-width='2'><path d='M-20 90 H240 L300 150 V260 H420'/><path d='M1460 60 H1180 L1120 120 V240'/><path d='M1460 430 H1260 L1200 490 V620 H1050'/><path d='M-20 640 H180 L240 580 V460'/><path d='M520 780 V660 L580 600 H730'/><path d='M700 -20 V70 L760 130 H890'/></g><g fill='none' stroke='%239AA4B2' stroke-opacity='.16' stroke-width='2'><path d='M-20 320 H120 L170 270 V180'/><path d='M980 780 V700 L1040 640 H1180'/><path d='M330 -20 V60 L280 110 H160'/></g><g fill='%23E0A317' fill-opacity='.4'><circle cx='420' cy='260' r='5'/><circle cx='1120' cy='240' r='5'/><circle cx='1050' cy='620' r='5'/><circle cx='240' cy='460' r='5'/><circle cx='730' cy='600' r='5'/><circle cx='890' cy='130' r='5'/></g><g fill='%23143A63' fill-opacity='.22'><circle cx='170' cy='180' r='5'/><circle cx='1180' cy='640' r='5'/><circle cx='160' cy='110' r='5'/></g><g fill='none' stroke='%23E0A317' stroke-opacity='.35' stroke-width='2'><circle cx='420' cy='260' r='10'/><circle cx='1050' cy='620' r='10'/></g><g fill='none' stroke='%23143A63' stroke-opacity='.09' stroke-width='2'><rect x='1150' y='300' width='150' height='190' rx='22' transform='rotate(14 1225 395)'/><rect x='90' y='450' width='130' height='170' rx='20' transform='rotate(-11 155 535)'/></g></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.hero .hero-circuit::before { border-color: rgba(13,27,61,.05); }
.hero .hero-circuit::after { border-color: rgba(224,163,23,.12); }

/* ---------- Posicionamento (bloco escuro de contraste) ---------- */
#posicionamento p { font-size: 1.12rem; color: var(--texto-claro); }
#posicionamento .lead { color: #fff; margin-bottom: 1.4rem; }
#posicionamento .emphasis { color: var(--ouro-claro); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 48px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--cinza-claro);
  border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--ambar), var(--profundo)); transform: scaleX(0);
  transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-title { font-size: 1.3rem; color: var(--marinho); }
.card-question { font-weight: 600; color: var(--profundo); margin-bottom: .6rem; }
.card-text { color: var(--texto-mut); flex-grow: 1; }
.card-hint {
  color: var(--petroleo); font-style: italic; font-size: .95rem;
  max-height: 0; opacity: 0; overflow: hidden; margin: 0;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), margin .35s var(--ease);
}
.card:hover .card-hint, .card:focus-within .card-hint {
  max-height: 80px; opacity: 1; margin: 0 0 1rem;
}
.card-link {
  font-weight: 600; color: var(--profundo); margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link span { transition: transform .25s var(--ease); }
.card-link:hover span { transform: translateX(5px); }

/* Projetos */
.cards-projects { grid-template-columns: repeat(3, 1fr); }
.card-soon { background: #eef1f6; border-style: dashed; }
.card-badge {
  align-self: flex-start; margin-top: auto; background: var(--marinho); color: #fff;
  font-weight: 600; font-size: .82rem; padding: 7px 16px; border-radius: 999px;
}

/* ---------- Band (transição) ---------- */
.band {
  background: linear-gradient(135deg, var(--petroleo) 0%, var(--petroleo-cl) 100%);
  color: #fff; text-align: center;
}
.band-lead { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: .6rem; }
.band-text { font-size: 1.12rem; color: var(--texto-claro); max-width: 52ch; margin: 0 auto; }

/* ---------- Impacto ---------- */
.impact { position: relative; overflow: hidden; background: var(--marinho); color: #fff; text-align: center; }
.impact .container { position: relative; z-index: 2; }
.impact-question { font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 700; }
.impact-text { color: var(--texto-claro); font-size: 1.1rem; max-width: 54ch; margin: 1.2rem auto; }
.impact-highlight {
  font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; color: var(--ambar); margin-top: 1rem;
}

/* ---------- Contato ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contato-intro .lead { margin: 1rem 0; }
.contato-intro p { color: var(--texto-mut); }
.contato-micro { font-size: .95rem; color: var(--texto-mut); margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--cinza-claro); }

.contato-form-wrap { background: #fff; border: 1px solid var(--cinza-claro); border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow); }
.form-title { font-size: 1.4rem; color: var(--marinho); }
.form-sub { color: var(--texto-mut); margin-bottom: 1.6rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--marinho); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--texto);
  padding: 13px 15px; border: 1.5px solid var(--cinza-claro); border-radius: 12px;
  background: #fbfcfe; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--profundo); box-shadow: 0 0 0 3px rgba(20,58,99,.12);
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.2em; }
.form-status.error { color: #b3261e; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success h3 { color: var(--petroleo); font-size: 1.5rem; }
.form-success p { color: var(--texto-mut); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--marinho); color: #fff; padding: 60px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-name { font-weight: 700; font-size: 1.15rem; margin: 0; }
.footer-slogan { color: var(--ouro-claro); font-weight: 500; margin: .3rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer-links a { color: var(--texto-claro); font-weight: 500; position: relative; }
.footer-links a:hover { color: var(--ambar); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { color: rgba(255,255,255,.6); font-size: .9rem; margin: 0; }

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 24px rgba(13,27,61,.22);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(13,27,61,.28); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .cards, .cards-projects { grid-template-columns: 1fr; }
  .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mascot { order: 2; margin-top: 12px; }
  .hero-mascot img { width: min(52%, 240px); }
}
@media (max-width: 760px) {
  .section { padding: 70px 0; }
  .brand img { height: 52px; }
  .nav {
    position: fixed; inset: 86px 0 auto 0; flex-direction: column; gap: 20px;
    background: #fff; padding: 28px 24px 34px; border-bottom: 1px solid var(--cinza-claro);
    box-shadow: 0 20px 30px rgba(13,27,61,.1);
    transform: translateY(-140%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 4px; width: 100%; }
  .nav-list a { display: block; padding: 12px 0; font-size: 1.1rem; }
  .nav-cta { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
  .reveal-desktop { display: none; }
  .reveal-mobile { display: block; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

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