/* ============================================
   SHARED.CSS — Leo Photography Redesign
   Common styles used across all pages
   ============================================ */

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

/* ===== CSS VARIABLES ===== */
:root {
  --color-bg: #0a0a08;
  --color-bg-warm: #121210;
  --color-bg-card: #1a1a17;
  --color-text: #e8e4dc;
  --color-text-muted: #b5aea8;
  --color-accent: #c8a882;
  --color-accent-light: #dfc4a8;
  --color-border: rgba(200, 168, 130, 0.15);
  --font-display: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --font-body: 'Inter', 'Noto Serif TC', sans-serif;
  --font-serif-tc: 'Noto Serif TC', serif;
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
  animation: pageIn 0.5s ease;
}
@keyframes pageIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== FOCUS STYLES ===== */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}
nav.scrolled {
  background: rgba(10, 10, 8, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--color-border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--color-accent);
  transition: width 0.4s ease;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 1px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem clamp(2rem, 5vw, 6rem);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg);
}
footer p {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}
.footer-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(200, 168, 130, 0.08);
  padding-top: 0.5rem;
  display: inline-block;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: var(--color-accent);
}

/* ===== RESPONSIVE — 768px ===== */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9989;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  .nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    width: 75vw;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #0a0a08;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 9990;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  .nav-links.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--color-text);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  nav.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 10, 8, 0.95);
  }
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 9991;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-quote { text-align: center; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
