/* =========================================================
   VMD — Victor Muller Design
   Shared stylesheet for index.html + project.html
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- TOKENS ---------- */
:root {
  --navy: #1a2744;
  --navy-soft: #2a3558;
  --cream: #f6f3ee;
  --bg: #fdfcfa;
  --line: #1a2744;
  --muted: #6b7280;
  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--navy);
}
.eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.7;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}
.nav.scrolled,
.nav.solid {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--navy);
}
.nav-links {
  display: flex; gap: 2.25rem; list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.nav-links a {
  position: relative;
  padding: 0.25rem 0;
  transition: opacity 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--navy);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; width: 28px; height: 20px; position: relative; }
.nav-toggle span {
  display: block; position: absolute; left: 0;
  width: 100%; height: 1.5px; background: var(--navy);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.nav-toggle span:nth-child(1) { top: 3px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { top: calc(100% - 4px); }
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; z-index: 101; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  }
  .nav-links.open { transform: translateX(0); }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  border: 1px solid var(--navy);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--navy); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.btn-light {
  background: var(--cream);
  color: var(--navy);
  border: 1px solid var(--cream);
}
.btn-light:hover { background: transparent; color: var(--cream); }

/* ---------- SECTIONS ---------- */
section { padding: clamp(5rem, 10vw, 8rem) var(--gutter); }
.container { max-width: var(--max); margin: 0 auto; }
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); text-align: center; }
.section-head .eyebrow { display: block; margin-bottom: 1rem; }
.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
}

/* Fade-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- LIGHTBOX (shared) ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(12, 18, 32, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  color: var(--cream);
  font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s;
  z-index: 5;
}
.lightbox-close:hover { opacity: 0.7; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s, transform 0.3s;
  z-index: 5;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-arrow.prev { left: 1.5rem; }
.lightbox-arrow.next { right: 1.5rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  z-index: 5;
}
@media (max-width: 600px) {
  .lightbox-arrow { width: 44px; height: 44px; font-size: 1rem; }
  .lightbox-arrow.prev { left: 0.5rem; }
  .lightbox-arrow.next { right: 0.5rem; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: var(--cream);
  padding: 4rem var(--gutter) 2rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 243, 238, 0.15);
}
.footer-brand .logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.footer-brand p { opacity: 0.7; font-size: 0.9rem; max-width: 36ch; }
.footer h5 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.85;
  font-weight: 500;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.65rem; font-size: 0.9rem; opacity: 0.75; }
.footer a { transition: opacity 0.3s; }
.footer a:hover { opacity: 1; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.65;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}
