/* ==========================================================================
   #POV2026 — Wedding Proposal Website
   Aesthetic: Romantic editorial, warm champagne & burgundy palette
   ========================================================================== */

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

:root {
  --champagne: #F5E6D3;
  --champagne-light: #FBF4EC;
  --burgundy: #7A2E3D;
  --burgundy-deep: #5C1A2A;
  --gold: #C9A86C;
  --gold-light: #E2D1A8;
  --rose: #D4908A;
  --rose-light: #F2D1CE;
  --cream: #FFFAF5;
  --dark: #2C1810;
  --text: #3D2B22;
  --text-light: #7A6A5F;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Garamond, serif;
  --font-accent: 'Libre Baskerville', serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}


/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 108, 0.2);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.03em;
}

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

.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--burgundy);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy);
}

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


/* ==========================================================================
   PAGE: HOME — HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/background.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 24, 16, 0.35) 0%,
    rgba(44, 24, 16, 0.55) 50%,
    rgba(44, 24, 16, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1.5px solid var(--gold);
  padding: 0.5rem 1.8rem;
  margin-bottom: 1.8rem;
  animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--champagne);
  line-height: 1.8;
  animation: fadeInUp 1.2s ease-out 0.8s both;
}


/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.2rem 0 1.5rem;
  animation: fadeInUp 1.2s ease-out 0.6s both;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.divider-heart {
  margin: 0 1rem;
  color: var(--rose-light);
  font-size: 1rem;
}


/* ==========================================================================
   PAGE: HOME — STORY SECTION
   ========================================================================== */
.story-section {
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
  background: var(--cream);
  position: relative;
}

.story-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.story-card {
  max-width: 640px;
  background: var(--white);
  border: 1px solid var(--gold-light);
  border-radius: 2px;
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px rgba(44, 24, 16, 0.06);
}

.story-flourish {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  margin-bottom: 1.5rem;
}

.story-flourish.bottom {
  margin-bottom: 0;
  margin-top: 1.5rem;
}

.story-text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text);
  font-weight: 400;
}

.story-text strong {
  font-weight: 600;
  color: var(--burgundy);
}

.story-text em {
  font-style: italic;
  color: var(--text-light);
}


/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: 3rem 2rem 5rem;
  text-align: center;
  background: var(--cream);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-accent);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 1rem 2.5rem;
  border: 1.5px solid var(--burgundy);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.cta-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 0;
}

.cta-link:hover::before {
  transform: scaleX(1);
}

.cta-link:hover {
  color: var(--white);
}

.cta-text,
.cta-arrow {
  position: relative;
  z-index: 1;
}

.cta-arrow {
  transition: transform 0.3s ease;
}

.cta-link:hover .cta-arrow {
  transform: translateX(4px);
}


/* ==========================================================================
   PAGE: WHAT'S HAPPENING — HEADER
   ========================================================================== */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--champagne-light), var(--cream));
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.page-header .divider-heart {
  color: var(--rose);
}

.page-subtitle {
  max-width: 580px;
  margin: 1.5rem auto 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
}

.page-subtitle strong {
  color: var(--burgundy);
  font-weight: 600;
}


/* ==========================================================================
   TIMELINE
   ========================================================================== */
.timeline {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.5s; }
.timeline-item:nth-child(3) { animation-delay: 0.8s; }

.timeline-marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(201, 168, 108, 0.2);
}

.timeline-icon {
  font-size: 1.4rem;
}

.timeline-card {
  flex: 1;
  background: var(--white);
  border: 1px solid rgba(201, 168, 108, 0.25);
  border-radius: 4px;
  padding: 2rem 2.2rem;
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(44, 24, 16, 0.08);
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.timeline-card-header h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--burgundy);
}

.timeline-tag {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 108, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  border: 1px solid rgba(201, 168, 108, 0.3);
}

.timeline-card p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.timeline-duration {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}


/* ==========================================================================
   PAGE NAV (between pages)
   ========================================================================== */
.page-nav-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--burgundy);
  transition: all 0.3s ease;
}

.page-nav-link:hover {
  background: var(--burgundy);
  color: var(--white);
}


/* ==========================================================================
   PAGE: GALLERY
   ========================================================================== */
.gallery-header {
  padding-bottom: 2rem;
}

.gallery-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  grid-auto-flow: dense;
}

.gallery-item {
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(122, 46, 61, 0.25) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.gallery-item:hover::after {
  opacity: 1;
}


/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--champagne);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 1001;
}

.lightbox-close:hover {
  color: var(--white);
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 2rem;
  background: var(--champagne-light);
  border-top: 1px solid rgba(201, 168, 108, 0.2);
}

.site-footer p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-light);
  letter-spacing: 0.15em;
}


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

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


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .site-nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.72rem;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .story-card {
    padding: 2.5rem 1.8rem;
  }

  .story-text {
    font-size: 1.05rem;
  }

  .timeline {
    padding: 2rem 1rem 3rem;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .timeline-card {
    padding: 1.5rem;
  }

  .timeline-duration {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-row: span 1;
    grid-column: span 1;
  }

  .page-nav-section {
    padding: 1.5rem 1rem 3rem;
  }

  .page-nav-link {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1.2rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
