:root {
  --cream: #f7f3ee;
  --warm-white: #fdfaf6;
  --sand: #e8ddd0;
  --taupe: #c9b9a8;
  --brown: #8b6f5e;
  --dark: #3a2e28;
  --text: #5a4a40;
  --accent: #b5956a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--warm-white);
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

body.itinerary-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 40px;
}

.itinerary-body {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 24px;
}

.side-label {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--dark);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
}

.side-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--taupe);
  opacity: 0.45;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.intro-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 400;
  color: var(--dark);
  line-height: 1.05;
  max-width: 460px;
}

.schedule {
  display: grid;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--sand);
}

.schedule-item {
  display: flex;
  align-items: baseline;
  gap: 22px;
  border-bottom: 1px solid rgba(200, 185, 168, 0.3);
  padding-bottom: 18px;
}

.schedule-time {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-width: 116px;
  color: var(--dark);
}

.schedule-event {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.92;
}

.schedule-event span {
  display: block;
  margin-top: 6px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--brown);
  font-size: 0.84rem;
  opacity: 0.8;
}

body.itinerary-page nav {
  background: rgba(247,243,238,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
body.itinerary-page .nav-logo {
  color: var(--dark);
}
body.itinerary-page .nav-links a {
  color: var(--text);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: transparent;
  transition: background 0.4s;
}
nav.scrolled {
  background: rgba(247,243,238,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: white;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.4s;
}
nav.scrolled .nav-logo {
  color: var(--dark);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  transition: color 0.3s;
}
nav.scrolled .nav-links a {
  color: var(--text);
}
.nav-links a:hover {
  color: var(--accent);
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(40,30,25,0.20) 0%,
    rgba(40,30,25,0.42) 50%,
    rgba(40,30,25,0.62) 100%
  ),
  url("pictures/Hero_Photo.jpg");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease-out;
  filter: brightness(1.2) saturate(.9);
}
#hero.loaded .hero-bg {
  transform: scale(1);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='none'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  text-align: center;
  color: white;
  padding: 0 24px;
}
.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
  animation: fadeUp 1.2s ease both;
}
.hero-and {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: none;
  margin: 8px 0;
  opacity: 0.92;
  animation: fadeUp 1.2s ease 0.15s both;
}
.hero-date {
  margin-top: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: fadeUp 1.2s ease 0.3s both;
}
.hero-date-img {
  margin-top: 1rem;
  max-width: 100%;
  height: auto;
  opacity: 0.85;
  animation: fadeUp 1.2s ease 0.3s both;
}
.hero-divider {
  display: inline-block;
  width: 80px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  vertical-align: middle;
  margin: 0 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── SECTIONS ── */
section {
  padding: 96px 24px;
}
.section-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.1;
}
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin: 24px auto;
}
.divider::before,
.divider::after {
  content: '';
  display: block;
  height: 1px;
  width: 60px;
  background: var(--taupe);
}
.divider-icon {
  color: var(--taupe);
  font-size: 1rem;
}

/* ── RSVP ── */
#rsvp {
  background: var(--cream);
}
.rsvp-body {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin: 6px 0 28px;
  line-height: 1.8;
}
.rsvp-deadline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 32px;
  display: block;
}
.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: white;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 48px;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-1px);
}

/* ── DETAILS ── */
#details {
  background: var(--warm-white);
}
.venue-photo {
  width: 100%;
  max-width: 680px;
  min-width: 300px;
  aspect-ratio: 680 / 380;
  object-fit: cover;
  display: block;
  margin: 0 auto 20px;
  background-image:
    /*linear-gradient(160deg, rgba(224,212,200,0.45) 0%, rgba(185,169,144,0.25) 100%),*/
    url("pictures/Details_Greys.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.venue-photo-placeholder {
  width: 100%;
  max-width: 680px;
  height: 380px;
  margin: 0 auto 20px;
  background: linear-gradient(160deg, #e0d4c8 0%, #c9b9a8 40%, #b0997f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.venue-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255,255,255,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(200,180,155,0.3) 0%, transparent 50%);
}
.venue-icon {
  font-size: 3rem;
  opacity: 0.4;
  margin-bottom: 10px;
}
.venue-label-sm {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(60,45,35,0.6);
  letter-spacing: 0.05em;
}
.venue-name {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown);
  margin-top: 4px;
  text-align: left;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.venue-address-block {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.venue-address-block svg {
  width: 36px;
  height: 36px;
  opacity: 0.35;
}
.venue-icon-img {
  width: 150px;
  height: 150px;
  opacity: 0.35;
}
.venue-address {
  font-size: 0.82rem;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--text);
}
.venue-map-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.venue-map-link:hover {
  color: var(--brown);
  border-color: var(--brown);
}

/* ── ITINERARY ── */
#itinerary {
  background: var(--cream);
}
.itinerary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.itin-card {
  background: white;
  border: 1px solid var(--sand);
  padding: 36px 24px 28px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.itin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(90,74,64,0.1);
}
.itin-card-icon {
  width: 75px;
  height: 75px;
  max-width: 90px;
  max-height: 90px;
  margin: 0 auto 12px;
  display: block;
  line-height: 1;
  object-fit: contain;
}
.itin-event {
  font-family: 'Playfair Display', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}
.itin-time {
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  color: var(--dark);
  font-weight: 300;
  margin-bottom: 10px;
}
.itin-time .pm {
  font-size: 0.8em;
}
.itin-detail {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--text);
  opacity: 0.85;
}
.itin-detail em {
  font-style: normal;
  font-size: 0.7rem;
  display: block;
  margin-top: 6px;
  color: var(--brown);
  letter-spacing: 0.04em;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--dark);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 13px 36px;
  transition: all 0.25s;
  margin-top: 8px;
}
.btn-outline:hover {
  background: var(--dark);
  color: white;
}

/* ── GALLERY ── */
#gallery {
  background: var(--warm-white);
  padding: 96px 24px;
}
.gallery-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.swiper {
  width: 100%;
  height: 320px;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swiper-button-next,
.swiper-button-prev {
  color: rgba(0,0,0,0.5);
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: rgba(0,0,0,0.7);
}

/* ── CAT RAIN ── */
#cat-rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 99999;
}
#cat-button {
  display: block;
  margin: 1.5rem auto 0;
  background: #8b6f5e;
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.2rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,0,0,0.25);
}
@keyframes catFall {
  0% {
    opacity: 0;
    transform: translateY(-120px) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(110vh) rotate(720deg);
  }
}

/* ── REGISTRY ── */
#registry {
  background: var(--cream);
}
.registry-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.85;
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text);
}
.registry-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-reg {
  display: inline-block;
  border: 1px solid var(--taupe);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  background: white;
  transition: all 0.25s;
}
.btn-reg:hover {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.btn-reg.featured {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}
.btn-reg.featured:hover {
  background: var(--brown);
  border-color: var(--brown);
}

/* ── FAQ ── */
#faq {
  background: var(--warm-white);
}
#faq .section-inner {
  max-width: 760px;
  text-align: left;
}
#faq .section-label {
  text-align: center;
}
#faq .section-title {
  text-align: center;
}
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--sand);
}
.faq-item {
  border-bottom: 1px solid var(--sand);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--dark);
  user-select: none;
  gap: 16px;
}
.faq-q:hover {
  color: var(--brown);
}
.faq-chevron {
  font-size: 0.7rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--taupe);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--text);
  opacity: 0.9;
  padding-bottom: 0;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 22px;
}

/* ── FOOTER ── */
footer {
  background: var(--cream);
  border-top: 1px solid var(--sand);
  padding: 20px 24px;
  text-align: center;
}
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
}
.footer-date {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  nav {
    padding: 16px 20px;
  }
  .nav-links {
    gap: 16px;
  }
  .itinerary-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .registry-btns {
    flex-direction: column;
    align-items: center;
  }
  .hero-names {
    font-size: clamp(4rem, 18vw, 7rem);
  }
}

@media (max-width: 860px) {
  body.itinerary-page {
    padding: 24px;
  }
  .itinerary-body {
    padding: 0 20px;
  }
}

@media (max-width: 520px) {
  .itinerary-body {
    padding: 0 16px;
  }
  .schedule-item {
    gap: 14px;
  }
  .schedule-time {
    min-width: 100px;
    font-size: 1.1rem;
  }
  .schedule-event {
    font-size: 0.88rem;
  }
}
