/* =========================================================
   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;
}
.entry-panel {
  position: fixed;
  z-index: 40;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(230,205,155,.45);
  background: rgba(17,28,36,.93);
  box-shadow: 0 12px 40px #0005;
  color: white;
  text-align: center;
}
.entry-eyebrow { color: var(--gold-light); font-size: 10px; letter-spacing: .16em; margin-bottom: 14px; }
.entry-button { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 12px 16px; background: #faf8f3; color: var(--color-ink); text-align: left; font-weight: 600; transition: background .2s, transform .2s; }
.entry-button img { width: 48px; height: 48px; border-radius: 50%; }
.entry-button span:nth-child(2) { flex: 1; }
.entry-button small { display: block; font-size: 12px; font-weight: 400; color: var(--color-slate); margin-top: 4px; }
.entry-button:hover { background: #f3e6cb; transform: translateY(-2px); }
.entry-button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.entry-hint { font-size: 11px; line-height: 1.6; color: #dce2e6; margin-top: 12px; }
@media (max-height: 550px) { .entry-panel { padding: 12px; bottom: 10px; } .entry-eyebrow, .entry-hint { display: none; } }

/* Á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);
  }
}
