/* ==========================================================
   HOME PAGE — kellyvohs.com
   Hero section and homepage-specific styles.
   ========================================================== */

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* accounts for mobile browser chrome */
  min-height: 600px;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8rem, 20vw, 24rem);
}

.hero__link-row {
  display: contents;
}

.hero__divider {
  color: rgba(245, 245, 240, 0.4);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 300;
}

/* --- Nav over hero: force white text --- */
.nav--hero {
  color: #f5f5f0;
}

.nav--hero .nav__toggle span {
  background: #f5f5f0;
}

.nav--hero .nav__link--active {
  border-bottom-color: #f5f5f0;
}

/* When scrolled, revert to normal theme colors */
.nav--hero.nav--scrolled {
  color: var(--color-fg);
}

.nav--hero.nav--scrolled .nav__toggle span {
  background: var(--color-fg);
}

.nav--hero.nav--scrolled .nav__link--active {
  border-bottom-color: var(--color-fg);
}

@media (max-width: 640px) {
  .nav--hero {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), background var(--duration) var(--ease-out);
  }

  .nav--hero.nav--scrolled {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- Scroll hint chevron --- */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 245, 240, 0.5);
  animation: gentle-bounce 2.5s ease-in-out infinite;
  transition: opacity 0.4s ease, color 0.15s ease;
}

.hero__scroll-hint:hover {
  color: rgba(245, 245, 240, 0.9);
}

.hero__scroll-hint--hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 640px) {
  .hero__scroll-hint {
    bottom: 6rem;
  }
}

/* --- Homepage photo grid section --- */
.home-grid {
  padding: 0;
}
