/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-gold: #c9a96e;
  --color-gold-dark: #a8884f;
  --color-brown: #8b7355;
  --color-brown-dark: #5e4d38;
  --color-cream: #faf6f0;
  --color-sage: #e8ebe4;
  --color-white: #ffffff;
  --color-text: #3d3529;
  --color-text-light: #6b5e4f;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --max-width: 1100px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

a {
  color: var(--color-brown);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-gold-dark);
}

img { max-width: 100%; height: auto; }

/* === NAVIGATION === */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s, box-shadow 0.4s;
}

#main-nav.scrolled {
  background: rgba(250, 246, 240, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.4s;
}

#main-nav.scrolled .nav-logo {
  color: var(--color-brown-dark);
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.5px;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s;
}

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

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

#main-nav.scrolled .nav-links a {
  color: var(--color-text-light);
}

#main-nav.scrolled .nav-links a:hover {
  color: var(--color-gold-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}

#main-nav.scrolled .nav-toggle span {
  background: var(--color-brown-dark);
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 25, 18, 0.55) 0%,
    rgba(30, 25, 18, 0.4) 50%,
    rgba(30, 25, 18, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--color-gold);
  margin-bottom: 8px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero-divider {
  margin: 12px auto 20px;
  opacity: 0.7;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid var(--color-gold);
  border-radius: 6px;
  transition: all 0.35s;
}

.hero-btn:hover {
  background: var(--color-gold);
  color: var(--color-brown-dark);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot {
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { cy: 10; opacity: 1; }
  50% { cy: 22; opacity: 0.3; }
}

/* === SECTIONS === */
.section {
  position: relative;
  padding: 100px 24px;
}

.section--cream { background: var(--color-cream); }
.section--white { background: var(--color-white); }
.section--sage { background: var(--color-sage); }

.section--image {
  position: relative;
  overflow: hidden;
}

.section-parallax {
  position: absolute;
  inset: -60px 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.section-parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 18, 0.6);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-icon {
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.section-title--light {
  color: #fff;
}

.section-subtitle {
  font-family: var(--font-body);
  text-align: center;
  color: var(--color-text-light);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 48px;
  opacity: 0.8;
}

.section-title--light + .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* === WELCOME TEXT === */
.welcome-text {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.welcome-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* === PHOTO ALBUM BUTTON === */
.photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 15px 38px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-brown);
  border: 1.5px solid var(--color-brown);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(94, 77, 56, 0.25);
  transition: all 0.35s;
}

.photo-btn:hover {
  background: var(--color-brown-dark);
  border-color: var(--color-brown-dark);
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(94, 77, 56, 0.35);
}

.photo-btn-icon {
  flex-shrink: 0;
}

/* === CARDS === */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 36px 28px;
  text-align: center;
  border-radius: 8px;
}

.card--glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.card-icon {
  margin-bottom: 16px;
}

.card-icon svg {
  margin: 0 auto;
}

.card--glass .card-icon svg path,
.card--glass .card-icon svg rect,
.card--glass .card-icon svg circle {
  stroke: rgba(255,255,255,0.7);
}

.card--glass .card-icon svg circle[fill] {
  fill: var(--color-gold);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.card-highlight {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.card-sub {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 4px;
}

/* === TIMELINE === */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 63px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-gold), var(--color-gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-time {
  position: absolute;
  left: -80px;
  top: 4px;
  width: 56px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-gold-dark);
}

.timeline-dot {
  position: absolute;
  left: -21px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* === IMAGE DIVIDER === */
.image-divider {
  position: relative;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-divider-bg {
  position: absolute;
  inset: -20px 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.image-divider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 18, 0.5);
}

.image-divider-text {
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.script-text {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
}

/* === ADDRESS CARDS === */
.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.address-grid + .address-grid {
  margin-top: 24px;
}

.address-grid--triple {
  grid-template-columns: repeat(3, 1fr);
}

.address-card {
  background: var(--color-cream);
  border-radius: 8px;
  padding: 32px 28px;
  border: 1px solid rgba(139, 115, 85, 0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.address-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.address-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-2px) !important;
}

.address-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.address-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.address-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.address-detail {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 8px;
}

.address-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-gold-dark);
  margin-top: 8px;
  padding: 6px 14px;
  border-radius: 5px;
  background: rgba(201, 169, 110, 0.1);
  transition: all 0.3s;
}

.address-link:hover {
  background: rgba(201, 169, 110, 0.2);
  color: var(--color-brown-dark);
}

.address-list {
  list-style: none;
  margin: 8px 0;
  text-align: left;
}

.address-list-intro {
  text-align: left;
}

.address-list li {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 0.93rem;
}

.address-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-size: 0.7rem;
  top: 7px;
}

.address-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.address-note a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* === INFO GRID === */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.info-item {
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 22px 20px;
  text-align: center;
  border: 1px solid rgba(139, 115, 85, 0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.info-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.info-item:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px) !important;
}

.info-icon {
  margin-bottom: 16px;
}

.info-icon svg {
  margin: 0 auto;
}

.info-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-item p {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.info-item a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* === FOOTER === */
.footer {
  position: relative;
  padding: 80px 24px;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 25, 18, 0.7);
}

.footer-content {
  position: relative;
  text-align: center;
  color: #fff;
}

.footer-script {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-gold);
  margin-bottom: 16px;
}

.footer-divider {
  margin: 0 auto 16px;
  opacity: 0.5;
}

.footer-date {
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

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

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-content > :nth-child(1) { animation-delay: 0.2s; opacity: 0; }
.hero-content > :nth-child(2) { animation-delay: 0.5s; opacity: 0; }
.hero-content > :nth-child(3) { animation-delay: 0.7s; opacity: 0; }
.hero-content > :nth-child(4) { animation-delay: 0.9s; opacity: 0; }
.hero-content > :nth-child(5) { animation-delay: 1.1s; opacity: 0; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .cards-row {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .address-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 246, 240, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    color: var(--color-text) !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.1);
    font-size: 1rem;
  }
  .nav-toggle {
    display: block;
  }
  .section {
    padding: 64px 20px;
  }
  .timeline {
    padding-left: 60px;
  }
  .timeline::before {
    left: 43px;
  }
  .timeline-time {
    left: -60px;
    width: 40px;
    font-size: 0.9rem;
  }
  .timeline-dot {
    left: -21px;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .info-item {
    padding: 18px 14px;
  }
  .image-divider {
    height: 240px;
  }
}
