*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f0e8d2;
  --cream-off: #faf6ee;
  --cream-dark: #ddd0b5;
  --gold: #c49b1f;
  --gold-lt: #d4ad35;
  /* saturated darker gold for TEXT on light backgrounds (labels, eyebrows) —
     --gold stays for buttons, hovers, and text on dark */
  --gold-text: #a67c00;
  --brown: #221608;
  --taupe: #6f5c48;
  --muted: #b0a085;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream-off);
  color: var(--brown);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Reduced motion: complete entrance animations instantly (they end at their
   visible state), freeze ambient loops, and drop smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 56px;
}

/* Solid cream nav for subpages — index uses transparent default + dark-nav/light-nav variants */
.nav--solid {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--cream-dark);
}
.nav-title {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 400;
  color: var(--brown);
}
.nav-title a {
  color: inherit;
  text-decoration: none;
}
.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-menu a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
  opacity: 0.6;
  transition: color 0.2s, opacity 0.2s;
}
.nav-menu a:hover {
  opacity: 1;
  color: var(--gold);
}

/* ── NAV DROPDOWN (Gallery submenu) ── */
.nav-dropdown {
  position: relative;
}
/* Caret after the parent link; flips on hover */
.nav-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  margin-top: 8px;
  min-width: 200px;
  list-style: none;
  background: var(--cream-off);
  border: 0.5px solid var(--cream-dark);
  box-shadow: 0 8px 24px rgba(34, 22, 8, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 210;
}
/* Invisible bridge so the pointer can cross the gap without closing the menu */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  white-space: nowrap;
  padding: 10px 24px;
  opacity: 0.7;
}

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--brown);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE MENU PANEL ── */
.nav-mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 199;
  background: var(--cream-off);
  border-bottom: 0.5px solid var(--cream-dark);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}
.nav-mobile-panel.is-open {
  max-height: 560px;
  padding: 0 24px 16px;
}
.nav-mobile-panel ul {
  list-style: none;
  padding-top: 80px;
}
.nav-mobile-panel ul li a {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
  opacity: 0.7;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--cream-dark);
  transition: opacity 0.2s, color 0.2s;
}
.nav-mobile-panel ul li:last-child a {
  border-bottom: none;
}
.nav-mobile-panel ul li a:hover {
  opacity: 1;
  color: var(--gold);
}
/* Gallery sub-links — indented under the Gallery item */
.nav-mobile-panel ul li a.nav-mobile-sub {
  padding-left: 20px;
  opacity: 0.55;
}

/* ── FOOTER ── */
footer {
  background: var(--brown);
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.f-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
  list-style: none;
}
.f-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.f-links a:hover {
  color: var(--gold-lt);
}
.f-copy {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(176, 160, 138, 0.65);
}

/* ── RESPONSIVE — nav + footer ── */
/* The full menu + title need ~1000px; between 769–1000px they wrap, so the
   hamburger takes over below 1000px rather than the usual 768px. */
@media (max-width: 1000px) {
  .nav-menu {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
}
@media (max-width: 768px) {
  nav {
    padding: 18px 24px;
  }
}
@media (max-width: 768px) {
  footer {
    padding: 40px 24px;
  }
}
