/* ==========================================================================
   HERRE STUDIO — LAYOUT.CSS  v2
   01. Section Base   02. Home / Hero   03. Carousel
   04. About Section (mobile only)
   ========================================================================== */


/* --------------------------------------------------------------------------
   01. SECTION BASE
   Uses dvh with vh fallback for dynamic mobile viewport support
   -------------------------------------------------------------------------- */
.section {
  min-height: 100vh;         /* fallback for older browsers */
  min-height: 100svh;        /* stable viewport height — avoids toolbar jumps */
  display: flex;
  scroll-snap-align: start;
  background-color: var(--bg-primary);
  transition: background-color var(--dur-slow) ease;
}


/* --------------------------------------------------------------------------
   02. HOME / HERO SECTION
   -------------------------------------------------------------------------- */
.home-section {
  background-color: var(--bg-canvas);
  overflow: hidden;
}

.hero {
  display: flex;
  height: 100vh;
  height: 100dvh;            /* dynamic viewport — adjusts with browser UI */
  width: 100%;
  align-items: center;
  justify-content: space-between;
}


/* --------------------------------------------------------------------------
   03. CAROUSEL LAYOUT
   -------------------------------------------------------------------------- */
.herocarousel-container {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.herocarousel {
  display: flex;
  height: 100%;
  width: 100%;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar across browsers */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.herocarousel::-webkit-scrollbar {
  display: none;
}

.herocarousel img {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
  /* Hints browser for composited layer — prevents paint during scroll */
  will-change: transform;
}


/* --------------------------------------------------------------------------
   04. ABOUT SECTION — mobile only (desktop content lives inside the menu)
   -------------------------------------------------------------------------- */
.about-section {
  position: relative;
  z-index: var(--z-base);
}

/* Hidden on desktop — shown via media query in responsive.css */
@media (min-width: 1025px) {
  .about-section {
    display: none;
  }
}
