/* ==========================================
   IUSTIN PORUMBESCU PHOTOGRAPHY
   Stylesheet — shared across all pages
   ========================================== */

:root {
  --cream: #f5efe6;
  --cream-deep: #ebe1d2;
  --cream-light: #fdf8f0;
  --ink: #2a2420;
  --ink-soft: #5b4f47;
  --burgundy: #6b2737;
  --burgundy-soft: #8b3a4d;
  --gold: #b08a5b;
  --line: #d8cab5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(176, 138, 91, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(107, 39, 55, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.serif { font-family: 'Cormorant Garamond', serif; }

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ==========================================
   NAV
   ========================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 28px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.4s ease;
}

nav.transparent { mix-blend-mode: difference; }

nav.scrolled,
nav.solid {
  background: rgba(245, 239, 230, 0.96);
  backdrop-filter: blur(10px);
  padding: 18px 56px;
  mix-blend-mode: normal;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: white;
  text-decoration: none;
  transition: color 0.4s ease;
}

nav.solid .logo,
nav.scrolled .logo { color: var(--ink); }

.logo em {
  font-style: italic;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

nav.solid .nav-links a,
nav.scrolled .nav-links a { color: var(--ink); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links a.active { font-weight: 500; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 24px;
}

/* ==========================================
   COMMON
   ========================================== */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--burgundy);
}

.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--gold); }
.eyebrow.light::before { background: var(--gold); }

.btn {
  display: inline-block;
  padding: 18px 48px;
  background: var(--burgundy);
  color: var(--cream);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s ease;
  border: 1px solid var(--burgundy);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn:hover {
  background: transparent;
  color: var(--burgundy);
  letter-spacing: 0.36em;
}

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
}

.btn-ghost:hover {
  background: var(--burgundy);
  color: var(--cream);
}

/* ==========================================
   PAGE HEADER (for inner pages)
   ========================================== */
.page-header {
  padding: 200px 56px 100px;
  text-align: center;
  background: var(--cream);
  position: relative;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  margin-top: 24px;
  letter-spacing: -0.01em;
}

.page-header h1 em {
  font-style: italic;
  color: var(--burgundy);
}

.page-header p {
  margin-top: 24px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.page-header .eyebrow { justify-content: center; }

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 56px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 239, 230, 0.15);
}

.footer-brand .logo {
  color: var(--cream);
  font-size: 28px;
}

.footer-brand p {
  margin-top: 20px;
  opacity: 0.7;
  font-size: 14px;
  max-width: 360px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-col a:hover { opacity: 1; }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.55;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-up { animation: fadeUp 1s ease backwards; }
.fade-in { animation: fadeIn 1.2s ease backwards; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled, nav.solid { padding: 14px 24px; }
  
  .menu-toggle { display: block; }
  
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 100%;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--ink) !important; font-size: 16px; }
  
  .menu-toggle.open { z-index: 200; position: relative; }
  
  .page-header { padding: 140px 24px 80px; }
  
  footer { padding: 60px 24px 24px; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
