/* =====================================================================
   GreenHome Energia — folha de estilos principal
   Organização:
     1. Fontes e variáveis        6. Seções (contadores, soluções, dia/noite,
     2. Reset / base                 diferenciais, projetos, mobilidade,
     3. Layout e utilitários         processo, contato)
     4. Componentes (botões, card) 7. Rodapé e política de privacidade
     5. Navegação e hero           8. Responsivo · 9. Acessibilidade
   ===================================================================== */

/* 1. Fontes e variáveis ------------------------------------------------ */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2");
  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: Outfit;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/outfit-latin-wght-normal.woff2) format("woff2");
  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;
}

:root {
  --green: #41af4d;
  --green-light: #41af4d;
  --green-dark: #41af4d;
  --green-ink: #2f6b35;
  --black: #06080a;
  --white: #fff;
  --ink: #14171f;
  --paper: #c2bfb7;
  --paper-card: #f6f5f2;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --radius: 18px;
  --maxw: 1240px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 92px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-anchor: none;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--black);
  color: var(--white);
}
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
ol, ul { list-style: none; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
}
button { appearance: button; cursor: pointer; }
textarea { resize: vertical; }
::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); }
[hidden]:where(:not([hidden="until-found"])) { display: none !important; }

a, button, .port-filter, .port-card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }

h1, h2, h3, h4, .section-title, .section-sub, .section-desc, .card-highlight,
.hero-seal small, .counters-highlight, .counter-label, .port-info h3, .sol-cat,
.card p, .proc-step p, .proc-step h3 { text-wrap: balance; }
p, li, label { text-wrap: pretty; }

/* 3. Layout ------------------------------------------------------------ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; position: relative; z-index: 2; }
main > .divider, main > section, body > footer { position: relative; z-index: 2; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(65, 175, 77, .3), transparent); }

.sec-dark { background: #080c10; color: var(--white); }
.sec-paper {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid rgba(20, 23, 31, .08);
  border-bottom: 1px solid rgba(20, 23, 31, .08);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--white);
  text-align: center;
}
.section-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto 8px;
  color: #d2dbe6;
  font-weight: 500;
  text-align: center;
}
.section-desc {
  font-size: .96rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 38px;
  text-align: center;
}
.sec-paper .section-title, .sec-paper .section-sub, .sec-paper .section-desc { color: #0a0c10; }

/* 4. Componentes ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  height: 2.25rem;
  padding: 14px 30px;
  border: none;
  border-radius: 50px;
  background-clip: padding-box;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.4286;
  letter-spacing: .3px;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  transition: all .3s ease;
}
.btn svg { flex-shrink: 0; width: 1rem; height: 1rem; pointer-events: none; }
.btn:active { translate: 0 1px; }
.btn-primary { background: var(--green); color: var(--black); font-weight: 700; box-shadow: 0 4px 18px #41af4d66; }
.btn-outline {
  background: #ffffff0d;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
}
.btn-sm { font-size: .85rem; padding: 10px 18px; }
.sec-paper .btn-outline { background: var(--paper-card); color: var(--ink); border: 1px solid rgba(20, 23, 31, .28); }

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 32px 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #10161ea6;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, .1), 0 1px 2px rgba(0, 0, 0, .05);
  font-size: .875rem;
  line-height: 1.4286;
  text-align: center;
  transition: all .3s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
  pointer-events: none;
}
.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--green-light);
  background: #41af4d1f;
  transition: transform .35s var(--ease-out), background-color .3s ease, color .3s ease;
}
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--white);
}
.card p { font-size: .9rem; line-height: 1.65; color: var(--muted); margin-bottom: 14px; }
.card-highlight {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(65, 175, 77, .2);
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-light);
  transition: color .3s ease, border-color .3s ease;
}
.card > .btn { margin-top: auto; }

.sec-paper .card { background: var(--paper-card); border: 1px solid rgba(20, 23, 31, .12); color: oklch(14.5% 0 0); }
.sec-paper .card h3 { color: var(--ink); }
.sec-paper .card p { color: #3f4650; }
.sec-paper .card-icon { color: var(--green); }
.sec-paper .card-highlight { color: var(--green-ink); border-top-color: rgba(65, 175, 77, .4); }

/* Listas com marcador (soluções e mobilidade) */
.sol-bullets, .mob-specs { display: inline-block; text-align: left; }
.sol-bullets li, .mob-specs li {
  position: relative;
  padding-left: 20px;
  color: var(--soft);
  transition: transform .25s ease, color .25s ease;
}
.sol-bullets { margin: 14px 0 20px; }
.sol-bullets li { font-size: .85rem; line-height: 1.6; margin-bottom: 8px; }
.sol-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
}
.mob-specs { margin: 12px 0 18px; }
.mob-specs li { font-size: .86rem; line-height: 1.8; }
.mob-specs li::before { content: "\2714"; position: absolute; left: 0; color: var(--green-light); font-size: .8rem; }
.sec-paper .sol-bullets li, .sec-paper .mob-specs li { color: #23282f; }

/* 5. Navegação --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  overflow: clip;
  padding: 16px 0;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: all .3s ease;
}
.navbar.scrolled { padding: 12px 0; border-bottom-color: #41af4d4d; box-shadow: 0 4px 20px #0009; }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo img { width: auto; display: block; }
.navbar .logo { position: relative; z-index: 0; padding: 0 44px 0 0; }
.navbar .logo img { height: 60px; }
/* Faixa branca inclinada atrás do logo */
.navbar .logo::before, .navbar .logo::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80px;
  bottom: -80px;
  transform: skew(-16deg);
}
.navbar .logo::before { left: -100vw; right: 0; background: #fff; }
.navbar .logo::after { right: -9px; width: 4px; background: var(--green); box-shadow: 0 0 14px #41af4d8c; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  position: relative;
  padding: 4px 0;
  font-size: .9rem;
  font-weight: 500;
  color: #e2e8f0;
  transition: color .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width .25s ease;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid rgba(65, 175, 77, .5);
  border-radius: 50px;
  background: #41af4d1a;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--white);
  white-space: nowrap;
  transition: all .3s;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: none;
  border-radius: 12px;
  background: none;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .3s var(--ease-soft), opacity .2s ease, top .3s var(--ease-soft);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
/* Ícone vira "X" quando o menu está aberto */
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Menu mobile: painel abaixo da barra, com links grandes */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 12px 20px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #06080afa;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .25s ease, transform .3s var(--ease-soft);
}
.mobile-menu.open { opacity: 1; transform: none; }
.mobile-menu-inner { display: flex; flex-direction: column; }
.mobile-menu-inner a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}
.mobile-menu-inner a::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .45;
}
.mobile-menu-inner a.active { color: var(--green); }
.mobile-menu-inner a.active::after { opacity: 1; }
.mobile-menu .mobile-menu-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  min-height: 54px;
  padding: 14px 28px;
  border-radius: 50px;
  background: var(--green);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 18px #41af4d66;
}
.mobile-menu-meta { margin-top: 14px; font-size: .85rem; text-align: center; color: var(--muted); }
html.menu-open, html.menu-open body { overflow: hidden; }

/* 5b. Hero ------------------------------------------------------------- */
.hero-wrap { position: relative; height: 250vh; background: var(--black); }
.hero {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black) url(../assets/hero-poster.webp) center / cover no-repeat;
}
.hero.video-failed { background: radial-gradient(ellipse at 50% 35%, #123319, #0a1a0e 45%, var(--black) 80%); }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  opacity: 0;
}
.hero.video-ready .hero-video { opacity: 1; }
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  transition: opacity .05s linear;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.9vw, 3.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.5px;
  color: var(--white);
  margin-bottom: 22px;
}
.hero p {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.7;
  color: #eef3f9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .6);
}
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hero-seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 44px; }
.hero-seal {
  min-width: 170px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #0d121799;
  backdrop-filter: blur(8px);
  text-align: center;
}
.hero-seal strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--green-light); }
.hero-seal small { font-size: .72rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #a0aec0; }

/* Cortina que sobe sobre o vídeo no scroll (desktop) */
.hero-curtain {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 8;
  width: 100%;
  height: 0;
  background: var(--black);
  box-shadow: 0 -30px 60px -10px #0000008c;
  pointer-events: none;
}
.hero-curtain::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .9));
}
.scroll-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 6;
  color: #ffffff8c;
  transform: translate(-50%);
  animation: bounce 2s infinite;
  transition: opacity .3s;
}
.scroll-indicator.hide { opacity: 0; }
.scroll-indicator svg { width: 22px; height: 22px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%) translateY(0); }
  50% { transform: translate(-50%) translateY(8px); }
}

/* 6. Seções ------------------------------------------------------------ */

/* Contadores */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 20px;
  text-align: center;
}
.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #12182099;
  box-shadow: 0 4px 20px #0000004d;
  transition: all .3s var(--ease-out);
}
.counter-num {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--green-light);
  font-variant-numeric: tabular-nums;
}
.counter-label {
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted);
}
.counters-highlight {
  margin-top: 36px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
  color: var(--green-light);
}

/* Soluções */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.sol-grid .card p { margin-bottom: 0; }
/* Respiro maior entre título, descrição e lista */
.sol-grid .card h3 { margin-bottom: 18px; }
.sol-grid .sol-bullets { margin-top: 18px; }
.sol-cat {
  display: inline-block;
  align-self: center;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  background: #41af4d24;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-light);
}
.sec-paper .sol-cat { color: var(--green-ink); }

/* Dia e noite (comparador) */
.dn-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px #0000004d;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.dn-layer { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: clip-path; }
.dn-day-layer { background-image: url(../assets/img/casa-dia.webp); }
.dn-night-layer { background-image: url(../assets/img/casa-noite.webp); clip-path: inset(0 0 0 50%); }

.dn-label, .dn-info, .dn-hint {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  color: #fff;
  background: var(--dn-bg);
  border: 1px solid var(--dn-border);
  box-shadow: var(--dn-shadow);
  will-change: clip-path;
}
.dn-label-day, .dn-info-day, .dn-hint-day {
  --dn-bg: linear-gradient(135deg, #ffe2ad, #fdf3dd);
  --dn-border: rgba(255, 255, 255, .85);
  --dn-glow: rgba(255, 255, 255, .9);
  --dn-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -14px 28px rgba(255, 214, 150, .5), 0 12px 36px rgba(0, 0, 0, .22);
  color: #3a2a10;
}
.dn-label-night, .dn-info-night, .dn-hint-night {
  --dn-bg: linear-gradient(135deg, #1c2e60, #0a1240);
  --dn-border: rgba(150, 190, 255, .65);
  --dn-glow: rgba(170, 205, 255, .85);
  --dn-shadow: inset 0 1px 0 rgba(170, 205, 255, .6), inset 0 -14px 28px rgba(40, 62, 120, .5), 0 12px 36px rgba(0, 0, 0, .5);
  color: #fff;
}
.dn-label::before, .dn-info::before, .dn-hint::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #ffffff2e, #fff0 45%);
  pointer-events: none;
}
.dn-label::after, .dn-info::after, .dn-hint::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dn-glow), transparent);
  pointer-events: none;
}
.dn-label {
  top: 20px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: .92;
}
.dn-label-day, .dn-hint-day { left: 25%; transform: translate(-50%); }
.dn-label-night, .dn-hint-night { left: 75%; transform: translate(-50%); }
.dn-info { top: 50%; max-width: 340px; padding: 28px 32px; border-radius: 18px; text-align: center; }
.dn-info-day { left: 65%; transform: translate(-50%, -50%); clip-path: inset(0 100% 0 0 round 18px); }
.dn-info-night { left: 35%; transform: translate(-50%, -50%); clip-path: inset(0 0 0 100% round 18px); }
.dn-info h3 { margin-bottom: 18px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.dn-info-day h3 { color: #7a5200; }
.dn-info-night h3 { color: #a8c8ff; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.dn-info ul { display: inline-block; text-align: left; }
.dn-info li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 20px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.9;
  transition: transform .25s ease;
}
.dn-info-day li { color: #281c08f2; }
.dn-info-night li { color: #fffffff7; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
/* Marcador simples: ponto centralizado na primeira linha */
.dn-info li::before, .dn-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.5lh - 3.5px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dn-info-day li::before, .dn-panel-day li::before { background: #c98a00; }
.dn-info-night li::before, .dn-panel-night li::before { background: #8fb6ff; box-shadow: 0 0 8px rgba(143, 182, 255, .6); }
.dn-hint {
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
}
.dn-hint svg { width: 22px; height: 22px; flex-shrink: 0; }
.dn-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 20;
  width: 4px;
  background: var(--white);
  box-shadow: 0 0 12px #00000080;
  transform: translate(-50%);
  cursor: ew-resize;
}
.dn-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 16px #0000004d;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
}
.dn-handle-knob svg { width: 28px; height: 28px; color: var(--green-dark); }
.dn-bottom-hint { margin-top: 20px; font-size: .85rem; font-weight: 500; text-align: center; color: #ffffffa3; }
.dn-bottom-hint svg { display: inline-block; vertical-align: middle; width: 16px; height: 16px; margin: 0 4px; }
.dn-mobile { display: none; }

/* Diferenciais */
.dif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dif-grid .card p { margin-bottom: 18px; }

/* Projetos (portfólio) */
.port-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.port-filter {
  padding: 8px 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50px;
  background: #ffffff0a;
  font-size: .88rem;
  font-weight: 600;
  color: var(--soft);
  transition: all .3s ease;
}
.port-filter.active { background: var(--green); border-color: var(--green); color: var(--black); font-weight: 700; }
.port-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.port-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #0e141bb3;
  text-align: center;
  cursor: pointer;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), border-color .3s ease;
}
.port-card.zoomed { z-index: 40; transform: scale(1.055); border-color: var(--green); box-shadow: 0 24px 60px #0000008c, 0 0 30px #41af4d40; }
.port-img {
  position: relative;
  height: 190px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-size: cover;
  background-position: center;
  transition: height .45s var(--ease-soft);
}
.port-card.zoomed .port-img { height: 230px; }
.port-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 10, .85) 100%); }
.port-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.port-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--green-light);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
}
.port-cat.emp { background: #38bdf8; color: #04101b; }
.port-info { flex: 1; display: flex; flex-direction: column; padding: 24px; }
.port-info h3 { margin-bottom: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); }
.port-spec { flex: 1; margin-bottom: 16px; font-size: .86rem; line-height: 1.6; color: var(--muted); }
.port-spec strong { font-weight: 700; color: var(--soft); }
.port-econ { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .92rem; font-weight: 700; color: var(--green-light); }
.port-more-wrap { margin-top: 36px; text-align: center; }

/* Mobilidade elétrica */
.mob-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 26px; }
.mob-power {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-light);
  transition: text-shadow .3s ease, transform .3s ease;
}
.sec-paper .mob-power { color: var(--green-ink); }
.mob-grid .btn { margin-top: 16px; }

/* Quebra de linha usada só no computador (títulos e rodapés dos cards em 2 linhas) */
.br-desk { display: none; }
@media (min-width: 1101px) { .br-desk { display: inline; } }

/* Grade com subgrid: alinha título, texto e botão entre cards vizinhos */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
    .sol-grid > .card, .dif-grid > .card, .mob-grid > .card {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: subgrid;
      row-gap: 0;
      align-content: start;
    }
    .sol-grid > .card { grid-row: span 5; }
    .dif-grid > .card { grid-row: span 4; }
    .mob-grid > .card { grid-row: span 6; }
    .sol-grid > .card > div { display: contents; }
    .sol-grid > .card > div > *, .dif-grid > .card > *, .mob-grid > .card > * { min-width: 0; }
    .sol-grid > .card > div > .sol-cat { justify-self: center; align-self: center; }
    .sol-grid > .card > div > h3, .dif-grid > .card > h3, .mob-grid > .card > h3 { align-self: center; }
    /* Descrição centralizada entre o título e a lista, mesmo com alturas diferentes */
    .sol-grid > .card > div > p { align-self: center; }
    .sol-grid > .card > div > ul, .mob-grid > .card > ul { justify-self: center; align-self: start; width: max-content; max-width: 100%; }
    .card > .btn { align-self: end; }
    .card > .card-highlight { align-self: stretch; }
    /* Linha divisória na mesma altura; rodapé de 1 ou 2 linhas fica centralizado */
    .dif-grid > .card > p { align-self: center; }
    .dif-grid > .card > .card-highlight { display: flex; align-items: center; justify-content: center; margin-top: 0; }
  }
  .sol-grid, .dif-grid, .mob-grid { grid-auto-rows: auto; }
}

/* Processo */
.proc-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 26px; }
.proc-step {
  position: relative;
  padding: 28px 22px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  background: #10161e80;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.proc-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--black);
  transition: transform .35s var(--ease-out), text-shadow .3s ease;
}
.proc-step h3 { margin-bottom: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); }
.proc-step p { font-size: .88rem; line-height: 1.7; color: var(--muted); }

/* Contato */
#contato { padding-bottom: 90px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px #0006;
}
.contact-info { padding: 48px; background: #090e14; color: var(--white); border-right: 1px solid rgba(255, 255, 255, .08); }
.contact-info h3 { margin-bottom: 26px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-item > svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 3px; color: var(--green-light); }
.contact-item p { font-size: .92rem; line-height: 1.6; color: var(--soft); }
.contact-item strong { color: var(--white); }
.contact-item .contact-link { color: var(--green-light); font-weight: 600; }
.contact-item .contact-link-lg { font-size: 1.05rem; font-weight: 700; }
.contact-item .contact-cnpj { margin-top: 4px; font-size: .8rem; color: #718096; }
.contact-form { padding: 48px; background: #0f151c; }
.contact-form h3 { margin-bottom: 24px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .84rem; font-weight: 600; color: var(--soft); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  background: #06080ab3;
  font-family: var(--font-sans);
  font-size: .92rem;
  color: var(--white);
  transition: all .25s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #41af4d40;
}
.form-consent .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--soft);
  cursor: pointer;
}
.form-consent .consent-label input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; padding: 0; accent-color: var(--green); }
.form-consent a { color: var(--green-light); text-decoration: underline; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.btn-submit { width: 100%; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: #41af4d26;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--green-light);
}
.form-success.show { display: block; animation: fadeIn .3s ease; }
.form-note { margin-top: 12px; font-size: .88rem; line-height: 1.5; color: #fbbf24; }
.form-note:empty { display: none; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 7. Rodapé ------------------------------------------------------------ */
.footer {
  position: relative;
  z-index: 30;
  margin-top: -30px;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 30px 30px 0 0;
  background: #040608;
  box-shadow: 0 -18px 44px -16px #0000008c;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer-badge { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 22px; background: #fff; }
.footer-badge img { height: 66px; }
.footer-logo p { max-width: 320px; margin-top: 16px; font-size: .88rem; line-height: 1.7; color: var(--muted); }
.footer-col h3 { margin-bottom: 18px; font-size: .84rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: .88rem; color: var(--muted); transition: color .2s ease; }
.footer-social-title { margin-top: 22px; }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--green);
  border-radius: 12px;
  color: var(--green-light);
  transition: all .3s ease;
}
.footer-bottom { padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; text-align: center; color: #8b98ab; }
.footer-bottom p + p { margin-top: 6px; }
.footer-bottom .footer-brand { margin-top: 14px; font-family: var(--font-display); font-weight: 600; color: var(--green-light); }
.footer-bottom .footer-tagline { margin-top: 0; font-size: .88rem; color: var(--muted); }

/* Política de privacidade (sobreposição em tela cheia) */
#privacyView {
  position: fixed;
  inset: 0;
  z-index: 100001;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--black);
  color: #e2e8f0;
}
#privacyView[hidden] { display: none !important; }
html.priv-open, html.priv-open body { overflow: hidden; }
.priv-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: #06080aeb;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.priv-bar-in { max-width: 820px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.priv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--black);
  font: 700 .92rem/1 system-ui, sans-serif;
}
.priv-brand { font-size: .85rem; font-weight: 600; color: var(--muted); }
.priv-wrap { max-width: 820px; margin: 0 auto; padding: 36px 20px 80px; line-height: 1.7; }
.priv-wrap h2 { margin-bottom: 8px; font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; color: #fff; }
.priv-wrap h3 { margin: 32px 0 10px; font-size: 1.15rem; color: #fff; }
.priv-wrap p, .priv-wrap li { font-size: 1rem; color: #b6c2d1; }
.priv-wrap p { margin-bottom: 12px; }
.priv-wrap ul { margin-bottom: 12px; padding-left: 22px; list-style: disc; }
.priv-wrap li { margin-bottom: 6px; }
.priv-wrap strong { color: #fff; }
.priv-wrap a { color: var(--green); }
.priv-wrap .priv-updated { margin-bottom: 28px; font-size: .9rem; color: var(--muted); }
.priv-box { margin: 14px 0; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: #0d1217; }
.priv-back-bottom { margin-top: 36px; }

/* 8. Interações de hover (só em dispositivos com mouse) ---------------- */
@media (hover: hover) {
  .nav-links a:hover { color: var(--green-light); }
  .nav-links a:hover::after { width: 100%; }
  .nav-phone:hover { border-color: var(--green-light); color: #fff; background: var(--green); transform: translateY(-1px); }
  .mobile-menu-inner a:hover { color: var(--green-light); }
  .btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 26px #41af4d8c; }
  .btn-outline:hover { border-color: var(--green); color: var(--green-light); background: #41af4d1f; transform: translateY(-2px); }
  .sec-paper .btn-outline:hover { border-color: var(--green); color: var(--green-ink); background: #41af4d1a; }
  .counter-item:hover { transform: translateY(-6px); border-color: #41af4d99; box-shadow: 0 12px 30px #41af4d33; background: #161e28d9; }
  .card:hover { border-color: var(--green); transform: translateY(-5px); box-shadow: 0 12px 32px #0006, 0 0 20px #41af4d26; }
  .sec-paper .card:hover { border-color: var(--green); box-shadow: 0 12px 32px #00000029, 0 0 20px #41af4d40; }
  .card:hover::after { transform: scaleX(1); }
  .card:hover .card-icon { transform: translateY(-3px) scale(1.08); background: var(--green); color: var(--black); }
  .card:hover .card-highlight { border-top-color: var(--green); }
  .card:hover .mob-power { text-shadow: 0 0 22px rgba(65, 175, 77, .45); transform: scale(1.04); }
  .sol-bullets li:hover, .mob-specs li:hover { transform: translate(4px); color: #0f1a12; }
  .dn-info li:hover { transform: translate(4px); }
  .port-filter:hover { background: var(--green); border-color: var(--green); color: var(--black); font-weight: 700; }
  .port-card { will-change: transform; }
  .port-card:hover { border-color: var(--green); transform: translateY(-4px); box-shadow: 0 12px 30px #00000080; }
  .port-card.zoomed:hover { transform: scale(1.055); }
  .proc-step:hover { transform: translateY(-5px); }
  .proc-step:hover .proc-num { transform: scale(1.12); text-shadow: 0 0 20px rgba(65, 175, 77, .55); }
  .footer-col ul li a:hover { color: var(--green-light); }
  .priv-back:hover { filter: brightness(1.08); }
}
.card:focus-within::after { transform: scaleX(1); }
.card:focus-within .card-icon { transform: translateY(-3px) scale(1.08); background: var(--green); color: var(--black); }

/* 9. Responsivo -------------------------------------------------------- */
@media (max-width: 1100px) {
  .sol-grid, .dif-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 67px; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .navbar { padding: 10px 0; }
  .navbar.scrolled { padding: 8px 0; }
  .navbar .logo { padding: 0 30px 0 0; }
  .navbar .logo img { height: 46px; }
  .nav-inner { padding: 0 16px; }

  .hero-wrap { height: auto; }
  .hero { position: relative; height: 100vh; height: 100svh; background-image: url(../assets/hero-poster-mobile.webp); }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, #06080a85, #06080a66, #06080a38);
  }
  .hero-curtain { display: none; }
  .hero-content { padding: 0 18px; }
  .hero h1 { font-size: clamp(1.65rem, 7.4vw, 2.5rem); margin-bottom: 14px; }
  .hero p { font-size: .98rem; margin-bottom: 24px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { width: 100%; max-width: 340px; padding: 13px 22px; }
  .hero-seals { flex-direction: column; gap: 10px; width: 100%; max-width: 330px; margin: 26px auto 0; }
  .hero-seal { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; text-align: left; }
  .hero-seal strong { font-size: 1.02rem; white-space: nowrap; }
  .hero-seal small { font-size: .62rem; letter-spacing: .4px; line-height: 1.35; }
  .scroll-indicator { bottom: 14px; }

  main section[id] { scroll-margin-top: calc(var(--nav-h) - 36px); }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .contact-info, .contact-form { padding: 32px 24px; }

  .footer-col ul li { margin-bottom: 0; }
  .footer-col ul li a, .footer-col ul li span { display: inline-block; padding: 12px 0; min-height: 44px; line-height: 1.4; }
  .footer-col ul li span { min-height: 0; padding: 6px 0; }
  .footer-bottom p { overflow-wrap: anywhere; }
}

@media (max-width: 768px) {
  .dn-info { max-width: 220px; padding: 18px 20px; }
  .dn-info li { font-size: .78rem; line-height: 1.6; margin-bottom: 8px; }
  .dn-info h3 { font-size: 1rem; margin-bottom: 12px; }
  .dn-label { font-size: .85rem; padding: 10px 20px; top: 14px; }
  .dn-hint { font-size: .82rem; padding: 14px 22px; bottom: 18px; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: clamp(1.55rem, 6.6vw, 2rem); margin-bottom: 10px; }
  .section-sub { font-size: .95rem; padding: 0 4px; }
  .section-desc { display: none; }
  .btn { min-height: 44px; }
  .nav-phone { display: none; }
  .hero-ctas .btn { width: 100%; }

  .counters-grid { gap: 10px; }
  .counter-item { padding: 16px 8px; }
  .counter-num { font-size: 1.45rem; }
  .counter-label { font-size: .6rem; }
  .counters-highlight { font-size: .92rem; margin-top: 24px; }

  .sol-grid, .dif-grid { grid-template-columns: 1fr; }
  .card { padding: 22px 16px; border-radius: 16px; }
  .card h3 { font-size: 1.08rem; }
  .card p { font-size: .87rem; }
  .card-icon { width: 44px; height: 44px; }
  .card .btn-outline { width: 100%; }
  .sol-bullets li, .mob-specs li { font-size: .82rem; }
  .mob-power { font-size: 1.6rem; }


  .port-filters { gap: 8px; margin-bottom: 22px; }
  .port-filter { min-height: 44px; padding: 10px 18px; font-size: .84rem; }
  .port-grid { grid-template-columns: 1fr; gap: 16px; }
  .port-card.zoomed { transform: scale(1.03); }
  .port-img { height: 175px; }
  .port-info { padding: 18px 16px; }
  .port-info h3 { font-size: 1.05rem; }
  .port-spec { font-size: .8rem; line-height: 1.55; }
  .port-econ { font-size: .85rem; }
  .port-more-wrap { margin-top: 26px; }

  .proc-timeline { gap: 16px; }
  .proc-step { padding: 22px 16px; }
  .proc-num { width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 14px; }
  .proc-step h3 { font-size: 1.05rem; }

  .contact-grid { border-radius: 16px; }
  .contact-info, .contact-form { padding: 24px 18px; }
  .contact-info h3, .contact-form h3 { font-size: 1.2rem; margin-bottom: 18px; }
  .contact-item { gap: 10px; margin-bottom: 16px; }
  .contact-item > svg { width: 20px; height: 20px; }
  .contact-item p { font-size: .86rem; }
  .form-group { margin-bottom: 14px; }
  .form-group input, .form-group select, .form-group textarea { padding: 12px 14px; font-size: 16px; }

  .footer { padding: 48px 0 24px; border-radius: 24px 24px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; margin-bottom: 28px; }
  .footer-badge img { height: 52px; }
  .footer-logo p { font-size: .84rem; }
  .footer-bottom { font-size: .74rem; }

  .priv-bar-in { gap: 8px; }
  .priv-back { padding: 10px 14px; font-size: .85rem; }
  .priv-brand { font-size: .78rem; }
  .priv-wrap { padding: 28px 16px 64px; }
  .priv-wrap h3 { font-size: 1.05rem; margin: 26px 0 8px; }
  .priv-wrap p, .priv-wrap li { font-size: .94rem; }
}

@media (max-width: 560px) {
  .hero p { text-shadow: 0 1px 14px rgba(0, 0, 0, .75); }
}

@media (max-width: 360px) {
  .hero-ctas .btn { max-width: 100%; }
  .hero-seal strong { font-size: .92rem; }
}

/* 10. Acessibilidade --------------------------------------------------- */
main:focus { outline: none; }
a:focus-visible, button:focus-visible, .port-card:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.sec-paper a:focus-visible, .sec-paper button:focus-visible { outline-color: #0a0c10; }
.port-card:focus-visible { border-color: var(--green); }
.dn-handle:focus-visible { outline: none; }
.dn-handle:focus-visible .dn-handle-knob { outline: 3px solid var(--green); outline-offset: 3px; }
#privTitle:focus, #privacyView:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .card:hover .card-icon, .card:hover .mob-power, .proc-step:hover, .proc-step:hover .proc-num,
  .sol-bullets li:hover, .mob-specs li:hover { transform: none; }
}

/* 11. Componentes auxiliares ------------------------------------------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Loader de abertura */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  transition: opacity .4s ease;
}
.loader.is-hidden { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-brand { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--green); }
.loader-track { width: 140px; height: 2px; margin: 14px auto 0; overflow: hidden; border-radius: 2px; background: rgba(65, 175, 77, .18); }
.loader-bar { width: 0; height: 100%; background: var(--green); transition: width .6s ease; }
html.is-loading, html.is-loading body { overflow: hidden; }

/* Link ativo no menu (seção visível) */
.nav-links a.active { color: var(--green-light); }
.nav-links a.active::after { width: 100%; }

.contact-item .contact-map { font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.footer-col ul li span { font-size: .88rem; }
.footer-privacy { display: none; }
.dn-compare.is-dragging .dn-handle-knob { transform: translate(-50%, -50%) scale(1.08); }
.dn-handle-knob { transition: transform .2s ease; }

/* Indicadores dos carrosséis (só aparecem no celular) */
.carousel-dots { display: none; }

/* Botão flutuante do WhatsApp (celular) */
.wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 4px rgba(65, 175, 77, .18);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease-soft);
}
.wa-fab.show { opacity: 1; transform: none; pointer-events: auto; }
html.menu-open .wa-fab { opacity: 0; pointer-events: none; }

/* 12. Mobile — refinamentos -------------------------------------------- */
@media (max-width: 860px) {
  .navbar.scrolled { padding: 10px 0; }

  /* Hero ocupa a tela toda, mas cresce se o conteúdo não couber (telas baixas) */
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 28px) 0 64px;
  }
  .hero::before {
    background: linear-gradient(180deg, rgba(6, 8, 10, .62) 0%, rgba(6, 8, 10, .42) 45%, rgba(6, 8, 10, .5) 100%);
  }
  .hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
}

@media (max-width: 640px) {
  .wa-fab { display: flex; }

  /* Contadores lado a lado */
  .counters-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .counter-item { padding: 16px 6px; border-radius: 14px; }
  .counter-num { font-size: clamp(1.15rem, 5.4vw, 1.45rem); margin-bottom: 6px; }
  .counter-label { font-size: .64rem; letter-spacing: .3px; }

  /* Cards viram carrossel com rolagem lateral */
  .sol-grid, .dif-grid, .mob-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 320px);
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sol-grid::-webkit-scrollbar, .dif-grid::-webkit-scrollbar, .mob-grid::-webkit-scrollbar { display: none; }
  .sol-grid > .card, .dif-grid > .card, .mob-grid > .card { scroll-snap-align: start; }
  /* Os cards têm a altura do maior; o conteúdo fica centralizado na
     vertical, com espaçamento fixo, em vez de empurrar o rodapé do card
     para baixo e deixar um vão no meio. */
  .sol-grid > .card, .dif-grid > .card, .mob-grid > .card { justify-content: center; }
  .sol-grid > .card > .btn, .mob-grid > .card > .btn { margin-top: 4px; }
  .dif-grid > .card > .card-highlight { margin-top: 0; }
  .dif-grid .card p { margin-bottom: 16px; }
  .carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; }
  .carousel-dot {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }
  .carousel-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(20, 23, 31, .35);
    transition: width .3s var(--ease-soft), background-color .3s ease;
  }
  .carousel-dot.active::before { width: 22px; background: var(--ink); }

  /* Portfólio: filtros em grade 2×2 e fotos maiores */
  .port-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .port-filter { width: 100%; padding: 10px 12px; }
  .port-img { height: auto; aspect-ratio: 4 / 3; }

  /* Processo como linha do tempo vertical */
  .proc-timeline { gap: 0; }
  .proc-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 16px;
    padding: 0 0 26px;
    border: none;
    background: none;
    text-align: left;
  }
  .proc-step:last-child { padding-bottom: 0; }
  .proc-step .proc-num { grid-row: span 2; margin: 0; }
  .proc-step h3 { align-self: center; margin: 0 0 4px; padding-top: 2px; }
  .proc-step p { grid-column: 2; }
  .proc-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 52px;
    bottom: 6px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(var(--green), rgba(65, 175, 77, .12));
  }

  /* Rodapé enxuto: logo + redes sociais na mesma linha, contato logo abaixo.
     Navegação e segmentos ficam só no desktop (o menu já cobre isso). */
  .footer { padding: 32px 0 calc(20px + env(safe-area-inset-bottom)); }
  .footer-nav, .footer-logo p, .footer-social-title, .footer-bottom .footer-brand, .footer-bottom .footer-tagline { display: none; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; gap: 18px 12px; margin-bottom: 20px; }
  .footer-contact { display: contents; }
  .footer-logo { grid-column: 1; grid-row: 1; }
  .footer-badge { padding: 8px 12px; border-radius: 16px; }
  .footer-badge img { height: 38px; }
  .footer-social { grid-column: 2; grid-row: 1; margin: 0; gap: 10px; }
  .footer-social a { width: 44px; height: 44px; }
  .footer-contact h3 { grid-column: 1 / -1; margin: 0 0 -10px; }
  .footer-contact ul { grid-column: 1 / -1; }
  .footer-col ul li a, .footer-col ul li span { display: flex; align-items: center; min-height: 40px; padding: 0; }
  .footer-col ul li span { min-height: 0; padding: 2px 0; }
  .footer-bottom { padding-top: 16px; }
  .footer-privacy { display: block; }
  .footer-privacy a { display: inline-block; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
}

/* 13. Dia e noite — versão para celular ---------------------------------
   No celular o comparador de arrastar perde o sentido (os textos não cabem
   sobre a foto). Aqui o visitante alterna por abas ou deslizando a foto,
   e os benefícios aparecem logo abaixo, no tema de cada período. */
@media (max-width: 640px) {
  .dn-compare, .dn-bottom-hint { display: none; }
  .dn-mobile { display: block; }

  .dn-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    background: #0d1217;
  }
  /* Pílula que desliza para a aba ativa */
  .dn-tabs::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe2ad, #fdf3dd);
    box-shadow: 0 4px 14px rgba(255, 200, 120, .25);
    transition: transform .4s var(--ease-soft), background .4s ease, box-shadow .4s ease;
  }
  .dn-mobile[data-mode="night"] .dn-tabs::before {
    transform: translateX(100%);
    background: linear-gradient(135deg, #1c2e60, #0a1240);
    box-shadow: 0 4px 14px rgba(40, 70, 160, .45), inset 0 0 0 1px rgba(150, 190, 255, .45);
  }
  .dn-tab {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 700;
    color: var(--muted);
    transition: color .3s ease;
  }
  .dn-tab[aria-selected="true"] { color: #3a2a10; }
  .dn-mobile[data-mode="night"] .dn-tab[aria-selected="true"] { color: #fff; }
  .dn-tab:focus-visible { outline-offset: -3px; }

  .dn-stage {
    position: relative;
    margin-top: 14px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
  .dn-photo { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .6s ease, transform 1.2s var(--ease-soft); }
  .dn-photo-day { background-image: url(../assets/img/casa-dia.webp); }
  .dn-photo-night { background-image: url(../assets/img/casa-noite.webp); opacity: 0; transform: scale(1.04); }
  .dn-mobile[data-mode="night"] .dn-photo-night { opacity: 1; transform: none; }
  .dn-mobile[data-mode="night"] .dn-photo-day { transform: scale(1.04); }

  /* Faixa que resume o que acontece em cada período */
  .dn-flow {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    transition: opacity .4s ease, transform .4s var(--ease-soft);
  }
  .dn-flow-day { background: rgba(255, 238, 205, .92); color: #3a2a10; border: 1px solid rgba(255, 255, 255, .8); }
  .dn-flow-night { background: rgba(12, 22, 60, .88); color: #e6eeff; border: 1px solid rgba(150, 190, 255, .45); opacity: 0; transform: translateY(8px); }
  .dn-mobile[data-mode="night"] .dn-flow-day { opacity: 0; transform: translateY(8px); }
  .dn-mobile[data-mode="night"] .dn-flow-night { opacity: 1; transform: none; }

  .dn-swipe-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(6, 8, 10, .6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: .72rem;
    font-weight: 600;
    color: #fff;
    transition: opacity .3s ease;
  }
  .dn-swipe-hint::after { content: "\2192"; animation: dnNudge 1.6s ease-in-out infinite; }
  .dn-mobile.is-touched .dn-swipe-hint, .dn-mobile[data-mode="night"] .dn-swipe-hint { opacity: 0; }
  @keyframes dnNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

  /* Os dois cards ocupam a mesma célula: a altura não "pula" ao trocar */
  .dn-panels { display: grid; margin-top: 14px; }
  .dn-panel {
    grid-area: 1 / 1;
    padding: 20px 20px 10px;
    border-radius: 18px;
    transition: opacity .35s ease, transform .35s var(--ease-soft), visibility 0s linear .35s;
  }
  .dn-panel-day {
    background: linear-gradient(135deg, #ffe2ad, #fdf3dd);
    border: 1px solid rgba(255, 255, 255, .85);
    color: #281c08;
  }
  .dn-panel-night {
    background: linear-gradient(135deg, #1c2e60, #0a1240);
    border: 1px solid rgba(150, 190, 255, .55);
    color: #fff;
  }
  .dn-mobile[data-mode="day"] .dn-panel-night,
  .dn-mobile[data-mode="night"] .dn-panel-day { opacity: 0; visibility: hidden; transform: translateY(6px); }
  .dn-mobile[data-mode="day"] .dn-panel-day,
  .dn-mobile[data-mode="night"] .dn-panel-night { transition-delay: 0s; }
  .dn-panel h3 { margin-bottom: 12px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
  .dn-panel-day h3 { color: #7a5200; }
  .dn-panel-night h3 { color: #a8c8ff; }
  .dn-panel li { position: relative; margin-bottom: 10px; padding-left: 20px; font-size: .9rem; font-weight: 500; line-height: 1.5; }
}
