/* ═══════════════════════════════════════════════════════════════════════
   ENERMAC · sections.css
   Estilo das seções da landing page, na ordem do documento.

   ÍNDICE
   1. Hero                (#home)
   2. Desafios            (#desafios — grade de cards com hover)
   3. Soluções            (#solucoes — features, trilha "como funciona")
   4. A Enermac           (#a-enermac — sobre + estatísticas)
   5. Cases               (#cases — painel 3D + cards)
   ═══════════════════════════════════════════════════════════════════════ */

/* ══ 1. HERO ══ */
.hero {
  position: relative;
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--c-navy-deep);
}

/* Imagem em camada própria — parallax via transform (js/main.js),
   sem background-attachment:fixed (instável em iOS). Inset expandido
   dá folga para o deslocamento sem revelar bordas. */
.hero__bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  transform: translateY(var(--hero-y, 0px));
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(rgba(9, 20, 36, .62), rgba(9, 20, 36, .55)),
    radial-gradient(ellipse 900px 700px at 72% 35%, rgba(47, 95, 168, .14) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 5% 80%, rgba(79, 138, 59, .2) 0%, transparent 65%);
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero__content {
  padding: 7rem 0 4rem;
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.04;
  max-width: 880px;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: var(--c-orange);
}

.hero__sub {
  font-size: clamp(1.012rem, 1.87vw, 1.232rem);
  color: rgba(255, 255, 255, .65);
  max-width: 510px;
  line-height: 1.72;
  margin-bottom: 2rem;
}

/* Bullets de benefício, colados antes do CTA */
.hero__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.75rem;
}

.hero__bullets li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: clamp(1.012rem, 1.54vw, 1.1rem);
  font-weight: 600;
  color: #fff;
}

.hero__bullets .icon {
  width: 20px;
  height: 20px;
  color: var(--c-orange);
  flex-shrink: 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Entrada orquestrada do hero (uma vez, no load) */
html.js .hero__title,
html.js .hero__sub,
html.js .hero__bullets,
html.js .hero__cta {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-in .8s var(--ease-out) forwards;
}

html.js .hero__sub { animation-delay: .15s; }
html.js .hero__bullets { animation-delay: .28s; }
html.js .hero__cta { animation-delay: .4s; }

/* Bolhas de biogás subindo */
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(47, 95, 168, .06);
  border: 1px solid rgba(47, 95, 168, .18);
  animation: bubble-rise linear infinite;
}

.bubble:nth-child(1)  { width: 52px; height: 52px; left: 7%;  animation-duration: 9.2s;  animation-delay: 0s; }
.bubble:nth-child(2)  { width: 22px; height: 22px; left: 21%; animation-duration: 6.5s;  animation-delay: 1.4s; }
.bubble:nth-child(3)  { width: 66px; height: 66px; left: 37%; animation-duration: 11.5s; animation-delay: .7s; }
.bubble:nth-child(4)  { width: 34px; height: 34px; left: 54%; animation-duration: 8.2s;  animation-delay: 2.2s; }
.bubble:nth-child(5)  { width: 18px; height: 18px; left: 67%; animation-duration: 5.8s;  animation-delay: .9s; }
.bubble:nth-child(6)  { width: 48px; height: 48px; left: 79%; animation-duration: 10.4s; animation-delay: 1.3s; }
.bubble:nth-child(7)  { width: 28px; height: 28px; left: 13%; animation-duration: 7.7s;  animation-delay: 3s; }
.bubble:nth-child(8)  { width: 40px; height: 40px; left: 47%; animation-duration: 9.8s;  animation-delay: 1.9s; }
.bubble:nth-child(9)  { width: 16px; height: 16px; left: 89%; animation-duration: 6.1s;  animation-delay: 2.6s; }
.bubble:nth-child(10) { width: 44px; height: 44px; left: 30%; animation-duration: 12s;   animation-delay: 4s; }

/* ══ 2. DESAFIOS ══ */
.challenges {
  background: var(--c-navy);
  overflow: clip;
  position: relative;
  padding: 5rem 0;
}

.challenges .section-head h2 {
  color: #fff;
}

/* Porco e vaca de corpo inteiro nos cantos — grandes o bastante para
   avançar por baixo da primeira/última tile do grid de propósito (não
   é pra evitar isso: as tiles viram "vidro" onde o bicho passa por
   baixo, ver .challenge-tile backdrop-filter abaixo). z-index 0 fica
   atrás do .container (z-index 1), então o grid sempre imprime por
   cima.

   Largura pela margem real até o texto do título, não por vw solto:
   o h2 tem max-width:700px centralizado, então a distância da borda da
   viewport até a borda do texto é sempre (100vw - 700px)/2 — cravar a
   largura nesse valor (menos uma folga de 24px) garante que o bicho
   nunca cobre a primeira/última linha do título, em qualquer largura. */
.challenges__animal-frame {
  display: none;
  position: absolute;
  top: 2.5rem;
  z-index: 0;
  pointer-events: none;
}

.challenges__animal-frame--pig {
  left: 0;
}

.challenges__animal-frame--cow {
  right: 0;
}

@media (min-width: 1150px) {
  .challenges__animal-frame {
    display: block;
  }
}

/* object-fit:cover + object-position:top + altura menor que a proporção
   natural da foto = a caixa recorta uma fatia de baixo (as patas) — um
   corte reto de verdade, não um degradê escondendo por cima. A cabeça
   permanece exatamente onde estava (âncora no topo), só o rodapé da
   imagem (pernas/cascos) fica de fora da caixa. */
.challenges__animal {
  display: block;
  --animal-w: clamp(160px, calc((100vw - 700px) / 2 - 24px), 600px);
  width: var(--animal-w);
  object-fit: cover;
  object-position: top;
}

.challenges__animal--pig {
  height: calc(var(--animal-w) / 1.221 * .75);
}

.challenges__animal--cow {
  height: calc(var(--animal-w) / 1.026 * .72);
}

/* Sombra por cima do corte reto: em vez de recortar mais imagem, essa
   camada some por cima do terço final do bicho, na mesma cor do fundo
   da seção — vende a ideia de "sumindo na sombra" em vez de "foto
   cortada sem motivo". Não reduz o que já foi recortado, só disfarça a
   borda reta que sobrou. */
.challenges__animal-frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(23, 52, 92, .55) 55%,
    var(--c-navy) 100%);
  pointer-events: none;
}

.challenges > .container {
  position: relative;
  z-index: 1;
}

.challenges__subtitle {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.858rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.challenges__hint {
  margin-top: .5rem;
  font-size: 0.792rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

/* Grade de cards pequenos — navy por padrão, viram branco/laranja no
   hover (mesma lógica dos feature-card da seção Soluções, cores
   invertidas por já estarmos num fundo escuro). */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 860px) {
  .challenge-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Altura fixa: a face e a descrição se sobrepõem no mesmo espaço e
   trocam via crossfade — nada de "crescer" o card no hover. */
/* Vidro fosco: onde o porco/vaca passam por baixo (z-index 0), a tile
   deixa ver a silhueta borrada do animal através do blur — o mesmo
   fundo translúcido funciona idêntico nas tiles sem bicho atrás (só
   mostra o navy da seção, sem diferença visual). */
.challenge-tile {
  position: relative;
  min-height: 208px;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--dur-small) var(--ease-out),
              border-color var(--dur-small) var(--ease-out),
              transform var(--dur-small) var(--ease-out),
              box-shadow var(--dur-small) var(--ease-out);
}

.challenge-tile:hover {
  background: #fff;
  border-color: var(--c-orange);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.challenge-tile__face,
.challenge-tile__desc {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.7rem 1.4rem;
  text-align: center;
  transition: opacity var(--dur-small) var(--ease-out),
              transform var(--dur-small) var(--ease-out);
}

.challenge-tile__face {
  opacity: 1;
  transform: none;
}

.challenge-tile:hover .challenge-tile__face {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.challenge-tile__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(240, 100, 42, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--c-orange);
}

.challenge-tile__icon .icon {
  width: 28px;
  height: 28px;
}

.challenge-tile__face h3 {
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.968rem;
  letter-spacing: .02em;
  line-height: 1.3;
}

.challenge-tile__desc {
  color: var(--c-ink-soft);
  font-size: 0.946rem;
  line-height: 1.55;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.challenge-tile:hover .challenge-tile__desc {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ══ 3. SOLUÇÕES ══ */
.solutions {
  background: var(--c-gray);
  padding: 3rem 0;
}

/* Cena 3D — fluxo completo da usina (Three.js, js/biogas-scene.js).
   Fundo em degradê muito sutil (não branco puro) para o canvas com fundo
   transparente "flutuar" com contato visual sobre o cartão, igual ao
   pedido de ilustração isolada sem chão/horizonte. */
.solutions__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 10;
  max-height: 640px;
  margin-bottom: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 65% at 50% 42%, #fff 0%, #f4f6f8 62%, #e9edf1 100%);
  box-shadow: var(--shadow-card);
}

.solutions__scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

/* UI interativa (progresso, navegação, painel, tooltip, fullscreen) fica
   inteira em css/scene-ui.css — arquivo dedicado por ser um componente
   grande e autocontido, para não inchar este arquivo de seções. */

@media (max-width: 720px) {
  .solutions__scene {
    /* O modelo 3D é uma planta industrial alongada na horizontal — um
       quadro em retrato (3/4) sobra vazio em cima/embaixo porque a
       câmera precisa dar zoom-out para caber a largura toda. Um quadro
       mais próximo do quadrado deixa o modelo visivelmente maior. */
    aspect-ratio: 6 / 5;
    max-height: 520px;
  }
}

/* Diferenciais */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, .06);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-small) var(--ease-out),
              box-shadow var(--dur-small) var(--ease-out);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-orange);
  transform: scaleX(0);
  transition: transform var(--dur-small) var(--ease-out);
  transform-origin: left;
  border-radius: 3px 3px 0 0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(47, 95, 168, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .8rem;
  color: var(--c-orange);
}

.feature-card__icon .icon {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  display: flex;
  align-items: flex-start;
  min-height: 2.4em;
  font-size: 0.968rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: .4rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  line-height: 1.58;
}

/* ══ 3b. TRILHA "COMO FUNCIONA" (estática) ══
   Grade de cards já aparece em Desafios, nos diferenciais desta mesma
   seção e em Cases (mais abaixo) — para não repetir o mesmo método pela
   terceira vez seguida, aqui a leitura é por uma linha do tempo vertical:
   uma linha central conecta 5 marcadores numerados, e cada etapa alterna
   o lado da foto/texto (zig-zag). 100% estático — sem scroll-scrub, sem
   pin, sem GSAP. Entrada em tela usa o mesmo fade sutil (.reveal/.stagger)
   do resto do site, nunca uma animação own dessa seção. */
.how-steps {
  margin-top: .5rem;
}

.how-steps__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2.5rem 0 .5rem;
}

/* Linha central — só faz sentido no layout de 2 colunas (desktop/tablet
   largo); esmaece nas pontas para não "cortar" seco no início/fim. */
.how-steps__list::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom,
    transparent, rgba(23, 52, 92, .16) 8%, rgba(23, 52, 92, .16) 92%, transparent);
}

.how-step {
  position: relative;
  display: flex;
  align-items: center;
  /* O marcador (52px) fica centrado no meio desse vão — precisa de gap
     suficiente pra sobrar respiro dos dois lados (foto e texto), senão
     ele quase toca o título. */
  --how-gap: clamp(5rem, 4.2vw, 5.75rem);
  gap: var(--how-gap);
}

/* Zig-zag: etapas pares invertem o lado da foto. O marcador numérico
   agora é filho de .how-step__media (não mais de .how-step) e ancora
   no seu centro vertical — antes ficava centralizado na altura da
   LINHA inteira (imagem + texto), e quando o texto tinha mais linhas
   que a foto, esse centro caía em cima do título. */
.how-step:nth-child(even) {
  flex-direction: row-reverse;
}

/* Sem overflow:hidden aqui — o marcador numérico mora dentro desta
   caixa mas fica posicionado FORA dela (na costura com o texto); um
   overflow:hidden no container cortava o marcador inteiro. O recorte
   arredondado da foto agora é responsabilidade do próprio <img>. */
.how-step__media {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(13, 30, 50, .06);
}

.how-step__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.how-step__body {
  flex: 1 1 0;
  min-width: 0;
}

/* Etapas ímpares: foto à esquerda, texto à direita — o marcador fica na
   borda direita da foto, meio caminho andado dentro do gap até o texto. */
.how-step__num {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 100%;
  margin-left: calc(var(--how-gap) / 2);
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.012rem;
  letter-spacing: .02em;
  box-shadow: 0 8px 22px rgba(240, 100, 42, .35), 0 0 0 6px var(--c-gray);
}

/* Etapas pares: a foto vira visualmente pro lado direito (row-reverse),
   então a borda "voltada pro texto" agora é a esquerda da foto. */
.how-step:nth-child(even) .how-step__num {
  left: 0;
  margin-left: calc(var(--how-gap) / -2);
}

.how-step__body h4 {
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 1.98vw, 1.65rem);
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.2;
  margin-bottom: .6rem;
}

.how-step__body p {
  font-size: 1.012rem;
  color: var(--c-ink-soft);
  line-height: 1.72;
  max-width: 42ch;
}

@media (max-width: 899px) {
  /* Abaixo de tablet largo não sobra espaço para o zig-zag de 2 colunas
     ficar legível — a trilha migra para a esquerda e todas as etapas
     empilham foto em cima + texto embaixo, sempre na mesma ordem. */
  .how-steps__list::before {
    left: 22px;
  }

  .how-step,
  .how-step:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    /* Respiro à direita também — sem ele a foto ia até a borda crua do
       .container, enquanto a trilha reserva 52px à esquerda; a diferença
       fazia o card inteiro parecer "colado" na quina direita da tela. */
    padding: 0 .75rem 0 52px;
    /* Aqui o gap vira espaço VERTICAL entre foto e texto empilhados —
       não precisa do respiro extra reservado pro marcador no desktop. */
    --how-gap: 1.5rem;
  }

  /* No mobile o marcador some do rodapé da foto (não faz mais sentido,
     não há mais "seam" entre foto e texto lado a lado) e volta a ser um
     marcador de canto relativo ao card inteiro — por isso a foto some
     como container posicionado (position:static) e as regras de
     desktop (left:100%/margin-left/transform) são zeradas aqui. */
  .how-step__media {
    position: static;
    aspect-ratio: 16 / 10;
  }

  .how-step__num,
  .how-step:nth-child(even) .how-step__num {
    left: 22px;
    top: 28px;
    margin-left: 0;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 0.88rem;
    box-shadow: 0 6px 16px rgba(240, 100, 42, .32), 0 0 0 5px var(--c-gray);
  }
}

@media (max-width: 480px) {
  .how-steps__list {
    gap: 2.25rem;
  }

  .how-step__body p {
    max-width: none;
  }
}

/* ══ 3c. FAIXA CTA — destaque laranja full-bleed ══
   Faixa de conversão logo após o "Como funciona": fundo laranja da marca,
   bolhas de biogás subindo (mesmo motivo do hero, recoloridas em branco)
   e um botão branco que inverte para contorno no hover. */
.cta-band {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 130% at 50% -30%, rgba(255, 255, 255, .22), transparent 60%),
    linear-gradient(135deg, var(--c-orange) 0%, var(--c-orange-hover) 100%);
}

/* Scrim inferior sutil — assenta a faixa contra a seção navy seguinte. */
.cta-band::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(14, 35, 64, .18));
  pointer-events: none;
}

/* Bolhas herdam a animação do hero; só recoloridas para o fundo laranja. */
.cta-band__bubbles .bubble {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
}

.cta-band__inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.76rem, 3.52vw, 2.86rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 720px;
}

/* Destaque em navy — único tom escuro da marca, contrasta forte no laranja. */
.cta-band__title em {
  font-style: normal;
  color: var(--c-navy);
}

.cta-band__btn {
  margin-top: .7rem;
  background: #fff;
  color: var(--c-orange);
  border: 1.5px solid #fff;
}

.cta-band__btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(14, 35, 64, .28);
}

/* ══ 4. A ENERMAC ══ */
.about {
  background: var(--c-navy);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 95, 168, .1) 0%, transparent 62%);
  pointer-events: none;
}

.about .section-head h2 {
  color: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: .95fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about__text {
  color: rgba(255, 255, 255, .58);
  line-height: 1.8;
  max-width: 700px;
  font-size: 1.012rem;
}

.about__photo {
  position: relative;
}

.about__watermark {
  position: absolute;
  top: -32%;
  right: -38%;
  width: 145%;
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}

.about__photo-mask {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-deep);
}

.about__photo-mask img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

/* Estatísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background var(--dur-small), border-color var(--dur-small);
}

.stat-card:hover {
  background: rgba(240, 100, 42, .06);
  border-color: rgba(240, 100, 42, .22);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.85vw, 3.52rem);
  font-weight: 800;
  color: var(--c-orange);
  line-height: 1;
  margin-bottom: .38rem;
  white-space: nowrap;
}

/* Sufixo ("+", "anos") — proporcional ao número via em, nunca no
   mesmo peso visual do dígito principal. */
.stat-card__suffix {
  font-size: .42em;
  font-weight: 700;
  margin-left: .1em;
}

.stat-card__label {
  font-size: 0.715rem;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .28rem;
}

.stat-card__desc {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, .5);
  line-height: 1.48;
}

/* ══ 5. CASES ══ */
.cases {
  background: var(--c-navy);
  padding: 3rem 0;
  position: relative;
}

.cases > .container {
  position: relative;
  z-index: 1;
}

.cases .section-head h2 {
  color: #fff;
  font-size: clamp(1.65rem, 2.53vw, 2.255rem);
}

.cases-panel-wrap {
  margin-bottom: .5rem;
}

.cases-panel {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, .5),
    0 18px 40px rgba(0, 0, 0, .25);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  padding: clamp(1.1rem, 4vw, 2rem);
}

/* Rodapé do painel — mantém o CTA "dentro" do card em vez de flutuar
   solto sobre o fundo navy da seção. */
.cases-panel__footer {
  display: flex;
  justify-content: center;
  padding: 1.5rem clamp(1.1rem, 4vw, 2rem) clamp(1.1rem, 4vw, 2rem);
  border-top: 1px solid rgba(13, 30, 50, .08);
}

.case-card {
  background: var(--c-gray);
  border: 1px solid rgba(13, 30, 50, .06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur-small) var(--ease-out),
              box-shadow var(--dur-small) var(--ease-out);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(13, 30, 50, .12);
}

.case-card__img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}

.case-card__body {
  padding: 1.1rem 1.5rem 1.3rem;
}

.case-card__place {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: 0.792rem;
  font-weight: 700;
  color: var(--c-orange);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .45rem;
}

.case-card__place .icon {
  width: 13px;
  height: 13px;
}

.case-card__body h3 {
  font-size: 1.21rem;
  font-weight: 800;
  color: var(--c-ink);
  margin-bottom: .5rem;
}

.case-card__body p {
  font-size: 0.935rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
  margin-bottom: 1.15rem;
}

.case-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 30, 50, .08);
}

.case-stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.case-stat__label {
  font-size: 0.748rem;
  color: var(--c-ink-soft);
}

.case-stat__value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-navy);
}

/* ══ RESPONSIVO (seções) ══ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photo {
    order: -1;
    max-width: 420px;
    margin: 0 auto 1rem;
  }
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }
}

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
