/* ── Fonts ───────────────────────────────────────────── */
@font-face {
  font-family: 'Chunko';
  src: url('fonts/Chunko-bold.otf') format('opentype');
}

/* ── Password Gate ───────────────────────────────────── */
@keyframes bg-drift {
  0%   { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes bg-drift-mobile {
  0%   { background-position: 100% 20%; }
  100% { background-position: 0% 0%; }
}

.unlocked #password-gate { display: none; }

#password-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: opacity 0.5s ease;
}

#password-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('photos/web_bg.png') repeat;
  background-size: 20%;
  animation: bg-drift 90s linear infinite;
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 767px) {
  #password-gate::before {
    background-size: 60%;
    animation-name: bg-drift-mobile;
    animation-duration: 30s;
  }
}

#password-gate.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Heart Transition ────────────────────────────────── */
#heart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

#heart-svg {
  width: 220px;
  height: 198px;
  transform: translateY(-4rem);
}

#heart-path {
  fill: none;
  stroke: #E86543;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gate-inner {
  text-align: center;
  width: 100%;
  max-width: 320px;
  margin-top: -4rem;
}

.gate-names {
  font-family: 'Chunko', serif;
  font-weight: 400;
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.gate-date {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
}

#gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

#gate-input {
  width: 100%;
  border-radius: 999px;
  border: 1.5px solid #2a1a2e;
  padding: 0.85rem 2.25rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  outline: none;
  background: rgba(255, 255, 255, 0.85);
  color: #2a1a2e;
  transition: box-shadow 0.3s ease;
}

#gate-input::placeholder {
  color: rgba(42, 26, 46, 0.45);
}

#gate-input:focus {
  box-shadow: 0 6px 24px rgba(42, 26, 46, 0.15);
}

#gate-error {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  color: #c0392b;
  min-height: 1rem;
}

#gate-form button {
  margin-top: 0.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: #2a1a2e;
  border: 1.5px solid #2a1a2e;
  box-shadow: 0 4px 20px rgba(42, 26, 46, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

#gate-form button:hover {
  background: #3d2654;
  box-shadow: 0 8px 30px rgba(42, 26, 46, 0.35);
  transform: translateY(-2px);
}

#gate-form button:active {
  transform: translateY(0px);
  box-shadow:
    0 2px 10px rgba(245, 178, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ── Palette ─────────────────────────────────────────── */
:root {
  --color-primary:  #161611;
  --color-bg:       #F8F4EB;
  --color-accent:   #E86543;
  --color-text:     #E86543;
  --color-contrast: #E86543;
  --color-muted:    #E86543;
}

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

img {
  max-width: 100%;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-stretch: condensed;
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4 {
  font-family: 'Chunko', serif;
  font-weight: 400;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}



/* ── Fireworks ───────────────────────────────────────── */
#fireworks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero ────────────────────────────────────────────── */
#hero {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 80px 1.25rem;
  gap: 0;
  min-height: 100svh;
}

.hero-nameplate {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  align-items: center;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

#hero .hero-display--top,
#hero .hero-image,
#hero .hero-display--bottom,
#hero .hero-details {
  opacity: 0;
}

.hero--animated .hero-display--top {
  animation: heroFadeDown 0.7s ease 0s forwards;
}
.hero--animated .hero-image {
  animation: heroFadeIn 0.9s ease 0.15s forwards;
}
.hero--animated .hero-display--bottom {
  animation: heroFadeUp 0.7s ease 0.1s forwards;
}
.hero--animated .hero-details {
  animation: heroFadeIn 0.7s ease 0.35s forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5rem 0;
  z-index: 1;
}

.hero-image {
  width: 60%;
  aspect-ratio: 2 / 2.5;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-display {
  width: 100%;
  font-family: 'Chunko', serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--color-text);
  text-transform: uppercase;
  text-align: center;
}

.hero-display--top {
  margin-bottom: -1.5rem;
  position: relative;
  z-index: 1;
}

.hero-display--bottom {
  margin-top: -1rem;
  position: relative;
  z-index: 1;
}

.hero-details {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.hero-full-names {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}


.hero-tagline {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-stretch: condensed;
  font-size: 1rem;
  line-height: 1.6;
  color: #478DC2;
  max-width: 280px;
}



/* ── Section Headings ────────────────────────────────── */
section h2 {
  font-size: clamp(1rem, 10vw, 3rem);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
}


/* photo 8 — mid-center-left */
.story-photo--8 {
  width: 32%;
  max-width: 260px;
  top: 55%;
  left: 18%;
  animation-delay: 0.4s;
}

/* photo 9 — mid-center-right */
.story-photo--9 {
  width: 32%;
  max-width: 260px;
  top: 52%;
  right: 18%;
  animation-delay: 0.45s;
}

/* ── Event Details / Timeline ────────────────────────── */
.timeline-wine-photo,
.timeline-ring-photo,
.timeline-server-photo,
.timeline-dance-photo {
  position: absolute;
  height: 12%;
  width: auto;
  pointer-events: none;
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
}

.timeline-wine-photo {
  right: 0;
  transform: translateY(-50%) translateX(150%);
  opacity: 0;
}

.timeline-wine-photo.timeline-photo--visible {
  transform: translateY(-50%) translateX(10%);
  opacity: 1;
}

.timeline-ring-photo {
  left: -15px;
  transform: translateY(-50%) translateX(-150%);
  opacity: 0;
}

.timeline-ring-photo.timeline-photo--visible {
  transform: translateY(-50%) translateX(-10%);
  opacity: 1;
}

.timeline-server-photo {
  left: 6px;
  transform: translateY(-50%) translateX(-150%);
  opacity: 0;
}

.timeline-server-photo.timeline-photo--visible {
  transform: translateY(-50%) translateX(-10%);
  opacity: 1;
}

.timeline-dance-photo {
  right: 16px;
  transform: translateY(-50%) translateX(150%);
  opacity: 0;
}

.timeline-dance-photo.timeline-photo--visible {
  transform: translateY(-50%) translateX(10%);
  opacity: 1;
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.timeline-item h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
}

.timeline-time {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  color: #478DC2;
}

.timeline-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-primary);
  width: 60%;
}

/* ── Travel & Stay ───────────────────────────────────── */
#travel {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.travel-hotel-img {
  display: block;
  width: 30%;
  margin: 0 auto 1.75rem;
  object-fit: cover;
  object-position: center 60%;
}

/* Hotel booking block */
.travel-hotel {
  text-align: center;
}

.travel-hotel__text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.travel-hotel__text strong {
  font-weight: 600;
}

.travel-hotel__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #2a1a2e;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 20px rgba(245, 178, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.travel-hotel__btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow:
    0 8px 30px rgba(245, 178, 208, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.travel-hotel__btn:active {
  transform: translateY(0px);
  box-shadow:
    0 2px 10px rgba(245, 178, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.travel-hotel__btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

/* Ottawa recommendations */
.travel-recs__intro {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
  text-align: center;
}

.travel-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-track-wrap {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track .travel-recs__category {
  min-width: 100%;
  padding: 0 0.25rem;
  text-align: center;
}

.carousel-arrow {
  flex-shrink: 0;
  background: none;
  border: 1.5px solid #478DC2;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  color: #478DC2;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
  background-color: #478DC2;
  color: #fff;
  transform: scale(1.08);
}

.carousel-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  transform: none;
}

.travel-recs__category h3 {
  font-family: 'Chunko', serif;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.travel-recs__category ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.travel-recs__category li {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 17, 0.25);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}

.travel-recs__category li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #478DC2;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.travel-recs__category li:hover {
  background-color: #478DC2;
  border-color: #478DC2;
  color: #fff;
}

.travel-recs__category li:hover::before {
  background-color: #fff;
}

/* ── Travel Map ──────────────────────────────────────── */
.travel-map {
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

#travel-map {
  width: 100%;
  height: 260px;
}

/* ── Attire ──────────────────────────────────────────── */
#attire {
  flex-direction: column;
}

.attire-intro {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 2rem;
}

.attire-grid {
  display: flex;
  gap: 5rem;
  justify-content: center;
}

.attire-item {
  position: relative;
  width: 20%;
  max-width: 90px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: transform 0.3s ease;
}

.attire-item:hover {
  transform: rotate(4deg);
}

.attire-item[data-modal="dress"]:hover {
  transform: rotate(-4deg);
}

.attire-item[data-modal="dress"] {
  width: 18%;
  max-width: 81px;
}

@keyframes attire-hint {
  0%, 40%, 100% { opacity: 0; }
  15%, 25%      { opacity: 1; }
}

@media (max-width: 767px) {
  .attire-item {
    width: 24%;
    max-width: 108px;
  }

  .attire-item[data-modal="dress"] {
    width: 21.6%;
    max-width: 97px;
  }

  .attire-img--filled {
    animation: attire-hint 10s ease-in-out infinite;
  }

  .attire-item[data-modal="dress"] .attire-img--filled {
    animation-delay: 5s;
  }
}

.attire-img--empty {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease;
}

.attire-img--filled {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.attire-item:hover .attire-img--filled {
  opacity: 1;
}

/* Attire Modal */
.attire-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.attire-modal.open {
  display: flex;
}

.attire-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 17, 0.75);
}

.attire-modal__content {
  position: relative;
  z-index: 1;
  padding: 0.5rem;
  max-width: 90vw;
  max-height: 90vh;
}

.attire-modal__close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid rgba(22, 22, 17, 0.15);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.2s ease;
  z-index: 2;
}

.attire-modal__close:hover {
  background: #fff;
}

.attire-modal__photo {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}

@media (max-width: 767px) {
  .attire-modal__photo {
    max-width: 72vw;
    max-height: 68vh;
    margin: 0 auto;
  }

  .attire-modal__content {
    display: flex;
    justify-content: center;
  }
}

/* ── FAQs ────────────────────────────────────────────── */
.faq-list {
  list-style: none;
  width: 100%;
}

.faq-list::before,
.faq-item::after {
  content: '';
  display: block;
  height: 1px;
  width: 90%;
  background: rgba(22, 22, 17, 0.5);
  margin: 0 auto;
}

.faq-item {
  position: relative;
}

.faq-item details {
  width: 100%;
  overflow: hidden;
}

.faq-item summary {
  font-family: 'Open Sans', sans-serif;
  font-size: 11pt;
  font-weight: 700;
  font-stretch: condensed;
  color: var(--color-primary);
  text-transform: capitalize;
  padding: 0.85rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: '+';
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #478DC2;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item details[open] summary::before {
  transform: rotate(45deg);
}

.faq-item details p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-primary);
  padding: 0 0 0 1rem;
  margin: 0.2rem 0 1rem 1.85rem;
  border-left: 2px solid var(--color-contrast);
  line-height: 1.6;
  text-align: left;
}

/* ── RSVP nudge ──────────────────────────────────────── */
@keyframes rsvp-nudge {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-6deg); }
  30%  { transform: rotate(6deg); }
  45%  { transform: rotate(-4deg); }
  60%  { transform: rotate(4deg); }
  75%  { transform: rotate(-2deg); }
  90%  { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.rsvp-nudge {
  animation: rsvp-nudge 0.6s ease;
}

/* ── RSVP ────────────────────────────────────────────── */
#rsvp {
  text-align: center;
}

#rsvp p {
  font-weight: 300;
  margin-bottom: 2rem;
}

.btn-rsvp {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #2a1a2e;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 20px rgba(245, 178, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.btn-rsvp:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow:
    0 8px 30px rgba(245, 178, 208, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-rsvp:active {
  transform: translateY(0px);
  box-shadow:
    0 2px 10px rgba(245, 178, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ── RSVP Page ───────────────────────────────────────── */
.rsvp-page {
  min-height: 100svh;
}

.rsvp-page-wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  gap: 0;
}

.caret {
  width: 1rem;
  height: 1rem;
  display: block;
  flex-shrink: 0;
}

.caret--left  { transform: rotate(90deg); }
.caret--right { transform: rotate(-90deg); }

.rsvp-page-wrap {
  animation: slideInFromRight 0.4s cubic-bezier(0, 0, 0.4, 1) forwards;
}

.rsvp-page-wrap--exit {
  animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 1, 0.6) forwards;
}

@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(100%);  opacity: 0; }
}

.rsvp-back-btn {
  position: fixed;
  top: 1.25rem;
  left: max(1.25rem, calc(50% - 300px));
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(22, 22, 17, 0.2);
  background: transparent;
  color: var(--color-primary);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}

.rsvp-back-btn:hover {
  background: rgba(22, 22, 17, 0.06);
  border-color: rgba(22, 22, 17, 0.35);
}

.rsvp-wordmark {
  position: fixed;
  top: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Chunko', serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.rsvp-wordmark:hover {
  opacity: 0.6;
}

.rsvp-section {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.rsvp-confirmed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 30vh;
}

.rsvp-confirmed .rsvp-heading,
.rsvp-confirmed .rsvp-subtitle {
  margin: 0;
}

.rsvp-confirmed .rsvp-confirmation-img {
  margin: -10vh auto 0;
}

#rsvpMain {
  display: none;
}

#rsvpMain.visible {
  display: block;
}

#checkin.hidden {
  display: none;
}

.rsvp-heading {
  font-family: 'Chunko', serif;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.rsvp-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

.rsvp-form-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

#plus1Field {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.rsvp-form-fields {
  align-items: stretch;
}

.rsvp-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 17, 0.2);
  padding: 0.85rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  outline: none;
  background: transparent;
  color: var(--color-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-input--left {
  text-align: left;
}

.rsvp-textarea {
  border-radius: 16px;
  resize: vertical;
  line-height: 1.6;
}

.rsvp-input:focus {
  border-color: rgba(22, 22, 17, 0.4);
  box-shadow: 0 4px 16px rgba(22, 22, 17, 0.06);
}

.rsvp-input::placeholder {
  color: rgba(22, 22, 17, 0.35);
}

.name-input-wrap {
  position: relative;
  width: 100%;
}

.name-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(22, 22, 17, 0.15);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(22, 22, 17, 0.1);
  overflow: hidden;
  z-index: 100;
}

.name-suggestions.visible {
  display: block;
}

.name-suggestion-item {
  padding: 0.7rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-primary);
  cursor: pointer;
  text-align: left;
}

.name-suggestion-item:hover,
.name-suggestion-item.active {
  background: rgba(22, 22, 17, 0.05);
}

.meal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.meal-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1rem 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(22, 22, 17, 0.2);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-primary);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.meal-pill input[type="radio"] {
  display: none;
}

.meal-pill:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(245, 178, 208, 0.12);
}

.meal-pill__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.meal-pill__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.meal-pill__sub {
  font-size: 0.8rem;
  opacity: 0.7;
}

.meal-vegan-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.meal-vegan-note {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--color-primary);
  opacity: 0.65;
  margin: 0;
  text-align: center;
}

.rsvp-info-panel {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 17, 0.2);
  padding: 0.85rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  text-align: center;
  color: var(--color-primary);
}

#guestWrap {
  display: none;
  width: 100%;
  text-align: center;
}

#guestWrap.visible {
  display: block;
}

.rsvp-guest-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.rsvp-select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(22, 22, 17, 0.2);
  padding: 0.85rem 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-align: center;
  text-align-last: center;
  outline: none;
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.rsvp-btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2a1a2e;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.85rem 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 20px rgba(245, 178, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.rsvp-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow:
    0 8px 30px rgba(245, 178, 208, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.rsvp-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 10px rgba(245, 178, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rsvp-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: 0 4px 20px rgba(245, 178, 208, 0.2);
}

.rsvp-field {
  width: 100%;
  text-align: left;
}

.rsvp-field-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--color-primary);
  opacity: 0.7;
  margin: 0 0 0.6rem;
  line-height: 1.6;
}

.rsvp-label {
  display: block;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.rsvp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rsvp-radio {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-primary);
  cursor: pointer;
}

.rsvp-radio input[type="radio"] {
  accent-color: var(--color-accent);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.rsvp-error {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  color: #c0392b;
  min-height: 1rem;
  text-align: center;
}

.rsvp-confirmation-img {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  display: block;
  margin: -3rem auto 0;
}

.rsvp-success {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-primary);
  text-align: center;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0 3rem;
  gap: 0.75rem;
}

.site-footer__text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-primary);
  opacity: 0.5;
}

.site-footer__heart {
  width: 18px;
  height: auto;
  fill: var(--color-accent);
  opacity: 0.6;
}

/* ── Dot Navigation ──────────────────────────────────── */
.dot-nav {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  background: var(--color-bg);
  padding: 0.75rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(22, 22, 17, 0.1);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.dot-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.dot-nav__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(22, 22, 17, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot-nav__dot.active {
  background: var(--color-accent);
  transform: scale(1.35);
}

@media (min-width: 768px) {
  .dot-nav {
    display: none;
  }
}


/* ── Desktop ─────────────────────────────────────────── */
@media (min-width: 768px) {
  html {
    font-size: 19px;
  }
  body::before {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    background: var(--color-bg);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
    z-index: -1;
  }


  #hero {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-image {
    aspect-ratio: 3 / 4;
    height: auto;
  }

  .container {
    padding: 0 2rem;
  }

  /* Pull timeline photos inward from screen edges */
  .timeline-wine-photo  { right: calc(50% - 340px); }
  .timeline-dance-photo { right: calc(50% - 340px); }
  .timeline-ring-photo  { left:  calc(50% - 340px); }
  .timeline-server-photo { left: calc(50% - 340px); }

  .timeline-wine-photo.timeline-photo--visible,
  .timeline-dance-photo.timeline-photo--visible {
    transform: translateY(-50%) translateX(0);
  }

  .timeline-ring-photo.timeline-photo--visible,
  .timeline-server-photo.timeline-photo--visible {
    transform: translateY(-50%) translateX(0);
  }
}
