/* =========================================================
   1. TOKENS — toda medida do site sai daqui
   ========================================================= */
:root {
  /* cor */
  --branco: #fefefe;
  --verde: #55ae51;
  --verde-claro: #8fd98c;
  --azul: #294a63;
  --cinza: #373435;
  --neutro: #f5f5f4;

  /* tipografia */
  --fonte-titulo: 'Barlow Condensed', sans-serif;
  --fonte-texto: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --fs-h1: clamp(42px, 5.4vw, 70px);
  --fs-h2: clamp(32px, 4.4vw, 56px);
  --fs-h3: clamp(23px, 2.2vw, 28px);
  --fs-destaque: clamp(30px, 4.4vw, 58px);
  --fs-num: clamp(28px, 3.4vw, 44px);
  --fs-corpo: clamp(16px, 1.3vw, 19px);
  --fs-mini: clamp(13px, 1vw, 15px);
  --fs-eyebrow: clamp(13px, 1.15vw, 16px);
  --fs-menu: clamp(12px, 1.05vw, 14px);
  --lh-corpo: 1.65;

  /* espaço — escala única para o site inteiro */
  --gutter: clamp(20px, 4vw, 32px);        /* respiro lateral */
  --secao-y: clamp(64px, 8vw, 120px);      /* seção padrão */
  --secao-y-lg: clamp(80px, 10vw, 148px);  /* seção de respiro (frase) */
  --secao-y-sm: clamp(44px, 5vw, 72px);    /* seção compacta (contato) */
  --bloco-gap: clamp(32px, 4.5vw, 60px);   /* cabeçalho -> conteúdo */
  --card-gap: clamp(16px, 2.2vw, 28px);
  --texto-gap: clamp(18px, 2vw, 26px);     /* título -> parágrafo */

  /* cromo */
  --nav-h: clamp(82px, 9vw, 108px);
  --raio: 14px;
  --container: 1160px;

  /* hero — o corte diagonal sai daqui (vão fixo de 14%) */
  --corte-topo: 38%;
  --corte-base: 52%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--branco);
  color: var(--cinza);
  font-family: var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
}

body.menu-aberto {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--azul);
  text-decoration: none;
}

a:hover {
  color: var(--verde);
}

/* alvo de âncora nunca mais some atrás do menu fixo */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

/* foco visível padronizado (teclado) */
:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-banner :focus-visible,
.section.dark :focus-visible {
  outline-color: var(--verde-claro);
}

/* =========================================================
   2. NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(254, 254, 254, 0.9);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(55, 52, 53, 0.07);
}

.nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--verde), var(--verde-claro) 38%, var(--azul));
}

.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.5vw, 36px);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo img {
  height: clamp(68px, 7.6vw, 94px);
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  font-size: var(--fs-menu);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links a {
  position: relative;
  color: var(--cinza);
  opacity: 0.72;
  padding: 11px 0;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  background: var(--verde);
  transition: right 0.25s ease;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible {
  opacity: 1;
  color: var(--azul);
}

.nav-links a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-links a.nav-cta {
  background: var(--verde);
  color: var(--branco);
  opacity: 1;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-links a.nav-cta:hover {
  background: var(--azul);
  color: var(--branco);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  background: none;
  border: 0;
  font-size: 19px;
  color: var(--cinza);
  cursor: pointer;
}

/* =========================================================
   3. HERO
   ========================================================= */
.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 760px);
  overflow: hidden;
  background: var(--azul);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-diagonal,
.hero-diagonal-foreground,
.hero-seam,
.hero-bottom-accent {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-diagonal,
.hero-diagonal-foreground {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(143, 217, 140, 0.5), transparent 60%),
    linear-gradient(to left, rgba(41, 74, 99, 1) 0%, rgba(41, 74, 99, 0.98) 42%, rgba(41, 74, 99, 0.9) 100%);
  background-size: 220% 220%, 100% 100%;
  background-repeat: no-repeat;
  clip-path: polygon(100% 0, var(--corte-topo) 0, var(--corte-base) 100%, 100% 100%);
  animation: heroGlow 14s ease-in-out infinite;
}

.hero-diagonal {
  mix-blend-mode: multiply;
  z-index: 0;
}

.hero-diagonal-foreground {
  opacity: 0.8;
  z-index: 1;
}

.hero-seam {
  background: var(--verde);
  clip-path: polygon(calc(var(--corte-topo) - 0.45%) 0, var(--corte-topo) 0, var(--corte-base) 100%, calc(var(--corte-base) - 0.45%) 100%);
}

/* cunha branca no canto inferior esquerdo — a borda direita acompanha a costura
   (0.45% da costura + 0.84% = 6% da altura x 14% de vão horizontal) */
.hero-bottom-accent {
  z-index: 2;
  background: var(--branco);
  clip-path: polygon(0 94%, calc(var(--corte-base) - 1.29%) 94%, calc(var(--corte-base) - 0.45%) 100%, 0 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(56px, 7vw, 88px) clamp(24px, 4.4vw, 80px) clamp(56px, 7vw, 88px)
           calc(var(--corte-base) + clamp(18px, 1.6vw, 30px));
}

.hero-box {
  width: min(560px, 100%);
}

.hero-box h1 {
  font-family: var(--fonte-titulo);
  font-size: var(--fs-h1);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--branco);
  margin: 0 0 var(--texto-gap);
  text-wrap: balance;
}

.hero-box h1 em {
  font-style: normal;
  color: var(--verde-claro);
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--branco);
  border-bottom: 2px solid var(--verde);
  padding-bottom: 6px;
}

.link-cta i {
  font-size: 0.78em;
  transition: transform 0.25s ease;
}

.link-cta:hover {
  color: var(--verde-claro);
}

.link-cta:hover i {
  transform: translateX(4px);
}

@keyframes heroGlow {
  0% { background-position: 10% 20%, 0 0; }
  50% { background-position: 70% 60%, 0 0; }
  100% { background-position: 10% 20%, 0 0; }
}

/* =========================================================
   4. SEÇÕES
   ========================================================= */
.statement {
  position: relative;
  padding: var(--secao-y-lg) var(--gutter);
  text-align: center;
  background: var(--azul) url('../uploads/river.jpg') center/cover no-repeat;
  isolation: isolate;
}

/* tinta o rio de azul-marinho para o texto branco continuar legível
   em qualquer trecho da foto */
.statement::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(41, 74, 99, 0.78);
  z-index: -1;
}

.statement p {
  font-family: var(--fonte-titulo);
  font-size: var(--fs-destaque);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--branco);
  max-width: 24ch;
  margin: 0 auto;
  text-wrap: balance;
}

.statement p span {
  color: var(--verde-claro);
}

.section {
  position: relative;
  padding: var(--secao-y) var(--gutter);
  overflow: hidden;
}

.section.tinted {
  background: var(--neutro);
}

.section.dark {
  background: var(--azul);
  color: var(--branco);
}

/* marca d'água fixa do lado direito — camada atrás do conteúdo (a marca
   pode ficar sob o texto, o que não pode é ficar por cima escondendo algo).
   .section é relative + overflow hidden, então o "fixed" só aparece dentro
   dos limites de cada seção — a marca de uma seção nunca invade a próxima,
   dando o efeito de sobreposição só enquanto aquela seção está na tela. */
.section-mark {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.5;
  background-repeat: no-repeat;
  background-position: right 20px bottom 20px;
  background-attachment: fixed;
  background-size: auto clamp(150px, 25.5vw, 360px);
}

.section > .wrap,
.section > .wrap-narrow {
  position: relative;
  z-index: 1;
}

.section:not(.tinted) .section-mark {
  background-image: url('../uploads/logo-gray.png');
}

.section.tinted .section-mark {
  background-image: url('../uploads/logo-white.png');
}

@media (max-width: 680px) {
  .section-mark {
    background-size: auto clamp(90px, 34.5vw, 165px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-mark {
    background-attachment: scroll;
  }
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.centered {
  text-align: center;
}

/* cabeçalho de seção: um único bloco, sem style inline */
.section-head {
  text-align: center;
  margin: 0 auto var(--bloco-gap);
}

.section-head.wide {
  max-width: 720px;
}

.section-head > :last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde);
  margin: 0 0 12px;
}

h2 {
  font-family: var(--fonte-titulo);
  font-size: var(--fs-h2);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--azul);
  margin: 0 0 var(--texto-gap);
  text-wrap: balance;
}

.section.dark h2,
.section.dark .lead {
  color: var(--branco);
}

.section.dark .eyebrow {
  color: var(--verde-claro);
}

.lead {
  font-size: var(--fs-corpo);
  line-height: var(--lh-corpo);
  font-weight: 400;
  color: var(--cinza);
  margin: 0 0 var(--texto-gap);
  text-wrap: pretty;
}

.lead:last-child {
  margin-bottom: 0;
}

.section.dark .lead {
  opacity: 0.88;
}

/* =========================================================
   5. FIGURAS
   ========================================================= */
.figure {
  margin: 0;
}

/* moldura que recorta a foto — a imagem em si é maior e desliza por dentro
   (efeito parallax controlado via JS, ver [data-parallax] em main.js) */
.parallax-frame {
  position: relative;
  overflow: hidden;
}

.parallax-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  will-change: transform;
}

.figure .parallax-frame {
  height: clamp(280px, 48vh, 600px);
}

.legenda {
  font-size: var(--fs-mini);
  line-height: 1.5;
  color: var(--cinza);
  opacity: 0.6;
  text-align: center;
  margin: 16px 0 0;
}

/* =========================================================
   6. NÚMEROS
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  text-align: center;
}

.stat {
  padding: clamp(22px, 2.6vw, 32px) 14px;
  border-radius: var(--raio);
  background: rgba(254, 254, 254, 0.06);
  border: 1px solid rgba(254, 254, 254, 0.1);
  transition: background 0.3s ease, transform 0.3s ease;
}

.stat:hover {
  background: rgba(254, 254, 254, 0.1);
  transform: translateY(-4px);
}

.stat i {
  font-size: 19px;
  color: var(--verde-claro);
  margin-bottom: 14px;
  display: block;
}

.stat-num {
  font-family: var(--fonte-titulo);
  font-size: var(--fs-num);
  font-weight: 800;
  line-height: 1;
  color: var(--branco);
  white-space: nowrap;
}

.stat-label {
  font-size: var(--fs-mini);
  font-weight: 500;
  margin-top: 10px;
  opacity: 0.72;
}

/* =========================================================
   7. LINHAS DIVIDIDAS
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.split .parallax-frame {
  height: clamp(260px, 40vh, 460px);
  border-radius: var(--raio);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* fotos estáticas, sem parallax — só a animação de entrada (reveal-scale) */
.pair-media {
  height: clamp(200px, 30vh, 330px);
  border-radius: var(--raio);
  overflow: hidden;
}

.pair-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* cascata: a segunda foto do par aparece um instante depois da primeira */
.pair-media:nth-child(2) {
  transition-delay: 0.12s;
}

/* =========================================================
   7B. ESTRUTURA — MOSAICO DE FOTOS + TEXTO
   ========================================================= */
.estrutura-layout {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.estrutura-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  aspect-ratio: 1 / 1;
}

.mosaic-tile {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--raio);
  overflow: hidden;
  cursor: pointer;
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mosaic-tall {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.mosaic-wide {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}

.mosaic-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  font-size: 20px;
  background: rgba(41, 74, 99, 0);
  opacity: 0;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.mosaic-tile:hover .mosaic-zoom,
.mosaic-tile:focus-visible .mosaic-zoom {
  background: rgba(41, 74, 99, 0.45);
  opacity: 1;
}

.mosaic-tile:hover img,
.mosaic-tile:focus-visible img {
  transform: scale(1.05);
}

/* =========================================================
   7C. LIGHTBOX — GALERIA EM TELA CHEIA
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background-color: rgba(41, 74, 99, 0.92);
  background-image:
    radial-gradient(circle at 30% 30%, rgba(143, 217, 140, 0.25), transparent 55%),
    linear-gradient(to left, rgba(41, 74, 99, 0.96) 0%, rgba(41, 74, 99, 0.93) 42%, rgba(41, 74, 99, 0.86) 100%);
  background-size: 220% 220%, 100% 100%;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: heroGlow 14s ease-in-out infinite;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-watermark {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  left: clamp(14px, 3vw, 28px);
  z-index: 1;
  width: min(250px, 32vw);
  opacity: 0.16;
  pointer-events: none;
  user-select: none;
}

.lightbox-close,
.lightbox-btn {
  border: none;
  border-radius: 50%;
  background: rgba(254, 254, 254, 0.12);
  color: var(--branco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-btn:hover {
  background: rgba(254, 254, 254, 0.24);
}

.lightbox-close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 3;
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  font-size: 17px;
}

.lightbox-btn:hover {
  transform: translateY(-50%) scale(1.07);
}

.lightbox-prev {
  left: clamp(10px, 3vw, 32px);
}

.lightbox-next {
  right: clamp(10px, 3vw, 32px);
}

.lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 11vh, 96px) clamp(64px, 10vw, 140px) clamp(16px, 3vh, 28px);
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

.lightbox-thumbs {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 clamp(16px, 4vw, 40px) clamp(16px, 3vh, 28px);
  overflow-x: auto;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb:hover {
  opacity: 0.8;
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: var(--verde);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-gap);
  margin-top: var(--bloco-gap);
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 16px;
  padding: 0 clamp(10px, 1.6vw, 22px);
  border-left: 2px solid var(--verde);
}

.highlight:first-child {
  border-left: none;
}

.highlight-icon {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon i {
  font-size: clamp(38px, 4.4vw, 54px);
  color: var(--verde);
}

.highlight p {
  font-size: var(--fs-corpo);
  font-weight: 600;
  line-height: 1.4;
  color: var(--azul);
  margin: 0;
  text-wrap: pretty;
}

/* =========================================================
   8. PILARES
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  align-items: stretch;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: var(--neutro);
  border-radius: var(--raio);
  padding: clamp(34px, 3.8vw, 46px) clamp(22px, 2.6vw, 30px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(41, 74, 99, 0.14);
}

.pillar-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(85, 174, 81, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.pillar:hover .pillar-icon {
  background: var(--verde);
  transform: scale(1.08);
}

.pillar-icon i {
  font-size: 22px;
  color: var(--verde);
  transition: color 0.3s ease;
}

.pillar:hover .pillar-icon i {
  color: var(--branco);
}

.pillar h3 {
  font-family: var(--fonte-titulo);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--azul);
  margin: 0 0 12px;
  letter-spacing: 0;
}

.pillar p {
  font-size: var(--fs-corpo);
  line-height: var(--lh-corpo);
  margin: 0;
  opacity: 0.85;
  text-wrap: pretty;
}

/* =========================================================
   9. PRODUTOS
   ========================================================= */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.6vw, 52px);
}

.product {
  background: var(--neutro);
  border-radius: var(--raio);
  overflow: hidden;
  text-align: center;
  padding-bottom: clamp(26px, 3.2vw, 38px);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.product:hover {
  box-shadow: 0 24px 48px rgba(41, 74, 99, 0.16);
  transform: translateY(-4px);
}

.product img {
  width: 100%;
  height: clamp(240px, 36vh, 380px);
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product:hover img {
  transform: scale(1.03);
}

.product h3 {
  font-family: var(--fonte-titulo);
  font-size: clamp(25px, 2.7vw, 34px);
  font-weight: 800;
  color: var(--azul);
  letter-spacing: 0;
  margin: clamp(22px, 2.6vw, 30px) 22px 10px;
}

.product p {
  font-size: var(--fs-corpo);
  line-height: 1.6;
  margin: 0 22px;
  opacity: 0.75;
}

/* =========================================================
   10. CONTATO + RODAPÉ
   ========================================================= */
.contact {
  padding: var(--secao-y-sm) var(--gutter);
  text-align: center;
  background: var(--neutro);
}

.contact h2 {
  margin-bottom: clamp(22px, 2.6vw, 32px);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  font-size: var(--fs-corpo);
  font-weight: 600;
  color: var(--azul);
}

.contact-links a i {
  color: var(--verde);
  font-size: 0.85em;
}

.contact-links a.contact-address {
  align-items: flex-start;
  text-align: left;
  max-width: 420px;
}

.contact-links a.contact-address i {
  margin-top: 0.2em;
}

footer {
  padding: 22px var(--gutter) 28px;
  border-top: 1px solid rgba(55, 52, 53, 0.1);
}

footer p {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(12px, 1vw, 14px);
  color: var(--cinza);
  opacity: 0.55;
}

/* =========================================================
   11. REVEAL
   ========================================================= */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* entra deslizando da esquerda — usar em blocos de texto à esquerda de uma foto */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
}

/* entra deslizando da direita — usar em fotos/cards à direita de um texto */
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
}

/* entra crescendo — usar em cards/ícones (pilares, números) */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

.reveal.in,
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  opacity: 1;
  transform: none;
}

/* .stat soma sua própria transição de hover (background/transform) à de
   entrada (opacity/transform) do .reveal-scale — precisa de uma lista só,
   com especificidade maior, para as duas conviverem sem se atropelar */
.stat.reveal-scale {
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.3s ease, background 0.3s ease;
}

/* cascata: cada item de um grupo aparece um pouco depois do anterior */
.pillars .pillar:nth-child(2) { transition-delay: 0.12s; }
.pillars .pillar:nth-child(3) { transition-delay: 0.24s; }
.products .product:nth-child(2) { transition-delay: 0.12s; }
.stats .stat:nth-child(2) { transition-delay: 0.08s; }
.stats .stat:nth-child(3) { transition-delay: 0.16s; }
.stats .stat:nth-child(4) { transition-delay: 0.24s; }
.highlights .highlight:nth-child(2) { transition-delay: 0.08s; }
.highlights .highlight:nth-child(3) { transition-delay: 0.16s; }
.highlights .highlight:nth-child(4) { transition-delay: 0.24s; }

/* =========================================================
   12. RESPONSIVO
   ========================================================= */
/* menu vira hambúrguer antes de os itens quebrarem em duas linhas */
@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: rgba(254, 254, 254, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 18px;
    border-bottom: 1px solid rgba(55, 52, 53, 0.1);
    box-shadow: 0 18px 32px rgba(41, 74, 99, 0.08);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid rgba(55, 52, 53, 0.07);
  }

  .nav-links a:not(.nav-cta)::after {
    display: none;
  }

  .nav-links a.nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 940px) {
  /* HERO: mesmo desenho do desktop, com o corte na horizontal.
     --painel = altura da faixa azul, ancorada na base. Como o texto também
     fica encostado na base, ele sempre cabe dentro do painel. */
  .hero-banner {
    --painel: clamp(240px, 32vh, 300px);
    min-height: max(560px, min(86vh, 760px));
    align-items: flex-end;
  }

  .hero-diagonal,
  .hero-diagonal-foreground {
    clip-path: polygon(0 calc(100% - var(--painel)), 100% calc(88% - var(--painel)), 100% 100%, 0 100%);
    background-image:
      radial-gradient(circle at 25% 90%, rgba(143, 217, 140, 0.45), transparent 62%),
      linear-gradient(to top, rgba(41, 74, 99, 1) 0%, rgba(41, 74, 99, 0.98) 45%, rgba(41, 74, 99, 0.9) 100%);
    background-size: 220% 220%, 100% 100%;
    animation: none;
  }

  .hero-seam {
    clip-path: polygon(
      0 calc(100% - var(--painel) - 5px),
      100% calc(88% - var(--painel) - 5px),
      100% calc(88% - var(--painel)),
      0 calc(100% - var(--painel))
    );
  }

  .hero-bottom-accent {
    display: none;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: var(--painel);
    padding: 0 var(--gutter);
    text-align: center;
  }

  .hero-box {
    width: 100%;
  }

  .hero-box h1 {
    font-size: clamp(46px, 9.5vw, 68px);
  }

  .link-cta {
    font-size: clamp(18px, 4.5vw, 22px);
  }

  h2 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: var(--card-gap);
  }

  .highlights {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(24px, 4vw, 36px);
  }

  .highlight {
    border-left: none;
    padding: 0 clamp(10px, 1.6vw, 22px);
  }

  .highlight:nth-child(2n) {
    border-left: 2px solid var(--verde);
  }

  .highlight:nth-child(n + 3) {
    border-top: 2px solid var(--verde);
    padding-top: clamp(24px, 4vw, 36px);
  }

  .split,
  .products,
  .estrutura-layout {
    grid-template-columns: 1fr;
  }

  .split .order-text {
    order: -1;
  }

  .estrutura-mosaic {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 680px) {
  .pair {
    grid-template-columns: 1fr;
  }

  .estrutura-mosaic {
    aspect-ratio: 4 / 3;
    gap: 8px;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .lightbox-stage {
    padding: clamp(56px, 10vh, 76px) clamp(46px, 14vw, 72px) clamp(12px, 2vh, 20px);
  }

  .lightbox-thumb {
    width: 46px;
    height: 46px;
  }

  .highlights {
    grid-template-columns: 1fr;
    row-gap: clamp(20px, 5vw, 30px);
  }

  .highlight {
    border-left: none !important;
    border-top: 2px solid var(--verde);
    padding: clamp(20px, 5vw, 30px) 0 0;
  }

  .highlight:first-child {
    border-top: none;
    padding-top: 0;
  }

  .figure .parallax-frame {
    height: clamp(220px, 40vh, 340px);
  }

  /* números grandes não cabiam em 2 colunas em telas estreitas */
  .stats {
    gap: 12px;
  }

  .stat {
    padding: 22px 10px;
  }

  .stat-num {
    font-size: clamp(24px, 6.2vw, 32px);
    white-space: normal;
  }

  .stat-label {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg,
  .parallax-frame img {
    transform: none !important;
  }

  .hero-diagonal,
  .hero-diagonal-foreground {
    animation: none;
  }

  .lightbox {
    animation: none;
  }

  .lightbox,
  .lightbox-close,
  .lightbox-btn,
  .lightbox-thumb,
  .mosaic-tile img,
  .mosaic-zoom {
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
