@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

:root {
  --cream:      #f7f3ee;
  --cream-dark: #ede7de;
  --stone:      #c4b8a8;
  --stone-dark: #9a8e80;
  --gold:       #b89a6a;
  --gold-light: #d4b98a;
  --charcoal:   #3a3530;
  --ink:        #5c5248;
  --white:      #fdfaf7;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;

  --nav-h: 100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  /* grain overlay */
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(247,243,238,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo-img {
  width: 76px;
  height: 76px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--stone);
  flex-shrink: 0;
}

.nav-logo-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 3px;
  background: var(--cream-dark);
  border: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--stone-dark);
  flex-shrink: 0;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  line-height: 1.25;
}
.nav-name small {
  display: block;
  font-size: 0.65rem;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--charcoal); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* ── Mobile nav ──────────────────────────────── */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(247,243,238,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.9rem; }
}

/* ── Page offset ─────────────────────────────── */
.page-body { padding-top: var(--nav-h); }

/* ── Section wrapper ─────────────────────────── */
.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Section heading ─────────────────────────── */
.section-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.section-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1rem 0 2.5rem;
}

/* ── Footer ─────────────────────────────────── */
footer {
  border-top: 1px solid var(--cream-dark);
  padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--stone-dark);
  text-transform: uppercase;
}
footer .footer-name {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: block;
  margin-bottom: 0.4rem;
  font-style: italic;
}

/* ── Lightbox ────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,26,22,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 2px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  color: var(--cream);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 1rem;
  line-height: 1;
}
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── Gallery Grid ────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--cream-dark);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.97) saturate(0.9);
}
.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

/* placeholder tiles */
.gallery-item .tile-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ── Fade-in animation ───────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: none;
}
