/* ============================================
   MARIE HARTIG STUDIO — Painted Worlds Page
   ============================================ */

/* ---- Reset for this page ---- */
body.worlds-page {
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 64px;
}

.nav-logo {
  font-family: 'Velour', serif;
  font-weight: 700;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links li + li::before {
  content: '|';
  color: rgba(0,0,0,0.25);
  font-size: 0.75rem;
  margin: 0 1.4rem;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #555;
}

/* ============================================
   MOBILE NAV TOGGLE (hamburger)
   Hidden on desktop — only shown inside the
   max-width: 768px media query below.
   ============================================ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}

.nav-toggle-bar span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle-bar span:nth-child(1) { top: 0; }
.nav-toggle-bar span:nth-child(2) { top: 6px; }
.nav-toggle-bar span:nth-child(3) { top: 12px; }

/* Turn into an X when menu is open */
.nav.nav-open .nav-toggle-bar span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}
.nav.nav-open .nav-toggle-bar span:nth-child(2) {
  opacity: 0;
}
.nav.nav-open .nav-toggle-bar span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* ============================================
   FULLSCREEN SLIDESHOW
   ============================================ */
.worlds-slideshow {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin-top: 64px; /* offset for fixed nav */
  /* Subtract nav height so it's truly full viewport feel */
  height: calc(100vh - 64px);
}

.worlds-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease-in-out;
}

.worlds-slide.active {
  opacity: 1;
  z-index: 2;
}

.worlds-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Subtle progress bar */
.worlds-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1.5px;
  background: rgba(255,255,255,0.6);
  z-index: 10;
  width: 0%;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav {
    padding: 0 5vw;
    height: 56px;
  }

  .nav-logo {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  /* Show the hamburger only on mobile, positioned on the right */
  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-logo {
    order: 1;
  }

  /* Collapse the link list into a dropdown panel,
     hidden until .nav-open is toggled by JS */
  .nav-links {
    order: 2;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease;
  }

  .nav.nav-open .nav-links {
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    visibility: visible;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links li {
    width: 100%;
    justify-content: flex-start;
  }

  /* Remove the desktop "|" separators in the dropdown */
  .nav-links li + li::before {
    content: none;
  }

  .nav-links li a,
  .nav-links li .cart-icon-btn {
    width: 100%;
    padding: 0.9rem 5vw;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  /* Cart button moves into the dropdown list with the links */
  .nav-links .cart-icon-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    font: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
  }

  /* .cart-badge is normally positioned absolute relative to the
     small icon-only desktop button (top:-6px; right:-8px), which
     would float to the far edge of the full-width mobile row.
     Pin it inline right after the "Cart" label instead. */
  .nav-links .cart-icon-btn .cart-badge {
    position: static;
    top: auto;
    right: auto;
    margin-left: 0.1rem;
  }

  .worlds-slideshow {
    margin-top: 56px;
    height: calc(100vh - 56px);
  }
}

.worlds-progress { display: none; }
