/* ABOUTME: Styles for the navbar and fullscreen menu overlay.
   ABOUTME: Handles sticky header, menu toggle, slideshow, and curtain transitions. */

/* ===========================
   Navbar
   =========================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em;
  background-color: transparent;
}

.navbar__left,
.navbar__right {
  flex: 1;
}

.navbar__right {
  display: flex;
  justify-content: flex-end;
}

.navbar__icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  background:
    linear-gradient(var(--color-black), var(--color-black)) center / 2px 100% no-repeat,
    linear-gradient(var(--color-black), var(--color-black)) center / 100% 2px no-repeat;
}

.navbar__icon--light {
  background:
    linear-gradient(var(--color-white), var(--color-white)) center / 2px 100% no-repeat,
    linear-gradient(var(--color-white), var(--color-white)) center / 100% 2px no-repeat;
}

.navbar__logo {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-black);
  padding: 0.2em 1em;
  border-radius: 999px;
}

.navbar__logo--light {
  color: var(--color-black);
  background-color: var(--color-white);
}

.navbar__toggle {
  font-family: var(--font-primary);
  font-size: 2.25rem;
  font-style: normal;
  color: var(--color-black);
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle--light {
  color: var(--color-white);
}

/* ===========================
   Menu Overlay
   =========================== */

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80vh;
  z-index: 200;
  background-color: var(--color-black);
  border-radius: 0 0 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  padding: 1em;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.menu-overlay.is-open {
  clip-path: inset(0 0 0 0);
}

/* Header inside overlay — mirrors the navbar layout */
.menu-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1em;
}

/* ===========================
   Menu Content (nav + image)
   =========================== */

.menu-overlay__content {
  display: flex;
  align-items: stretch;
  gap: 2rem;
  flex: 1;
  min-height: 0;
}

.menu-overlay__left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-overlay__nav {
  margin-bottom: 2rem;
}

.menu-overlay__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.menu-overlay__nav li a {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--color-white);
  line-height: 1.15;
  transition: color 0.2s;
}

.menu-overlay__nav li a:hover {
  color: var(--color-orange);
}

/* ===========================
   Slideshow
   =========================== */

.menu-overlay__image {
  flex: 0.8;
  position: relative;
  overflow: hidden;
}

.menu-overlay__slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.menu-overlay__slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay__slideshow .slide.active {
  clip-path: inset(0 0 0 0);
}

.menu-overlay__slideshow .slide.exit {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

/* ===========================
   Footer
   =========================== */

.menu-overlay__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.menu-overlay__footer span {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}
