/* Build3DLab: base compartilhada (tokens, fontes, reset, cabeçalho, botões, rodapé).
   Tema único escuro, como a marca (logo sobre azul-noite).
   Cantos: botões e chips em pílula; cartões 22px; campos 14px. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  /* superfícies (azul-noite da logo) */
  --bg: #060c18;
  --bg-2: #0a1324;
  --surface: #0e1a31;
  --surface-2: #13223f;
  --line: rgb(150 180 235 / 0.12);
  --line-strong: rgb(150 180 235 / 0.22);

  /* texto */
  --text: #eef3fb;
  --muted: #a3b3cc;
  --faint: #7d8daa;

  /* marca: laranja = ação, azul = estrutura */
  --orange: #ff7a1a;
  --orange-2: #ffb02e;
  --orange-ink: #1d0d00;
  --blue: #1f6bff;
  --blue-2: #4ea2ff;
  --danger: #ff6b6b;
  --ok: #3ddc97;

  --grad-orange: linear-gradient(135deg, var(--orange-2) 0%, var(--orange) 55%, #ff5a0a 100%);
  --grad-blue: linear-gradient(135deg, #4ea2ff 0%, #1f6bff 50%, #1546c9 100%);

  /* Inter, a mesma do mockup (material-apoio/build3dlab-orcamento.html) */
  --font-display: "Inter", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --r-card: 22px;
  --r-field: 14px;
  --r-pill: 999px;

  --shell: min(100% - 32px, 1240px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-blue: 0 30px 80px -30px rgb(31 107 255 / 0.45);
  --shadow-orange: 0 18px 40px -16px rgb(255 122 26 / 0.65);

  /* camadas (z-index) */
  --z-header: 50;
  --z-overlay: 80;
  --z-grain: 90;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* granulado fixo, fora do fluxo de rolagem */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--orange);
  color: var(--orange-ink);
}

[hidden] {
  display: none !important;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--orange);
  color: var(--orange-ink);
  font-weight: 800;
}
.skip-link:focus {
  top: 12px;
}

/* ícones (sprite Phosphor) */
.i {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
}

/* ---------- marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.14rem;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: auto;
  filter: drop-shadow(0 6px 14px rgb(31 107 255 / 0.35));
}
.brand em {
  font-style: normal;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck {
  background: rgb(6 12 24 / 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.site-header .shell {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a:not(.btn) {
  position: relative;
  transition: color 0.2s;
}
.nav a:not(.btn):hover {
  color: var(--text);
}

/* ---------- botões ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn-primary {
  background: var(--grad-orange);
  color: var(--orange-ink);
  box-shadow: var(--shadow-orange), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -16px rgb(255 122 26 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.btn-primary .i {
  transition: transform 0.35s var(--ease);
}
.btn-primary:hover .i {
  transform: translateX(3px);
}
.btn-ghost {
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover {
  background: rgb(255 255 255 / 0.08);
}
.btn-sm {
  --h: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- rodapé ---------- */
.footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px 40px;
}
.site-footer .brand {
  color: var(--text);
}
.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}
.insta-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px 14px 14px;
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.insta-cta:hover {
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(214 41 118 / 0.6), 0 20px 50px -24px rgb(214 41 118 / 0.6);
  transform: translateY(-2px);
}
.insta-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  /* cores oficiais do Instagram */
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgb(214 36 159 / 0.8);
}
.insta-ico .i {
  width: 28px;
  height: 28px;
}
.insta-txt {
  display: grid;
  gap: 2px;
  max-width: 34ch;
}
.insta-txt b {
  font-size: 1.02rem;
}
.insta-txt span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.insta-seta {
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s;
}
.insta-cta:hover .insta-seta {
  color: var(--text);
  transform: translate(2px, -2px);
}
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}
.footer-wa:hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  color: var(--faint);
  font-size: 0.92rem;
}
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 10px;
}
.footer-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: color 0.2s, background 0.2s;
}
.footer-links a:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
}
.footer-links .i {
  width: 20px;
  height: 20px;
}

/* ---------- botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  background: #25d366; /* verde oficial do WhatsApp */
  color: #062b14;
  font-weight: 800;
  box-shadow: 0 16px 34px -12px rgb(37 211 102 / 0.65), inset 0 1px 0 rgb(255 255 255 / 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), gap 0.35s var(--ease);
}
.wa-float .i {
  width: 28px;
  height: 28px;
}
.wa-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.45s var(--ease);
}
.wa-float:hover,
.wa-float:focus-visible {
  gap: 10px;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgb(37 211 102 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.wa-float:hover .wa-float-label,
.wa-float:focus-visible .wa-float-label {
  max-width: 180px;
}
/* no orçamento (celular) fica acima da barra fixa de Voltar/Continuar */
@media (max-width: 620px) {
  .page-quote .wa-float {
    bottom: calc(86px + env(safe-area-inset-bottom));
    height: 52px;
    padding: 0 12px;
  }
}

/* ---------- revelação ao rolar (ativada pelo JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 860px) {
  .nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header .shell {
    gap: 12px;
  }
  .brand {
    font-size: 0.9rem;
    gap: 8px;
  }
  .brand img {
    width: 32px;
  }
  .site-header .btn-sm {
    padding: 0 14px;
    font-size: 0.86rem;
  }
}
