/* ============================================================
   BAELENGE PHOTOGRAPHY — Shared Stylesheet
   Color Palette:
     --brown:   #4a3728  (Deep Warm Brown)
     --olive:   #7a8c5c  (Muted Olive Green)
     --sand:    #d4c5a9  (Soft Beige / Sand)
     --bg:      #f5f2ee  (Warm Off-White)
     --white:   #ffffff
     --brown-light: #6b5244
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown:       #4a3728;
  --brown-light: #6b5244;
  --olive:       #7a8c5c;
  --olive-dark:  #5e6e44;
  --sand:        #d4c5a9;
  --sand-light:  #ede6d8;
  --bg:          #f5f2ee;
  --bg-alt:      #eeebe5;
  --white:       #ffffff;
  --text:        #3a2e24;
  --text-muted:  #7a6a5a;
  --radius:      6px;
  --transition:  0.3s ease;
  --shadow-sm:   0 2px 8px rgba(74,55,40,0.08);
  --shadow-md:   0 4px 20px rgba(74,55,40,0.12);
  --shadow-lg:   0 8px 40px rgba(74,55,40,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'DM Sans', 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
  color: var(--brown);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-muted); font-size: 1rem; }
.lead { font-size: 1.15rem; line-height: 1.8; }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 110px 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
  max-width: 560px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--olive);
  margin: 16px 0 32px;
}
.divider-center { margin: 16px auto 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}
.btn-olive {
  background: var(--olive);
  color: var(--white);
}
.btn-olive:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-brown {
  background: var(--brown);
  color: var(--white);
}
.btn-brown:hover {
  background: var(--brown-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  border: 2px solid var(--brown);
  color: var(--brown);
}
.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-olive {
  border: 2px solid var(--olive);
  color: var(--olive);
}
.btn-outline-olive:hover {
  background: var(--olive);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(245, 242, 238, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--sand);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-nav.scrolled {
  background: rgba(245, 242, 238, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--brown); }

/* Dark brown "Contact Me" CTA button in nav */
.nav-cta-contact {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--brown);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-cta-contact:hover {
  background: var(--brown-light);
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: none;
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--olive);
  transition: width var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--olive); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 12px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown);
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(245, 242, 238, 0.98);
  backdrop-filter: blur(10px);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-top: 1px solid var(--sand);
}
.nav-mobile.open {
  max-height: 400px;
  padding: 16px 0;
}
.nav-mobile a {
  display: block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--sand-light);
  transition: background var(--transition), color var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active { background: var(--sand-light); color: var(--olive); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2e2118;
  color: rgba(255,255,255,0.85);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 48px;
}
/* Push brand title down to align with Navigate/Portfolio list items (offset for missing uppercase label row) */
.footer-brand {
  padding-top: 34px;
}
.footer-brand h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}
.footer-brand h3 span { color: var(--sand); }
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  max-width: 240px;
  line-height: 1.75;
  margin-bottom: 0;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--sand); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--sand);
  color: var(--sand);
  background: rgba(255,255,255,0.08);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }

/* ---------- Page Header ---------- */
.page-header {
  padding: 140px 0 72px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--sand);
}
.page-header .section-label { display: block; }
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; max-width: 600px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Photo Grid Helpers ---------- */
.photo-grid {
  display: grid;
  gap: 12px;
}
.photo-item {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.photo-item:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,8,6,0.93);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  color: rgba(255,255,255,0.8);
  font-size: 2rem;
  cursor: pointer;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  background: rgba(255,255,255,0.08);
}
.lb-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.lb-prev, .lb-next {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition), color var(--transition);
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); color: #fff; }

.lb-caption {
  position: fixed;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Scroll Fade-In Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Utility ---------- */
.bg-alt { background: var(--bg-alt); }
.bg-sand { background: var(--sand-light); }
.bg-brown { background: var(--brown); }
.text-olive { color: var(--olive); }
.text-brown { color: var(--brown); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ---------- Responsive ---------- */

/* Desktop nav: always visible */
.nav-links {
  display: flex !important;
}
.nav-cta-contact {
  display: inline-flex !important;
}
.nav-toggle {
  display: none !important;
}

/* Only collapse nav on genuinely small phones */
@media (max-width: 540px) {
  .nav-links, .nav-cta-contact { display: none !important; }
  .nav-toggle { display: flex !important; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; padding-top: 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
}

@media (min-width: 541px) and (max-width: 900px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: auto; padding-top: 34px; }
}
