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

:root {
  --cream: #faf6f0;
  --warm: #f2e8d9;
  --gold: #b8965a;
  --gold-lt: #d4ae72;
  --dark: #1c1410;
  --mid: #5a4a38;
  --faint: rgba(184, 150, 90, 0.18);
  --serif: "Cormorant Garamond", serif;
  --sans: "Jost", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--warm);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.2rem 2rem;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--faint);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav a {
  color: var(--mid);
  text-decoration: none;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--gold);
}

/* ── HERO ──────────────────────────────────────────── */
#hero {
  height: 100vh;
  min-height: 600px;
  background:
    linear-gradient(
      to bottom,
      rgba(28, 20, 16, 0.35) 0%,
      rgba(28, 20, 16, 0.1) 50%,
      rgba(28, 20, 16, 0.55) 100%
    ),
    url("/images/cover.jpg") center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}
#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(28, 20, 16, 0.4) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-pre {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s forwards;
}
.hero-names {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  color: #fff;
  line-height: 1;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}
.hero-names em {
  font-style: italic;
  color: var(--gold-lt);
}
.hero-amp {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-lt);
  display: block;
  line-height: 1;
}
.hero-date {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.7s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.9s 1.2s forwards;
}
.hero-scroll span {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  animation: scrollLine 1.6s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SECTIONS SHARED ───────────────────────────────── */
section {
  padding: 7rem 2rem;
}
.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  text-align: center;
  color: var(--dark);
}
h2 em {
  font-style: italic;
  color: var(--gold);
}
.section-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.8rem auto;
}

/* ── COUNTDOWN ─────────────────────────────────────── */
#countdown {
  background: var(--dark);
  padding: 5rem 2rem;
  text-align: center;
}
#countdown .section-label {
  color: var(--gold-lt);
}
#countdown h2 {
  color: var(--cream);
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.cd-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 150, 90, 0.25);
  padding: 2rem 2.5rem;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.cd-num {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--gold-lt);
  line-height: 1;
}
.cd-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* ── FAMILIES / UNION ──────────────────────────────── */
#story {
  background: var(--cream);
}

.union-intro {
  max-width: 640px;
  margin: 0 auto 4rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.9;
  color: var(--mid);
  text-align: center;
}

.families-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.family-card {
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(184, 150, 90, 0.18);
  background: var(--warm);
  position: relative;
}
.family-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gold);
}
.family-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background-size: cover;
  background-position: center;
  border: 3px solid var(--warm);
  outline: 1px solid rgba(184, 150, 90, 0.35);
  box-shadow: 0 8px 30px rgba(28, 20, 16, 0.12);
}
.family-tag {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
.family-name {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}
.family-desc {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.75;
}

.union-center {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.union-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  font-style: italic;
}
.union-line {
  width: 1px;
  height: 60px;
  background: rgba(184, 150, 90, 0.3);
}

.blessing-strip {
  max-width: 900px;
  margin: 4rem auto 0;
  padding: 2.5rem 3rem;
  border: 1px solid rgba(184, 150, 90, 0.2);
  background: linear-gradient(135deg, var(--warm) 0%, var(--cream) 100%);
  text-align: center;
}
.blessing-strip p {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--mid);
  line-height: 1.8;
}
.blessing-strip cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

@media (max-width: 900px) {
  .families-grid {
    grid-template-columns: 1fr;
  }
  .union-center {
    flex-direction: row;
    padding: 1rem;
  }
  .union-line {
    width: 60px;
    height: 1px;
  }
}

/* ── PARALLAX GALLERY ──────────────────────────────── */
#gallery {
  padding: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.parallax-cell {
  height: 420px;
  position: relative;
  overflow: hidden;
}
.parallax-cell .parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: transform 0.1s linear;
}
.parallax-cell:nth-child(1) .parallax-bg {
  background-image: url("/images/image-7.jpg");
}
.parallax-cell:nth-child(2) .parallax-bg {
  background-image: url("/images/image-7.jpg");
}
.parallax-cell:nth-child(3) .parallax-bg {
  background-image: url("/images/image-7.jpg");
}
.parallax-cell:nth-child(4) .parallax-bg {
  background-image: url("/images/image-3.jpg");
}
.parallax-cell:nth-child(5) .parallax-bg {
  background-image: url("/images/image-3.jpg");
}
.parallax-cell:nth-child(6) .parallax-bg {
  background-image: url("/images/image-3.jpg");
}

@media (max-width: 768px) {
  .parallax-cell:nth-child(1) .parallax-bg {
    background-image: url("/images/image-1.jpg");
  }

  .parallax-cell:nth-child(2) .parallax-bg {
    background-image: url("/images/image-7.jpg");
  }

  .parallax-cell:nth-child(3) .parallax-bg {
    background-image: url("/images/image-3.jpg");
  }

  .parallax-cell:nth-child(4) .parallax-bg {
    background-image: url("/images/image-2.jpg");
  }

  .parallax-cell:nth-child(5) .parallax-bg {
    background-image: url("/images/image-6.jpg");
  }

  .parallax-cell:nth-child(6) .parallax-bg {
    background-image: url("/images/image-4.jpg");
  }
}

.parallax-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 20, 16, 0.5) 0%, transparent 50%);
  pointer-events: none;
}

/* ── BIG PARALLAX BANNER ───────────────────────────── */
.parallax-banner {
  height: 500px;
  background: url("/images/image-5.jpg") center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.parallax-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 16, 0.55);
}
.parallax-banner-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.parallax-banner h3 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
}
.parallax-banner p {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-top: 1.5rem;
}

/* ── VIDEO ─────────────────────────────────────────── */
#video {
  background: var(--dark);
  padding: 7rem 2rem;
  text-align: center;
}
#video h2,
#video .section-label {
  color: var(--cream);
}
#video h2 em {
  color: var(--gold-lt);
}
.video-wrapper {
  max-width: 900px;
  margin: 3.5rem auto 0;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(184, 150, 90, 0.3);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: 0;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, rgba(184, 150, 90, 0.12) 0%, transparent 60%),
    url("/images/image-3.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}
.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(184, 150, 90, 0.9);
  border: 2px solid var(--gold-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s,
    background 0.3s;
}
.video-placeholder:hover .play-btn {
  transform: scale(1.1);
  background: var(--gold-lt);
}
.play-btn svg {
  fill: #fff;
  width: 28px;
  height: 28px;
  margin-left: 5px;
}
.video-note {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

/* ── EVENT DETAILS ─────────────────────────────────── */
#details {
  background: var(--warm);
}
.details-grid {
  max-width: 1000px;
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184, 150, 90, 0.2);
}
.detail-card {
  background: var(--warm);
  padding: 3rem 2rem;
  text-align: center;
}
.detail-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}
.detail-card h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.detail-card p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--dark);
  line-height: 1.6;
}

/* ── MAP ───────────────────────────────────────────── */
#map-section {
  padding: 0;
}
.map-header {
  padding: 5rem 2rem 3rem;
  text-align: center;
  background: var(--cream);
}
.map-embed {
  width: 100%;
  height: 480px;
  border: 0;
  filter: sepia(0.15) contrast(1.05);
}
.map-address {
  background: var(--dark);
  padding: 2.5rem 2rem;
  text-align: center;
}
.map-address p {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 1.7;
}
.map-address a {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 174, 114, 0.4);
  padding-bottom: 2px;
  transition: color 0.3s;
}
.map-address a:hover {
  color: #fff;
}

/* ── RSVP ──────────────────────────────────────────── */
#rsvp {
  background:
    linear-gradient(to bottom, rgba(250, 246, 240, 0) 0%, var(--cream) 100%),
    url("https://images.unsplash.com/photo-1469371670807-013ccf25f16a?w=1600&q=80") center/cover
      no-repeat fixed;
}
.rsvp-card {
  max-width: 640px;
  margin: 3.5rem auto 0;
  background: rgba(250, 246, 240, 0.95);
  border: 1px solid rgba(184, 150, 90, 0.25);
  padding: 3.5rem;
  box-shadow: 0 30px 70px rgba(28, 20, 16, 0.12);
}

/* guest count badge */
.guest-count-badge {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--faint);
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(184, 150, 90, 0.2);
}
#guest-count {
  font-weight: 400;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full {
  grid-column: 1 / -1;
}
label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(184, 150, 90, 0.3);
  outline: none;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--dark);
  font-weight: 300;
  transition: border-color 0.3s;
  appearance: none;
  border-radius: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8965a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.rsvp-btn {
  width: 100%;
  padding: 1.1rem 2rem;
  margin-top: 1.5rem;
  background: var(--dark);
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
}
.rsvp-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--dark);
}
.rsvp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#rsvp-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.success-icon svg {
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  width: 32px;
  height: 32px;
}
#rsvp-success h3 {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--dark);
}
#rsvp-success p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--mid);
  margin-top: 0.8rem;
  line-height: 1.7;
}

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--dark);
  padding: 4rem 2rem 2.5rem;
  text-align: center;
}
.footer-names {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.1;
}
.footer-names em {
  color: var(--gold-lt);
}
footer .section-divider {
  margin: 1.8rem auto;
  background: rgba(184, 150, 90, 0.3);
}
footer p {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Scroll reveal ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    gap: 1.2rem;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-img {
    height: 320px;
  }
  .story-text {
    padding: 2.5rem 2rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .rsvp-card {
    padding: 2rem 1.5rem;
  }
}
@media (max-width: 560px) {
  nav {
    gap: 0.8rem;
    font-size: 0.63rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .parallax-cell {
    height: 300px;
  }
  .cd-box {
    padding: 1.5rem 1.2rem;
    min-width: 80px;
  }
}
