/* =====================================================================
   CARROSSEL HERO VERDEJAR (carrossel.css)
   ---------------------------------------------------------------------
   Como usar:
   1. Envie este arquivo para assets/css/carrossel.css (Gerenciador de
      Arquivos da Hostinger).
   2. No <head> do index.html, DEPOIS dos CSS existentes, adicione:
        <link rel="stylesheet" href="assets/css/carrossel.css">
   3. Todas as classes usam o prefixo "vj-hero" e as variáveis usam
      "--vj-hero-", então nada colide com tokens.css, base.css etc.
   4. Para trocar cores ou fontes, ajuste só as variáveis do :root abaixo.
   5. O menu do site deve ficar POR CIMA do hero (veja o bloco opcional
      "MENU SOBRE O HERO" no fim deste arquivo).
   ===================================================================== */

:root {
  /* Paleta Verdejar */
  --vj-hero-creme: #f5efe1;
  --vj-hero-bege: #e8dcc2;
  --vj-hero-oliva: #5f6f32;
  --vj-hero-oliva-escuro: #2f3818;
  --vj-hero-mostarda: #d9a62a;
  --vj-hero-laranja: #e2772b;
  --vj-hero-laranja-hover: #c9631c;
  --vj-hero-tinta: #191d10;
  --vj-hero-branco: #ffffff;

  /* Tipografia (o corpo herda a fonte do site) */
  --vj-hero-fonte-titulo: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
  --vj-hero-fonte-corpo: inherit;

  /* Medidas */
  --vj-hero-altura: 100svh;
  --vj-hero-altura-mobile: 85svh;
  --vj-hero-gutter: clamp(16px, 5vw, 72px);
  --vj-hero-topo: 96px; /* espaço reservado para o menu */
}

/* ---------- Estrutura ---------- */
.vj-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;               /* navegadores antigos */
  height: var(--vj-hero-altura);
  min-height: 560px;
  overflow: hidden;
  background: var(--vj-hero-oliva-escuro);
  color: var(--vj-hero-branco);
  font-family: var(--vj-hero-fonte-corpo);
  touch-action: pan-y;         /* permite rolar a página na vertical, swipe na horizontal fica com o JS */
  -webkit-tap-highlight-color: transparent;
}

.vj-hero *,
.vj-hero *::before,
.vj-hero *::after { box-sizing: border-box; }

.vj-hero__trilho {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vj-hero__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: hidden;
  opacity: 0;
}
.vj-hero__slide.is-ativo { z-index: 2; visibility: visible; opacity: 1; }
.vj-hero__slide.is-saindo { z-index: 1; visibility: visible; }

/* Sem GSAP (CDN fora do ar): troca com transição simples em CSS */
.vj-hero--sem-gsap .vj-hero__slide { transition: opacity .9s ease, visibility 0s linear .9s; }
.vj-hero--sem-gsap .vj-hero__slide.is-ativo { transition: opacity .9s ease, visibility 0s; }

/* ---------- Imagem + fallback de cor ---------- */
.vj-hero__midia {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--vj-hero-oliva);
  background-image:
    radial-gradient(120% 90% at 80% 10%, rgba(217, 166, 42, .35), transparent 60%),
    linear-gradient(160deg, var(--vj-hero-oliva) 0%, var(--vj-hero-oliva-escuro) 100%);
}
.vj-hero__slide:nth-child(2) .vj-hero__midia { background-color: #3f5a2c; }
.vj-hero__slide:nth-child(3) .vj-hero__midia { background-color: #6b6a2c; }
.vj-hero__slide:nth-child(4) .vj-hero__midia { background-color: #4e5d2a; }
.vj-hero__slide:nth-child(5) .vj-hero__midia { background-color: #5a5236; }

.vj-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.vj-hero__img.is-falhou { display: none; }

/* Gradientes de leitura: topo (menu) e base/esquerda (texto) */
.vj-hero__veu {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 17, 8, .55) 0%, rgba(14, 17, 8, 0) 24%),
    linear-gradient(0deg, rgba(14, 17, 8, .78) 0%, rgba(14, 17, 8, .25) 45%, rgba(14, 17, 8, 0) 70%),
    linear-gradient(90deg, rgba(14, 17, 8, .45) 0%, rgba(14, 17, 8, 0) 60%);
}

/* ---------- Texto ---------- */
.vj-hero__conteudo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(120px, 17vh, 168px);
  padding: 0 var(--vj-hero-gutter);
  max-width: 980px;
}

.vj-hero__marca {
  position: absolute;
  z-index: 4;
  left: var(--vj-hero-gutter);
  top: calc(var(--vj-hero-topo) + 8px);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--vj-hero-fonte-titulo);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--vj-hero-creme);
  opacity: .92;
}
.vj-hero__marca::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--vj-hero-mostarda);
}

.vj-hero__etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(245, 239, 225, .14);
  border: 1px solid rgba(245, 239, 225, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vj-hero-creme);
}
.vj-hero__etiqueta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vj-hero-mostarda);
}

.vj-hero__titulo {
  margin: 0 0 18px;
  font-family: var(--vj-hero-fonte-titulo);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--vj-hero-branco);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
/* palavras criadas pelo JS para a entrada em camadas */
.vj-hero__palavra {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}
.vj-hero__palavra-in { display: inline-block; will-change: transform; }
.vj-hero__titulo em {
  font-style: normal;
  color: var(--vj-hero-mostarda);
}

.vj-hero__apoio {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

.vj-hero__botao {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--vj-hero-laranja);
  color: var(--vj-hero-branco);
  font-family: var(--vj-hero-fonte-titulo);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(226, 119, 43, .7);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.vj-hero__botao svg { width: 18px; height: 18px; transition: transform .25s ease; }
.vj-hero__botao:hover { background: var(--vj-hero-laranja-hover); transform: translateY(-2px); }
.vj-hero__botao:hover svg { transform: translateX(4px); }

/* ---------- Controles ---------- */
.vj-hero__controles {
  position: absolute;
  z-index: 5;
  left: var(--vj-hero-gutter);
  right: var(--vj-hero-gutter);
  bottom: clamp(28px, 5vh, 48px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.vj-hero__indicadores {
  display: flex;
  flex: 1 1 auto;
  gap: clamp(8px, 1.4vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.vj-hero__indicadores li { flex: 1 1 0; min-width: 0; }

.vj-hero__indicador {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 0 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .62);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vj-hero__indicador-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--vj-hero-fonte-titulo);
  font-size: 13px;
  letter-spacing: .14em;
  transition: color .3s ease;
}
.vj-hero__indicador-rotulo {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vj-hero__barra {
  position: relative;
  display: block;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .28);
}
.vj-hero__barra-fill {
  position: absolute;
  inset: 0;
  background: var(--vj-hero-mostarda);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.vj-hero__indicador:hover,
.vj-hero__indicador[aria-current="true"] { color: var(--vj-hero-branco); }
.vj-hero__indicador.is-visto .vj-hero__barra-fill { transform: scaleX(1); background: rgba(255, 255, 255, .55); }

.vj-hero__acoes { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.vj-hero__btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(20, 24, 12, .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--vj-hero-branco);
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.vj-hero__btn svg { width: 20px; height: 20px; }
.vj-hero__btn:hover { background: var(--vj-hero-creme); border-color: var(--vj-hero-creme); color: var(--vj-hero-oliva-escuro); }
.vj-hero__btn .vj-hero__icone-play { display: none; }
.vj-hero.is-pausado-usuario .vj-hero__icone-pause { display: none; }
.vj-hero.is-pausado-usuario .vj-hero__icone-play { display: block; }

.vj-hero__contador {
  margin-right: 6px;
  font-family: var(--vj-hero-fonte-titulo);
  font-size: 14px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .8);
  font-variant-numeric: tabular-nums;
}
.vj-hero__contador strong { color: var(--vj-hero-branco); font-weight: 500; }

/* Foco visível em todos os controles */
.vj-hero a:focus-visible,
.vj-hero button:focus-visible {
  outline: 3px solid var(--vj-hero-mostarda);
  outline-offset: 3px;
}

.vj-hero__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.vj-hero.is-arrastando { cursor: grabbing; }
.vj-hero.is-arrastando .vj-hero__img { transition: none; }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .vj-hero {
    height: 85vh;
    height: var(--vj-hero-altura-mobile);
    min-height: 540px;
  }
  .vj-hero__veu {
    background:
      linear-gradient(180deg, rgba(14, 17, 8, .6) 0%, rgba(14, 17, 8, 0) 26%),
      linear-gradient(0deg, rgba(14, 17, 8, .88) 0%, rgba(14, 17, 8, .45) 50%, rgba(14, 17, 8, 0) 78%);
  }
  .vj-hero__marca { top: calc(var(--vj-hero-topo) - 16px); font-size: 11px; }
  .vj-hero__conteudo { bottom: 100px; }
  .vj-hero__etiqueta { margin-bottom: 14px; font-size: 11px; }
  .vj-hero__titulo { font-size: clamp(32px, 9.6vw, 48px); margin-bottom: 14px; }
  .vj-hero__apoio { font-size: 15px; margin-bottom: 22px; }
  .vj-hero__botao { min-height: 48px; padding: 12px 22px; font-size: 14px; }
  .vj-hero__indicador-rotulo, .vj-hero__indicador-num, .vj-hero__contador, .vj-hero__seta { display: none; }
  .vj-hero__controles { bottom: 26px; }
  .vj-hero__indicador { padding-top: 20px; }
}

@media (max-width: 760px) and (max-height: 640px) {
  .vj-hero__apoio { display: none; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .vj-hero__slide,
  .vj-hero--sem-gsap .vj-hero__slide,
  .vj-hero--sem-gsap .vj-hero__slide.is-ativo,
  .vj-hero__botao,
  .vj-hero__botao svg { transition: none !important; }
  .vj-hero__img { transform: none !important; }
}

/* =====================================================================
   MENU SOBRE O HERO (opcional)
   Se o menu atual do site ocupa espaço acima do hero, faça-o flutuar por
   cima. Troque ".site-header" pelo seletor real do cabeçalho do site:

   .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; background: transparent; }
   .site-header a { color: #fff; }
   ===================================================================== */

/* ===== Harmonia com a identidade do site + tipografia contida ===== */
:root{--vj-hero-creme:var(--verdejar-offwhite);--vj-hero-mostarda:var(--verdejar-limao);--vj-hero-laranja:var(--verdejar-laranja);--vj-hero-laranja-hover:var(--laranja-escuro);--vj-hero-fonte-titulo:var(--font-titulo);--vj-hero-fonte-corpo:var(--font-corpo);--vj-hero-gutter:max(var(--gutter),calc((100vw - var(--largura-max))/2 + var(--gutter)))}
.vj-hero__veu{background:linear-gradient(180deg,rgba(10,12,8,.45) 0%,rgba(10,12,8,0) 22%),linear-gradient(0deg,rgba(10,12,8,.74) 0%,rgba(10,12,8,.28) 42%,rgba(10,12,8,0) 66%),linear-gradient(90deg,rgba(10,12,8,.5) 0%,rgba(10,12,8,.12) 45%,rgba(10,12,8,0) 65%)}
.vj-hero__marca{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.vj-hero__conteudo{max-width:none;bottom:clamp(128px,19vh,176px)}
.vj-hero__etiqueta{gap:10px;margin:0 0 18px;padding:7px 15px 7px 12px;font-family:var(--font-corpo);font-size:12px;font-weight:600;letter-spacing:.12em;color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3)}
.vj-hero__etiqueta::before{content:none}
.vj-hero__cap{color:var(--verdejar-limao);padding-right:10px;border-right:1px solid rgba(255,255,255,.35)}
.vj-hero__titulo{max-width:16ch;margin:0 0 18px;font-family:var(--font-titulo);font-weight:600;text-transform:uppercase;font-size:clamp(2.4rem,4.6vw,4.2rem);line-height:1.08;letter-spacing:.01em;color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.35)}
.vj-hero__palavra{padding:.12em .04em .16em;margin:-.12em -.04em -.16em}
.vj-hero__titulo em{color:var(--verdejar-limao)}
.vj-hero__apoio{max-width:40ch;margin:0 0 26px;font-size:clamp(16px,1.3vw,18.5px);line-height:1.55;color:rgba(255,255,255,.94);text-shadow:0 1px 12px rgba(0,0,0,.35)}
.vj-hero__botao{min-height:0;padding:13px 24px;gap:10px;font-family:var(--font-corpo);font-weight:600;font-size:14px;letter-spacing:.08em;box-shadow:0 10px 28px -12px rgba(0,0,0,.5)}
.vj-hero__botao svg{width:15px;height:15px}
.vj-hero__onda{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:clamp(24px,3.4vw,48px);z-index:3;fill:var(--creme-papel);pointer-events:none}
.vj-hero__controles{bottom:clamp(48px,7vh,72px)}
.vj-hero__indicador{min-height:36px;padding-top:6px}
.vj-hero__indicador-num{font-family:var(--font-corpo);font-size:11px;margin-bottom:6px}
.vj-hero__indicador-rotulo{font-size:10px;letter-spacing:.1em;margin-top:6px}
.vj-hero__barra{height:2px}
.vj-hero__btn{width:40px;height:40px;border-color:rgba(255,255,255,.35);background:rgba(0,0,0,.18)}
.vj-hero__btn svg{width:17px;height:17px}
.vj-hero__contador{font-family:var(--font-corpo);font-size:12px}
.cabecalho:not(.cabecalho--rolado) .menu__link,.cabecalho:not(.cabecalho--rolado) .cabecalho__marca-texto,.cabecalho:not(.cabecalho--rolado) .cabecalho__marca-texto *{color:#fff}
.cabecalho:not(.cabecalho--rolado) .menu__botao-mobile{color:#fff}
@media (max-width:900px){.vj-hero__indicador-rotulo,.vj-hero__indicador-num,.vj-hero__contador,.vj-hero__seta{display:none}}
@media (max-width:760px){.vj-hero__conteudo{bottom:112px}.vj-hero__controles{bottom:54px}.vj-hero__titulo{font-size:clamp(1.9rem,8.2vw,2.5rem);max-width:14ch}.vj-hero__apoio{font-size:14.5px;max-width:30ch;margin-bottom:18px}.vj-hero__etiqueta{font-size:11px;letter-spacing:.14em}}
@media (max-width:760px) and (max-height:700px){.vj-hero__apoio{display:none}}
