/* GLOBAL STYLES */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333;
  background-color: #faf7f5;
  line-height: 1.6;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 999px;
  background-color: #c48fa8;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #b17392;
}

/* MUSIC BUTTON */
.btn-music {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 1000;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand .title-hearts {
  font-family: 'Great Vibes', cursive;
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  margin: 0;
}

.header-date {
  font-size: 0.9rem;
  margin: 0.15rem 0 0;
  color: #666;
}

.main-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #444;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #c48fa8;
}

/* WELCOME OVERLAY */
.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.welcome-overlay.hidden {
  display: none;
}

.letter {
  background-color: #fff;
  padding: 2rem 2.5rem;
  max-width: 500px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.letter h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.letter-date {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin: 0 0 1rem;
}

/* HERO */
.hero-section {
  min-height: 70vh;
  background-image: url('photo7.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-overlay {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero-overlay h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.hero-date {
  margin-bottom: 2rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* TIMER */
.timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.timer div {
  text-align: center;
}

.time-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
}

.timer .label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* SECTIONS */
.section {
  padding: 4rem 1.5rem;
}

.section:nth-of-type(even) {
  background-color: #fff;
}

.section:nth-of-type(odd) {
  background-color: #f7f2f0;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* STORY */
.story-photo {
  display: block;
  max-width: 280px;
  width: 60%;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  object-fit: cover;
}

/* DETAILS GRID */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.detail-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-card h3 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

.detail-card:hover,
.detail-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.detail-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 1rem;
}

.detail-note {
  font-size: 0.9rem;
  color: #777;
}

/* COLOR DOTS */
.color-dot {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
  border: 1px solid rgba(0,0,0,0.1);
}

.color-light-blue {
  background-color: #a9c7ff;
}

.color-lilac {
  background-color: #c8a8f0;
}

.color-light-green {
  background-color: #b8e6c2;
}

.color-gray {
  background-color: #7b7b84;
}

.color-black {
  background-color: #111111;
}

.color-baby-blue {
  background-color: #b7d6f5;
}

/* TRAVEL LIST */
.travel-list {
  list-style: none;
  padding-left: 0;
}

.travel-list li {
  margin-bottom: 0.5rem;
}

/* MAP: responsive container */
.map-container {
  margin-top: 1.5rem;
  position: relative;
  padding-bottom: 60%; /* 16:9-like responsive aspect */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* RSVP SECTION */
.rsvp-section {
  text-align: center;
}

/* GALLERY SLIDESHOW */
.gallery-section {
  text-align: center;
}

.gallery-slideshow {
  position: relative;
  max-width: 600px;
  height: 400px;
  margin: 2rem auto 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background-color: #000;
}

.gallery-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.gallery-slideshow .slide.current {
  opacity: 1;
  position: relative;
}

/* FADE-IN ANIMATION ON SCROLL */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  background-color: #fff;
  font-size: 0.95rem;
  color: #666;
}

.footer-contact a {
  color: #c48fa8;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-contact a:focus {
  text-decoration: underline;
}

.site-credit {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #999;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 0.75rem;
    font-size: 0.9rem;
  }

  .hero-overlay {
    padding-top: 5rem;
  }

  .gallery-slideshow {
    height: 260px;
  }
}
