/* Home page */

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled, .nav.is-open { background: rgba(14, 34, 26, 0.94); box-shadow: 0 8px 30px -18px rgba(0,0,0,0.6); backdrop-filter: blur(6px); }
.nav__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand { font-size: 1.8rem; color: var(--color-on-dark); text-decoration: none; }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  color: var(--color-on-dark); text-decoration: none;
  font-size: 0.78rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 0.4em 0; border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav__links a:hover { border-color: var(--color-accent); }
.nav__links .nav__cta { border: 1px solid var(--color-accent); border-radius: 999px; padding: 0.55em 1.3em; }
.nav__links .nav__cta:hover { background: var(--color-accent); color: var(--color-dark); }
.nav__toggle { display: none; }

@media (max-width: 760px) {
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span:not(.visually-hidden) { display: block; height: 1.5px; background: var(--color-on-dark); transition: transform 0.25s; }
  .nav.is-open .nav__toggle span:nth-of-type(2) { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-of-type(3) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0.5rem 0 1.5rem;
    background: rgba(14, 34, 26, 0.97);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; }
  .nav__links a { padding: 0.9rem 0; }
  .nav__links .nav__cta { margin-top: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
  text-align: center; color: var(--color-on-dark); overflow: hidden; isolation: isolate;
  padding: 100px var(--gutter) 90px;
}
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__photo img { object-fit: cover; object-position: center 35%; animation: hero-zoom 18s ease-out both; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(14, 34, 26, 0.35) 0%, rgba(14, 34, 26, 0.7) 75%),
    linear-gradient(180deg, rgba(14, 34, 26, 0.55) 0%, rgba(29, 68, 55, 0.25) 45%, rgba(14, 34, 26, 0.85) 100%);
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__content { max-width: 760px; animation: rise 1.2s 0.2s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__eyebrow { color: var(--pink-200); }
.hero__names {
  color: var(--color-on-dark); margin: 0; font-weight: 400;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 0.25em;
  font-size: clamp(3.6rem, 13vw, 8.5rem); line-height: 1.05;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
}
.hero__amp { font-family: var(--font-serif); font-style: italic; font-size: 0.45em; color: var(--pink-300); }
.hero__note { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 3.4vw, 1.45rem); margin: 0 0 1.75rem; color: var(--color-on-dark); }
.hero__cta { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(249, 233, 235, 0.6); border-radius: 13px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--color-on-dark); animation: scroll-dot 1.8s infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 128px) 0; text-align: center; }
.section__title { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 1.25rem; }
.section__title::after {
  content: '✦'; display: block; margin-top: 0.6rem;
  font-size: 0.9rem; color: var(--color-accent); letter-spacing: 0;
}
.section__title--on-dark { color: var(--color-on-dark); }
.eyebrow--on-dark { color: var(--pink-300); }
.container--narrow { max-width: 760px; }
.lead { font-size: 1.12rem; color: var(--color-text-muted); max-width: 600px; margin: 0 auto 2rem; }
.lead--on-dark { color: var(--color-on-dark-muted); }

/* ---------- Photos ---------- */
.photos { background: var(--color-dark); }
.gallery { columns: 3 260px; column-gap: 14px; margin-top: 2.5rem; text-align: left; }
.gallery__item {
  display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: var(--green-800);
  border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; break-inside: avoid;
}
.gallery__item img { width: 100%; height: auto; transition: transform 0.6s, filter 0.6s; }
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.05); }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .gallery__item { margin-bottom: 8px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(10, 24, 18, 0.95); padding: 56px 12px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(100%, 1100px); max-height: calc(100vh - 112px); max-height: calc(100svh - 112px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--color-on-dark); cursor: pointer;
  width: 52px; height: 52px; font-size: 2.6rem; line-height: 1; opacity: 0.85;
}
.lightbox button:hover { opacity: 1; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__nav--prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Registry ---------- */
.registry { background: var(--color-bg-blush); }
.registry__links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.registry__embed { margin: 0 auto 2rem; text-align: left; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.registry__embed iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; }
.is-pending { pointer-events: none; opacity: 0.6; }

/* ---------- FAQ ---------- */
.faq { background: var(--color-bg); }
.faq__list { margin-top: 2.5rem; text-align: left; border-top: 1px solid var(--color-line); }
.faq details { border-bottom: 1px solid var(--color-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0.25rem; position: relative;
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--color-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 1.5rem; font-weight: 300; color: var(--color-accent-text); transition: transform 0.25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.4rem; padding: 0 0.25rem; color: var(--color-text-muted); }
.faq details a { color: var(--color-accent-text); }

/* ---------- RSVP ---------- */
.rsvp {
  background:
    radial-gradient(ellipse at top, rgba(232, 182, 190, 0.16), transparent 60%),
    var(--color-dark-deep);
}
.find-invite { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.find-invite__input { text-transform: uppercase; letter-spacing: 0.2em; text-align: center; font-size: 1.05rem; }
.find-invite__input::placeholder { text-transform: none; letter-spacing: 0.05em; }
.find-invite .btn { flex-shrink: 0; white-space: nowrap; }
.find-invite__error { color: var(--pink-300); margin: 1rem 0 0; }
@media (max-width: 560px) { .find-invite { flex-direction: column; } }

/* ---------- Footer ---------- */
.footer { background: var(--color-dark-deep); color: var(--color-on-dark-muted); text-align: center; padding: 0 var(--gutter) 48px; }
.footer__names { font-size: 2.4rem; color: var(--color-on-dark); margin: 0; border-top: 1px solid rgba(232, 182, 190, 0.2); padding-top: 40px; max-width: var(--max-width); margin: 0 auto; }
.footer__date { letter-spacing: 0.35em; font-size: 0.8rem; margin: 0.5rem 0 0; }
