/* =========================================================
   Ecosul Climatizadores — folha de estilo única
   Organização: 1 tokens · 2 base · 3 layout · 4 componentes
   5 seções da home · 6 páginas internas · 7 calculadora · 8 utilitários
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  /* cores derivadas do logotipo (verde #92C951, azul #3373A1) */
  --ink: #14232f;
  --ink-soft: #4a5d6c;
  --deep: #123b57;
  --deep-2: #0e2f46;
  --blue: #2f6c99;
  --blue-logo: #3373a1;
  --lime: #92c951;
  --lime-hover: #a3d566;
  --lime-ink: #4c7f1c;
  --mist: #edf3f6;
  --line: #d6e1e8;
  --white: #fff;
  --heat: #d9682b;
  --danger: #b42318;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(18, 59, 87, .06), 0 8px 24px rgba(18, 59, 87, .08);
  --header-h: 72px;

  /* gradientes da marca */
  --grad-deep: radial-gradient(ellipse 70% 60% at 88% 0%, rgba(51,115,161,.55), transparent 70%),
               radial-gradient(ellipse 55% 60% at 0% 100%, rgba(146,201,81,.16), transparent 70%),
               linear-gradient(155deg, #0a2539 0%, #123b57 55%, #19527c 100%);
  --grad-soft: linear-gradient(180deg, #fff 0%, #e6eff4 100%);
  --grad-tint: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(51,115,161,.12), transparent 70%),
               radial-gradient(ellipse 50% 45% at 0% 100%, rgba(146,201,81,.12), transparent 70%),
               linear-gradient(180deg, #f3f7fa 0%, #e9f1f5 100%);
}

/* 2. Base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-stretch: 112%; line-height: 1.08; letter-spacing: -.015em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.5rem); font-weight: 760; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 680; font-stretch: 106%; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-logo); outline-offset: 3px; border-radius: 4px; }
.i { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.2em; }
.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: 12px; top: -60px; z-index: 2000; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* 3. Layout ------------------------------------------------ */
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--mist { background: var(--mist); }
.section--deep { background: var(--grad-deep); color: #dbe7ef; }
.section--soft { background: var(--grad-soft); }
.section--tint { background: var(--grad-tint); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.section-head { display: grid; gap: 14px 48px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.section--deep .section-head p { color: #b8cddc; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
}

/* 4. Componentes ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 20px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-weight: 650; font-stretch: 104%; text-decoration: none; line-height: 1.2; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-hover); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--deep); border-color: var(--deep); }
.btn-secondary:hover { background: var(--deep); color: var(--white); }
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-light:hover { background: var(--white); color: var(--deep); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); } }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { width: 176px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 11px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: .98rem; border-radius: var(--r-sm); }
.nav a:not(.btn):hover { background: var(--mist); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--lime); border-radius: 0; }
.nav-cta { margin-left: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); cursor: pointer; place-items: center; }
.menu-toggle .i { width: 24px; height: 24px; }
.menu-icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon-close { display: block; }
@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); display: none; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(18,59,87,.12);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav-cta { margin: 16px 0 0; }
}
@media (max-width: 420px) { .brand img { width: 150px; } }

/* Rodapé */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand p { color: var(--ink-soft); max-width: 42ch; margin-top: 16px; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col h2 { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; margin-bottom: 4px; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--blue); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 44px; padding-block: 20px 28px; color: var(--ink-soft); font-size: .85rem; }
.footer-legal p { margin: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.float-wa:hover { color: #fff; background: #1ebe5b; }
.float-wa .i { width: 30px; height: 30px; }

/* Lista com marcadores de verificação */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .i { color: var(--lime-ink); margin-top: .2em; }

/* Tabela de especificações */
.specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--ink-soft); }
.specs dd { margin: 0; font-weight: 620; text-align: right; }

/* 5. Home ---------------------------------------------------- */
/* Hero */
.hero { position: relative; background: var(--grad-deep); color: #dbe7ef; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: #c4d6e3; max-width: 52ch; margin: 22px 0 30px; }
.hero-copy h1 { max-width: 18ch; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: #b8cddc; }
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points .i { color: var(--lime); }
.hero-visual { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(4, 20, 33, .45); border: 1px solid rgba(255,255,255,.14); }
.hero-photo { margin: 0; aspect-ratio: 16 / 9; background: #1b4566; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 0; top: 0; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

/* Mini calculadora no hero */
.quick-calc {
  position: relative; background: var(--white); color: var(--ink); padding: 20px 22px 22px; border-top: 4px solid var(--lime);
}
.quick-calc h2 { font-size: 1.15rem; font-stretch: 106%; margin-bottom: 4px; }
.quick-calc > p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }
.quick-calc .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-result { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.quick-result output { font-size: 1.6rem; font-weight: 760; font-stretch: 112%; color: var(--deep); font-variant-numeric: tabular-nums; }
.quick-result small { color: var(--ink-soft); font-size: .85rem; width: 100%; }
@media (min-width: 960px) {
  .quick-calc .fields { grid-template-columns: 1fr 1fr; }
}

/* Faixa de fatos */
.facts { background: linear-gradient(90deg, #0a2539, #0e3149); border-top: 1px solid rgba(255,255,255,.08); }
.facts-list { list-style: none; margin-block: 0; padding: 26px 0; display: grid; gap: 18px; }
.facts-list li { display: grid; gap: 2px; }
.facts-list strong { font-size: 1.3rem; font-stretch: 112%; font-weight: 720; color: var(--lime); }
.facts-list span { color: #b8cddc; font-size: .95rem; }
@media (min-width: 800px) {
  .facts-list { grid-template-columns: repeat(3, 1fr); }
  .facts-list li + li { border-left: 1px solid rgba(255,255,255,.14); padding-left: 28px; }
}

/* Empresa */
.about-grid { display: grid; gap: 40px; }
.about-text h2 { margin-bottom: 20px; }
.how h2 { margin-bottom: 24px; }
.about-text p { color: var(--ink-soft); max-width: 62ch; }
.about-text p strong { color: var(--ink); }
.about-text .checklist { margin-top: 24px; font-weight: 560; }
.regions { background: var(--deep); color: #dbe7ef; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px); align-self: start; }
.regions h3 { color: var(--white); margin-bottom: 8px; }
.regions > p { color: #b8cddc; font-size: .95rem; }
.region-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 0; }
.region-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); font-weight: 600; color: var(--white); }
.region-list .i { color: var(--lime); }
.region-list small { display: block; font-weight: 400; color: #b8cddc; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; } }

/* Soluções */
.solutions { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.solution { background: var(--white); padding: 26px 24px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-content: start; }
.solution .i { grid-row: span 2; width: 30px; height: 30px; color: var(--blue-logo); margin-top: 2px; }
.solution h3 { font-size: 1.12rem; }
.solution p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (min-width: 640px) { .solutions { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .solutions { grid-template-columns: repeat(3, 1fr); } }

/* Produtos */
.products { display: grid; gap: 22px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); display: flex; flex-direction: column; overflow: hidden; }
.product-media { position: relative; background: var(--white); aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 22px; border-bottom: 1px solid var(--line); }
.product-media--dark { background: #000; }
.product-media img { max-height: 100%; width: auto; object-fit: contain; }
.tag { position: absolute; left: 14px; top: 14px; background: var(--deep); color: var(--white); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.tag--lime { background: var(--lime); color: var(--ink); }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--blue); text-decoration: underline; }
.product-body > p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.product-body .specs { margin-bottom: 4px; }
.product-body .btn { margin-top: auto; }
@media (min-width: 760px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .products { grid-template-columns: repeat(3, 1fr); } }

/* Benefícios / como funciona */
.how { display: grid; gap: 40px; align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.how-diagram { background: var(--deep-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: clamp(14px, 3vw, 24px); }
.how-diagram svg { width: 100%; height: auto; display: block; }
.how-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.how-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.how-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--lime); color: var(--lime); display: grid; place-items: center; font-weight: 700; font-size: .95rem; }
.how-steps p { margin: 4px 0 0; color: #b8cddc; }
.how-steps strong { color: var(--white); }
@media (min-width: 900px) { .how { grid-template-columns: 1.15fr 1fr; gap: 64px; } }
.benefits { display: grid; gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--r-md); overflow: hidden; }
.benefit { background: rgba(8, 32, 50, .55); padding: 26px 24px; }
.benefit .i { width: 28px; height: 28px; color: var(--lime); margin-bottom: 14px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: 6px; }
.benefit p { margin: 0; color: #b8cddc; font-size: .96rem; }
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.note { font-size: .88rem; color: #9fb7c8; margin: 20px 0 0; max-width: 80ch; }

/* Faixa da calculadora */
.calc-band { display: grid; gap: 24px; align-items: center; background: var(--grad-deep); color: #dbe7ef; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: 0 18px 44px rgba(18,59,87,.22); }
.calc-band h2 { color: var(--white); }
.calc-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.calc-band p { margin: 0; color: #c4d6e3; max-width: 60ch; }
@media (min-width: 860px) { .calc-band { grid-template-columns: 1fr auto; } }

/* Galeria de projetos (carrossel com rolagem nativa) */
.gallery { position: relative; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 340px); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { margin: 0; scroll-snap-align: start; }
.gallery-track img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); background: #c9d8e2; }
.gallery-track figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.gallery-controls { display: flex; gap: 8px; margin-top: 20px; align-items: center; }
.gallery-controls button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--deep); background: var(--white); color: var(--deep); display: grid; place-items: center; cursor: pointer; }
.gallery-controls button:hover:not(:disabled) { background: var(--deep); color: var(--white); }
.gallery-controls button:disabled { opacity: .35; cursor: default; }
.gallery-controls .i { width: 20px; height: 20px; }
.gallery-count { margin-left: 8px; color: var(--ink-soft); font-size: .92rem; font-variant-numeric: tabular-nums; }

/* Processo */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.process li { counter-increment: p; position: relative; padding: 0 0 28px 56px; }
.process li::before { content: counter(p); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--deep); color: var(--white); display: grid; place-items: center; font-weight: 700; }
.process li::after { content: ""; position: absolute; left: 18px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.1rem; margin-bottom: 4px; }
.process p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .process li { padding: 58px 0 0; }
  .process li::before { top: 0; }
  .process li::after { left: 46px; right: -16px; top: 19px; bottom: auto; width: auto; height: 2px; }
}

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 880px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 620; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--blue), var(--blue)) center / 14px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-a { padding: 0 20px 20px; color: var(--ink-soft); }
.faq-a p:last-child, .faq-a ul:last-child { margin-bottom: 0; }
.faq-a ul { padding-left: 1.2em; margin: .4em 0 1em; }

/* Contato */
.contact-grid { display: grid; gap: 40px; }
.contact-direct { display: grid; gap: 12px; align-content: start; }
.contact-direct > p { color: #c4d6e3; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); background: rgba(255,255,255,.06); text-decoration: none; color: var(--white); }
a.contact-link:hover { border-color: var(--lime); background: rgba(255,255,255,.1); color: var(--white); }
.contact-link .i { width: 26px; height: 26px; color: #8fc3e8; }
.contact-link--wa .i { color: #4ad27f; }
.contact-link span { display: grid; }
.contact-link small { color: #b8cddc; font-size: .88rem; }
.contact-link strong { font-weight: 640; overflow-wrap: anywhere; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } }

/* Formulários */
.form { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.form h3 { font-size: 1.3rem; color: var(--ink); }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid #b9c9d4; border-radius: var(--r-sm); background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,115,161,.2); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .87rem; font-weight: 560; }
.field-error:empty { display: none; }
.form-legal { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.form-status { border-radius: var(--r-sm); padding: 14px 16px; background: #eaf6dd; color: #2f5410; font-weight: 560; }
.form-status[hidden] { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.unit-input { position: relative; }
.unit-input input { padding-right: 48px; }
.unit-input span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: .9rem; pointer-events: none; }

/* 6. Páginas internas --------------------------------------- */
.breadcrumb { font-size: .9rem; color: var(--ink-soft); padding-top: 22px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9aaab6; }
.page-hero { background: var(--grad-tint); padding-block: 28px clamp(48px, 7vw, 80px); }
.page-hero-grid { display: grid; gap: 36px; align-items: center; margin-top: 24px; }
.page-hero > .wrap > h1 { margin-top: 24px; }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-soft); margin: 18px 0 24px; max-width: 56ch; }
.page-hero-media { background: var(--white); border-radius: var(--r-lg); display: grid; place-items: center; padding: 28px; aspect-ratio: 1 / 1; max-height: 520px; border: 1px solid var(--line); }
.page-hero-media--dark { background: #000; border-color: #000; }
.page-hero-media img { max-height: 100%; width: auto; object-fit: contain; }
.page-hero .specs { margin-bottom: 26px; }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.content-grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; } }
.aside-card { background: var(--mist); border-radius: var(--r-lg); padding: 26px; align-self: start; position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 14px; }
.aside-card h2 { font-size: 1.25rem; }
.aside-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--mist); font-size: .9rem; font-weight: 650; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }

.related-title { margin-bottom: 24px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.related { display: grid; gap: 16px; }
.related a { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--white); }
.related a:hover { border-color: var(--blue); }
.related img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.related strong { display: block; }
.related small { color: var(--ink-soft); }
@media (min-width: 760px) { .related { grid-template-columns: 1fr 1fr; } }

.cta-band { background: var(--deep); color: #dbe7ef; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 52px); display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { margin: 0; color: #b8cddc; max-width: 58ch; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }

.error-page { text-align: left; padding-block: clamp(72px, 12vw, 140px); }
.error-page h1 { margin-bottom: 16px; }
.error-page p { color: var(--ink-soft); max-width: 52ch; margin-bottom: 28px; }

/* 7. Calculadora ------------------------------------------- */
.calc { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .calc { grid-template-columns: 400px minmax(0, 1fr); gap: 40px; } .calc .form { position: sticky; top: calc(var(--header-h) + 20px); } }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.calc legend { font-weight: 700; font-stretch: 106%; font-size: 1.15rem; margin-bottom: 14px; padding: 0; }
.dims { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dims-toggle { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: .92rem; justify-self: start; }
.range-row { display: grid; grid-template-columns: 1fr 96px; gap: 14px; align-items: center; }
input[type="range"] { accent-color: var(--blue-logo); min-height: 32px; padding: 0; border: 0; }
.range-row input[type="range"] { --faixa-ini: 0%; --faixa-fim: 0%;
  background: linear-gradient(90deg, transparent var(--faixa-ini), rgba(146,201,81,.45) var(--faixa-ini), rgba(146,201,81,.45) var(--faixa-fim), transparent var(--faixa-fim)) center / 100% 8px no-repeat;
  border-radius: 4px; }
.range-scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-top: -4px; }
.quick-calc .field-full { grid-column: 1 / -1; }
.results { display: grid; gap: 22px; }
.result-main { background: var(--deep); color: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 34px); display: grid; gap: 20px; }
.result-main .big { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 780; font-stretch: 115%; line-height: 1; font-variant-numeric: tabular-nums; color: var(--white); }
.result-main .big small { font-size: .45em; font-weight: 600; font-stretch: 100%; color: #b8cddc; margin-left: 6px; }
.result-main p { margin: 0; color: #b8cddc; }
.result-main p strong { color: var(--white); }
.result-steps { display: grid; gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--r-md); overflow: hidden; }
.result-steps div { background: var(--deep-2); padding: 14px 16px; display: grid; gap: 2px; }
.result-steps dt { font-size: .85rem; color: #9fb7c8; }
.result-steps dd { margin: 0; font-weight: 680; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.result-steps code { font-family: inherit; color: #cfe0ea; font-size: .85rem; font-weight: 400; }
@media (min-width: 640px) { .result-steps { grid-template-columns: repeat(3, 1fr); } }
.options caption { caption-side: top; text-align: left; padding: 0 0 10px; font-weight: 650; font-size: 1.05rem; }
.options tr.is-best td { background: #f1f8e8; }
.options tr.is-best td:first-child { box-shadow: inset 4px 0 0 var(--lime); }
.pill { display: inline-block; margin-left: 8px; font-size: .78rem; font-weight: 650; background: var(--lime); color: var(--ink); padding: 2px 8px; border-radius: 99px; vertical-align: 1px; }
.callout { border-left: 4px solid var(--blue-logo); background: var(--mist); padding: 16px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .96rem; color: var(--ink-soft); }
.callout strong { color: var(--ink); }
.callout--warn { border-left-color: var(--heat); background: #fdf3ec; }
.empty-state { border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: 28px; color: var(--ink-soft); }

/* 8. Movimento --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* único movimento automático: a mini calculadora entra depois do título (não atrasa o LCP) */
  .quick-calc { animation: rise .7s .25s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media print { .site-header, .float-wa, .site-footer, .calc .form { display: none; } }
