/* ==========================================================================
   DAVID & MYRIAM - WEDDING INVITATION
   Custom Invite & Sections Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Sticky Header & Navigation
   -------------------------------------------------------------------------- */
.invitation-page body {
  overflow-x: clip;
}

.invitation-page,
.invitation-page * {
  scrollbar-width: none !important;
  scrollbar-gutter: auto !important;
}

.invitation-page::-webkit-scrollbar,
.invitation-page *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled,
.site-header.always-visible {
  background: rgba(251, 249, 241, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.site-header.scrolled .nav-brand-link,
.site-header.always-visible .nav-brand-link {
  opacity: 1;
  pointer-events: auto;
}

.nav-monogram {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Audio toggle button */
.btn-sound-toggle {
  position: fixed;
  z-index: 1001;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: var(--bg-color);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-sound-toggle:hover {
  background: var(--text-main);
  color: var(--bg-color);
}

.btn-sound-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hamburger button */
.btn-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* Navigation Drawer Modal */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
  transition: visibility 0.4s ease;
}

.nav-drawer.open {
  visibility: visible;
}

.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 10, 10, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-drawer.open .nav-drawer-backdrop {
  opacity: 1;
}

.nav-drawer-panel {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  width: min(100%, 440px);
  background: var(--bg-color);
  padding: 32px 24px 44px;
  border-bottom: 2px solid var(--text-main);
  box-shadow: 0 16px 40px rgba(102, 16, 40, 0.15);
  transform: translate(-50%, -100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none !important;
  scrollbar-gutter: auto !important;
}
.nav-drawer-panel::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

.nav-drawer.open .nav-drawer-panel {
  transform: translate(-50%, 0);
}

.nav-drawer-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-drawer-monogram {
  grid-column: 2;
  justify-self: center;
  width: clamp(150px, 44cqw, 190px);
  max-width: 100%;
  height: auto;
}

.nav-drawer-close {
  grid-column: 3;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-main);
  padding: 4px 8px;
}

.nav-drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.nav-drawer-menu a {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: var(--text-main);
  display: inline-block;
  padding: 6px 12px;
  position: relative;
}

.nav-drawer-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-drawer-menu a:hover::after,
.nav-drawer-menu a.active::after {
  width: 60%;
}

/* --------------------------------------------------------------------------
   2. Main Page Layout & Hero Section
   -------------------------------------------------------------------------- */
.main-wrapper {
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100cqw;
  overflow-x: clip;
}

.hero-card-container {
  width: 100%;
  max-width: 410px;
  padding: 0;
  margin: 0 auto;
}

.invitation-frame-card {
  position: relative;
  width: 100%;
  container-type: inline-size;
  background: var(--bg-color);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Background image of the card with mistletoe & ribbon */
.invitation-frame-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 1;
}

.hero-card-container ~ * {
  transition: opacity 700ms ease-out, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-intro-pending .hero-card-container ~ * {
  opacity: 0;
  transform: translateY(14px);
  visibility: hidden;
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4cqw);
}

.hero-stars.is-ready {
  opacity: 1;
}

.hero-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: var(--ratio);
  transform: translate(-50%, -50%);
  opacity: 0;
}

.hero-stars.is-ready .hero-star {
  opacity: 1;
}

.hero-star img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.hero-star-mark {
  filter: var(--star-color-filter);
  animation-name: hero-star-twinkle;
}

.hero-star-glow {
  z-index: 1;
  opacity: 0;
  filter: var(--star-color-filter) blur(0.25px) drop-shadow(0 0 2px rgba(102, 16, 40, 0.7)) drop-shadow(0 0 6px rgba(102, 16, 40, 0.35));
  animation-name: hero-star-glow;
}

.hero-stars.is-ready.is-active .hero-star.is-visible img {
  animation-play-state: running;
}

@keyframes hero-star-twinkle {
  0%, 12%, 40%, 62%, 90%, 100% { opacity: 0.55; transform: scale(0.96); }
  24%, 74% { opacity: 1; transform: scale(1.12); }
  32%, 82% { opacity: 0.84; transform: scale(1.02); }
}

@keyframes hero-star-glow {
  0%, 12%, 40%, 62%, 90%, 100% { opacity: 0; transform: scale(0.94); }
  24%, 74% { opacity: 0.45; transform: scale(1.15); }
  32%, 82% { opacity: 0.14; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-container ~ * { transition: none; }
  .hero-star img { animation: none; }
  .hero-star-glow { display: none; }
}

.invitation-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(32px, 9cqw, 40px) 10px clamp(24px, 7cqw, 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-monogram-img {
  width: 74%;
  height: auto;
  margin-bottom: 30px;
}

.hero-names-image {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 0 42px;
}

.hero-names-img {
  width: 53.3%;
  max-width: 230px;
  height: auto;
}

.hero-date {
  max-width: 100%;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
  color: var(--text-main);
  line-height: 1.4;
}

@font-face {
  font-family: 'Elgraine';
  src: url('assets/fonts/Elgraine-Light.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.hero-venue-link {
  font-family: 'Elgraine', Georgia, serif;
  font-size: 16.5px;
  text-transform: uppercase;
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
  white-space: normal;
  margin: 0 0 4px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-venue-link:hover {
  opacity: 0.82;
  transform: scale(1.02);
}

.hero-venue-sub {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
  color: var(--text-main);
  line-height: 1.4;
}

.hero-location {
  margin-top: clamp(18px, 5cqw, 22px);
}

.hero-reception-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  margin-top: 30px;
  margin-bottom: 0;
  color: var(--text-main);
  line-height: 1.4;
}

@container (max-width: 360px) {
  .invitation-content {
    padding-top: 42px;
  }
}

/* --------------------------------------------------------------------------
   3. "YOUR GUIDE" Carousel
   -------------------------------------------------------------------------- */
.guide-section {
  width: 100%;
  padding: clamp(185px, 21.1cqw, 304px) 0 45px;
  overflow: hidden;
}

.guide-title {
  text-align: center;
  font-family: var(--font-serif);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 24px;
}

/* Carousel viewport and track */
.guide-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 44px 44px 1fr;
  column-gap: 8px;
  width: min(100%, 520px);
  margin-inline: auto;
}

.guide-carousel-viewport {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 0;
}

.guide-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.guide-track {
  display: flex;
  gap: 0;
  width: 100%;
}

.guide-carousel-arrow {
  position: static;
  grid-row: 2;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 32px;
  border-radius: 50%;
  background: var(--text-main);
  color: var(--bg-color);
  transform: none;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.guide-carousel-previous {
  grid-column: 2;
  justify-self: end;
}

.guide-carousel-next {
  grid-column: 3;
  justify-self: start;
}

.guide-carousel-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.guide-carousel-arrow:hover:not(:disabled) {
  transform: scale(1.06);
}

.guide-carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Guide Card */
.guide-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  background: transparent;
  border: none;
  padding: 12px 10px;
  text-decoration: none;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.guide-card:hover {
  transform: translateY(-6px) scale(1.03);
}

.guide-card-art {
  margin-bottom: 24px;
  width: min(198px, 58.5cqw);
  height: min(198px, 58.5cqw);
  object-fit: contain;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}

.guide-card--explore .guide-card-art {
  width: min(234px, 64.8cqw);
}

.guide-card--stay-in .guide-card-art {
  object-position: 62% center;
}

.guide-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4cqw, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-main);
  margin-bottom: 6px;
}

.guide-card-sub {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@container (max-width: 480px) {
  .guide-carousel-viewport {
    width: 100%;
  }

}

/* --------------------------------------------------------------------------
   4. RSVP Section (Pine Trees Framing + Minimalist Form)
   -------------------------------------------------------------------------- */
.schedule-section {
  width: 100%;
  margin-top: 72px;
  padding-bottom: 60px;
}

.schedule-carousel {
  width: min(100%, 1100px);
}

.schedule-card {
  position: relative;
  padding: 12px 24px;
  cursor: default;
  justify-content: flex-start;
}

.schedule-event-category,
.schedule-event-title,
.schedule-date {
  font-family: var(--font-serif);
  font-size: calc(clamp(1.2rem, 3.2cqw, 1.8rem) - 1px);
  font-weight: 450;
  line-height: 1.25;
  color: var(--text-main);
  text-transform: uppercase;
}

.schedule-event-category {
  font-weight: 425;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
}

.schedule-event-title {
  font-weight: 425;
  margin: 12px 0 2px;
}

.schedule-date {
  margin: 0;
}

.schedule-details {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.schedule-card:hover {
  transform: none;
}

.schedule-note {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.schedule-art {
  position: relative;
  z-index: 1;
  display: block;
  width: min(220px, 100%);
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.schedule-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 140px;
  left: 75%;
  width: 50%;
  height: 64px;
  background: url('assets/schedule/dottedline.webp') center / 100% auto no-repeat;
  pointer-events: none;
}

@container (min-width: 900px) {
  .schedule-card {
    flex-basis: 33.333333%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-carousel-viewport {
    scroll-behavior: auto;
  }
}

.rsvp-section {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 60px auto 36px;
  padding: 0;
  text-align: center;
}

.rsvp-divider {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 24px;
  pointer-events: none;
}

.section-divider {
  max-width: 440px;
  margin: 0 auto 40px;
}

.light-strand { position: relative; }
.light-strand img { display: block; width: 100%; height: auto; }
.light-glow {
  position: absolute;
  width: 6%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,122,.7), rgba(255,204,91,.25) 42%, transparent 70%);
  animation: light-twinkle var(--speed) ease-in-out var(--delay) infinite;
}
.light-glow--red { background: radial-gradient(circle, rgba(255,143,121,.65), rgba(195,40,57,.25) 42%, transparent 70%); }
@keyframes light-twinkle { 0%, 100% { opacity: .05; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .light-glow { animation: none; opacity: .5; } }

.rsvp-header-frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  line-height: 0;
}

/* RSVP envelope and deadline artwork */
.rsvp-center-content {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  text-align: center;
  pointer-events: none;
  z-index: 2;
  line-height: 1.45;
}

.rsvp-envelope-img {
  width: clamp(84px, 26cqw, 110px);
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.rsvp-deadline-text {
  font-family: var(--font-serif);
  font-size: clamp(17px, 5cqw, 18px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

.rsvp-deadline-text strong {
  font-weight: 500;
}

/* Form Container */
.rsvp-shuttle-note {
  margin: 16px var(--page-padding-x) 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.rsvp-form-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 28px 0;
  box-shadow: none;
  margin: 20px var(--page-padding-x) 0;
  text-align: left;
}

.rsvp-row-2 {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
}

.rsvp-date-time-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

@container (max-width: 480px) {
  .rsvp-form-card {
    width: calc(100% - 64px);
    margin: 20px auto 0;
  }

  .rsvp-row-2 {
    flex-direction: column;
    gap: 16px;
  }

}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 400;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-color);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(102, 16, 40, 0.1);
}

.form-input::placeholder {
  color: rgba(102, 16, 40, 0.4);
}

/* Pill Choice Buttons (Yes / No) */
.choice-pill-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-pill {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
  text-align: center;
}

.btn-pill:hover {
  background: rgba(102, 16, 40, 0.08);
  transform: translateY(-1px);
}

.btn-pill.active {
  background: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

.btn-pill:active {
  transform: scale(0.96);
}

/* Plus-One Container */
.rsvp-event-list,
.rsvp-event,
.rsvp-airport,
.rsvp-shuttle-question {
  min-width: 0;
  border: 0;
  padding: 0;
}

.rsvp-event-list,
.rsvp-airport,
.rsvp-shuttle-question {
  margin-top: 32px;
}

.rsvp-event {
  width: 100%;
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.rsvp-event legend {
  width: 100%;
}

.rsvp-event-title {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 6px;
}

.rsvp-event .rsvp-phone-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.875rem;
}

.rsvp-field-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.btn-pill:has(input) {
  position: relative;
}

.btn-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.btn-pill:has(input:checked) {
  background: var(--text-main);
  color: var(--bg-color);
  border-color: var(--text-main);
}

.btn-pill:has(input:focus-visible) {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

.airport-arrival {
  margin-top: 20px;
}

.rsvp-event-list[hidden],
.airport-arrival[hidden] {
  display: none;
}

.plus-one-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-subtle);
  display: none;
  animation: fadeIn 0.3s ease;
}

.plus-one-wrap.open {
  display: block;
}

.plus-one-inputs {
  display: none;
  margin-top: 14px;
  animation: fadeIn 0.3s ease;
}

.plus-one-inputs.open {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Submit Button */
.btn-submit-rsvp {
  width: 100%;
  height: 44px;
  padding: 12px 8px;
  background: var(--text-main);
  color: var(--bg-color);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  margin: 16px auto 0;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit-rsvp:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(102, 16, 40, 0.25);
}

.btn-submit-rsvp:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-submit-rsvp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rsvp-update-notice {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.rsvp-phone-link {
  color: var(--text-main);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.rsvp-phone-link:hover {
  opacity: 0.8;
}

.rsvp-error-banner {
  display: none;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  text-align: center;
}

/* Success Card */
.rsvp-success-card {
  display: none;
  text-align: center;
  padding: 40px 24px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(102, 16, 40, 0.08);
  margin: 20px var(--page-padding-x) 0;
}

.rsvp-success-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 12px;
}

.rsvp-success-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. Closing & Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  max-width: var(--max-content-w);
  margin: 48px auto 24px;
  padding: 0 var(--page-padding-x);
  text-align: center;
}

.footer-note-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
}

/* Fallback live HTML text for note if needed */
.footer-text-block {
  margin-top: 12px;
}

.footer-quote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  line-height: 1.6;
}

.footer-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-main);
  margin: 16px 0 6px;
}

.footer-names-script {
  font-family: var(--font-script);
  font-size: 2.8rem;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   6. Subpage Layout Styles (Explore, Party, Stay In, etc.)
   -------------------------------------------------------------------------- */
.subpage-container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 80px;
  padding: 0 clamp(20px, 4.5cqw, 48px);
}

.subpage-hero {
  width: 100cqw;
  margin-left: calc(50% - 50cqw);
  text-align: center;
  margin-bottom: clamp(108px, 12cqw, 168px);
}

.subpage-hero-image {
  width: 100%;
  height: auto;
  margin: 0;
}

.guide-title {
  font-size: clamp(1.2rem, 3.2cqw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.back-to-top {
  display: none;
}

@container (min-width: 900px) {
  .back-to-top {
    display: block;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1001;
    padding: 12px 18px;
    border: 1px solid var(--border-strong);
    background: var(--bg-color);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
  }
}

/* Subpage editorial list */
.guide-category-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto clamp(80px, 10cqw, 128px);
  padding: 4px 4px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.guide-category-nav button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  white-space: nowrap;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease-out, color 160ms ease-out;
  text-decoration: none;
}

.guide-category-nav button:first-child {
  margin-left: auto;
}

.guide-category-nav button:last-child {
  margin-right: auto;
}

.guide-category-nav button:hover {
  background: rgba(102, 16, 40, 0.08);
}

.guide-category-nav button[aria-pressed="true"] {
  background: var(--text-main);
  color: var(--bg-color);
}

.guide-category-nav button:focus-visible {
  outline: 1px solid var(--text-main);
  outline-offset: 4px;
}

.guide-group + .guide-group {
  margin-top: clamp(144px, 18cqw, 240px);
}

.has-category-filters:not(.show-all-categories) .guide-group {
  margin-top: 0;
}

.guide-group[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .guide-category-nav button {
    transition: none;
  }
}

.guide-category-art {
  display: block;
  width: clamp(160px, 24cqw, 240px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.subpage-hero .guide-category-art {
  margin-top: 32px;
}

.guide-group[aria-labelledby="beirut-essentials"] .guide-category-art {
  width: clamp(136px, 20.4cqw, 204px);
}

.guide-category-title {
  margin-bottom: clamp(40px, 5cqw, 64px);
  scroll-margin-top: 96px;
}

.guide-category-title {
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 4cqw, 2rem);
  font-weight: 500;
  line-height: 1.3;
}

.subpage-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: clamp(64px, 8cqw, 112px);
  margin: 0 auto;
}

.info-card {
  width: min(92%, 600px);
  padding: 32px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.info-card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  margin-bottom: 24px;
}

.travel-phrase-list {
  margin-top: 20px;
  font-size: 1rem;
}

.travel-phrase-list div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.travel-phrase-list dd {
  color: var(--text-muted);
}

.info-card:nth-child(even) {
  align-self: flex-end;
  text-align: right;
}

.info-card:nth-child(even) .info-card-header {
  align-items: flex-end;
}

.info-card:nth-child(even) .info-card-desc {
  margin-left: auto;
}

.info-card:nth-child(even) .info-card-links {
  justify-content: flex-end;
}

.info-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 12px;
}

.info-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3cqw, 1.45rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--text-main);
}

.info-card-badge {
  max-width: 100%;
  font-size: 0.74rem;
  line-height: 1.5;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-card-desc {
  max-width: 65ch;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.72;
}

.info-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  margin-top: 14px;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 5px;
  transition: color 160ms ease-out, opacity 160ms ease-out;
}

.card-action-btn:active,
.btn-back-home:active {
  transform: scale(0.98);
}

.subpage-back-nav {
  text-align: center;
  max-width: 760px;
  margin: clamp(80px, 10cqw, 128px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 5px;
  transition: color 160ms ease-out, opacity 160ms ease-out, transform 160ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .card-action-btn:hover,
  .btn-back-home:hover {
    color: var(--text-muted);
  }
}

.card-action-btn:focus-visible,
.btn-back-home:focus-visible {
  outline: 1px solid var(--text-main);
  outline-offset: 4px;
}

/* Keep every invitation page in the same portrait layout as Amanda and Ralph. */
body { width: min(100%, 440px); margin-inline: auto; container-type: inline-size; }
.site-header { width: min(100%, 440px); left: 50%; right: auto; transform: translateX(-50%); }
.subpage-hero { width: 100cqw; margin-left: calc(50% - 50cqw); }
.guide-title { font-family: 'Elgraine', Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.rsvp-beauty { border: 0; margin-top: 20px; min-width: 0; }
@media (min-width: 600px) {
  html { background: var(--bg-color); }
  .btn-sound-toggle { right: calc(50% - 220px + 18px); }
}
