/* ==========================================================================
   Topo da página inicial. No computador, o vídeo ocupa o fundo à direita,
   com uma sombra gradual à esquerda para preservar a leitura do texto.
   ========================================================================== */

.hero-full {
  position: relative;
  margin-top: calc(var(--topo) * -1);
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.hero-conteudo {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-top: var(--topo);
}
.hero-texto { max-width: 780px; }
.hero-texto .display { margin-bottom: 26px; }
.hero-texto .lead { margin-bottom: 34px; color: rgba(243, 241, 236, 0.78); }

.hero-peca {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 3;
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.8);
}
.hero-peca .cat { font-size: var(--t-s); color: var(--ouro); }
.hero-peca .nome { font-size: var(--t-l); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 8px; }
.hero-peca .link-seta { font-size: var(--t-s); }

.hero-rolar {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--t-s);
  color: var(--texto-2);
}
.hero-rolar i {
  position: relative;
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.hero-rolar i::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--ouro);
  animation: rolar 2.4s var(--curva) infinite;
}
@keyframes rolar { to { top: 100%; } }

/* Entrada orquestrada: a foto acende do preto, depois o texto sobe */
.hero-entra-midia { animation: acende 2.2s var(--curva) both; }
@keyframes acende { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
.hero-entra { animation: sobe 1.1s var(--curva) both; animation-delay: 0.55s; }
.hero-entra.d2 { animation-delay: 0.7s; }
.hero-entra.d3 { animation-delay: 0.85s; }
.hero-entra.d4 { animation-delay: 1.2s; }

.heroC-veu {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.05) 70%),
    radial-gradient(ellipse 80% 70% at 72% 52%, transparent 40%, rgba(0, 0, 0, 0.45));
}
/* Opção C em tela cheia: o vídeo é o fundo inteiro */
.heroC-tela { position: absolute; inset: 0; z-index: 0; background: #000; }
.heroC-tela video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-home .heroC-tela video {
  width: min(88vw, 1400px);
  margin-left: auto;
  object-fit: contain;
  transform: translateY(5vh);
}
.hero-home[data-clip="abelha"] .heroC-tela video { width: min(78vw, 1220px); }
.hero-home .heroC-tela::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, #000 0%, rgba(0, 0, 0, 0.85) 15%, transparent 45%),
    linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 16%, transparent 38%, transparent 75%, #000 100%);
}
.heroC--cheio .heroC-veu {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 20%);
}
@media (min-width: 981px) {
  .hero-home::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 49%;
    right: -6%;
    translate: 0 -50%;
    width: min(72vw, 1050px);
    height: min(72vh, 680px);
    background: url("../img/logo-bryan-do-ouro.png") center / contain no-repeat;
    opacity: .12;
    pointer-events: none;
  }
  .hero-home .hero-conteudo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 88px);
  }
  .hero-home .hero-texto { max-width: 650px; }
  .hero-home .hero-texto .display { font-size: clamp(3.25rem, 4.25vw, 4.8rem); }
  .hero-home .heroC-tela {
    inset: 0;
    translate: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  .hero-home .heroC-tela video,
  .hero-home[data-clip="abelha"] .heroC-tela video {
    position: absolute;
    inset: 0 auto 0 16%;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
  }
  .hero-home .heroC-tela::after {
    display: block;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .58), transparent 25%, transparent 66%, rgba(0, 0, 0, .62));
  }
  .hero-home.heroC--cheio .heroC-veu {
    background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .98) 18%, rgba(0, 0, 0, .92) 37%, rgba(0, 0, 0, .65) 53%, rgba(0, 0, 0, .14) 76%, rgba(0, 0, 0, .06) 100%);
  }
  .hero-home .hero-peca {
    top: auto;
    bottom: clamp(28px, 5vh, 56px);
  }
}
@media (max-width: 760px) {
  .heroC-tela { bottom: auto; height: 68%; }
  .heroC-tela video { object-position: 50% 45%; }
  .hero-home .heroC-tela video {
    width: 100%;
    margin-left: 0;
    object-fit: cover;
    object-position: 50% 38%;
    transform: none;
  }
  .hero-home[data-clip="abelha"] .heroC-tela video { width: 100%; }
  .hero-home .heroC-tela::after { background: none; }
  .heroC--cheio .heroC-veu {
    background:
      linear-gradient(to top, #000 0%, #000 32%, rgba(0, 0, 0, 0.5) 44%, rgba(0, 0, 0, 0) 58%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 20%);
  }
}

@media (max-width: 760px) {
  .hero-full { min-height: 600px; max-height: none; }
  .hero-conteudo {
    grid-template-columns: 1fr;
    align-items: end;
    padding-bottom: 92px;
  }
  .hero-texto .display { font-size: clamp(2.75rem, 12.5vw, 3.75rem); margin-bottom: 16px; }
  .hero-texto .lead { font-size: 0.9375rem; margin-bottom: 22px; }
  .hero-texto .acoes { flex-wrap: nowrap; gap: 8px; }
  .hero-texto .acoes .btn { flex: 1 1 auto; min-height: 48px; padding: 0 14px; font-size: 0.875rem; gap: 8px; }
  .hero-texto .acoes .btn-seta { width: 26px; height: 26px; margin-right: -8px; }
  .hero-peca {
    top: calc(var(--topo) + 12px);
    bottom: auto;
    right: var(--gutter);
  }
  .hero-peca .nome { font-size: var(--t-m); margin-bottom: 4px; }
  .hero-rolar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rolar i::after { animation: none !important; }
}

/* Notebooks com a janela mais baixa (até 800 px úteis): etapas do "Sob encomenda" mais justas */
@media (min-width: 981px) and (max-height: 800px) {
  .encomenda .lead { margin: 12px 0 14px; }
  .encomenda .passos li { padding: 7px 0; }
}

/* ==========================================================================
   Páginas de categoria: o mesmo vídeo da bancada como fundo do topo
   (título, texto e atalhos da categoria por cima; produtos logo abaixo).
   ========================================================================== */

.cat-hero--video {
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(36px, 6vh, 64px);
}
.cat-hero--video > .container { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; }
.cat-hero--video .cat-hero-grid { grid-template-columns: minmax(0, 1fr); margin-top: auto; }
.cat-hero--video .cat-hero-grid > div { max-width: 780px; }
.cat-hero--video .lead { color: rgba(243, 241, 236, 0.8); }
.cat-hero--video .cat-meta { color: rgba(243, 241, 236, 0.75); }
.cat-hero--video .heroC-tela { z-index: 0; }
/* "Role para ver" alinhado à direita do conteúdo, para não encostar no texto do topo */
.cat-hero--video .hero-rolar { left: auto; right: max(var(--gutter), calc((100% - var(--largura)) / 2)); }
.cat-hero-veu {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.18) 62%, rgba(0, 0, 0, 0.05) 80%),
    linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 22%);
}

@media (max-width: 760px) {
  .cat-hero--video { min-height: 100vh; min-height: 100svh; }
  .cat-hero--video .heroC-tela { bottom: 0; height: auto; }
  .cat-hero--video .heroC-tela video { object-position: 50% 40%; }
  .cat-hero-veu {
    background:
      linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.72) 40%, rgba(0, 0, 0, 0.15) 70%),
      linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%);
  }
}
