/* =========================================================
   home.css
   Tela inicial — hero em tela cheia + navegação flutuante
   ========================================================= */

.home-shell {
  position: relative;
  width: 100vw;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background: #0d151b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border-radius: 0;
}

/* Área do hero: ocupa 100% da tela */
.home-hero {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Fundo atmosférico que preenche 100% da tela em widescreen sem deixar faixas azuis */
.home-hero__backdrop {
  position: absolute;
  inset: -30px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.home-hero__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: blur(32px) brightness(0.65) saturate(1.2);
  transform: scale(1.15);
}

/* Imagem principal do hero */
.home-hero__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  max-height: 100%;
  max-width: 100%;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
}

/*
  A navegação inferior na Home
*/
.home-shell .bottom-nav {
  position: relative;
  margin-top: -18px;
  z-index: 40;
}

/* Em dispositivos móveis / telas verticais, a imagem preenche 100% em modo cover */
@media (max-aspect-ratio: 1/1), (max-width: 600px) {
  .home-hero__img {
    object-fit: cover;
    object-position: center top;
    filter: none;
  }
  .home-hero__backdrop {
    display: none;
  }
}

/* Em telas médias e largas (desktop/tablet), a barra de navegação flutua elegante e centralizada */
@media (min-width: 601px) {
  .home-shell .bottom-nav {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    margin: 0;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  }
}
