/* Zanarotti Ar Condicionado — versão 2
   O nome na parede, o split na frente dele, e o ar que muda a cor da sala.
   As fotos abrem como as aletas do ar (persiana). Cores: brasa de fim de tarde e azul de noite fria. */

:root {
  --paper: #eef0f1;
  --paper-2: #e2e6e8;
  --line: #cdd3d7;
  --ink: #0d1318;
  --muted: #56616b;
  --night: #0b1824;
  --deep: #10283b;
  --steel: #1e5279;
  --steel-deep: #163f5e;
  --frost: #a9d2e8;
  --ice: #dcedf5;
  --copper: #b8693a;
  --copper-light: #e0a274;

  --m: clamp(16px, 3.2vw, 48px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 14vh, 176px);

  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.1rem, 1.3rem + 3vw, 4rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --brand: "Panchang", "General Sans", "Arial Black", sans-serif;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--steel); color: #fff; }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; border-radius: 4px; }

.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 {
  position: absolute; left: var(--m); top: -80px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 10px;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--light { background: #fff; color: var(--ink); }
.btn--ink { background: var(--steel); color: #fff; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: var(--ice); }
  .btn--ink:hover { background: var(--steel-deep); }
}
.link, .link-light {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
  font-weight: 500; transition: text-decoration-color 200ms ease, color 200ms ease;
}
.link { color: var(--steel); }
.link-light { color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--ink); }
  .link-light:hover { text-decoration-color: transparent; }
}

.h2 {
  font-size: var(--step-head);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

/* grão: textura parada, desenhada uma vez */
.hero__grain, .btu__grain {
  position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise); background-size: 220px 220px;
  mix-blend-mode: overlay; opacity: 0.32;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  /* fim de tarde: brasa na parede */
  background: radial-gradient(120% 85% at 50% 22%, #c4652e 0%, #973c1a 36%, #5e1c09 74%, #3c1004 100%);
}
/* a frente fria: o azul de noite sai da boca do split e toma a sala */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 85% at 50% 22%, #2c648b 0%, #163a57 36%, #0b1d2c 74%, #07111a 100%);
  clip-path: ellipse(170% 150% at var(--ox, 50%) var(--oy, 32%));
  transition: clip-path 2600ms var(--ease-in-out);
}
.hero[data-state="off"]::before { clip-path: ellipse(0% 0% at var(--ox, 50%) var(--oy, 32%)); transition-duration: 3200ms; }
.hero__grain { z-index: 1; }

.nav {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--m);
}
.logo { display: grid; gap: 4px; text-decoration: none; color: #fff; line-height: 1; }
.logo__name { font-family: var(--brand); font-weight: 700; font-size: 1.375rem; letter-spacing: 0.02em; }
.logo__sub { font-size: 0.8125rem; font-weight: 500; opacity: 0.82; letter-spacing: 0.01em; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 1rem; color: #fff; padding: 6px 0; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: #fff; transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav__links a:hover::after { transform: scaleX(1); } }
.nav__cta { min-height: 46px; padding: 0 20px; }
.hero :focus-visible { outline-color: #fff; }

/* o palco: o nome enorme na parede e o split instalado na frente */
.stage {
  position: relative; z-index: 2;
  display: grid; justify-items: center;
  padding: clamp(0px, 1vh, 12px) var(--m) 0;
}
.stage > * { grid-area: 1 / 1; }
.stage__name {
  align-self: start;
  font-family: var(--brand); font-weight: 700;
  font-size: var(--fs, 11.4vw); line-height: 0.82; letter-spacing: 0;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.14) 55%, rgba(255,255,255,.03) 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* o split: desenhado com detalhe, em proporção real */
.unit {
  align-self: end;
  position: relative;
  width: min(56vw, 880px, 92svh);
  aspect-ratio: 3.75 / 1;
  margin-top: calc(var(--fs, 11.4vw) * 0.5);
  container-type: inline-size;
}
.unit__body {
  position: absolute; inset: 0 0 4% 0;
  border-radius: 2.2cqw 2.2cqw 5cqw 5cqw / 2.2cqw 2.2cqw 8cqw 8cqw;
  background: linear-gradient(180deg, #fdfdfc 0%, #f2f3f2 46%, #e5e7e7 70%, #cfd3d4 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -1.4cqw 2.2cqw rgba(0, 0, 0, 0.08),
    0 3.6cqw 5cqw -2.4cqw rgba(0, 0, 0, 0.6),
    0 1.2cqw 1.6cqw -0.8cqw rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
/* grade de entrada de ar, no topo */
.unit__grille {
  position: absolute; left: 4%; right: 4%; top: 3.5%; height: 7%;
  background: repeating-linear-gradient(90deg, rgba(40, 50, 58, 0.16) 0 0.22cqw, transparent 0.22cqw 0.95cqw);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  border-radius: 0.4cqw;
}
/* emenda entre o painel frontal e a base */
.unit__seam {
  position: absolute; left: 0; right: 0; top: 63%; height: 1px;
  background: rgba(0, 0, 0, 0.09); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
.unit__logo {
  position: absolute; left: 5.2%; top: 31%;
  font-family: var(--brand); font-weight: 700; font-size: 1.45cqw; letter-spacing: 0.1em;
  color: #8f989f;
}
.unit__display {
  position: absolute; right: 7%; top: 24%;
  width: 12.5cqw; height: 5.6cqw;
  display: flex; align-items: center; justify-content: center; gap: 1cqw;
  border-radius: 1cqw;
  background: linear-gradient(180deg, #1b252d, #0c1217);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 0 rgba(255, 255, 255, 0.8);
}
.unit__digits {
  font-weight: 600; font-size: 2.7cqw; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: #33414c;
  transition: color 500ms ease, text-shadow 500ms ease;
}
.unit__digits b { font-weight: inherit; }
.unit__icons { display: grid; gap: 0.5cqw; }
.unit__snow, .unit__fanicon { display: block; width: 1.3cqw; height: 1.3cqw; background: #33414c; transition: background-color 500ms ease; }
.unit__snow {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 4l3 3 3-3M9 20l3-3 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 4l3 3 3-3M9 20l3-3 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.unit__fanicon {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='15' width='5' height='7' rx='1'/%3E%3Crect x='9.5' y='9' width='5' height='13' rx='1'/%3E%3Crect x='17' y='3' width='5' height='19' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='15' width='5' height='7' rx='1'/%3E%3Crect x='9.5' y='9' width='5' height='13' rx='1'/%3E%3Crect x='17' y='3' width='5' height='19' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.unit__led {
  position: absolute; right: 3.6%; top: 35%;
  width: 0.75cqw; height: 0.75cqw; border-radius: 50%;
  background: #b7bec3; transition: background-color 500ms ease, box-shadow 500ms ease;
}
.hero[data-state="on"] .unit__digits { color: #bfe6ff; text-shadow: 0 0 1.2cqw rgba(120, 200, 255, 0.55); }
.hero[data-state="on"] .unit__snow, .hero[data-state="on"] .unit__fanicon { background: #8fd2ff; }
.hero[data-state="on"] .unit__led { background: #7fd3ff; box-shadow: 0 0 1cqw rgba(127, 211, 255, 0.9); }

/* boca de saída: aletas verticais por dentro */
.unit__mouth {
  position: absolute; left: 7.5%; right: 7.5%; bottom: 9%; height: 15%;
  border-radius: 0 0 3cqw 3cqw / 0 0 4cqw 4cqw;
  background: repeating-linear-gradient(90deg, #2a353e 0 0.32cqw, #0a1015 0.32cqw 2.3cqw);
  box-shadow: inset 0 1.2cqw 1.6cqw rgba(0, 0, 0, 0.7);
}
/* a aleta (louver) que abre quando o ar liga */
.unit__flap {
  position: absolute; left: 6.5%; right: 6.5%; bottom: 6.5%; height: 17%;
  border-radius: 0.6cqw 0.6cqw 3cqw 3cqw / 0.6cqw 0.6cqw 4cqw 4cqw;
  background: linear-gradient(180deg, #eef0f0 0%, #d9dddf 70%, #c3c8cb 100%);
  box-shadow: inset 0 1px 0 #fff, 0 0.4cqw 0.8cqw rgba(0, 0, 0, 0.22);
  transform-origin: 50% 0;
  transform: perspective(700px) rotateX(0deg);
  transition: transform 1000ms var(--ease-out);
}
.hero[data-state="on"] .unit__flap { transform: perspective(700px) rotateX(62deg) translateY(12%); }

.unit__breath {
  position: absolute; left: -10%; right: -10%; top: 88%; height: 190%;
  background: radial-gradient(50% 55% at 50% 0%, rgba(185, 225, 255, 0.26) 0%, rgba(185, 225, 255, 0.08) 55%, transparent 100%);
  opacity: 0; transition: opacity 1600ms ease 300ms; pointer-events: none;
}
.hero[data-state="on"] .unit__breath { opacity: 1; }
.airflow { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }

.hero__grid {
  position: relative; z-index: 4;
  flex: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: end;
  padding: clamp(20px, 3vh, 44px) var(--m) clamp(28px, 4.5vh, 52px);
}
.hero__copy { grid-column: 1 / span 7; }
.hero__title {
  font-size: min(clamp(2.5rem, 1rem + 4.3vw, 5.5rem), 10svh);
  font-weight: 600; line-height: 0.96; letter-spacing: -0.04em;
  max-width: 9.4em;
}
.hero__lead { margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; opacity: 0.92; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__actions .link-light { font-size: 1.125rem; }

.hero__climate {
  grid-column: 8 / -1;
  display: flex; align-items: flex-end; justify-content: flex-end; gap: clamp(20px, 2.4vw, 40px);
}
.readout { display: grid; justify-items: end; text-align: right; }
.readout__num {
  font-size: clamp(5.5rem, 2rem + 8vw, 11rem);
  font-weight: 500; line-height: 0.8; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.readout__caption { margin-top: 18px; font-size: 1rem; font-weight: 500; max-width: 22ch; opacity: 0.9; }

/* o controle remoto, de plástico, com visor de cristal líquido */
.remote {
  flex: none;
  width: 156px;
  display: grid; gap: 12px;
  padding: 16px 14px 18px;
  color: var(--ink);
  border-radius: 26px 26px 34px 34px;
  background: linear-gradient(180deg, #fbfbfa 0%, #ecedec 60%, #dfe2e2 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -6px 12px rgba(0, 0, 0, 0.06), 0 30px 50px -26px rgba(0, 0, 0, 0.7);
}
.remote :focus-visible { outline-color: var(--steel); }
.remote__screen {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 8px;
  padding: 10px 12px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #cbd6d1 0%, #b9c6c0 100%);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.28);
  color: #1d2723;
}
.remote__mode { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 600; }
.remote__set { font-size: 2.375rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.remote__set b { font-weight: inherit; }
.hero[data-state="off"] .remote__set, .hero[data-state="off"] .remote__mode { color: rgba(29, 39, 35, 0.22); }
.remote__fan { display: flex; align-items: flex-end; gap: 3px; height: 14px; padding-bottom: 4px; }
.remote__fan i { width: 5px; border-radius: 1px; background: rgba(29, 39, 35, 0.2); }
.remote__fan i:nth-child(1) { height: 5px; }
.remote__fan i:nth-child(2) { height: 9px; }
.remote__fan i:nth-child(3) { height: 13px; }
.hero[data-state="on"] .remote__fan[data-level="1"] i:nth-child(1),
.hero[data-state="on"] .remote__fan[data-level="2"] i:nth-child(-n+2),
.hero[data-state="on"] .remote__fan[data-level="3"] i { background: #1d2723; }

.remote__power {
  justify-self: center;
  width: 60px; height: 60px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--copper); color: #fff;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: background-color 300ms ease, transform 140ms var(--ease-out);
}
.remote__power[aria-pressed="true"] { background: var(--steel); }
.remote__power svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.remote__power:active, .remote__key:active, .remote__wide:active, .remote__power.is-pressing { transform: scale(0.92); }
.remote__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.remote__key, .remote__wide {
  border: 0; border-radius: 10px;
  background: #dfe3e4; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.remote__key { height: 46px; font-size: 1.5rem; font-weight: 500; line-height: 1; }
.remote__wide { height: 40px; font-size: 0.9375rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .remote__key:hover, .remote__wide:hover { background: #d2d7d9; }
}

/* abertura: uma vez só, em CSS */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-28px); } }
@keyframes fade { from { opacity: 0; } }
.js-intro .nav { animation: fade 700ms ease both; }
.js-intro .stage__name { animation: rise 1300ms var(--ease-out) both; }
.js-intro .unit { animation: drop 1200ms var(--ease-out) 150ms both; }
.js-intro .hero__copy { animation: rise 1000ms var(--ease-out) 320ms both; }
.js-intro .hero__climate { animation: rise 1000ms var(--ease-out) 440ms both; }

/* =========================================================
   FOTOS QUE ABREM COMO AS ALETAS DO AR
   ========================================================= */
.louver { position: relative; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.louver img { width: 100%; height: 100%; object-fit: cover; }
.louver__slats {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  pointer-events: none;
}
.louver__slats span {
  flex: 1;
  background: var(--slat, var(--paper));
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  transform-origin: 50% 0;
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + 60ms);
}
.louver.is-in .louver__slats span { transform: scaleY(0); }
.js-louver img { transform: scale(1.06); transition: transform 1500ms var(--ease-out); }
.js-louver.is-in img { transform: none; }

/* =========================================================
   A SALA ESFRIANDO: seis quadros que trocam com a rolagem
   ========================================================= */
.seq { position: relative; background: var(--night); color: #fff; }
.seq.is-scrub { height: 420svh; }
.seq__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.seq__frames { position: absolute; inset: 0; background: #2a2622; }
.seq__f {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  opacity: 0;
}
.seq__f:first-child, .seq:not(.is-scrub) .seq__f:last-child { opacity: 1; }
.seq__frames::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 12, 18, 0.72) 0%, rgba(6, 12, 18, 0.35) 30%, transparent 55%),
    linear-gradient(0deg, rgba(6, 12, 18, 0.55) 0%, transparent 35%);
}
.seq__copy {
  position: absolute; left: var(--m); bottom: clamp(32px, 7vh, 72px); z-index: 2;
  max-width: 26rem;
}
.seq__title { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.seq__temp {
  margin-top: 12px;
  font-size: clamp(5.5rem, 2.5rem + 7vw, 10.5rem); font-weight: 500; line-height: 0.85; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.seq__cap { margin-top: 18px; font-size: var(--step-lead); line-height: 1.35; min-height: 2.7em; max-width: 24ch; }
.seq__bar { display: block; margin-top: 24px; width: 180px; height: 2px; background: rgba(255, 255, 255, 0.22); }
.seq__bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(1); }

/* variante: foto à direita, texto à esquerda (a higienização) */
.seq--split { background: #17181a; }
.seq--split .seq__frames {
  inset: auto; right: 0; top: 50%;
  width: min(70%, calc((100svh - 40px) * 16 / 9)); aspect-ratio: 16 / 9;
  transform: translateY(-50%);
  background: #17181a;
}
.seq--split .seq__f { object-position: 50% 50%; }
.seq--split .seq__frames::after {
  background:
    linear-gradient(90deg, #17181a 0%, rgba(23, 24, 26, 0) 16%, rgba(23, 24, 26, 0) 90%, #17181a 100%),
    linear-gradient(180deg, #17181a 0%, rgba(23, 24, 26, 0) 14%, rgba(23, 24, 26, 0) 86%, #17181a 100%);
}
.seq--split .seq__copy { top: 50%; bottom: auto; transform: translateY(-50%); max-width: min(27vw, 25rem); }
.seq__head { font-size: var(--step-head); font-weight: 600; line-height: 1; letter-spacing: -0.035em; max-width: 9ch; }
.seq__step { margin-top: 28px; font-size: 1rem; font-weight: 600; color: var(--frost); font-variant-numeric: tabular-nums; }
.seq--split .seq__cap { margin-top: 8px; min-height: 4.1em; }
.seq__cta { margin-top: 32px; }
.seq :focus-visible { outline-color: #fff; }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 64px;
  padding: var(--section) var(--m);
  align-items: start;
}
.services__head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.services__head .h2 { grid-column: 1 / span 6; max-width: 12ch; }
.services__statement { grid-column: 8 / -1; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.services__photo { grid-column: 1 / span 5; aspect-ratio: 4 / 5; position: sticky; top: 24px; }
.services__photo img { object-position: 50% 32%; }
.services__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 40px 20px 16px; font-size: 0.9375rem; font-weight: 500; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(8, 14, 20, 0.7));
}
.points {
  grid-column: 7 / -1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}
.points li { border-top: 1px solid var(--line); padding-top: 18px; }
.points p { margin-top: 8px; font-size: 1rem; color: var(--muted); }

/* =========================================================
   SISTEMAS
   ========================================================= */
.systems {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: var(--section) var(--m);
  background: var(--paper-2);
  align-items: center;
}
.systems__index { grid-column: 1 / span 6; }
.systems__index .h2 { max-width: 12ch; margin-bottom: 40px; }
.systems__list { display: grid; gap: 2px; }
.systems__list button {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 0; border: 0; background: none; text-align: left;
  font-size: clamp(1.625rem, 1rem + 1.8vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
  color: #8a949c;
  transition: color 200ms ease;
}
.systems__list button::before {
  content: ""; width: 0.36em; height: 0.36em; border-radius: 2px; background: var(--copper);
  transform: scale(0); transition: transform 240ms var(--ease-out);
}
.systems__list button.is-active { color: var(--ink); }
.systems__list button.is-active::before { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { .systems__list button:hover { color: var(--ink); } }
.systems__fact { margin-top: 32px; max-width: 36ch; font-size: var(--step-lead); line-height: 1.4; }
.systems__frame {
  grid-column: 8 / -1;
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px;
  background: #cdd3d6;
}
.systems__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 300ms ease;
}
.systems__img.is-active { opacity: 1; }
.systems__img[data-key="hiwall"] { object-position: 50% 10%; }
.systems__img[data-key="cassete"] { object-position: 50% 30%; }
.systems__img[data-key="umavia"] { object-position: 50% 38%; }
.systems__img[data-key="multi"] { object-position: 50% 60%; }

/* =========================================================
   COMO FUNCIONA
   ========================================================= */
.how { padding: var(--section) var(--m); }
.how__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: 56px; }
.how__head .h2 { grid-column: 1 / span 6; max-width: 11ch; }
.how__head p { grid-column: 8 / -1; max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }
.how__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.how__steps figure { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.how__steps h3 { font-size: 1.5rem; display: flex; align-items: baseline; gap: 12px; }
.how__steps h3 span { color: var(--copper); font-variant-numeric: tabular-nums; }
.how__steps p { margin-top: 10px; max-width: 34ch; color: var(--muted); }

/* =========================================================
   CALCULADORA DE BTUs (a noite fria)
   ========================================================= */
.btu {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(110% 90% at 85% 10%, #1f4c6e 0%, #10283b 45%, #0a1621 100%);
  color: #fff; padding: var(--section) var(--m);
}
.btu__grain { z-index: -1; }
.btu__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px;
  align-items: center;
}
.btu__head { grid-column: 1 / span 6; }
.btu__note { margin-top: 22px; max-width: 44ch; opacity: 0.88; }
.btu__form { grid-column: 1 / span 6; display: grid; gap: 34px; }
.btu__result { grid-column: 8 / -1; grid-row: 1 / span 2; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; font-size: 1.0625rem; margin-bottom: 14px; padding: 0; }
.field--row { display: flex; flex-wrap: wrap; gap: 20px 40px; }

.range { display: flex; align-items: center; gap: 20px; }
.range input { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: rgba(255,255,255,.22); margin: 0; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: transform 140ms var(--ease-out); }
.range input::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 0; }
.range input:active::-webkit-slider-thumb { transform: scale(1.12); }
.range input:focus-visible { outline: 3px solid #fff; outline-offset: 8px; }
.range output { min-width: 4.5em; font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.1); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label {
  padding: 12px 18px; border-radius: 9px; font-weight: 500; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.seg input:checked + label { background: #fff; color: var(--deep); }
.seg input:focus-visible + label { outline: 3px solid #fff; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .seg input:not(:checked) + label:hover { background: rgba(255,255,255,.12); } }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper__label { font-weight: 600; margin-right: 6px; }
.stepper button {
  width: 46px; height: 46px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.5rem; line-height: 1; transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.stepper button:active { transform: scale(0.92); }
.stepper button:focus-visible { outline-color: #fff; }
@media (hover: hover) and (pointer: fine) { .stepper button:hover { background: rgba(255,255,255,.24); } }
.stepper output { min-width: 1.6em; text-align: center; font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.btu__model { font-size: var(--step-lead); max-width: 26ch; line-height: 1.35; opacity: 0.92; }
.btu__num { margin: 18px 0 32px; font-size: clamp(4rem, 1.5rem + 6.5vw, 9rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; color: var(--ice); }
.btu__unit { font-size: 0.26em; letter-spacing: -0.01em; color: #fff; }
.btu .btn--light:focus-visible { outline-color: #fff; }

/* =========================================================
   OBRAS
   ========================================================= */
.works { padding: var(--section) var(--m); }
.works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 48px; }
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 16vw, 250px);
  gap: 40px var(--gap);
}
.gallery li { grid-row: span 2; display: flex; flex-direction: column; min-height: 0; }
.gallery .g-big { grid-column: span 2; }
.gallery figure { flex: 1; min-height: 0; }
.gallery p { margin-top: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--muted); }

/* =========================================================
   AVALIAÇÕES
   ========================================================= */
.reviews {
  --slat: var(--deep);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: var(--section) var(--m);
  background: var(--deep); color: #fff;
  align-items: start;
}
.reviews__score { grid-column: 1 / span 4; }
.reviews__score .h2 { max-width: 8ch; }
.score { display: flex; align-items: flex-end; gap: 16px; margin: 40px 0 28px; }
.score b { font-size: clamp(4.5rem, 2rem + 5vw, 7.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 0.82; color: var(--frost); }
.score span { font-size: 1rem; font-weight: 500; line-height: 1.35; opacity: 0.88; padding-bottom: 4px; }
.reviews__quotes { grid-column: 5 / span 5; padding-top: 8px; }
.quote p { font-size: clamp(1.375rem, 0.9rem + 1.3vw, 2.125rem); line-height: 1.22; letter-spacing: -0.02em; font-weight: 500; max-width: 26ch; }
.quote footer { margin-top: 18px; font-size: 1rem; font-weight: 500; color: var(--frost); }
.quote--small { margin-top: 48px; }
.quote--small p { font-size: var(--step-lead); }
.reviews__photo { grid-column: 10 / -1; aspect-ratio: 3 / 4.4; background: #183850; }
.reviews :focus-visible { outline-color: #fff; }

/* =========================================================
   PERGUNTAS
   ========================================================= */
.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: var(--section) var(--m);
  align-items: start;
}
.faq__title { grid-column: 1 / span 4; position: sticky; top: 32px; max-width: 8ch; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px; padding: 18px 0;
  font-size: 1.25rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3;
  transition: color 200ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='7' width='16' height='2' rx='1'/%3E%3Crect x='7' y='0' width='2' height='16' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='7' width='16' height='2' rx='1'/%3E%3Crect x='7' y='0' width='2' height='16' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 240ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 26px; max-width: 56ch; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--steel); } }

/* =========================================================
   MARCA: a foto de estúdio com o nome na parede
   ========================================================= */
.brand {
  position: relative; overflow: hidden;
  min-height: min(92svh, 56.25vw); display: flex; align-items: flex-end;
  background: #0d1622; color: #fff;
  margin-bottom: var(--section);
}
.brand__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.brand::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6, 10, 16, 0.86) 0%, rgba(6, 10, 16, 0.35) 30%, transparent 52%);
}
.brand__copy {
  position: relative; z-index: 1;
  width: 100%;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  padding: 0 var(--m) clamp(28px, 5vh, 56px);
}
.brand__title { grid-column: 1 / span 6; font-size: clamp(1.75rem, 1rem + 2vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.brand__copy p { grid-column: 7 / span 3; font-size: 1.0625rem; line-height: 1.45; opacity: 0.9; }
.brand__copy .btn { grid-column: 10 / -1; justify-self: end; }
.brand :focus-visible { outline-color: #fff; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 56px;
  padding: 0 var(--m) var(--section);
  align-items: start;
}
.contact__form { grid-column: 1 / span 5; }
.contact__note { margin-top: 16px; color: var(--muted); }
.lead { margin-top: 32px; display: grid; gap: 8px; }
.lead label { font-size: 0.9375rem; font-weight: 600; margin-top: 10px; }
.lead input, .lead select {
  width: 100%; height: 54px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem;
  transition: border-color 160ms ease;
}
.lead select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230d1318' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px;
}
.lead input::placeholder { color: #8a949c; }
.lead input:focus-visible, .lead select:focus-visible { outline: 3px solid var(--steel); outline-offset: 1px; border-color: var(--steel); }
.lead .btn { width: 100%; min-height: 58px; margin-top: 18px; }
.form-error { color: #a3360f; font-size: 0.9375rem; font-weight: 500; }

.visit { grid-column: 7 / -1; }
.visit__map { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.visit__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit__info { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px var(--gap); }
.visit__info h3 { margin-bottom: 12px; }
.visit__info address { font-style: normal; font-size: 1.125rem; line-height: 1.4; margin-bottom: 12px; }
.visit__list { display: grid; gap: 6px; }
.visit__list a { text-decoration: none; font-weight: 500; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .visit__list a:hover { color: var(--steel); } }

/* =========================================================
   RODAPÉ: o nome de novo, de ponta a ponta
   ========================================================= */
.footer {
  position: relative; overflow: hidden;
  background: var(--night); color: #fff;
  padding: clamp(56px, 9vh, 104px) var(--m) 36px;
}
.footer__name {
  font-family: var(--brand); font-weight: 700;
  font-size: var(--fs, 11.4vw); line-height: 0.8; white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, #dcedf5 0%, #6f9ab6 100%);
  -webkit-background-clip: text; background-clip: text;
}
.footer__cols {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px;
}
.footer__about { grid-column: 1 / span 4; line-height: 1.6; color: #c4d1da; }
.footer__cols ul { grid-column: span 2; display: grid; gap: 8px; align-content: start; }
.footer__cols ul:first-of-type { grid-column: 7 / span 2; }
.footer__cols a { text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer__cols a:hover { color: var(--frost); } }
.footer__last { margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 0.9375rem; color: #9fb0bd; }
.footer :focus-visible { outline-color: #fff; }

/* WhatsApp flutuante (só no celular) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #0f7a40; color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.45);
  transform: translateY(160%); transition: transform 360ms var(--ease-out);
}
.wa-float.is-visible { transform: translateY(0); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wa-float:focus-visible { outline-color: var(--ink); transform: translateY(0); }
.no-js .wa-float { transform: none; }

/* =========================================================
   TABLET E CELULAR
   ========================================================= */
@media (max-width: 1100px) {
  .hero__copy { grid-column: 1 / -1; }
  .hero__climate { grid-column: 1 / -1; justify-content: space-between; flex-direction: row-reverse; margin-top: 48px; }
  .unit { width: min(80vw, 860px); }
  .points { grid-template-columns: 1fr; }
  .reviews__quotes { grid-column: 5 / -1; }
  .reviews__photo { display: none; }
}

@media (max-width: 860px) {
  .nav { gap: 16px; padding-block: 14px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .logo__name { font-size: 1.125rem; }
  .logo__sub { font-size: 0.75rem; }

  .stage { padding-top: 8px; }
  .unit { width: 94vw; aspect-ratio: 3.4 / 1; margin-top: calc(var(--fs, 15vw) * 1.02); }
  .unit__logo { font-size: 1.9cqw; }
  .unit__display { width: 16cqw; height: 7.2cqw; }
  .unit__digits { font-size: 3.6cqw; }
  .unit__snow, .unit__fanicon { width: 1.8cqw; height: 1.8cqw; }

  .hero__grid { display: block; padding-top: 32px; }
  .hero__title { font-size: clamp(2.5rem, 11vw, 4rem); }
  .hero__lead { margin-top: 18px; font-size: 1.125rem; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { width: 100%; }
  .hero__climate { margin-top: 40px; display: grid; grid-template-columns: 1fr; gap: 24px; }
  .readout { justify-items: start; text-align: left; }
  .readout__num { font-size: clamp(5.5rem, 30vw, 9rem); }
  .remote {
    order: -1; width: 100%;
    grid-template-columns: 1.25fr auto 1.3fr 1fr; align-items: center; gap: 8px;
    padding: 8px; border-radius: 18px;
  }
  .remote__screen { padding: 6px 10px; }
  .remote__mode { font-size: 0.6875rem; }
  .remote__set { font-size: 1.75rem; }
  .remote__fan { display: none; }
  .remote__power { width: 52px; height: 52px; }
  .remote__key, .remote__wide { height: 52px; }
  .remote__wide { font-size: 0.8125rem; }

  .seq__sticky { display: flex; flex-direction: column; }
  .seq__frames { position: relative; inset: auto; height: 64svh; flex: none; }
  .seq__f { object-position: 50% 12%; }
  .seq__frames::after { background: linear-gradient(0deg, rgba(11, 24, 36, 0.9) 0%, transparent 28%); }
  .seq__copy { position: relative; left: auto; bottom: auto; flex: 1; padding: 4px var(--m) 24px; max-width: none; }
  .seq__temp { font-size: clamp(4.5rem, 24vw, 7rem); }
  .seq--split .seq__sticky { justify-content: center; }
  .seq--split .seq__frames { top: auto; right: auto; width: 100%; height: auto; transform: none; }
  .seq--split .seq__copy { top: auto; transform: none; flex: none; max-width: none; padding-top: 8px; }
  .seq--split .seq__frames::after {
    background:
      linear-gradient(180deg, #17181a 0%, rgba(23, 24, 26, 0) 12%, rgba(23, 24, 26, 0) 88%, #17181a 100%);
  }
  .seq__cta { width: 100%; }

  .services { display: block; }
  .services__head { display: block; }
  .services__statement { margin-top: 20px; }
  .services__photo { position: relative; top: 0; margin-top: 40px; }
  .points { margin-top: 48px; gap: 28px; }

  .systems { display: flex; flex-direction: column; }
  .systems__frame { order: -1; width: 100%; aspect-ratio: 4 / 4.4; margin-bottom: 40px; }
  .systems__index .h2 { margin-bottom: 24px; }
  .systems__list { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .systems__list button { font-size: 1.5rem; white-space: nowrap; }

  .how__head { display: block; margin-bottom: 40px; }
  .how__head p { margin-top: 20px; }
  .how__steps { grid-template-columns: 1fr; row-gap: 48px; }
  .how__steps figure { aspect-ratio: 4 / 3.4; }

  .btu__inner { display: block; }
  .btu__form { margin-top: 44px; }
  .btu__result { margin-top: 56px; }
  .btu__result .btn { width: 100%; white-space: normal; text-align: center; padding: 12px 24px; }
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg label { text-align: center; padding: 12px 6px; font-size: 0.9375rem; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 34vw; gap: 28px 10px; }
  .gallery p { font-size: 0.875rem; margin-top: 8px; }

  .reviews { display: block; }
  .reviews__quotes { margin-top: 48px; }

  .faq { display: block; }
  .faq__title { position: static; max-width: none; margin-bottom: 28px; }
  .faq summary { font-size: 1.125rem; min-height: 64px; }

  .brand { display: block; min-height: 0; }
  .brand__img { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .brand::after { display: none; }
  .brand__copy { display: block; padding: 28px var(--m) 40px; }
  .brand__copy p { margin-top: 14px; }
  .brand__copy .btn { margin-top: 24px; width: 100%; }

  .contact { display: block; }
  .visit { margin-top: 64px; }
  .visit__info { grid-template-columns: 1fr; }

  .footer__about { grid-column: 1 / -1; }
  .footer__cols ul, .footer__cols ul:first-of-type { grid-column: span 6; }
  .wa-float { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .unit__flap, .systems__img, .wa-float { transition-duration: 1ms !important; }
}

/* boot: o hero nasce desligado (quente) quando o JS e o movimento estão ativos */
.js-boot .hero::before { clip-path: ellipse(0% 0% at var(--ox, 50%) var(--oy, 32%)); transition: none; }
.js-boot .unit__flap { transition: none; transform: perspective(700px) rotateX(0deg); }
.js-boot .readout__num { visibility: hidden; }
