/* ==========================================================
   HERO ALTERNATIVO (index-alt) — foto de ambiente em tela cheia
   ========================================================== */

.hero2 {
  position: relative; overflow: hidden;
  height: 100svh; min-height: 560px;
  color: #fff;
  background: #2a2118;
}
.hero2__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  animation: hero2-zoom 14s ease-out both;
}
@keyframes hero2-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
/* véu quente para o texto branco ler bem sem "apagar" a foto */
.hero2__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(25, 18, 10, .42) 0%, rgba(25, 18, 10, 0) 26%),
    linear-gradient(0deg, rgba(25, 18, 10, .55) 0%, rgba(25, 18, 10, 0) 38%),
    linear-gradient(270deg, rgba(25, 18, 10, .28) 0%, rgba(25, 18, 10, 0) 55%);
}

.hero2__inner {
  position: relative; z-index: 2; height: 100%;
  max-width: 1440px; margin-inline: auto;
  padding: 0 clamp(20px, 6.5vw, 96px) clamp(28px, 6.5vh, 64px);
  display: grid;
  grid-template-columns: 1.15fr .9fr .95fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(20px, 3vw, 48px);
}

/* título: grande, fino, em caixa alta, à direita (como no modelo) */
.hero2__title {
  grid-column: 2 / 4; grid-row: 1; align-self: center;
  margin: clamp(60px, 9vh, 110px) 0 0;
  font-family: var(--font-d); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 104px); line-height: .94; letter-spacing: -.03em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .18);
  animation: hero2-up 1s cubic-bezier(.2, .7, .2, 1) .2s both;
}

.hero2__lead { grid-column: 1; grid-row: 2; align-self: end; max-width: 380px; animation: hero2-up .9s ease .5s both; }
.hero2__lead p { margin: 0 0 clamp(18px, 3vh, 28px); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; color: rgba(255, 255, 255, .92); }
.hero2__btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1.05em 2.1em;
  background: #f3ead9; color: var(--navy);
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 2px;
  transition: background .3s ease, color .3s ease;
}
.hero2__btn:hover { background: var(--gold); color: var(--navy); }

.hero2__stat { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; display: grid; gap: 6px; animation: hero2-up .9s ease .65s both; }
.hero2__stat b { font-family: var(--font-d); font-weight: 400; font-size: clamp(34px, 3.2vw, 52px); line-height: 1; letter-spacing: -.02em; }
.hero2__stat span { font-size: 12px; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; color: rgba(255, 255, 255, .88); }

.hero2__tag {
  grid-column: 3; grid-row: 2; align-self: end; justify-self: end; margin: 0;
  font-family: var(--font-d); font-weight: 400; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.2;
  letter-spacing: .01em; text-transform: uppercase; color: rgba(255, 255, 255, .95);
  animation: hero2-up .9s ease .8s both;
}
@keyframes hero2-up { from { opacity: 0; translate: 0 22px; } }

/* menu claro sobre a foto (volta ao normal ao rolar) */
.has-hero2:not(.is-scrolled) .nav__links a,
.has-hero2:not(.is-scrolled) .nav__icons a { color: #fff; }
.has-hero2:not(.is-scrolled) .nav__wa { border-color: rgba(255, 255, 255, .8); color: #fff; }
.has-hero2:not(.is-scrolled) .nav__logo img { filter: brightness(0) invert(1); }
.has-hero2:not(.is-scrolled) .burger span { background: #fff; }
.has-hero2:not(.is-scrolled) .nav__links a::after { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero2__bg, .hero2__title, .hero2__lead, .hero2__stat, .hero2__tag { animation: none; }
}

/* ---------- celular / tablet em pé ---------- */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__bg { object-position: 40% 50%; }
  .hero2__shade {
    background:
      linear-gradient(180deg, rgba(25, 18, 10, .5) 0%, rgba(25, 18, 10, .05) 34%),
      linear-gradient(0deg, rgba(25, 18, 10, .7) 0%, rgba(25, 18, 10, 0) 52%);
  }
  .hero2__inner {
    grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto;
    padding: 96px 22px 26px; row-gap: 18px;
  }
  .hero2__title { grid-column: 1 / -1; grid-row: 1; align-self: start; margin: 0; font-size: clamp(40px, 12vw, 64px); }
  .hero2__tag { display: none; }
  .hero2__lead { grid-column: 1 / -1; grid-row: 3; max-width: none; }
  .hero2__lead p { font-size: 15px; margin-bottom: 16px; }
  .hero2__btn { width: 100%; justify-content: center; }
  .hero2__stat { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; text-align: right; }
  .hero2__stat span { font-size: 11px; }
}

/* ---------- fundo com 3 fotos alternando (transição suave + zoom lento) ---------- */
.hero2__bgs { position: absolute; inset: 0; }
.hero2__bgs .hero2__bg { opacity: 0; transition: opacity 1.6s ease; animation: none; transform: scale(1.06); }
.hero2__bgs .hero2__bg.is-on { opacity: 1; animation: hero2-zoom 9s ease-out both; }

/* título um pouco mais alto e mais à direita */
.hero2__title { grid-column: 2 / 4; justify-self: end; align-self: start; margin-top: clamp(110px, 20vh, 200px); text-align: left; }
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__title { justify-self: start; margin-top: 0; }
  .hero2__bgs .hero2__bg:nth-child(1) { object-position: 22% 50%; }
  .hero2__bgs .hero2__bg:nth-child(2) { object-position: 50% 50%; }
  .hero2__bgs .hero2__bg:nth-child(3) { object-position: 50% 50%; }
}
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__title { grid-column: 1 / -1; }
  .hero2__bgs .hero2__bg:nth-child(1) { object-position: 14% 50%; }
}
/* textos da direita alinhados pela margem direita */
.hero2__title, .hero2__tag { text-align: right; }
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) { .hero2__title { text-align: left; } }
/* celular usa fotos verticais próprias: enquadramento central */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__bgs .hero2__bg:nth-child(n) { object-position: 50% 50%; }
  .hero2__bgs picture:nth-child(1) .hero2__bg { object-position: 40% 60%; }
}
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) { .hero2__bgs picture:nth-child(1) .hero2__bg { object-position: 8% 55%; } }

/* ==========================================================
   v2 — transição sem "salto", leitura garantida, tipografia
   ========================================================== */

/* transição: a foto que sai continua parada onde estava enquanto esmaece;
   a que entra já começa visível e vai se aproximando bem devagar (sem reiniciar o zoom) */
.hero2__bgs .hero2__bg {
  animation: none;
  transform: scale(1.08);
  transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1), transform 0s linear 2.3s;
  will-change: opacity, transform;
}
.hero2__bgs .hero2__bg.is-on {
  transform: scale(1);
  transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1), transform 9s cubic-bezier(.25, .1, .25, 1);
}
.hero2__bgs .hero2__bg.is-off { transform: scale(1); transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1); }

/* leitura: véu um pouco mais presente só onde há texto (topo, base e direita) */
.hero2__shade {
  background:
    linear-gradient(180deg, rgba(20, 14, 8, .5) 0%, rgba(20, 14, 8, .12) 18%, rgba(20, 14, 8, 0) 30%),
    linear-gradient(0deg, rgba(20, 14, 8, .62) 0%, rgba(20, 14, 8, .2) 24%, rgba(20, 14, 8, 0) 42%),
    radial-gradient(70% 60% at 82% 34%, rgba(20, 14, 8, .32) 0%, rgba(20, 14, 8, 0) 70%);
}
/* sombras difusas (quase invisíveis, só separam o texto do fundo) */
.hero2__title { text-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 34px rgba(0, 0, 0, .28); }
.hero2__lead p, .hero2__stat, .hero2__tag { text-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 18px rgba(0, 0, 0, .3); }
.hero2__btn { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.has-hero2:not(.is-scrolled) .nav__links a,
.has-hero2:not(.is-scrolled) .nav__icons a { text-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 14px rgba(0, 0, 0, .3); }
.has-hero2:not(.is-scrolled) .nav__logo img,
.has-hero2:not(.is-scrolled) .nav__icons svg { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.has-hero2:not(.is-scrolled) .nav__wa { background: rgba(20, 14, 8, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* título: mais leve e com entrelinha que não encosta cedilha em acento */
.hero2__title { font-weight: 300; line-height: 1.08; letter-spacing: -.02em; font-size: clamp(44px, 6vw, 96px); }

/* frase da direita: assinatura discreta, com filete dourado */
.hero2__tag {
  font-weight: 400; font-size: clamp(13px, 1vw, 15px); line-height: 1.55; letter-spacing: .2em;
  padding-top: 14px; border-top: 1px solid rgba(217, 164, 65, .8);
}
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__title { line-height: 1.1; font-size: clamp(38px, 11vw, 58px); }
}
@media (prefers-reduced-motion: reduce) { .hero2__bgs .hero2__bg { transition: opacity .01s; transform: none !important; } }

/* ---------- v3: margens iguais às do menu + variações do título para validar ---------- */
/* mesmas margens do menu: o texto da esquerda alinha com a logo e o da direita com o "Fale conosco" */
.hero2__inner { max-width: none; padding-inline: 5vw; }
/* entrelinha que não deixa a cedilha (Ç) encostar no acento (Ê) da linha de baixo */
.hero2__title { line-height: 1.2; }

/* A (padrão): fino, encostado na margem do "Fale conosco" */
.hero2__title { font-size: clamp(46px, 6.4vw, 104px); margin-top: clamp(100px, 17vh, 180px); }
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__inner { padding-inline: 22px; }
  .hero2__title { font-size: clamp(38px, 11vw, 58px); line-height: 1.18; margin-top: 0; }
}

/* conteúdo do hero entre o início da logo e o fim do "Fale conosco";
   o script mede o menu e preenche --hero-l / --hero-r */
@media (min-width: 821px) and (min-aspect-ratio: 1/1), (min-width: 1101px) {
  .hero2__inner { padding-left: var(--hero-l, 5vw); padding-right: var(--hero-r, 5vw); }
}
/* fotos verticais novas já vêm enquadradas: centro */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__bgs picture:nth-child(n) .hero2__bg { object-position: 50% 50%; }
}
@media (min-width: 821px) and (min-aspect-ratio: 1/1), (min-width: 1101px) { .hero2__title { grid-column: 1 / 4; justify-self: end; } }
/* celular: título alinhado à direita e texto de apoio centralizado */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__title { text-align: right; justify-self: end; }
  .hero2__lead { text-align: center; }
}
/* celular: título centralizado (eixo único com o texto e o botão) */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__title { text-align: center; justify-self: center; }
}
/* celular: "+100" centralizado acima do texto, com filete dourado */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__stat { grid-column: 1 / -1; justify-self: center; text-align: center; justify-items: center; }
  .hero2__stat::after { content: ""; width: 44px; height: 1px; margin-top: 10px; background: rgba(217, 164, 65, .9); }
}
/* telas muito largas (ultrawide 21:9): zoom da animação bem mais sutil, para não ampliar demais a foto */
@media (min-aspect-ratio: 2/1) {
  .hero2__bgs .hero2__bg { transform: scale(1.03); }
  .hero2__bgs .hero2__bg.is-on { transform: scale(1); }
  .hero2__bgs .hero2__bg { object-position: 50% 45%; }
}
.hero2__bgs .hero2__bg.is-on { animation: none; }  /* o zoom é feito só pela transição (sem a animação antiga por cima) */

/* ==========================================================
   v4 — identidade da marca no hero: azul-marinho no véu, dourado nos detalhes
   ========================================================== */
.hero2__shade {
  background:
    linear-gradient(180deg, rgba(18, 23, 58, .55) 0%, rgba(18, 23, 58, .14) 18%, rgba(18, 23, 58, 0) 30%),
    linear-gradient(0deg, rgba(18, 23, 58, .78) 0%, rgba(18, 23, 58, .3) 26%, rgba(18, 23, 58, 0) 46%),
    radial-gradient(70% 60% at 82% 34%, rgba(18, 23, 58, .3) 0%, rgba(18, 23, 58, 0) 70%);
}
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__shade {
    background:
      linear-gradient(180deg, rgba(18, 23, 58, .6) 0%, rgba(18, 23, 58, .1) 32%),
      linear-gradient(0deg, rgba(18, 23, 58, .85) 0%, rgba(18, 23, 58, .25) 40%, rgba(18, 23, 58, 0) 56%);
  }
}
/* botão dourado */
.hero2__btn { background: linear-gradient(135deg, #f0d080, #d9a441 60%, #c98f35); color: var(--navy); }
.hero2__btn:hover { background: #fff; color: var(--navy); }
/* "+100" em dourado, como na faixa de números */
.hero2__stat b { color: var(--gold); }
/* filete da frase da direita mais visível */
.hero2__tag { border-top-color: var(--gold); border-top-width: 1.5px; }
/* base do hero: textos um pouco maiores para leitura confortável */
.hero2__lead p { font-size: clamp(16px, 1.3vw, 19px); }
.hero2__btn { font-size: 14px; }
.hero2__stat span { font-size: 13px; letter-spacing: .09em; }
.hero2__tag { font-size: clamp(14px, 1.1vw, 16px); }
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__lead p { font-size: 16px; }
  .hero2__stat span { font-size: 12.5px; }
}

/* sem o degradê azul: véu neutro e leve, só para leitura (as sombras dos textos fazem o resto) */
.hero2__shade {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .38) 0%, rgba(10, 10, 10, .08) 18%, rgba(10, 10, 10, 0) 30%),
    linear-gradient(0deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, .12) 24%, rgba(10, 10, 10, 0) 40%),
    radial-gradient(70% 60% at 82% 34%, rgba(10, 10, 10, .18) 0%, rgba(10, 10, 10, 0) 70%);
}
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__shade {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, .42) 0%, rgba(10, 10, 10, .06) 32%),
      linear-gradient(0deg, rgba(10, 10, 10, .6) 0%, rgba(10, 10, 10, .15) 40%, rgba(10, 10, 10, 0) 56%);
  }
}
/* celular: enquadramento que centraliza a peça na tela (a foto é mais larga que o celular, então dá para deslocar) */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__bgs picture:nth-child(1) .hero2__bg { object-position: 10% 50%; }   /* balanço */
  .hero2__bgs picture:nth-child(2) .hero2__bg { object-position: 0% 50%; }    /* chaise + mesa */
}
/* fotos verticais novas do balanço e da chaise já vêm centralizadas */
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__bgs picture:nth-child(1) .hero2__bg,
  .hero2__bgs picture:nth-child(2) .hero2__bg { object-position: 50% 50%; }
}
/* zoom contínuo até a troca: dura o tempo da foto na tela (6s) + o esmaecimento (2,2s),
   em ritmo constante — antes ele desacelerava e "parava" alguns segundos antes de trocar */
.hero2__bgs .hero2__bg.is-on {
  transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1), transform 8.4s linear;
}

/* ---------- v4: titulo sempre em 2 linhas ---------- */
/* o titulo quebra exatamente em 2 linhas, em qualquer largura */
.hero2__line { display: block; white-space: nowrap; }
.hero2__title { text-wrap: balance; }
/* linha mais longa ("Espacos que tem") cabe na largura disponivel */
@media (min-width: 821px) and (min-aspect-ratio: 1/1), (min-width: 1101px) {
  .hero2__title { font-size: clamp(40px, 5.6vw, 96px); }
}
@media (max-width: 820px), (max-width: 1100px) and (max-aspect-ratio: 1/1) {
  .hero2__title { font-size: min(9.4vw, 54px); line-height: 1.16; }
}
