/* ==============================
   Base, variables, and resets
   ============================== */
:root {
  --bg: #ffffff;
  --text: #333333;
  --muted: #777777;
  --border: #eaeaea;
  --accent: #c59d5f;         /* modern gold */
  --accent-hover: #a67c52;
  --panel: #fafafa;
  --shadow: 0 2px 8px rgba(0,0,0,0.05);
  --overlay: rgba(0,0,0,0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================
   Typography
   ============================== */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  margin: 0 0 0.75rem 0;
}

p {
  margin: 0 0 1rem 0;
  color: var(--text);
}

/* ==============================
   Hero
   ============================== */

/*
  Parallax approach: .hero is a clipping window (overflow: hidden).
  Inside it, .hero-bg is an absolutely-positioned div holding the
  background image. JS nudges its translateY on scroll — no
  background-attachment: fixed needed, so it works on all platforms.
  On mobile the JS skips the effect and .hero-bg stays fully static.
*/

.hero {
    position: relative;
    overflow: hidden;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* Scrolling background layer — oversized vertically so translateY never shows a gap */
.hero-bg {
    position: absolute;
    inset: -15% 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* Text overlay sits above the bg layer */
.hero .overlay {
    position: relative;
    z-index: 1;
    background: var(--overlay);
    padding: 2rem 3rem;
    border-radius: 12px;
    color: #fff;
    max-width: 90%;
    animation: fadeInUp 1s ease-out forwards;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0;
    line-height: 1.15;
    letter-spacing: 0.3px;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-top: 0.5rem;
    color: #f1f1f1;
}

@media (max-width: 768px) {
    .hero {
        height: 40vh;
        min-height: 260px;
        padding: 1rem;
    }

    /* Static on mobile — no JS parallax applied */
    .hero-bg {
        inset: 0;
    }

    .hero .overlay {
        padding: 1.25rem 1.5rem;
        border-radius: 10px;
    }

    .hero .site-title {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }
}

/* ==============================
   Navigation
   ============================== */
nav {
  background: #ffffff;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(6px);
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

nav a i {
  font-size: 1rem;
  color: var(--accent);
}

nav a:hover {
  color: var(--accent);
}

/* Staggered reveal for nav links */
nav a:nth-child(1) { animation-delay: 0.25s; }
nav a:nth-child(2) { animation-delay: 0.4s; }
nav a:nth-child(3) { animation-delay: 0.55s; }
nav a:nth-child(4) { animation-delay: 0.7s; }
nav a:nth-child(5) { animation-delay: 0.85s; }
nav a:nth-child(6) { animation-delay: 1s; }

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ==============================
   Layout container
   ============================== */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ==============================
   Footer
   ============================== */
footer {
  text-align: center;
  padding: 1.25rem 1rem;
  background: #f8f8f8;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ==============================
   Animations
   ============================== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   Utilities
   ============================== */
.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

/* Style default UL flashes if used without a class */
.container ul {
  padding-left: 1.25rem;
}
.container ul li {
  margin: 0.25rem 0;
}

/* ==============================
   Responsive adjustments
   ============================== */
@media (max-width: 900px) {
  nav {
    gap: 1.25rem;
    padding: 0.85rem;
  }
}

@media (max-width: 640px) {
  nav {
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    padding: 0.75rem 0.9rem;
  }

  nav a {
    font-size: 0.98rem;
  }

  .container {
    margin: 1.5rem auto;
  }
}

.countdown {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffe8d6;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery a:hover img {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    opacity: 0.95;
}

.couple-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.person {
    text-align: center;
}

.portrait {
    width: 100%;
    max-width: 240px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    object-fit: cover;
}

.couple-story {
    margin-top: 3rem;
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}