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

:root {
  --cream:     #FAF8F5;
  --rose:      #C2856B;
  --rose-dark: #A96E56;
  --gold:      #B8956A;
  --blush:     #F5EDE6;
  --blush-mid: #EDD5C5;
  --text:      #2A2A2A;
  --muted:     #7A7A7A;
  --border:    #E8DDD5;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    #FAF8F5 0%,
    #F5EDE6 40%,
    #EDD5C5 70%,
    #E5C9B8 100%
  );
  z-index: 0;
  transition: opacity 1.2s ease;
}

.hero-bg.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 245, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  animation: fadeInUp 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.75rem;
  opacity: 0.9;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(4.5rem, 14vw, 10rem);
  line-height: 0.95;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ampersand {
  color: var(--rose);
  font-style: italic;
  display: inline-block;
  font-size: 0.78em;
  margin: 0 0.06em;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-top: 2.5rem;
  min-height: 1.2em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 2s 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--rose));
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Section Title ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.title-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
  display: inline-block;
}

.title-line:last-child {
  background: linear-gradient(to left, transparent, var(--border));
}

/* ─── Gallery ───────────────────────────────────────────── */
.gallery-section {
  padding: 7rem 0;
}

.gallery-empty {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
  padding: 4rem 0;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background-color: var(--blush);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(42, 42, 42, 0.08);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ─── Quote ─────────────────────────────────────────────── */
.quote-section {
  background-color: var(--blush);
  padding: 6rem 1.5rem;
  text-align: center;
}

.quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose);
  letter-spacing: 0.05em;
}

/* ─── Lightbox ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 120px);
  max-height: 90svh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90svh;
  object-fit: contain;
  border-radius: 2px;
  animation: lightboxFadeIn 0.25s ease;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1001;
  font-weight: 300;
}

.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 3.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
  z-index: 1001;
  padding: 0.5rem 1rem;
  font-weight: 200;
}

.lightbox-nav:hover { color: #fff; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }
.lightbox-nav:disabled { opacity: 0.15; cursor: default; }

/* ─── Fade-in Animation ──────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Keyframes ──────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .gallery-grid { column-count: 2; }
}

@media (max-width: 600px) {
  .gallery-grid { column-count: 1; }
  .hero-title { font-size: clamp(3.5rem, 20vw, 6rem); }
  .lightbox-body { max-width: calc(100vw - 60px); }
  .lightbox-nav { font-size: 2.5rem; }
}
