/* ==========================================================================
   HCR Eco Energia — Design System + Layout
   Mobile first · breakpoints: 640px (sm), 900px (md), 1100px (lg)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marca (extraídas do logotipo) */
  --green-950: #041d12;
  --green-900: #06281a;
  --green-800: #0b3a25;
  --green-700: #00692f;   /* texto verde sobre fundo claro */
  --green-600: #00843d;   /* botões com texto branco (AA) */
  --green-500: #00b94a;   /* verde do logotipo "HCR" */
  --lime-400: #6dc943;    /* verde da lâmpada */
  --orange-500: #f7941d;  /* laranja da base da lâmpada */
  --orange-600: #e8820a;
  --sun-400: #fdb933;     /* amarelo "eco energia" */

  /* Neutros */
  --ink: #0f1f17;
  --ink-soft: #3f5147;
  --muted: #5b6b62;
  --line: #e2eae4;
  --bg: #ffffff;
  --bg-soft: #f3f8f3;
  --white: #ffffff;

  /* Tipografia */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  --fs-h1: clamp(2.125rem, 1.35rem + 3.6vw, 3.75rem);

  /* Espaçamento */
  --gutter: 20px;
  --section-y: clamp(64px, 5vw + 40px, 120px);

  /* Forma */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(6, 40, 26, .06), 0 2px 8px rgba(6, 40, 26, .05);
  --shadow-md: 0 10px 30px -12px rgba(6, 40, 26, .22);
  --shadow-lg: 0 24px 60px -20px rgba(6, 40, 26, .35);

  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }

:focus-visible { outline: 3px solid var(--orange-500); 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-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; transform: translateY(-200%);
  padding: 10px 16px; background: var(--orange-500); color: #1a1206; font-weight: 700; border-radius: var(--r-sm);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange-500); border-radius: 2px; }
.eyebrow .icon { display: none; }
.eyebrow--light { color: var(--sun-400); }
.hero .eyebrow::before { display: none; }
.hero .eyebrow .icon { display: block; width: 1.1rem; height: 1.1rem; }

.section-title { font-size: var(--fs-h2); color: var(--ink); max-width: 20ch; }
.section-sub { color: var(--muted); font-size: var(--fs-md); max-width: 56ch; margin-top: 14px; }
.lead { font-size: var(--fs-lg); font-weight: 600; color: var(--ink); line-height: 1.5; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--green-600); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd); border-radius: var(--r-pill);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--orange-500); --btn-fg: #1a1206; box-shadow: 0 10px 24px -10px rgba(247, 148, 29, .8); }
.btn--primary:hover { --btn-bg: var(--sun-400); box-shadow: 0 14px 28px -10px rgba(247, 148, 29, .9); }
.btn--green:hover { --btn-bg: var(--green-700); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green-700); --btn-bd: var(--line); }
.btn--outline:hover { --btn-bd: var(--green-600); }
.btn--ghost-light { --btn-bg: rgba(255, 255, 255, .06); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--green-900); --btn-bd: #fff; }
.btn--sm { min-height: 42px; padding: 9px 18px; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn .icon use[href="#i-arrow"] { transition: transform .2s; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm);
  color: var(--green-700); padding: 6px 0;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-badge {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: #e6f6ea; color: var(--green-700);
}
.icon-badge .icon { width: 22px; height: 22px; }
.icon-badge--lg { width: 56px; height: 56px; border-radius: 16px; }
.icon-badge--lg .icon { width: 26px; height: 26px; }
.icon-badge--sun { background: #fff3e1; color: #b85f00; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); isolation: isolate;
  transition: box-shadow .3s, height .3s;
}
.site-header.is-scrolled,
body.menu-open .site-header { box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(6, 40, 26, .25); }
/* o fundo com blur fica num pseudo-elemento: backdrop-filter no próprio header
   criaria um containing block e prenderia o menu fixo dentro dele */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: opacity .3s;
}
.site-header.is-scrolled::before, body.menu-open .site-header::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { position: relative; display: block; width: 116px; flex-shrink: 0; }
.brand-logo { width: 100%; height: auto; transition: opacity .3s; }
.brand-logo--color { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .brand-logo--light, body.menu-open .brand-logo--light { opacity: 0; }
.is-scrolled .brand-logo--color, body.menu-open .brand-logo--color { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta span { display: none; }
.header-cta { width: 44px; min-height: 44px; padding: 0; }

.menu-toggle {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff;
  transition: background-color .2s, color .2s;
}
.is-scrolled .menu-toggle, body.menu-open .menu-toggle { background: var(--bg-soft); color: var(--ink); }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu mobile: painel em tela cheia */
.main-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  display: flex; flex-direction: column; gap: 28px;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: #fff; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-list { display: flex; flex-direction: column; }
.nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-size: 1.25rem; font-weight: 700; color: var(--ink);
}
.nav-link.is-active { color: var(--green-700); }
.nav-mobile-extra { display: flex; flex-direction: column; gap: 18px; }
.nav-phones { display: flex; flex-direction: column; gap: 6px; }
.nav-phones a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; color: var(--ink-soft); font-weight: 600; }
.nav-phones .icon { color: var(--green-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px;
  color: #fff; background: var(--green-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 29, 18, .55) 0%, rgba(4, 29, 18, .78) 45%, rgba(4, 29, 18, .95) 100%);
}
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero-title { font-size: var(--fs-h1); max-width: 17ch; margin-bottom: 20px; }
.hero-title .hl { color: var(--sun-400); }
.hero-lead { font-size: var(--fs-md); color: rgba(255, 255, 255, .88); max-width: 54ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.hero-trust { display: grid; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: rgba(255, 255, 255, .9); }
.hero-trust li { display: flex; align-items: center; gap: 10px; }
.hero-trust .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-500); color: var(--green-950); stroke-width: 3; }

.hero-card { display: none; }

/* ---------- Indicadores ---------- */
.stats { position: relative; z-index: 2; margin-top: -40px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat-value { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 800; color: var(--green-700); letter-spacing: -.02em; line-height: 1.2; }
.stat-label { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }

/* ---------- Seções ---------- */
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--green-900); color: #fff; }
.section--dark .section-title { color: #fff; }
.section--dark .section-sub { color: rgba(255, 255, 255, .75); }
.section-head { margin-bottom: clamp(36px, 4vw, 56px); }
.section-head--split { display: grid; gap: 20px; }

/* ---------- Quem somos ---------- */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-media { position: relative; padding-bottom: 56px; padding-right: 24px; }
.about-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img--main { aspect-ratio: 4 / 3.2; }
.about-img--sm {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3;
  border: 5px solid #fff; box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; left: 16px; bottom: 20px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--green-900); color: #fff; box-shadow: var(--shadow-lg);
}
.about-badge-value { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--sun-400); }
.about-badge-label { font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, .85); }

.about-content > p:not(.eyebrow) { margin-top: 18px; color: var(--ink-soft); }
.about-content .section-title { max-width: 18ch; }
.about-points { display: grid; gap: 18px; margin-top: 28px; }
.about-points li { display: flex; gap: 14px; align-items: flex-start; }
.about-points strong { display: block; font-size: var(--fs-base); margin-bottom: 2px; }
.about-points span:not(.icon-badge) { font-size: var(--fs-sm); color: var(--muted); }
.about-quote {
  display: flex; align-items: center; gap: 12px; margin-top: 32px;
  padding: 16px 20px; border-radius: var(--r-md);
  background: var(--bg-soft); border-left: 4px solid var(--green-500);
  font-weight: 700; font-style: italic; color: var(--green-800);
}
.about-quote .icon { color: var(--orange-500); }

/* ---------- Soluções ---------- */
.solutions-grid { display: grid; gap: 20px; }
.solution-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.solution-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--green-800); }
.solution-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.solution-card:hover .solution-media img { transform: scale(1.05); }
.solution-icon {
  position: absolute; left: 22px; top: -26px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-600); color: #fff; box-shadow: var(--shadow-md); border: 3px solid #fff;
}
.solution-icon .icon { width: 24px; height: 24px; }
.solution-body { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 36px 22px 22px; }
.solution-body h3 { font-size: var(--fs-h3); }
.solution-body > p { color: var(--muted); font-size: var(--fs-sm); }
.solution-benefit {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink) !important;
  padding-top: 12px; border-top: 1px dashed var(--line); margin-top: auto;
}
.solution-benefit .icon { color: var(--green-600); width: 18px; height: 18px; margin-top: 3px; stroke-width: 3; }

.services-grid { display: grid; gap: 20px; margin-top: 20px; }
.service-card {
  display: grid; grid-template-columns: auto 1fr; gap: 16px 18px; align-items: start;
  padding: 26px 22px; border-radius: var(--r-lg); background: var(--green-900); color: #fff;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 185, 74, .35), transparent 70%); pointer-events: none;
}
.service-card .icon-badge { background: rgba(0, 185, 74, .16); color: var(--lime-400); }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.service-card p { color: rgba(255, 255, 255, .78); font-size: var(--fs-sm); }
.service-card .link-arrow { grid-column: 2; color: var(--sun-400); }

/* ---------- Benefícios ---------- */
.benefits-grid { display: grid; gap: 16px; }
.benefit {
  padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.benefit:hover { border-color: #cfe6d6; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit h3 { font-size: var(--fs-h3); margin: 18px 0 8px; }
.benefit p { color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Diferenciais ---------- */
.differentials { position: relative; overflow: hidden; }
.differentials::before {
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 185, 74, .18), transparent 65%); pointer-events: none;
}
.diff-grid { position: relative; display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--r-lg); overflow: hidden; }
.diff-item { padding: 28px 24px; background: var(--green-900); transition: background-color .3s; }
.diff-item:hover { background: var(--green-800); }
.diff-item .icon { width: 30px; height: 30px; color: var(--lime-400); margin-bottom: 18px; }
.diff-item h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.diff-item p { font-size: var(--fs-sm); color: rgba(255, 255, 255, .72); }

/* ---------- Como funciona ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 18px;
  padding-bottom: 32px;
}
.step::before {
  content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px;
  background: linear-gradient(var(--green-500), rgba(0, 185, 74, .15));
}
.step:last-child { padding-bottom: 0; }
.step:last-child::before { display: none; }
.step-icon {
  grid-row: 1 / span 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--green-500); color: var(--green-700); box-shadow: 0 0 0 6px #eaf7ee;
}
.step-icon .icon { width: 24px; height: 24px; }
.step-num { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; color: #a85400; grid-column: 2; }
.step h3 { grid-column: 2; font-size: var(--fs-h3); margin: 2px 0 6px; }
.step p { grid-column: 2; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Galeria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 42px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--green-600); color: var(--green-700); }
.filter.is-active { background: var(--green-900); border-color: var(--green-900); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; }
.gallery-item { border-radius: var(--r-md); overflow: hidden; background: var(--green-800); }
.gallery-item--wide { grid-column: span 2; grid-row: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item[hidden] { display: none; }
.gallery-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.gallery-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery-caption {
  position: absolute; inset: auto 0 0; padding: 28px 12px 10px; text-align: left;
  font-size: var(--fs-xs); font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(4, 29, 18, .85));
}
.gallery-btn:hover img, .gallery-btn:focus-visible img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 12px;
  border: 0; background: rgba(4, 18, 11, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(4, 18, 11, .7); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 1200px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; border-radius: var(--r-md); }
.lightbox figcaption { font-size: var(--fs-sm); color: rgba(255, 255, 255, .85); }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; bottom: 16px; }
.lb-next { right: 12px; bottom: 16px; }

/* ---------- Sustentabilidade ---------- */
.sustain-grid { display: grid; gap: 40px; align-items: center; }
.sustain-content > p:not(.eyebrow) { margin-top: 18px; color: var(--ink-soft); }
.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.check-list .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #e6f6ea; color: var(--green-700); stroke-width: 3; }
.sustain-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-md); }
.sustain-media img { width: 100%; height: 100%; object-fit: cover; }
.sustain-media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}

/* ---------- Área de atendimento ---------- */
.units-grid { display: grid; gap: 16px; }
.unit-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.unit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.unit-card--main { border: 2px solid var(--green-500); }
.unit-tag {
  align-self: flex-start; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: #e6f6ea; color: var(--green-700);
}
.unit-card--main .unit-tag { background: var(--green-600); color: #fff; }
.unit-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.375rem; }
.unit-card h3 .icon { color: var(--orange-500); }
.unit-phone { font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }
.unit-phone:hover { color: var(--green-700); }
.unit-note { color: var(--muted); font-size: var(--fs-sm); }
.unit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

/* ---------- CTA ---------- */
.cta { padding-block: 0; margin-top: calc(var(--section-y) * -.4); position: relative; z-index: 1; }
.service-area { padding-bottom: calc(var(--section-y) * .9); }
.cta-box {
  position: relative; overflow: hidden; display: grid; gap: 28px;
  padding: 40px 24px; border-radius: var(--r-lg); color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(253, 185, 51, .28), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(0, 185, 74, .35), transparent 50%),
    var(--green-900);
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); max-width: 22ch; margin-bottom: 12px; }
.cta-box p { color: rgba(255, 255, 255, .82); max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; gap: 40px; }
.contact-info > p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); max-width: 46ch; }
.contact-list { display: grid; gap: 18px; margin-top: 28px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list strong { display: block; font-size: var(--fs-sm); }
.contact-list a, .contact-list span:not(.icon-badge) { color: var(--ink-soft); font-weight: 600; }
.contact-list a:hover { color: var(--green-700); }

.contact-form {
  display: grid; gap: 16px; padding: 24px 20px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 700; }
.field label span[aria-hidden] { color: #c2410c; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid #d3ddd6; border-radius: 12px; background: #fbfdfb;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300692f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field input::placeholder, .field textarea::placeholder { color: #8a9990; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aebfb4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px rgba(0, 185, 74, .15);
}
.field [aria-invalid="true"] { border-color: #c2410c; background: #fff8f5; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(194, 65, 12, .15); }
.field-error { font-size: var(--fs-xs); font-weight: 600; color: #b3380a; min-height: 0; }
.field-error:empty { display: none; }
.form-note { font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.form-status { font-size: var(--fs-sm); font-weight: 600; color: var(--green-700); text-align: center; }
.form-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .75); padding-top: 64px; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand p { max-width: 36ch; }
.footer-title { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sun-400); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-contacts li { display: flex; flex-direction: column; }
.footer-contacts strong { color: #fff; font-weight: 600; }
.footer-bottom {
  display: flex; flex-direction: column; gap: 8px; padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-xs); color: rgba(255, 255, 255, .6);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 10px;
  height: 58px; min-width: 58px; padding: 0 16px; border-radius: var(--r-pill);
  background: #25d366; color: #0b2e17; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float-label { display: none; font-weight: 700; font-size: var(--fs-sm); }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 32px -8px rgba(0, 0, 0, .4); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1;
  animation: wa-pulse 2.8s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
body.menu-open .wa-float { opacity: 0; pointer-events: none; }
.js .wa-float:not(.is-visible) { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.wa-float { transition: transform .25s var(--ease), box-shadow .25s, opacity .3s; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   ≥ 640px
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 28px 24px; border-bottom: 0 !important; }
  .stat:not(:last-child) { border-right: 1px solid var(--line); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; gap: 12px; }
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .units-grid .unit-card:last-child { grid-column: span 2; }
  .gallery-item--tall { grid-row: auto; }
  .cta-box { padding: 48px 40px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .header-cta { width: auto; padding: 9px 18px; }
  .header-cta span { display: inline; }
  .wa-float-label { display: inline; }
  .wa-float { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); padding: 0 22px 0 18px; }
  .brand { width: 130px; }
}

/* ==========================================================================
   ≥ 900px
   ========================================================================== */
@media (min-width: 900px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(4, 29, 18, .94) 0%, rgba(4, 29, 18, .8) 42%, rgba(4, 29, 18, .35) 75%, rgba(4, 29, 18, .25) 100%),
      linear-gradient(180deg, rgba(4, 29, 18, .4) 0%, transparent 25%, transparent 70%, rgba(4, 29, 18, .6) 100%);
  }
  .hero { padding-bottom: 110px; }
  .hero-inner { grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 48px; }
  .hero-card {
    display: flex; flex-direction: column; gap: 10px; align-self: end;
    padding: 22px; border-radius: var(--r-lg);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .hero-card-title { font-weight: 700; margin-bottom: 4px; }
  .hero-card-row {
    display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md);
    background: #fff; color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s;
  }
  .hero-card-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
  .hero-card-row > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
  .hero-card-row small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; }
  .hero-card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #25d366; color: #0b2e17; }
  .hero-card-arrow { color: var(--green-700); }
  .hero-card-note { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: rgba(255, 255, 255, .8); margin-top: 4px; }
  .hero-card-note .icon { width: 16px; height: 16px; color: var(--sun-400); }

  .stats { margin-top: -56px; }
  .section-head--split { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .section-head--split .section-sub { margin-top: 0; max-width: 42ch; }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .about-media { padding-bottom: 72px; padding-right: 40px; }
  .about-badge { left: -16px; bottom: 36px; padding: 16px 20px; }
  .about-badge-value { font-size: 2.5rem; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card { padding: 32px 28px; }
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-item { padding: 36px 32px; }

  /* Linha do tempo horizontal */
  .steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .step { display: flex; flex-direction: column; padding: 0; }
  .step::before { left: 56px; right: -20px; top: 27px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--green-500), rgba(0, 185, 74, .15)); }
  .step-icon { margin-bottom: 20px; order: -1; }
  .step-num { margin-bottom: 2px; }

  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
  .gallery-item--tall { grid-row: span 2; }

  .sustain-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  .sustain-media { aspect-ratio: 5 / 4; }

  .units-grid { grid-template-columns: repeat(3, 1fr); }
  .units-grid .unit-card:last-child { grid-column: auto; }

  .cta-box { grid-template-columns: 1.4fr auto; align-items: center; padding: 56px; gap: 40px; }
  .cta-actions { flex-direction: column; }

  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
  .contact-info { position: sticky; top: calc(var(--header-h) + 32px); }

  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { left: 24px; }
  .lb-next { right: 24px; }
  .lb-close { top: 20px; right: 24px; }
}

/* ==========================================================================
   ≥ 1100px — navegação completa
   ========================================================================== */
@media (min-width: 1100px) {
  :root { --header-h: 84px; }
  .site-header.is-scrolled { height: 72px; }
  .brand { width: 144px; }
  .is-scrolled .brand { width: 128px; }
  .brand { transition: width .3s var(--ease); }

  .menu-toggle { display: none; }
  .main-nav {
    position: static; inset: auto; padding: 0; background: none; overflow: visible;
    visibility: visible; opacity: 1; transform: none; flex-direction: row;
  }
  .nav-mobile-extra { display: none; }
  .nav-list { flex-direction: row; gap: 4px; }
  .nav-link {
    position: relative; padding: 10px 12px; border: 0; font-size: var(--fs-sm); font-weight: 600;
    color: rgba(255, 255, 255, .9); transition: color .2s;
  }
  .nav-link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--orange-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
  }
  .nav-link:hover, .nav-link.is-active { color: #fff; }
  .nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
  .is-scrolled .nav-link { color: var(--ink-soft); }
  .is-scrolled .nav-link:hover, .is-scrolled .nav-link.is-active { color: var(--green-700); }

  .solutions-grid { grid-template-columns: repeat(4, 1fr); }
  .solution-media { aspect-ratio: 4 / 3.4; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .benefit { padding: 30px 26px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

/* ---------- Preferências de movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
