/* ═══════════════════════════════════════════════
   ROOT & RESET
   ═══════════════════════════════════════════════ */
@font-face {
  font-family: 'Benedict';
  src: url('assets/fonts/BenedictRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  color-scheme: only light !important;
}

:root {
  color-scheme: only light;
  --bg:         #F0EBE3;
  --text:       #4A3F37;
  --green:      #7A8B6A;
  --green-light:#96A788;
  --rose:       #C09990;
  --rose-light: #D4B5AD;
  --cream:      #F5F0E8;
  --border:     #D5C9BC;
  --font-display: 'Cinzel', Georgia, serif;
  --font-script:  'Benedict', 'Pinyon Script', cursive;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  forced-color-adjust: none;
  -ms-high-contrast-adjust: none;
}

body {
  background-color: #F0EBE3 !important;
  color: #4A3F37 !important;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas, picture {
  filter: none !important;
  -webkit-filter: none !important;
  forced-color-adjust: none;
}

/* Force light colors even when browser reports dark preference */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light !important;
    --bg:         #F0EBE3;
    --text:       #4A3F37;
    --green:      #7A8B6A;
    --green-light:#96A788;
    --rose:       #C09990;
    --rose-light: #D4B5AD;
    --cream:      #F5F0E8;
    --border:     #D5C9BC;
  }
  html, body {
    background-color: #F0EBE3 !important;
    color: #4A3F37 !important;
  }
  img, svg, video, canvas, picture {
    filter: none !important;
    -webkit-filter: none !important;
  }
}


/* ═══════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 300;
  transition: opacity 0.8s ease;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
}
.preloader.hidden {
  display: none;
}

.preloader-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.preloader-progress {
  margin-top: 1.2rem;
  width: 140px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.preloader-bar.indeterminate {
  width: 40%;
  transition: none;
  animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.preloader-percent {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--green);
}

.preloader-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--rose-light);
  height: 1.4em;
  overflow: hidden;
}

.preloader-text span {
  display: block;
  opacity: 0;
  animation: fadeWord 0.6s ease forwards;
}

/* Hide page content until loaded */
.page-content { visibility: hidden; }
.page-content.ready { visibility: visible; }

/* ═══════════════════════════════════════════════
   CODE GATE
   ═══════════════════════════════════════════════ */
.gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 400;
  transition: opacity 0.8s ease;
}
.gate.hidden { opacity: 0; pointer-events: none; }
.gate-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.gate-input {
  width: 160px;
  padding: 0.7rem 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-align: center;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s;
}
.gate-input:focus { border-color: var(--green); }
.gate-btn {
  display: block;
  margin: 1rem auto 0;
  padding: 0.6rem 2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.gate-btn:hover { background: var(--green-light); }
.gate-error {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--rose);
  min-height: 1.2em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* ═══════════════════════════════════════════════
   INVITATION IMAGES
   ═══════════════════════════════════════════════ */
.invitation-images {
  max-width: 100%;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  /* background: url('assets/background.svg') repeat; */
  background: url('https://cdn.jsdelivr.net/gh/Input-the-output/karimyasmine-cdn@063df8d/background.svg') repeat;
  /* background: url('assets/background.svg') repeat; */
  background-color: #F0EBE3;
}

.invitation-images img {
  width: 100%;
  display: block;
  filter: none !important;
  -webkit-filter: none !important;
}

.invitation-images img.img-hero {
  /* max-width: 650px; */
  margin: 0 auto;
  padding: 0;
}

.invite-click-wrap {
  position: relative;
  display: block;
  line-height: 0;
}
.invite-click-wrap img {
  width: 100%;
  display: block;
}
.ky-text-overlay {
  display: block;
  width: 100%;
  pointer-events: none;
}
.invite-click-wrap--hero {
  padding: 2rem 0;
  position: static;
}
.invite-click-wrap--hero .invite-click-inner {
  position: relative;
  display: block;
  line-height: 0;
}
@media (max-width: 480px) {
  .invite-click-wrap--hero {
    /* padding: 1.5rem 1rem; */
  }
}
.invite-hotspot {
  position: absolute;
  display: block;
  border: 1px solid var(--green);
  border-radius: 100px;
  background: transparent;
  box-sizing: border-box;
  text-decoration: none;
  z-index: 2;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.invite-hotspot:hover {
  background: rgba(122, 139, 106, 0.08);
  border-color: var(--green);
}

.content-wrap {
  /* background: url('assets/background.svg') repeat; */
  background: url('https://cdn.jsdelivr.net/gh/Input-the-output/karimyasmine-cdn@063df8d/background.svg') repeat;
  /* background: url('assets/background.svg') repeat; */
  background-color: #F0EBE3 !important;
  overflow-x: clip;
}

/* ═══════════════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════════════ */
.section {
  max-width: 650px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 400;
  color: var(--green);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 2rem;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2.5rem auto;
  max-width: 200px;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-divider > img {
  width: 20px;
  height: auto;
  opacity: 0.6;
}

/* Themed divider centerpieces (larger + full opacity) */
.section-divider > img.divider-icon {
  width: 30px;
  /* opacity: 0.95; */
}
.section-divider > img.divider-icon--heart {
  width: 38px;
}
.section-divider > img.divider-icon--gift,
.section-divider > img.divider-icon--letter {
  width: 32px;
}
.section-divider > img.divider-icon--red-flower {
  width: 52px;
  opacity: 1;
}
/* Decorations that float around the divider line */
.section-divider > img.divider-accent {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  height: auto;
  opacity: 1;
}
.section-divider > img.divider-accent--bird-on-line {
  width: 28px;
  top: 50%;
  left: 50%;
  transform: translate(28px, -50%);
}
.section-divider > img.divider-accent--bird-flowers {
  margin-top: 32px;
  margin-right: -41px;
  z-index: 1;
}
.section-divider > img.divider-accent--bird-tr {
  width: 42px;
  right: 0;
  top: 50%;
  transform: translate(120%, -115%) rotate(-20deg);
}
.section-divider > img.divider-accent--bird-bl {
  width: 42px;
  left: 0;
  top: 50%;
  transform: translate(-120%, 10%) scaleX(-1) rotate(75deg);
}
.section-divider > img.divider-accent--birds-left {
  width: 160px;
  left: 80px;
  top: -5px;
  transform: translate(-100%, -55%);
}
@media (max-width: 560px) {
  .section-divider > img.divider-accent--birds-left { width: 96px; }
  .section-divider > img.divider-accent--bird-tr,
  .section-divider > img.divider-accent--bird-bl { width: 36px; }
}
.section-divider--countdown > img {
  width: 80px;
  height: auto;
  opacity: 1;
  margin-top: -24px;
  margin-right: -24px;
  z-index: 1;
}
@media (min-width: 561px) {
  .section-divider--countdown > img {
    width: 120px;
    margin-top: -38px;
    margin-right: -38px;
  }
}

/* Title-flanking decorations — wrapper hugs text, icons sit outside */
.section-title-wrap {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
/* Force "Travel & Accommodation" to always wrap — 9em scales with the h2's own font-size */
.section-title-wrap--hotels .section-title {
  max-width: 9em;
  text-align: center;
}
.title-deco {
  position: absolute;
  pointer-events: none;
  height: auto;
  opacity: 0.95;
}
.title-deco--hotels-flower {
  width: 22px;
  right: calc(100% + 6px);
  top: -15px;
  transform: rotate(-12deg);
}
.title-deco--hotels-plane {
  width: 52px;
  left: 100%;
  bottom: 50%;
  transform: rotate(-6deg);
  transform-origin: bottom left;
}
@media (min-width: 561px) {
  .title-deco--hotels-flower { width: 28px; }
  .title-deco--hotels-plane  { width: 76px; }
}

.title-deco--transportation-car {
  width: 58px;
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%) rotate(-4deg);
}
@media (min-width: 561px) {
  .title-deco--transportation-car { width: 66px; }
}
@media (max-width: 560px) {
  .title-deco--transportation-car { width: 50px; }
}
@media (max-width: 380px) {
  .title-deco--transportation-car { width: 44px; }
}

/* Items list wrapper — table sits on first item, flowers hang below last */
.items-list {
  position: relative;
}
/* Table: standalone block above first item; flowers: block after last item */
.item-deco--table {
  display: block;
  width: 68px;
  margin-left: 12%;
  margin-bottom: -4px;
  transform: rotate(-4deg);
  pointer-events: none;
  height: auto;
  opacity: 0.95;
}
.item-deco--flowers {
  display: block;
  position: relative;
  width: 210px;
  margin-top: -0.6rem;
  margin-left: 5%;
  transform: rotate(4deg);
  pointer-events: none;
  height: auto;
  opacity: 0.95;
}
/* Transportation title: simple flex row */
.section-title-wrap--transportation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: auto;
}
.section-title-wrap--transportation .title-deco--transportation-car {
  position: relative;
  left: auto;
  top: auto;
  transform: rotate(-4deg);
  padding-bottom: 24px;
}
@media (min-width: 561px) {
  .item-deco--table { width: 100px; }
  .item-deco--flowers { width: 170px; margin-top: -0.75rem; }
  .section-title-wrap--transportation .title-deco--transportation-car { width: 66px; }
}
@media (max-width: 560px) {
  .item-deco--table { width: 90px; }
  .item-deco--flowers { width: 180px; margin-top: 0; }
  .items-list > .restaurant-item:last-of-type { margin-bottom: 0; }
  .restaurant-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .restaurant-item--stacked .restaurant-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .restaurant-title { text-align: center; }
  .restaurant-discount { text-align: center; }
}
@media (max-width: 380px) {
  .item-deco--flowers { width: 150px; }
}
.restaurant-item { position: relative; }

/* ═══════════════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════════════ */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.5rem auto;
  max-width: 400px;
}

.countdown-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 0.5rem;
}

.countdown-num {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  letter-spacing: 0.05em;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 0.3rem;
}

.countdown-done {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--green);
  padding: 2rem 0;
}

/* ═══════════════════════════════════════════════
   SCHEDULE TIMELINE
   ═══════════════════════════════════════════════ */
.schedule {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  text-align: left;
}

.schedule::before {
  content: '';
  position: absolute;
  left: 103px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--border);
}

.schedule-entry {
  display: flex;
  align-items: flex-start;
  padding-bottom: 2.8rem;
  position: relative;
}

.schedule-entry:last-child {
  padding-bottom: 0;
}

.schedule-time {
  width: 80px;
  flex-shrink: 0;
  text-align: right;
  line-height: 1.2;
}

.schedule-date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.45;
}

.schedule-hour {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
}

.schedule-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--bg);
  margin: 5px 18px 0;
  position: relative;
  z-index: 1;
}

.schedule-content {
  flex: 1;
}

.schedule-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.3;
}

.schedule-desc {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  opacity: 0.6;
  line-height: 1.6;
  margin-top: 0.2rem;
}

.venue-link {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  opacity: 1;
  border-bottom: 1px solid rgba(122, 139, 106, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.venue-link:hover,
.venue-link:focus {
  color: var(--rose);
  border-bottom-color: var(--rose);
  outline: none;
}

.schedule-note {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--rose);
  margin-top: 0.3rem;
}

@media (max-width: 480px) {
  .schedule::before { left: 72px; }
  .schedule-time { width: 56px; }
  .schedule-date { font-size: 0.65rem; }
  .schedule-hour { font-size: 0.85rem; }
  .schedule-dot { margin: 5px 10px 0; }
  .schedule-name { font-size: 0.95rem; }
  .schedule-desc { font-size: 0.85rem; }
}

/* ═══════════════════════════════════════════════
   HOTELS & RESTAURANTS
   ═══════════════════════════════════════════════ */
.venue-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.venue-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venue-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.venue-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.venue-detail {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--text);
}

.venue-detail span {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--rose);
}

.venue-code {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  margin: 0.3rem 0;
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.venue-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--green);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.venue-btn:hover {
  background: var(--green);
  color: #fff;
}

.venue-btn--rose {
  border-color: var(--rose);
  color: var(--rose);
}

.venue-btn--rose:hover {
  background: var(--rose);
  color: #fff;
}

.venue-note {
  font-size: 0.65rem;
  font-style: italic;
  color: var(--rose-light);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Restaurant category */
.restaurant-category {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 1.5rem 0 0.8rem;
  text-align: left;
}

.restaurant-category:first-of-type { margin-top: 0; }

.restaurant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.restaurant-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

a.restaurant-item--link {
  text-decoration: none;
  color: inherit;
}

a.restaurant-item--link:hover .restaurant-title {
  color: var(--rose);
}

a.restaurant-item--link:hover .restaurant-link {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.restaurant-info { text-align: left; }

.restaurant-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}

.restaurant-cuisine {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}

.restaurant-discount {
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--rose);
  margin-top: 0.25rem;
}

.restaurant-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.restaurant-link {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
  transition: all 0.3s ease;
}

#hotels .restaurant-item {
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.75rem;
}

#hotels .restaurant-title {
  font-size: 1.05rem;
}

#hotels .restaurant-link {
  font-size: 0.65rem;
  padding: 0.35rem 1rem;
}

.restaurant-item--stacked {
  display: block;
}
.restaurant-item--stacked .restaurant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
.restaurant-item--stacked .restaurant-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text);
  opacity: 0.75;
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  text-align: left;
  line-height: 1.55;
}

.restaurant-link:hover {
  background: var(--green);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   BANK INFO
   ═══════════════════════════════════════════════ */
.info-text {
  font-size: 0.9rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--green);
}

.registry-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
}

.registry-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--green);
}

.registry-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.registry-toggle {
  display: inline-block;
  padding: 0.7rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.registry-toggle:hover {
  background: var(--green);
  color: #fff;
}

.registry-details {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 1.5rem;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              padding 0.45s ease,
              margin-top 0.45s ease,
              border-color 0.45s ease;
  margin-top: 0;
  border-color: transparent;
}

.registry-details.open {
  max-height: 600px;
  opacity: 1;
  padding: 0.9rem 1.5rem;
  margin-top: 1rem;
  border-color: var(--border);
}

.registry-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.registry-row:last-child {
  border-bottom: none;
}

.registry-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  flex-shrink: 0;
  margin-right: 1rem;
}

.registry-value {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  text-align: right;
}

/* ═══════════════════════════════════════════════
   TRANSPORTATION
   ═══════════════════════════════════════════════ */
.transport-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.transport-card {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transport-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.transport-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 0.3rem;
}

.transport-desc {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.7;
}

@media (max-width: 480px) {
  .transport-card { padding: 1rem 1.2rem; }
}

/* ═══════════════════════════════════════════════
   RSVP FORM
   ═══════════════════════════════════════════════ */
.rsvp-form {
  max-width: 400px;
  margin: 1.5rem auto;
}

.rsvp-step { display: none; }
.rsvp-step.active { display: block; }

.rsvp-input-group {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.rsvp-input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s ease;
  margin-bottom: 20px;
  width: 100%;
}

.rsvp-input:focus {
  border-color: var(--green);
}

.rsvp-input::placeholder {
  color: var(--border);
}

.rsvp-btn {
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.rsvp-btn:hover {
  background: var(--green-light);
  border-color: var(--green-light);
}

.rsvp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rsvp-btn--full {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
}

.rsvp-guest-name {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--green);
  margin: 0.5rem 0;
}

.rsvp-question {
  margin: 1.5rem 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.rsvp-choices {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.rsvp-choice {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.rsvp-choice:hover {
  border-color: var(--green);
}

.rsvp-choice.selected {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}

.rsvp-choice.selected-no {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  font-weight: 600;
}

.rsvp-plus-one-name {
  margin: 1rem 0;
}

.rsvp-plus-one-name .rsvp-input {
  width: 100%;
}

.rsvp-guest-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: stretch;
}

.rsvp-guest-row .rsvp-input {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.rsvp-guest-remove {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  align-self: stretch;
  cursor: pointer;
  color: var(--rose);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rsvp-guest-remove:hover {
  border-color: var(--rose);
  color: #fff;
  background: var(--rose);
}

.rsvp-add-btn {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 0.95rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--green);
  width: 100%;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rsvp-add-btn:hover {
  border-color: var(--green);
  border-style: solid;
  background: rgba(122, 139, 106, 0.06);
}

.rsvp-error {
  font-size: 0.75rem;
  color: var(--rose);
  margin: 0.5rem 0;
  font-style: italic;
}

.rsvp-success-text {
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  padding: 1rem 0;
}

.rsvp-already-text {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text);
  opacity: 0.7;
  padding: 0.5rem 0;
}

.rsvp-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  cursor: pointer;
  border-bottom: 1px solid var(--green);
}

@media (max-width: 480px) {
  .rsvp-input-group { flex-direction: column; }
  .rsvp-btn { text-align: center; }
}

/* ═══════════════════════════════════════════════
   MUSIC TOGGLE
   ═══════════════════════════════════════════════ */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(250,246,240,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.music-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.music-toggle svg {
  width: 18px;
  height: 18px;
  fill: var(--green);
}

.music-toggle .icon-off { display: none; }
.music-toggle.paused .icon-on { display: none; }
.music-toggle.paused .icon-off { display: block; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  max-width: 650px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.footer-names {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--green);
}

.footer-info {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: 0.3rem;
}

.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  margin-top: 1rem;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════
   DECORATIVE BREAKS
   ═══════════════════════════════════════════════ */
.decor-break {
  text-align: center;
  padding: 0.3rem 0;
  max-width: 650px;
  margin: 0 auto;
}

#program {
  display: none;
  padding-bottom: 0.5rem;
}

.decor-break img {
  width: 35%;
  max-width: 180px;
  height: auto;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 380px) {
  .countdown-grid { grid-template-columns: 1fr; max-width: 180px; }
  .countdown-num { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .section { padding: 2rem 1.2rem; }
  .venue-card { padding: 1rem 1.2rem; }
  .venue-actions { flex-direction: column; }
  .venue-btn { text-align: center; }
}

@media (min-width: 600px) {
  .countdown-grid { grid-template-columns: repeat(4, 1fr); max-width: 500px; }
}

@media (min-width: 768px) {
  .section { padding: 3rem 2rem; }
  .schedule { max-width: 480px; }
  .rsvp-form { max-width: 500px; }
  .registry-card { padding: 2.5rem; }
  .transport-card { padding: 1.5rem 2rem; }
  .transport-title { font-size: 1rem; }
  .transport-desc { font-size: 0.8rem; }
  .info-text { font-size: 1.05rem; }
  .rsvp-input { font-size: 0.95rem; padding: 0.8rem 1.2rem; }
  .rsvp-btn { font-size: 0.8rem; padding: 0.8rem 1.8rem; }
  .rsvp-choice { font-size: 0.82rem; padding: 0.7rem 1rem; }
  .rsvp-question { font-size: 0.75rem; }
  .rsvp-guest-name { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════
   SCATTERED DECORATIONS
   ═══════════════════════════════════════════════ */
#countdown, #program, #hotels, #restaurants,
#transportation, #rsvp, #registry { position: relative; }
.countdown-card, .event-card, .venue-card, .rsvp-form,
.restaurant-item, .transport-card, .registry-card { position: relative; }

.deco {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.85;
  z-index: 0;
}

.deco--1 { background-image: url("assets/5/icons/1.png"); }
.deco--2 { background-image: url("assets/5/icons/2.png"); }
.deco--3 { background-image: url("assets/5/icons/3.png"); }

/* Hide a subset on small screens so it stays clean */
@media (max-width: 640px) {
  .deco--hide-sm { display: none; }
}
@media (max-width: 420px) {
  .deco--hide-xs { display: none; }
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  /* background: url('assets/background.svg') repeat, #F0EBE3; */
  background: url('https://cdn.jsdelivr.net/gh/Input-the-output/karimyasmine-cdn@063df8d/background.svg') repeat, #F0EBE3;
  /* background: url('assets/background.svg') repeat, #F0EBE3; */
  background-attachment: fixed;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}
#main-nav.hidden { display: none; }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
@media (max-width: 860px) {
  .nav-inner { justify-content: flex-end; }
}
.nav-brand {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--green);
  text-decoration: none;
}
#nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
}
#nav-links a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
#nav-links a::after {
  content: '';
  display: block;
  margin-top: 3px;
  width: 0; height: 1px;
  background: var(--rose);
  transition: width 0.3s;
}
#nav-links a:hover,
#nav-links a.active { color: var(--green); }
#nav-links a:hover::after,
#nav-links a.active::after { width: 100%; }
#nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
#nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--green);
  transition: transform 0.3s, opacity 0.3s;
}
#nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-hamburger.open span:nth-child(2) { opacity: 0; }
#nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  #nav-hamburger { display: flex; }
  #nav-links {
    position: fixed;
    z-index: 99;
    top: 0; left: 0; right: 0;
    /* background: url('assets/background.svg') repeat, #F0EBE3; */
    background: url('https://cdn.jsdelivr.net/gh/Input-the-output/karimyasmine-cdn@063df8d/background.svg') repeat, #F0EBE3;
    /* background: url('assets/background.svg') repeat, #F0EBE3; */
    background-attachment: fixed;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 53px;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }
  #nav-links.open { transform: translateY(0); }
  #nav-links li { width: 100%; text-align: center; }
  #nav-links a {
    display: block;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  #nav-links a::after { display: none; }
}
/* Prevent sections from hiding under the nav when anchored */
#invitation-images, #countdown, #hotels, #restaurants, #transportation, #rsvp, #registry {
  scroll-margin-top: 56px;
}
/* Push page content below the fixed nav */
/* .page-content { padding-top: 80px; background: url('assets/background.svg') repeat #F0EBE3; } */
.page-content { padding-top: 80px; background: url('https://cdn.jsdelivr.net/gh/Input-the-output/karimyasmine-cdn@063df8d/background.svg') repeat #F0EBE3; }
/* .page-content { padding-top: 80px; background: url('assets/background.svg') repeat #F0EBE3; } */

/* ═══════════════════════════════════════════════
   PREVIOUSLY INLINE STYLES
   ═══════════════════════════════════════════════ */

/* Invitation image padding */
.invitation-images > img.img-hero { padding: 0 14%; }
#invite-ky-wrap img:not(.ky-text-overlay) { padding: 0 20px; }

/* Countdown divider — always visible, flush-start */
.section-divider--countdown {
  align-items: flex-start;
  opacity: 1;
}

/* Schedule directions row */
.schedule-action { margin-top: 0.5rem; }

/* Section-specific info-text spacing */
#program .info-text { margin-top: 2rem; }
#hotels .info-text { margin-bottom: 1.5rem; }
#rsvp .info-text:first-of-type { margin-bottom: 0.3rem; }

/* RSVP event boxes */
.rsvp-event-section {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

/* RSVP button row */
.rsvp-btn-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

/* RSVP additional guests label */
.rsvp-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}
.rsvp-label span {
  font-weight: 400;
  color: var(--rose);
  font-size: 0.75rem;
}

/* Hidden elements revealed by JS */
.form-group--hidden { display: none; }
#rsvp-error { display: none; }
#rsvp-success { display: none; }

/* RSVP success heading */
.rsvp-success-title {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

/* RSVP contact line */
.rsvp-contact {
  margin-top: 2rem;
  font-size: 0.85rem;
}
.nowrap { white-space: nowrap; }
.rsvp-contact-link {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 139, 106, 0.3);
}

/* Registry button wrappers */
.registry-btn-wrap { margin-top: 1.5rem; }
.registry-btn-wrap--gift { margin-bottom: 1.5rem; }
