/* =========================================================
   Infolinx: redesign comercial (out/2026)
   Contrato de direção em DESIGN.md
   ========================================================= */

:root {
  --navy-950: #071528;
  --navy-900: #0b2142;
  --navy-800: #12305c;
  --navy-700: #1c4278;
  --blue: #0066cc;
  --blue-600: #0057ad;
  --blue-300: #8dbdf2;
  --sky: #dbe7f5;
  --canvas: #e9eff6;
  --surface: #f7fafd;
  --ink: #0d1b2e;
  --ink-2: #4a5a70;
  --line: #c8d5e5;
  --line-dark: rgb(141 189 242 / 0.18);
  --on-dark: #eef4fb;
  --on-dark-2: #b4c6dd;
  --wa: #25d366;

  --radius: 14px;
  --header-h: 76px;
  --container: 1240px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { touch-action: manipulation; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
input { font: inherit; font-size: 16px; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
[hidden] { display: none !important; }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 6px; }
html { accent-color: var(--blue); caret-color: var(--blue); }
body.no-scroll { overflow: hidden; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.section-title {
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-sub {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 1.0625rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.975rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn svg { flex-shrink: 0; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .55); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-light { background: #fff; color: var(--blue-600); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-600); }
  .btn-ghost:hover { background: rgb(255 255 255 / .16); border-color: #fff; }
  .btn-outline:hover { background: var(--navy-900); color: #fff; }
  .btn-light:hover { background: var(--sky); }
}

/* ---------- Faixa superior ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--on-dark-2);
  font-size: 0.875rem;
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}
.topbar-info { display: flex; gap: 24px; min-width: 0; }
.topbar-info a, .topbar-info span, .topbar-client {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar-info svg, .topbar-client svg { color: var(--blue-300); }
.topbar-client { color: #fff; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .topbar a:hover { color: #fff; }
  .topbar-client:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 1023px) { .topbar-hours { display: none !important; } }
@media (max-width: 767px) {
  .topbar-mail { display: none !important; }
  .topbar-client { font-size: 0.8125rem; }
}
@media (max-width: 380px) {
  .topbar-info { display: none; }
  .topbar-row { justify-content: center; }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgb(11 33 66 / .10); }
.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.header-logo img { width: 176px; height: auto; }
.header-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.975rem;
  color: var(--ink);
  transition: color .15s ease, background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover { color: var(--blue); background: var(--canvas); }
}
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--navy-900);
}
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline-flex; }
.menu-toggle span { display: inline-flex; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mnav { display: flex; flex-direction: column; padding-top: 12px; padding-bottom: 20px; }
.mnav-link {
  padding: 14px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--canvas);
}
.mnav-cta { margin-top: 16px; }

@media (max-width: 1079px) {
  .header-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 1080px) { .mobile-menu { display: none !important; } }
@media (max-width: 767px) {
  :root { --header-h: 66px; }
  .header-logo img { width: 148px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74svh, 700px);
  padding: 72px 0 120px;
  background: var(--navy-900) url(../img/hero.webp) center 40% / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 21 40 / .94) 0%, rgb(11 33 66 / .86) 45%, rgb(11 33 66 / .45) 100%),
    linear-gradient(0deg, rgb(7 21 40 / .55), transparent 40%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  max-width: 15ch;
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
  animation: heroIn .8s var(--ease-expo) both;
}
.hero-sub {
  max-width: 46ch;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
  color: var(--on-dark);
  animation: heroIn .8s var(--ease-expo) .08s both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: heroIn .8s var(--ease-expo) .16s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
  .hero { min-height: 0; padding: 56px 0 96px; background-position: 65% center; }
  .hero::before { background: linear-gradient(180deg, rgb(7 21 40 / .82), rgb(11 33 66 / .9)); }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Serviços (bento) ---------- */
.services {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  padding-bottom: 96px;
}
.services-head {
  padding: 32px 32px 0;
  background: var(--canvas);
  border-radius: var(--radius) var(--radius) 0 0;
  max-width: 760px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "sup sup atv atv"
    "sup sup red lic"
    "eqp ace del gam";
  gap: 16px;
  margin-top: 32px;
}
.tile-sup { grid-area: sup; }
.tile-atv { grid-area: atv; }
.tile-red { grid-area: red; }
.tile-lic { grid-area: lic; }
.tile-eqp { grid-area: eqp; }
.tile-ace { grid-area: ace; }
.tile-del { grid-area: del; }
.tile-gam { grid-area: gam; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}
.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue);
}
.tile-body { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.tile-title { font-size: 1.2rem; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.tile-text { font-size: 0.975rem; line-height: 1.55; color: var(--ink-2); }
.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 0;
  font-weight: 700;
  color: var(--blue);
  align-self: flex-start;
}
.tile-link svg { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile-link:hover svg { transform: translateX(4px); }
  .tile-link:hover { text-decoration: underline; text-underline-offset: 4px; }
}

.tile-plain { background: var(--surface); border: 1px solid var(--line); }

.tile-brand { background: var(--blue); color: #fff; }
.tile-brand .tile-icon { background: rgb(255 255 255 / .16); color: #fff; }
.tile-brand .tile-text { color: #e3eefb; }
.tile-brand .tile-link { color: #fff; }

.tile-photo {
  min-height: 260px;
  background-color: var(--navy-900);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
.tile-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(7 21 40 / .25) 0%, rgb(7 21 40 / .82) 55%, rgb(7 21 40 / .94) 100%);
}
.tile-photo > * { position: relative; z-index: 1; }
.tile-photo .tile-icon { background: rgb(255 255 255 / .14); color: #fff; }
.tile-photo .tile-text { color: var(--on-dark); max-width: 46ch; }
.tile-photo .tile-link { color: #fff; }
.tile-sup { min-height: 480px; padding: 32px; }
.tile-sup .tile-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.tile-sup .tile-text { font-size: 1.0625rem; }
.tile-atv .tile-title { font-size: 1.4rem; }

@media (max-width: 1023px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "sup sup"
      "atv atv"
      "red lic"
      "eqp ace"
      "del gam";
  }
  .tile-sup { min-height: 400px; }
}
@media (max-width: 767px) {
  .services { margin-top: -56px; padding-bottom: 64px; }
  .services-head { padding: 24px 16px 0; margin: 0 -16px; border-radius: var(--radius) var(--radius) 0 0; }
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "sup" "atv" "red" "lic" "eqp" "ace" "del" "gam";
    gap: 12px;
    margin-top: 24px;
  }
  .tile-sup { min-height: 340px; padding: 24px; }
  .tile-photo { min-height: 280px; }
}

/* Movimento 1: float-up escalonado (só quando o JS liga) */
.js [data-rise] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-rise].is-in { opacity: 1; transform: none; }

/* ---------- Parceiros ---------- */
.partners {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partners-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.partners-title {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-2);
  max-width: 10ch;
  line-height: 1.3;
}
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee-group img { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) {
  .partners-row { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .partners-title { max-width: none; }
  .marquee { width: 100%; }
  .marquee-group img { height: 36px; }
}

/* ---------- Cotação ---------- */
.quote {
  background: var(--navy-900);
  color: var(--on-dark);
  padding: 112px 0;
}
.quote .section-title { color: #fff; }
.quote .section-sub { color: var(--on-dark-2); }
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.quote-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.quote-rules { display: grid; gap: 14px; margin-top: 32px; }
.quote-rules li { display: flex; gap: 12px; color: var(--on-dark); }
.quote-rules svg { flex-shrink: 0; margin-top: 4px; color: var(--blue-300); }
.quote-how {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.975rem;
  color: var(--on-dark-2);
}

.quote-box {
  background: var(--navy-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 8px;
}
.quote-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quote-tabs::-webkit-scrollbar { display: none; }
.quote-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark-2);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.quote-tab[aria-selected="true"] { background: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .quote-tab:not([aria-selected="true"]):hover { background: rgb(255 255 255 / .06); color: #fff; }
}
.quote-panel { padding: 8px 8px 4px; }
.quote-notice {
  display: flex;
  gap: 10px;
  margin: 4px 4px 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgb(141 189 242 / .1);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--on-dark);
}
.quote-notice svg { flex-shrink: 0; margin-top: 2px; color: var(--blue-300); }
.quote-list { display: grid; }
.qrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 12px;
  border-top: 1px solid var(--line-dark);
}
.qrow:first-child { border-top: 0; }
.qrow-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qrow-name { font-weight: 700; color: #fff; font-size: 1.05rem; }
.qrow-meta { font-size: 0.875rem; color: var(--on-dark-2); }
.qrow-extra { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--blue-300); font-weight: 600; }
.qrow-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qrow-direct { display: none; }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: var(--navy-900);
}
.stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
}
.stepper-btn:active { transform: scale(.94); }
.stepper-input {
  width: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-add { background: #fff; color: var(--navy-900); padding: 8px 16px; min-height: 42px; }
.btn-add.is-added { background: var(--blue); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-add:hover { background: var(--sky); }
  .btn-add.is-added:hover { background: var(--blue-600); }
}

/* Sem JS: cada item vira link direto de cotação */
html:not(.js) .stepper, html:not(.js) .btn-add { display: none; }
html:not(.js) .qrow-direct { display: inline-flex; color: var(--blue-300); font-weight: 700; }
html:not(.js) .quote-panel[hidden] { display: block !important; }
html:not(.js) .quote-tabs { display: none; }

@media (max-width: 1023px) {
  .quote { padding: 80px 0; }
  .quote-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .quote-intro { position: static; }
}
@media (max-width: 767px) {
  .quote { padding: 64px 0; }
  .quote-box { margin: 0 -8px; }
  .qrow { flex-direction: column; align-items: stretch; gap: 12px; }
  .qrow-actions { justify-content: space-between; }
  .btn-add { flex: 1; }
}

/* ---------- Sobre ---------- */
.about { padding: 112px 0; }
.about-top {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 64px;
  align-items: end;
}
.about-text p { margin-top: 16px; color: var(--ink-2); max-width: 60ch; }
.about-text .about-lead { margin-top: 20px; font-size: 1.2rem; line-height: 1.5; color: var(--ink); }
.about-quote {
  position: relative;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.about-quote blockquote {
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  text-wrap: balance;
}
.about-quote figcaption { margin-top: 20px; font-weight: 700; color: var(--blue); }

.about-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.about-col h3 { font-size: 1.25rem; font-weight: 800; }
.about-col p { margin-top: 10px; color: var(--ink-2); }

.lenovo {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  margin-top: 64px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: var(--on-dark);
}
.lenovo-title { font-size: 1.6rem; font-weight: 800; color: #fff; letter-spacing: -0.015em; }
.lenovo-text p { margin-top: 12px; color: var(--on-dark-2); }
.lenovo-logos { display: grid; gap: 10px; }
.lenovo-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
  padding: 14px 24px;
  border-radius: 10px;
  background: #fff;
}
.lenovo-logos img { max-height: 44px; width: auto; max-width: 100%; object-fit: contain; }

@media (max-width: 1023px) {
  .about { padding: 80px 0; }
  .about-top, .lenovo { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 767px) {
  .about { padding: 64px 0; }
  .about-quote, .lenovo { padding: 28px 20px; }
  .about-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 48px; }
  .lenovo { margin-top: 48px; }
}

/* ---------- Galeria (trilho) ---------- */
.gallery { padding: 96px 0; background: var(--canvas); border-top: 1px solid var(--line); }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--navy-900);
  transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out);
}
.rail-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .rail-btn:hover { background: var(--navy-900); color: #fff; } }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, calc((100% - 32px) / 3));
  gap: 16px;
  margin-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: start; }
.rail-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  text-align: left;
}
.rail-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s var(--ease-out); }
.rail-caption { display: block; padding: 14px 18px; font-weight: 700; color: #fff; }
@media (hover: hover) and (pointer: fine) { .rail-card:hover img { transform: scale(1.03); } }
@media (max-width: 1023px) { .rail { grid-auto-columns: minmax(0, calc((100% - 16px) / 2)); } }
@media (max-width: 767px) {
  .gallery { padding: 64px 0; }
  .rail { grid-auto-columns: 82%; gap: 12px; }
  .rail-nav { display: none; }
}

/* ---------- Consultor ---------- */
.consult { padding: 88px 0; background: var(--sky); }
.consult-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: stretch;
}
.consult-photo {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
}
.consult-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}
.consult-badge {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgb(255 255 255 / .96);
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: 0 12px 32px rgb(7 21 40 / .22);
}
.consult-badge strong { display: block; color: var(--ink); font-size: 1rem; }
.consult-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
}
/* Movimento 2: reveal por clip-path */
/* o clip-path fica na img: no elemento observado ele impede o IntersectionObserver de disparar */
.js .consult-photo[data-reveal] img { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-expo); }
.js .consult-photo[data-reveal].is-in img { clip-path: inset(0); }
.js .consult-photo[data-reveal] .consult-badge { opacity: 0; transform: translateY(12px); transition: opacity .4s ease .5s, transform .5s var(--ease-out) .5s; }
.js .consult-photo[data-reveal].is-in .consult-badge { opacity: 1; transform: none; }

.consult-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.consult-subtitle { margin-top: 32px; font-size: 1rem; font-weight: 700; color: var(--navy-900); }
.consult-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin-top: 14px;
}
.consult-perks li { display: flex; gap: 10px; color: var(--ink); font-size: 0.975rem; line-height: 1.45; }
.consult-perks svg { flex-shrink: 0; margin-top: 1px; padding: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--blue); color: #fff; }

.channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out);
}
.channel:active { transform: scale(.98); }
.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--sky);
  color: var(--blue);
}
.channel-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.channel-text strong { font-size: 0.975rem; color: var(--ink); }
.channel-text span { font-size: 0.875rem; color: var(--ink-2); overflow-wrap: anywhere; }
.channel-wa {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border-color: transparent;
  background: var(--wa);
}
.channel-wa .channel-icon { width: 48px; height: 48px; border-radius: 999px; background: rgb(255 255 255 / .22); color: #fff; }
.channel-wa .channel-icon svg { width: 26px; height: 26px; }
.channel-wa .channel-text strong { font-size: 1.15rem; color: #08361b; }
.channel-wa .channel-text span { color: #0b4a25; font-weight: 600; font-size: 0.95rem; }
.channel-arrow { margin-left: auto; flex-shrink: 0; color: #08361b; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .channel:hover { border-color: var(--blue); background: #fff; }
  .channel-wa:hover { border-color: transparent; background: #1fbe5b; }
  .channel-wa:hover .channel-arrow { transform: translateX(4px); }
}

@media (max-width: 1100px) {
  .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channels .channel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .consult { padding: 80px 0; }
  .consult-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .consult-photo { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) {
  .consult { padding: 64px 0; }
  .consult-photo { aspect-ratio: 4 / 3; }
  .consult-badge { left: 12px; right: 12px; bottom: 12px; padding: 12px 14px; }
  .consult-perks { grid-template-columns: minmax(0, 1fr); }
  .channels { grid-template-columns: minmax(0, 1fr); }
  .channels .channel:last-child { grid-column: auto; }
}

/* ---------- Solicitar cotação (formulário) ---------- */
.closing { background: var(--blue); color: #fff; padding: 96px 0; }
.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.closing-title {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.closing-text > p { margin-top: 16px; color: #e3eefb; max-width: 44ch; }
.closing-list { display: grid; gap: 12px; margin-top: 28px; }
.closing-list li { display: flex; gap: 10px; font-weight: 600; }
.closing-list svg { flex-shrink: 0; margin-top: 3px; }

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 48px rgb(7 21 40 / .22);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #6a7a90; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(0 102 204 / .2);
}
.field.has-error input { border-color: #c62828; }
.field-error { min-height: 0; font-size: 0.875rem; color: #b42318; font-weight: 600; }
.field-error:empty { display: none; }
@media (max-width: 1023px) {
  .closing { padding: 80px 0; }
  .closing-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 767px) {
  .closing { padding: 64px 0; }
  .lead-form { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; margin: 0 -8px; }
}

/* ---------- Diferenciais ---------- */
.difs { padding: 104px 0; }
.difs-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.difs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dif { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 32px; background: var(--surface); min-width: 0; }
.dif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
}
.dif:nth-child(odd) .dif-icon { background: var(--blue); }
.dif-title { font-size: 1.1rem; line-height: 1.25; font-weight: 800; }
.dif-text { font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 1023px) {
  .difs { padding: 80px 0; }
  .difs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .difs { padding: 64px 0; }
  .difs-head { flex-direction: column; align-items: stretch; }
  .difs-grid { margin-top: 28px; }
  .dif { padding: 22px 18px 24px; }
}
@media (max-width: 479px) { .difs-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Como funciona ---------- */
.how { padding: 104px 0; background: var(--sky); }
.how .section-title { max-width: 22ch; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-300));
}
.step { position: relative; counter-increment: step; }
.step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 6px var(--sky);
}
.step-icon::after {
  content: counter(step);
  position: absolute;
  top: -6px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 800;
}
.step-title { margin-top: 20px; font-size: 1.15rem; font-weight: 800; }
.step-text { margin-top: 8px; color: var(--ink-2); font-size: 0.975rem; }
@media (max-width: 1023px) {
  .how { padding: 80px 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .steps::before { display: none; }
}
@media (max-width: 767px) {
  .how { padding: 64px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; }
  .step-icon { grid-row: span 2; }
  .step-title { margin-top: 4px; }
  .step-text { margin-top: 4px; }
}

/* ---------- Menu: dropdown de serviços ---------- */
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; }
.nav-dd-btn svg { transition: transform .2s var(--ease-out); }
.nav-dd-btn[aria-expanded="true"] { color: var(--blue); background: var(--canvas); }
.nav-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 560px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 48px rgb(11 33 66 / .16);
  transform: translateX(-50%);
  transform-origin: top center;
  animation: ddIn .18s var(--ease-out) both;
}
@keyframes ddIn { from { opacity: 0; transform: translateX(-50%) scale(.96); } to { opacity: 1; transform: translateX(-50%); } }
.dd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.dd-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.dd-link svg { flex-shrink: 0; color: var(--blue); }
.dd-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 12px 6px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--blue);
}
@media (hover: hover) and (pointer: fine) {
  .dd-link:hover { background: var(--canvas); color: var(--blue); }
  .dd-foot:hover { text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-2); font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 48px;
}
.footer-logo { display: inline-block; padding: 12px 16px; background: #fff; border-radius: 10px; }
.footer-logo img { width: 150px; }
.footer-brand p { margin-top: 20px; max-width: 42ch; }
.footer-brand .footer-cnpj { margin-top: 12px; font-size: 0.875rem; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 { margin-bottom: 4px; font-size: 1rem; color: #fff; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.footer-col svg { flex-shrink: 0; color: var(--blue-300); }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: #fff; } }
.footer-bottom { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line-dark); font-size: 0.875rem; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; }
  .footer-bottom { padding-bottom: 96px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgb(7 21 40 / .28);
  animation: waIn .5s var(--ease-out) .6s both;
  transition: transform .16s var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:active { transform: scale(.96); }
@keyframes waIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wa-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Cotação: botão + painel ---------- */
.quote-fab {
  position: fixed;
  left: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgb(7 21 40 / .3);
  animation: waIn .35s var(--ease-out) both;
}
.quote-fab:active { transform: scale(.96); }
.quote-fab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 767px) { .quote-fab { left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgb(7 21 40 / .55);
  animation: fadeIn .2s ease both;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--surface);
  box-shadow: -12px 0 40px rgb(7 21 40 / .2);
  overscroll-behavior: contain;
  animation: drawerIn .4s var(--ease-drawer) both;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { font-size: 1.3rem; font-weight: 800; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--navy-900);
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--canvas); } }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-empty { padding: 48px 0; text-align: center; color: var(--ink-2); }
.drawer-empty svg { margin: 0 auto 12px; color: var(--line); }
.drawer-list { display: grid; gap: 4px; }
.ditem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.ditem-name { font-weight: 700; overflow-wrap: anywhere; }
.ditem-unit { display: block; font-size: 0.85rem; color: var(--ink-2); font-weight: 400; }
.ditem-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ditem .stepper { background: #fff; border-color: var(--line); }
.ditem .stepper-btn { color: var(--navy-900); width: 36px; height: 36px; }
.ditem .stepper-input { color: var(--ink); width: 36px; }
.drawer-foot { display: grid; gap: 8px; padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.drawer-foot .btn-primary { background: var(--wa); color: #08361b; }
@media (hover: hover) and (pointer: fine) { .drawer-foot .btn-primary:hover { background: #1fbe5b; } }
.btn-text {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy-950);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 80px;
  background: rgb(7 21 40 / .94);
  animation: fadeIn .2s ease both;
}
.lb-stage { max-width: 1100px; width: 100%; }
.lb-stage img { width: 100%; max-height: 76vh; object-fit: contain; border-radius: 10px; }
.lb-stage figcaption { margin-top: 14px; color: #fff; font-weight: 700; text-align: center; }
.lb-counter { color: var(--on-dark-2); font-weight: 400; margin-left: 8px; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / .1);
  color: #fff;
}
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgb(255 255 255 / .2); } }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 767px) {
  .lightbox { padding: 72px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; }
  .marquee-group { flex-wrap: wrap; gap: 32px; }
  .hero-title, .hero-sub, .hero-ctas, .wa-float, .quote-fab, .drawer, .dd-panel { animation-duration: .01s; animation-delay: 0s; }
  .js [data-rise] { transform: none; transition: opacity .2s ease; transition-delay: 0s; }
  .js .consult-photo[data-reveal] img { clip-path: none; }
  .js .consult-photo[data-reveal] .consult-badge { opacity: 1; transform: none; }
}
