/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #fffdf9;
  --bg-soft: #f8f2e8;
  --white: #ffffff;
  --text: #3f352d;
  --text-soft: #7e7063;
  --line: rgba(124, 103, 75, 0.14);
  --gold: #caa96c;
  --gold-deep: #a98749;
  --shadow: 0 12px 34px rgba(66, 48, 28, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1120px;
  --header-h: 72px;
  --parallax-offset: 0px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* =========================
   LOADER
========================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fffefb 0%, #f7efe3 100%);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__inner {
  text-align: center;
}

.loader__ring {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(202, 169, 108, 0.18);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}

.loader p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

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

/* =========================
   PETALS
========================= */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -32px;
  width: 14px;
  height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff8fb, #efd6db);
  border-radius: 70% 30% 70% 30%;
  opacity: 0.72;
  will-change: transform;
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(60px, 110vh, 0) rotate(360deg);
  }
}

/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  border-bottom: 1px solid rgba(124, 103, 75, 0.08);
  background: rgba(255, 253, 249, 0.78);
  backdrop-filter: blur(12px);
}

.header-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-block: 8px;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold-deep);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
  background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #e4c58d);
  box-shadow: 0 12px 24px rgba(202, 169, 108, 0.28);
}

.btn-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn-outline {
  color: var(--gold-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(202, 169, 108, 0.34);
}

.btn-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.94rem;
}

/* =========================
   FLOATING BUTTONS
========================= */
.floating-btn {
  position: fixed;
  right: 16px;
  width: 48px;
  height: 48px;
  z-index: 1200;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--gold-deep);
  box-shadow: 0 10px 26px rgba(66, 48, 28, 0.14);
}

.music-toggle {
  bottom: 78px;
}

.back-to-top {
  bottom: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 72px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero__bg,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__bg {
  z-index: -2;
  background-image: url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  transform: scale(1.08) translateY(var(--parallax-offset));
  will-change: transform;
}

.hero__overlay {
  z-index: -1;
  background: linear-gradient(
          180deg,
          rgba(69, 48, 20, 0.26) 0%,
          rgba(69, 48, 20, 0.4) 100%
  );
}

.hero__content {
  color: #fff;
  max-width: 900px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.85rem;
  opacity: 0.95;
}

.hero h1 {
  margin: 0 0 20px;
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.8rem, 6vw, 5.2rem);
  line-height: 1.2;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero h1 span {
  color: #ffd989;
  white-space: nowrap;
  display: inline-block;
}

.hero__dates {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__date-pill {
  margin-inline: auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 28px;
}

.countdown__box {
  padding: 18px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.countdown__box span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.countdown__box small {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* =========================
   SECTION
========================= */
.section {
  padding: 76px 0;
}

.section-soft {
  background: linear-gradient(180deg, #fffdf9 0%, #fbf6ef 100%);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-label {
  margin: 0 0 10px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.section-heading h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
}

/* =========================
   ABOUT
========================= */
.about-grid {
  display: grid;
  gap: 20px;
}

.person-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.person-card__image img {
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
}

.person-card__content {
  padding: 20px;
}

.person-role {
  margin: 0 0 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.person-card__content h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.person-card__content p:last-child {
  margin: 0;
  color: var(--text-soft);
}

/* =========================
   LOVE STORY — TIMELINE
========================= */
.story-intro {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 1rem;
  font-style: italic;
}

.love-timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

/* Center timeline line */
.love-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(202, 169, 108, 0.15);
  transform: translateX(-50%);
}

.love-line__fill {
  width: 100%;
  background: linear-gradient(180deg, var(--gold), #d1b171, var(--gold));
  transition: height 0.1s linear;
}

/* Each love item */
.love-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 72px;
  width: 100%;
}

.love-item:last-child {
  margin-bottom: 0;
}

/* === LEFT items: image LEFT, content RIGHT === */
.love-item--left .love-item__image {
  grid-column: 1;
  grid-row: 1;
  padding-right: 48px;
  display: flex;
  justify-content: flex-end;
}

.love-item--left .love-item__content {
  grid-column: 3;
  grid-row: 1;
  padding-left: 48px;
  text-align: left;
}

.love-item--left .love-item__dot {
  grid-column: 2;
  grid-row: 1;
}

/* === RIGHT items: content LEFT, image RIGHT === */
.love-item--right .love-item__content {
  grid-column: 1;
  grid-row: 1;
  padding-right: 48px;
  text-align: right;
}

.love-item--right .love-item__image {
  grid-column: 3;
  grid-row: 1;
  padding-left: 48px;
  display: flex;
  justify-content: flex-start;
}

.love-item--right .love-item__dot {
  grid-column: 2;
  grid-row: 1;
}

/* === Image === */
.love-item__image {
  position: relative;
}

.love-item__image-inner {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(66, 48, 28, 0.14),
    0 8px 20px rgba(66, 48, 28, 0.08);
}

.love-item__image-inner img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.love-item__image-inner:hover img {
  transform: scale(1.06);
}

.love-item__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(202, 169, 108, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.love-item__image-overlay--warm {
  background: linear-gradient(
    135deg,
    rgba(220, 120, 80, 0.15) 0%,
    transparent 60%
  );
}

.love-item__image-overlay--soft {
  background: linear-gradient(
    135deg,
    rgba(140, 110, 160, 0.12) 0%,
    transparent 60%
  );
}

.love-item__image-overlay--gold {
  background: linear-gradient(
    135deg,
    rgba(202, 169, 108, 0.2) 0%,
    transparent 60%
  );
}

.love-item__image-overlay--final {
  background: linear-gradient(
    135deg,
    rgba(180, 80, 80, 0.15) 0%,
    transparent 60%
  );
}

/* Year badge on image */
.love-item__year-badge {
  position: absolute;
  bottom: -14px;
  right: 20px;
  padding: 6px 20px;
  background: linear-gradient(135deg, var(--gold), #e4c58d);
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(202, 169, 108, 0.4);
  letter-spacing: 0.06em;
}

.love-item--right .love-item__year-badge {
  right: auto;
  left: 20px;
}

.love-item__year-badge--final {
  background: linear-gradient(135deg, #c05858, #e08080);
  box-shadow: 0 6px 18px rgba(192, 88, 88, 0.4);
}

/* Final item image special treatment */
.love-item__image--final .love-item__image-inner {
  max-width: 480px;
}

.love-item__final-ripple {
  position: absolute;
  inset: -20px;
  border-radius: 28px;
  border: 1px solid rgba(202, 169, 108, 0.2);
  pointer-events: none;
  animation: ripple-out 3s ease-out infinite;
}

@keyframes ripple-out {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}

/* === Content card === */
.love-item__content {
  position: relative;
  padding: 28px 32px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(202, 169, 108, 0.12);
  box-shadow:
    0 12px 40px rgba(66, 48, 28, 0.08),
    0 4px 12px rgba(66, 48, 28, 0.05);
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease;
}

.love-item__content:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(66, 48, 28, 0.12),
    0 8px 20px rgba(66, 48, 28, 0.08);
}

/* Decorative corner accent */
.love-item__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 20px 20px 0 0;
  opacity: 0.6;
}

/* Icon */
.love-item__icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}

.love-item--right .love-item__icon {
  margin-left: auto;
}

.love-item__icon--heart {
  color: #d4a0a0;
}

.love-item__icon--ring {
  color: var(--gold-deep);
}

.love-item__icon--final {
  color: #c05858;
}

/* Tagline above title */
.love-item__tagline {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Title */
.love-item__content h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

/* Body text */
.love-item__content p {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Quote */
.love-item__quote {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(202, 169, 108, 0.08), rgba(202, 169, 108, 0.04));
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  margin-top: 16px;
}

.love-item--right .love-item__quote {
  border-left: none;
  border-right: 3px solid var(--gold);
  border-radius: 10px 0 0 10px;
}

.love-item__quote span {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold-deep);
  line-height: 1.6;
}

.love-item__quote--final {
  background: linear-gradient(135deg, rgba(192, 88, 88, 0.08), rgba(192, 88, 88, 0.04));
  border-left-color: #c05858;
}

.love-item--right .love-item__quote--final {
  border-right-color: #c05858;
}

.love-item__quote--final span {
  color: #b06060;
}

/* === Center dot connector === */
.love-item__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.love-dot__ring {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(202, 169, 108, 0.25);
}

.love-dot__center {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e4c58d);
  box-shadow: 0 4px 12px rgba(202, 169, 108, 0.4);
  position: relative;
  z-index: 1;
}

.love-dot__center--heart {
  background: linear-gradient(135deg, #d4a0a0, #e8c0c0);
  box-shadow: 0 4px 12px rgba(212, 160, 160, 0.4);
}

.love-dot__center--ring {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  box-shadow: 0 4px 12px rgba(202, 169, 108, 0.5);
}

.love-dot__center--final {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #c05858, #e08080);
  box-shadow: 0 4px 16px rgba(192, 88, 88, 0.5);
}

/* Final dot pulse */
.love-dot__ring--pulse {
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.2; }
}

/* === Scroll reveal animations === */
.reveal-love {
  opacity: 0;
}

.reveal-love.is-visible {
  opacity: 1;
}

/* Slide directions */
.love-item--left.reveal-love .love-item__image {
  transform: translateX(-50px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s ease;
}

.love-item--left.reveal-love .love-item__content {
  transform: translateX(50px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
              opacity 0.8s ease 0.1s;
}

.love-item--left.reveal-love .love-item__dot {
  transform: scale(0.5);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s,
              opacity 0.6s ease 0.2s;
}

.love-item--right.reveal-love .love-item__content {
  transform: translateX(-50px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s ease;
}

.love-item--right.reveal-love .love-item__image {
  transform: translateX(50px);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s,
              opacity 0.8s ease 0.1s;
}

.love-item--right.reveal-love .love-item__dot {
  transform: scale(0.5);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s,
              opacity 0.6s ease 0.2s;
}

/* When visible */
.love-item--left.reveal-love.is-visible .love-item__image,
.love-item--left.reveal-love.is-visible .love-item__content,
.love-item--left.reveal-love.is-visible .love-item__dot,
.love-item--right.reveal-love.is-visible .love-item__content,
.love-item--right.reveal-love.is-visible .love-item__image,
.love-item--right.reveal-love.is-visible .love-item__dot {
  transform: translateX(0) scale(1);
  opacity: 1;
}

/* Parallax on images (subtle) */
.love-item__image-inner img {
  will-change: transform;
}

/* === Responsive === */
@media (max-width: 768px) {
  .love-line {
    left: 20px;
  }

  .love-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    margin-bottom: 48px;
    gap: 0;
  }

  /* All items become stacked on mobile */
  .love-item--left .love-item__image,
  .love-item--right .love-item__image {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0;
    justify-content: center;
    margin-bottom: 24px;
  }

  .love-item--left .love-item__content,
  .love-item--right .love-item__content {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0 4px;
    text-align: left;
  }

  .love-item--right .love-item__icon {
    margin-left: 0;
  }

  .love-item--right .love-item__year-badge {
    left: auto;
    right: 10px;
  }

  .love-item--right .love-item__quote {
    border-right: none;
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
  }

  .love-item--right .love-item__quote--final {
    border-right: none;
    border-left-color: #c05858;
  }

  .love-item__dot {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
  }

  .love-item__image-inner {
    max-width: 100%;
  }

  .love-item__year-badge {
    right: 10px;
    bottom: -12px;
    font-size: 0.85rem;
    padding: 5px 16px;
  }

  .love-item__content {
    padding: 20px 18px;
  }

  .love-item__content h3 {
    font-size: 1.4rem;
  }

  .love-item__content p {
    font-size: 0.9rem;
  }

  /* Mobile reveal — all from bottom */
  .love-item--left.reveal-love .love-item__image,
  .love-item--left.reveal-love .love-item__content,
  .love-item--right.reveal-love .love-item__content,
  .love-item--right.reveal-love .love-item__image {
    transform: translateY(40px);
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.7s ease;
  }

  .love-item--right.reveal-love .love-item__dot,
  .love-item--left.reveal-love .love-item__dot {
    transform: scale(0.5) translateY(20px);
  }

  .love-item--left.reveal-love.is-visible .love-item__image,
  .love-item--left.reveal-love.is-visible .love-item__content,
  .love-item--right.reveal-love.is-visible .love-item__content,
  .love-item--right.reveal-love.is-visible .love-item__image,
  .love-item--left.reveal-love.is-visible .love-item__dot,
  .love-item--right.reveal-love.is-visible .love-item__dot {
    transform: translateX(0) translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .love-item {
    margin-bottom: 40px;
  }

  .love-item__content {
    padding: 18px 14px;
  }

  .love-item__icon {
    width: 28px;
    height: 28px;
  }

  .love-item__year-badge {
    font-size: 0.8rem;
    padding: 4px 14px;
  }
}

/* =========================
   GALLERY SLIDER (Premium)
========================= */
.gallery-slider-section {
  padding: 76px 0 96px;
}

.gallery-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Progress bar --- */
.gallery-progress {
  height: 3px;
  background: rgba(202, 169, 108, 0.15);
  border-radius: 999px;
  margin-bottom: 28px;
  overflow: hidden;
}

.gallery-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #e4c58d);
  border-radius: 999px;
  will-change: width;
}

/* --- Carousel viewport --- */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

/* --- Track (moves left/right) --- */
.gallery-track {
  display: flex;
  gap: 16px;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* --- Individual slide --- */
.gallery-slide {
  flex: 0 0 var(--slide-w, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 16px 48px rgba(66, 48, 28, 0.14),
              0 6px 16px rgba(66, 48, 28, 0.08);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.65s ease, opacity 0.65s ease, box-shadow 0.35s ease;
  /* Entrance */
  opacity: 0;
  transform: scale(0.88) translateY(20px);
}

.gallery-slide.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide:hover img {
  transform: scale(1.06);
}

/* Hover overlay with icon */
.gallery-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(66, 48, 28, 0.4) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-slide:hover .gallery-slide__overlay {
  opacity: 1;
}

.gallery-slide__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transform: scale(0.7);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
}

.gallery-slide:hover .gallery-slide__icon {
  transform: scale(1);
  opacity: 1;
}

.gallery-slide__icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold-deep);
}

/* --- Nav buttons --- */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(66, 48, 28, 0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
              background 0.3s ease, color 0.3s ease;
  z-index: 10;
}

.gallery-nav svg {
  width: 22px;
  height: 22px;
}

.gallery-nav:hover {
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 12px 40px rgba(66, 48, 28, 0.28);
  background: linear-gradient(135deg, var(--gold), #e4c58d);
  color: #fff;
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav--prev {
  left: -25px;
}

.gallery-nav--next {
  right: -25px;
}

/* --- Dot indicators --- */
.gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(202, 169, 108, 0.3);
  cursor: pointer;
  padding: 0;
  transition: width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.35s ease, transform 0.35s ease;
}

.gallery-dot:hover {
  background: rgba(202, 169, 108, 0.6);
  transform: scale(1.3);
}

.gallery-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--gold), #e4c58d);
  box-shadow: 0 4px 14px rgba(202, 169, 108, 0.4);
}

/* --- Desktop: show 3 slides (center focus) --- */
@media (min-width: 769px) {
  .gallery-slider {
    max-width: 960px;
  }

  .gallery-track {
    gap: 20px;
  }

  .gallery-slide {
    flex: 0 0 calc((960px - 80px) / 3);
    --slide-w: calc((960px - 80px) / 3);
  }
}

/* --- Tablet: 2 slides --- */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-slide {
    flex: 0 0 calc((100vw - 64px - 32px) / 2);
    --slide-w: calc((100vw - 64px - 32px) / 2);
  }

  .gallery-nav--prev { left: -16px; }
  .gallery-nav--next { right: -16px; }
}

/* --- Mobile: 1 slide centered --- */
@media (max-width: 768px) {
  .gallery-slider-section {
    padding: 60px 0 80px;
  }

  .gallery-slider {
    max-width: 100%;
    padding: 0 24px;
  }

  .gallery-track {
    gap: 14px;
  }

  .gallery-slide {
    flex: 0 0 calc(100vw - 48px);
    --slide-w: calc(100vw - 48px);
    border-radius: 16px;
  }

  .gallery-nav {
    display: none;
  }

  .gallery-progress {
    margin-bottom: 20px;
  }

  .gallery-dot {
    width: 6px;
    height: 6px;
  }

  .gallery-dot.is-active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .gallery-slide {
    flex: 0 0 calc(100vw - 32px);
    --slide-w: calc(100vw - 32px);
    border-radius: 14px;
  }

  .gallery-slider {
    padding: 0 16px;
  }
}

/* =========================
   LIGHTBOX (ENHANCED)
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 15, 9, 0.92);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-show {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  transform: scale(0.88);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
              opacity 0.5s ease 0.1s;
}

.lightbox.is-show .lightbox__content img {
  transform: scale(1);
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.08);
}

/* Lightbox navigation arrows */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

.lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.lightbox__nav:hover {
  background: rgba(202, 169, 108, 0.6);
  backdrop-filter: blur(8px);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox__nav--prev {
  left: 20px;
}

.lightbox__nav--next {
  right: 20px;
}

@media (max-width: 640px) {
  .lightbox__nav {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 28px;
    transform: none;
  }

  .lightbox__nav:hover {
    transform: scale(1.08);
  }

  .lightbox__nav--prev {
    left: calc(50% - 60px);
  }

  .lightbox__nav--next {
    right: calc(50% - 60px);
  }

  .lightbox__content img {
    border-radius: 14px;
    max-height: 72vh;
  }

  .lightbox__counter {
    bottom: 90px;
  }
}

/* Counter */
.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* =========================
   EVENT — MODERN PREMIUM
========================= */

/* Section background */
.section-event {
  position: relative;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f2e8 50%, #f5ede0 100%);
  overflow: hidden;
}

/* Decorative circles */
.event-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.event-bg__circle {
  position: absolute;
  border-radius: 50%;
}

.event-bg__circle--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(202, 169, 108, 0.07) 0%, transparent 70%);
}

.event-bg__circle--2 {
  width: 500px;
  height: 500px;
  bottom: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(202, 169, 108, 0.06) 0%, transparent 70%);
}

/* Floral decorations */
.event-bg__floral {
  position: absolute;
  width: 120px;
  color: var(--gold);
  opacity: 0.5;
}

.event-bg__floral--left {
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.event-bg__floral--right {
  right: 2%;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}

/* Divider ornament */
.event-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 48px;
  max-width: 320px;
}

.event-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202, 169, 108, 0.4), transparent);
}

.event-divider__icon {
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0.7;
  animation: pulse-soft 2.5s ease-in-out infinite;
}

/* Grid */
.event-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

/* =========================
   EVENT CARD
========================= */
.event-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(202, 169, 108, 0.18);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(66, 48, 28, 0.08),
    0 2px 8px rgba(66, 48, 28, 0.04);
  transition:
    transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
  position: relative;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(66, 48, 28, 0.14),
    0 8px 20px rgba(66, 48, 28, 0.08);
}

.event-card:hover::before {
  border-color: rgba(202, 169, 108, 0.35);
}

/* Card header */
.event-card__header {
  position: relative;
  padding: 28px 28px 20px;
  text-align: center;
  overflow: hidden;
}

.event-card__header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(202, 169, 108, 0.08) 0%,
    rgba(202, 169, 108, 0.03) 100%
  );
  z-index: 0;
}

.event-card__header-bg--trai {
  background: linear-gradient(135deg,
    rgba(140, 110, 160, 0.08) 0%,
    rgba(140, 110, 160, 0.03) 100%
  );
}

/* Badge */
.event-card__badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.event-card__badge--gai {
  color: #a98645;
  background: rgba(202, 169, 108, 0.14);
  border: 1px solid rgba(202, 169, 108, 0.3);
}

.event-card__badge--trai {
  color: #7b6890;
  background: rgba(140, 110, 160, 0.12);
  border: 1px solid rgba(140, 110, 160, 0.28);
}

.event-card__badge svg {
  flex-shrink: 0;
}

/* Title */
.event-card__title {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.event-card__subtitle {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  font-style: italic;
}

/* Card body */
.event-card__body {
  padding: 0 28px 20px;
  position: relative;
  z-index: 1;
}

/* Highlight row (date + time) */
.event-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: linear-gradient(180deg,
    rgba(202, 169, 108, 0.06) 0%,
    rgba(202, 169, 108, 0.02) 100%
  );
  border-radius: 14px;
  border: 1px solid rgba(202, 169, 108, 0.14);
}

.event-highlight__item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.event-highlight__divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg,
    transparent,
    rgba(202, 169, 108, 0.3),
    transparent
  );
  margin: 0 8px;
}

.event-highlight__icon {
  color: var(--gold-deep);
  opacity: 0.8;
  display: flex;
  align-items: center;
}

.event-card--trai .event-highlight__icon {
  color: #8a6fa8;
}

.event-highlight__content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.event-highlight__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  opacity: 0.75;
}

.event-highlight__value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

/* Address */
.event-address {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 253, 249, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(202, 169, 108, 0.1);
}

.event-address__icon-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.event-address__icon {
  color: var(--gold-deep);
  display: block;
}

.event-card--trai .event-address__icon {
  color: #8a6fa8;
}

/* Pulse ring for address icon */
.event-address__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(202, 169, 108, 0.5);
  animation: location-pulse 2s ease-out infinite;
  pointer-events: none;
}

.event-address__pulse--trai {
  border-color: rgba(140, 110, 160, 0.5);
  animation-name: location-pulse-trai;
}

@keyframes location-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

@keyframes location-pulse-trai {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

.event-address__content {
  flex: 1;
}

.event-address__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  opacity: 0.75;
  margin-bottom: 3px;
}

.event-address__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}

/* Map */
.event-card__map-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.event-card__map {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}

.event-card:hover .event-card__map {
  transform: scale(1.03);
}

.event-card__map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255,255,255,0.6), transparent);
  pointer-events: none;
}

/* Actions */
.event-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px 24px;
  position: relative;
  z-index: 1;
}

/* Buttons */
.event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.event-btn--direction {
  background: linear-gradient(135deg, var(--gold), #e4c58d);
  color: #fff;
  box-shadow: 0 6px 18px rgba(202, 169, 108, 0.32);
}

.event-btn--direction:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(202, 169, 108, 0.4);
}

.event-card--trai .event-btn--direction {
  background: linear-gradient(135deg, #8a6fa8, #a890bc);
  box-shadow: 0 6px 18px rgba(138, 111, 168, 0.32);
}

.event-card--trai .event-btn--direction:hover {
  box-shadow: 0 10px 28px rgba(138, 111, 168, 0.4);
}

.event-btn--outline {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gold-deep);
  border: 1.5px solid rgba(202, 169, 108, 0.35);
}

.event-btn--outline:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(202, 169, 108, 0.18);
}

.event-card--trai .event-btn--outline {
  color: #7b6890;
  border-color: rgba(140, 110, 160, 0.35);
}

.event-card--trai .event-btn--outline:hover {
  border-color: #8a6fa8;
  box-shadow: 0 6px 18px rgba(140, 110, 160, 0.18);
}

/* =========================
   EVENT SCROLL ANIMATION
========================= */
.reveal-event {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-event.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: second card delays */
.event-grid .reveal-event:nth-child(1) {
  transition-delay: 0s;
}

.event-grid .reveal-event:nth-child(2) {
  transition-delay: 0.15s;
}

/* Map fade-in after card appears */
.event-card__map {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-event.is-visible .event-card__map {
  opacity: 1;
}

/* =========================
   EVENT RESPONSIVE
========================= */
@media (max-width: 768px) {
  .event-card__header {
    padding: 22px 20px 16px;
  }

  .event-card__body {
    padding: 0 20px 16px;
  }

  .event-highlight {
    padding: 14px 16px;
    gap: 0;
  }

  .event-highlight__item {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .event-highlight__divider {
    height: 36px;
    margin: 0 12px;
  }

  .event-address {
    padding: 12px 14px;
  }

  .event-card__actions {
    padding: 14px 20px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .event-btn {
    width: 100%;
    justify-content: center;
  }

  .event-bg__floral {
    display: none;
  }

  .event-divider {
    margin-bottom: 36px;
  }

  .event-grid {
    gap: 24px;
  }

  .reveal-event:nth-child(2) {
    transition-delay: 0s;
  }
}

@media (max-width: 480px) {
  .event-card__header {
    padding: 20px 16px 14px;
  }

  .event-card__body {
    padding: 0 16px 14px;
  }

  .event-card__actions {
    padding: 12px 16px 18px;
  }

  .event-card__map {
    height: 180px;
  }
}

/* =========================
   RSVP — WEDDING CARD STYLE
========================= */
.rsvp-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(160deg, #fdfbf7 0%, #f5eedf 50%, #ede3cf 100%);
  border: 1px solid rgba(202, 169, 108, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(66, 48, 28, 0.14),
    0 12px 30px rgba(66, 48, 28, 0.08);
}

.rsvp-card__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(202, 169, 108, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(202, 169, 108, 0.05) 0%, transparent 35%);
  pointer-events: none;
}

/* ---- Left decorative panel ---- */
.rsvp-card__left {
  background: linear-gradient(160deg, #faf5ec 0%, #f0e4cc 100%);
  border-right: 1px solid rgba(202, 169, 108, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  position: relative;
}

.rsvp-left__inner {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.rsvp-left__ornament {
  width: 140px;
  color: var(--gold);
  opacity: 0.65;
}

.rsvp-left__ornament--top {
  animation: sway-gentle 5s ease-in-out infinite;
}

.rsvp-left__ornament--bottom {
  animation: sway-gentle 5s ease-in-out infinite reverse;
  animation-delay: -2.5s;
}

.rsvp-left__heart {
  width: 44px;
  height: 44px;
  color: #d4a0a0;
  animation: pulse-soft 2.5s ease-in-out infinite;
}

.rsvp-left__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rsvp-left__line {
  margin: 0;
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  font-weight: 600;
}

.rsvp-left__names {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.rsvp-left__amp {
  color: var(--gold-deep);
  font-style: italic;
  font-weight: 400;
  display: block;
  font-size: 0.75em;
}

.rsvp-left__divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  color: var(--gold);
  opacity: 0.6;
  font-size: 0.55rem;
}

.rsvp-left__divider span:not(:nth-child(2)) {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.rsvp-left__dates {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.58rem, 1.3vw, 0.72rem);
  color: var(--text-soft);
  flex-wrap: wrap;
  justify-content: center;
}

.rsvp-left__dates-sep {
  color: var(--gold);
  opacity: 0.5;
}

.rsvp-left__quote {
  margin: 6px 0 0;
  padding: 10px 14px;
  background: rgba(202, 169, 108, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(202, 169, 108, 0.15);
}

.rsvp-left__quote p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---- Divider between panels ---- */
.rsvp-card__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  position: relative;
}

.rsvp-divider__line {
  width: 1px;
  flex: 1;
  background: linear-gradient(180deg, transparent, rgba(202, 169, 108, 0.35), transparent);
  min-height: 40px;
}

.rsvp-divider__ornament {
  width: 40px;
  height: 40px;
  color: var(--gold);
  opacity: 0.5;
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---- Right form panel ---- */
.rsvp-card__right {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rsvp-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rsvp-form__header {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(202, 169, 108, 0.2);
}

.rsvp-form__title {
  margin: 0 0 4px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
}

.rsvp-form__subtitle {
  margin: 0;
  font-size: clamp(0.65rem, 1.3vw, 0.78rem);
  color: var(--text-soft);
}

/* Fields */
.rsvp-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rsvp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rsvp-field--full {
  grid-column: 1 / -1;
}

.rsvp-field__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.65rem, 1.3vw, 0.78rem);
  font-weight: 600;
  color: var(--text);
}

.rsvp-field__icon {
  font-size: 0.9rem;
  line-height: 1;
}

.rsvp-field__req {
  color: #c47a7a;
}

.rsvp-field__input {
  width: 100%;
  border: 1.5px solid rgba(202, 169, 108, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  background: rgba(255, 253, 249, 0.9);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rsvp-field__input::placeholder {
  color: var(--text-soft);
  opacity: 0.55;
}

.rsvp-field__input:focus {
  border-color: rgba(202, 169, 108, 0.7);
  box-shadow: 0 0 0 3px rgba(202, 169, 108, 0.1);
  background: rgba(255, 253, 249, 1);
}

.rsvp-field__input--number {
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.rsvp-field__input--number::-webkit-inner-spin-button,
.rsvp-field__input--number::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.rsvp-field__input--textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* Number stepper */
.rsvp-field__number-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid rgba(202, 169, 108, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.9);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-field__number-wrap:focus-within {
  border-color: rgba(202, 169, 108, 0.7);
  box-shadow: 0 0 0 3px rgba(202, 169, 108, 0.1);
}

.rsvp-field__number-wrap .rsvp-field__input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex: 1;
}

.rsvp-field__number-btn {
  width: 40px;
  border: none;
  background: rgba(202, 169, 108, 0.1);
  color: var(--gold-deep);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-field__number-btn:hover {
  background: rgba(202, 169, 108, 0.25);
  color: var(--text);
}

.rsvp-field__number-btn:active {
  background: rgba(202, 169, 108, 0.35);
  transform: scale(0.95);
}

/* Attendance checkboxes */
.rsvp-attendance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.rsvp-attendance__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid rgba(202, 169, 108, 0.2);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.7);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.rsvp-attendance__item:hover {
  border-color: rgba(202, 169, 108, 0.5);
  background: rgba(255, 253, 249, 0.95);
  transform: translateY(-1px);
}

.rsvp-attendance__item input {
  display: none;
}

.rsvp-attendance__box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(202, 169, 108, 0.4);
  background: rgba(255, 253, 249, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.rsvp-attendance__check {
  font-size: 0.75rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
  line-height: 1;
}

.rsvp-attendance__item input:checked + .rsvp-attendance__box {
  background: linear-gradient(135deg, var(--gold), #e4c58d);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(202, 169, 108, 0.35);
}

.rsvp-attendance__item input:checked + .rsvp-attendance__box .rsvp-attendance__check {
  opacity: 1;
  transform: scale(1);
}

.rsvp-attendance__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rsvp-attendance__text strong {
  font-size: clamp(0.7rem, 1.4vw, 0.82rem);
  color: var(--text);
  font-weight: 600;
}

.rsvp-attendance__text small {
  font-size: clamp(0.58rem, 1.1vw, 0.68rem);
  color: var(--text-soft);
}

.rsvp-attendance__note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(180, 140, 100, 0.08);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.rsvp-attendance__note svg {
  flex-shrink: 0;
  color: #c4956a;
}

/* Submit */
.rsvp-form__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

.rsvp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #e4c58d);
  color: #fff;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(202, 169, 108, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.rsvp-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rsvp-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(202, 169, 108, 0.4);
}

.rsvp-submit:hover::before {
  opacity: 1;
}

.rsvp-submit:active {
  transform: translateY(-1px);
}

.rsvp-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.rsvp-submit__icon {
  font-size: 0.8em;
  transition: transform 0.3s ease;
}

.rsvp-submit:hover .rsvp-submit__icon {
  transform: rotate(15deg);
}

/* =========================
   RSVP FORM MESSAGES
========================= */
.form-message {
  min-height: 24px;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.form-message.is-success {
  color: #20834f;
}

.form-message.is-error {
  color: #c13d3d;
}

.form-message.is-info {
  color: var(--gold-deep);
}

/* =========================
   TRADITIONAL 2-CARD INVITATION
========================= */
.trad-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 0;
}

/* ---- Each card ---- */
.trad-card {
  background: linear-gradient(165deg, #fdf6ee 0%, #f5ead8 40%, #ede0c4 100%);
  border: 1px solid rgba(212, 163, 115, 0.4);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 48px rgba(66, 48, 28, 0.12),
    0 6px 18px rgba(66, 48, 28, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.trad-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: 14px;
  pointer-events: none;
}

.trad-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ---- Ornaments ---- */
.trad-ornament {
  width: 160px;
  color: var(--gold);
  opacity: 0.55;
}

.trad-ornament--top {
  animation: sway-gentle 5s ease-in-out infinite;
}

.trad-ornament--bottom {
  animation: sway-gentle 5s ease-in-out infinite reverse;
  animation-delay: -2.5s;
}

/* ---- Header / label ---- */
.trad-wedding-label {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(0.55rem, 1.4vw, 0.72rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---- Family info ---- */
.trad-families {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.trad-family {
  flex: 1;
  max-width: 120px;
}

.trad-family__role {
  margin: 0 0 3px;
  font-size: clamp(0.48rem, 1.1vw, 0.6rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  font-weight: 600;
}

.trad-family__names {
  margin: 0;
  font-size: clamp(0.55rem, 1.3vw, 0.68rem);
  color: var(--text);
  line-height: 1.5;
}

.trad-family__location {
  margin: 2px 0 0;
  font-size: clamp(0.48rem, 1.1vw, 0.58rem);
  color: var(--text-soft);
  font-style: italic;
}

.trad-amp {
  font-size: 0.65rem;
  color: var(--gold);
  opacity: 0.6;
  padding-top: 14px;
  flex-shrink: 0;
}

/* ---- Ceremony highlight ---- */
.trad-ceremony-label {
  margin: 4px 0;
}

.trad-ceremony-label span {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #c05858;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
}

.trad-ceremony-label span::before,
.trad-ceremony-label span::after {
  content: "✦";
  font-size: 0.5em;
  color: var(--gold);
  opacity: 0.7;
  vertical-align: middle;
  margin: 0 8px;
}

/* ---- Couple names ---- */
.trad-couple-names {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.trad-name-bride,
.trad-name-groom {
  flex: 1;
  max-width: 130px;
}

.trad-name-bride__label,
.trad-name-groom__label {
  margin: 0 0 2px;
  font-size: clamp(0.48rem, 1.1vw, 0.6rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-weight: 600;
}

.trad-name-bride__name,
.trad-name-groom__name {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  color: var(--text);
  line-height: 1.2;
}

.trad-couple-heart {
  width: 28px;
  height: 28px;
  color: #d4a0a0;
  animation: pulse-soft 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ---- Date large (left card) ---- */
.trad-date-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px 0;
}

.trad-date-part {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}

.trad-date-sep {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
}

/* ---- Venue info (left card) ---- */
.trad-venue-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.trad-venue-info__line {
  margin: 0;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  color: var(--text);
  font-style: italic;
}

.trad-venue-info__time {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--text-soft);
}

/* ---- Right card: Logo monogram ---- */
.trad-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}

.trad-logo__text {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
  line-height: 1;
}

.trad-logo__flower {
  position: absolute;
  top: -10px;
  right: -16px;
  width: 28px;
  height: 28px;
  color: var(--gold);
  opacity: 0.6;
}

/* ---- Right card: Invite text ---- */
.trad-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trad-invite__heading {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.05em;
}

.trad-invite__divider {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  opacity: 0.6;
  font-size: 0.55rem;
}

.trad-invite__divider span:not(:nth-child(2)) {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.trad-invite__sub {
  margin: 0;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  color: var(--text-soft);
  font-style: italic;
}

/* ---- Right card: Time ---- */
.trad-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.trad-time__time {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--gold-deep);
  line-height: 1;
}

.trad-time__day {
  margin: 0;
  font-size: clamp(0.6rem, 1.5vw, 0.72rem);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- Right card: Date small ---- */
.trad-date-small {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 2px 0;
}

.trad-date-small span {
  font-family: "Playfair Display", serif;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

/* ---- Right card: Venue ---- */
.trad-venue-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  background: rgba(212, 163, 115, 0.08);
  border: 1px solid rgba(212, 163, 115, 0.2);
  border-radius: 10px;
  width: 100%;
}

.trad-venue-right__place {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
}

.trad-venue-right__hall {
  margin: 0;
  font-size: clamp(0.55rem, 1.3vw, 0.65rem);
  color: var(--text-soft);
  font-style: italic;
}

.trad-venue-right__address {
  margin: 0;
  font-size: clamp(0.55rem, 1.3vw, 0.65rem);
  color: var(--text-soft);
}

/* ---- Right card: Closing quote ---- */
.trad-closing {
  margin: 4px 0 0;
  padding: 10px 14px;
  background: rgba(212, 163, 115, 0.06);
  border: 1px solid rgba(212, 163, 115, 0.15);
  border-radius: 10px;
  width: 100%;
}

.trad-closing p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .trad-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .trad-card {
    padding: 22px 18px;
  }

  .trad-ornament {
    width: 120px;
  }

  .trad-families {
    gap: 6px;
  }

  .trad-family__names {
    font-size: clamp(0.52rem, 3.2vw, 0.65rem);
  }

  .trad-ceremony-label span {
    font-size: clamp(0.9rem, 5vw, 1.2rem);
  }

  .trad-name-bride__name,
  .trad-name-groom__name {
    font-size: clamp(1rem, 5.5vw, 1.4rem);
  }

  .trad-date-part {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
}

@media (max-width: 400px) {
  .trad-card {
    border-radius: 16px;
    padding: 18px 14px;
  }

  .trad-ornament {
    width: 100px;
  }
}

/* =========================
   GIFT (NEW PREMIUM STYLE)
========================= */
.gift-cards-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.gift-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.gift-side:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(66, 48, 28, 0.15);
}

.gift-side__label {
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--gold-deep);
  letter-spacing: 0.05em;
}

.gift-side__qr {
  flex: 0 0 200px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(124, 103, 75, 0.12);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gift-side__qr img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.gift-side__info {
  flex: 1;
  padding-left: 10px;
}

.gift-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(124, 103, 75, 0.14);
  font-size: 0.95rem;
}

.gift-info-row span {
  color: var(--text-soft);
}

.gift-info-row strong {
  color: var(--text);
  font-weight: 600;
}

.gift-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.gift-note {
  margin-top: 28px;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .gift-side {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
  }

  .gift-side__label {
    position: static;
    margin-bottom: 6px;
  }

  .gift-side__qr {
    width: 180px;
  }

  .gift-side__info {
    padding-left: 0;
    width: 100%;
  }

  .gift-info-row {
    justify-content: center;
    gap: 6px;
  }

  .gift-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* =========================
   CALENDAR CARD (Polaroid + Lịch)
========================= */
.calendar-card {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 36px;
  background: linear-gradient(145deg, #fff9f2 0%, #fdf0e4 50%, #f8e8d0 100%);
  border: 1px solid rgba(202, 169, 108, 0.3);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(66, 48, 28, 0.1),
    0 6px 20px rgba(66, 48, 28, 0.06);
  position: relative;
  overflow: hidden;
}

.calendar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(202, 169, 108, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(192, 88, 88, 0.04) 0%, transparent 35%);
  pointer-events: none;
}

/* ---- Left: Polaroid ---- */
.calendar-card__left {
  flex: 0 0 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-card__polaroid {
  width: 100%;
  max-width: 220px;
  background: #fff;
  border-radius: 4px;
  padding: 10px 10px 28px;
  box-shadow:
    0 16px 48px rgba(66, 48, 28, 0.16),
    0 4px 12px rgba(66, 48, 28, 0.08);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
}

.calendar-card__polaroid:hover {
  transform: rotate(0deg) scale(1.02);
}

.polaroid__inner {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f0ede8;
}

.polaroid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid__caption {
  text-align: center;
  padding-top: 14px;
}

.polaroid__names {
  margin: 0 0 4px;
  font-family: "Great Vibes", cursive;
  font-size: 1.4rem;
  color: #8b3a3a;
  line-height: 1.2;
}

.polaroid__names span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: #caa96c;
}

.polaroid__date {
  margin: 0;
  font-size: 0.72rem;
  color: #b09070;
  letter-spacing: 0.06em;
}

/* ---- Right: Calendar ---- */
.calendar-card__right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calendar-card__month-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.cal-month {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #8b3a3a;
  letter-spacing: 0.02em;
}

.cal-year {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  color: #caa96c;
  font-weight: 600;
}

/* Mini calendar */
.mini-calendar {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(202, 169, 108, 0.22);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 16px rgba(66, 48, 28, 0.06);
}

.mini-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(202, 169, 108, 0.15);
}

.cal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a08060;
  letter-spacing: 0.04em;
}

.cal-title svg {
  color: #caa96c;
  flex-shrink: 0;
}

.cal-date-badge {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #8b3a3a;
  background: rgba(139, 58, 58, 0.08);
  border: 1px solid rgba(139, 58, 58, 0.2);
  border-radius: 999px;
  padding: 3px 12px;
}

/* Calendar grid */
.mini-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.mini-cal__weekday {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #a08060;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0 6px;
}

.mini-cal__weekday:first-child {
  color: #c05858;
}

.mini-cal__weekday:last-child {
  color: #c05858;
}

.mini-cal__day {
  text-align: center;
  font-size: 0.72rem;
  color: #6b5040;
  padding: 5px 2px;
  border-radius: 8px;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
}

.mini-cal__day--empty {
  visibility: hidden;
}

.mini-cal__day--wedding {
  font-weight: 700;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mini-cal__day--gai {
  background: linear-gradient(135deg, #c05858, #e08080);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(192, 88, 88, 0.35);
}

.mini-cal__day--trai {
  background: linear-gradient(135deg, #8a6fa8, #b090c8);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(138, 111, 168, 0.35);
}

/* Show/hide wedding days based on active tab */
.mini-calendar.is-show-gai .mini-cal__day--gai,
.mini-calendar.is-show-trai .mini-cal__day--trai {
  opacity: 1;
  pointer-events: auto;
}

.day-heart {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  opacity: 0.55;
  animation: heartbeat-cal 2s ease-in-out infinite;
}

.day-heart svg {
  width: 100%;
  height: 100%;
}

@keyframes heartbeat-cal {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.2); }
}

/* Legend */
.mini-cal__legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(202, 169, 108, 0.12);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: #7a6050;
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-item--gai .legend-dot {
  background: linear-gradient(135deg, #c05858, #e08080);
}

.legend-item--trai .legend-dot {
  background: linear-gradient(135deg, #8a6fa8, #b090c8);
}

/* =========================
   INVITATION CARDS — MODERN REDESIGN
========================= */

/* ---- Tabs ---- */
.inv-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.inv-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 14px 32px;
  border: 1.5px solid rgba(202, 169, 108, 0.35);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.7);
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Be Vietnam Pro", sans-serif;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.inv-tab-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(202, 169, 108, 0.12), rgba(202, 169, 108, 0.04));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.inv-tab-btn:hover::before {
  opacity: 1;
}

.inv-tab-btn small {
  font-size: 0.73rem;
  opacity: 0.65;
  font-weight: 400;
}

.inv-tab-btn:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(202, 169, 108, 0.2);
}

.inv-tab-btn.is-active {
  background: linear-gradient(145deg, #c9a96c, #e4c58d, #c9a96c);
  background-size: 200% 200%;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 32px rgba(202, 169, 108, 0.38);
  animation: tab-gradient-shift 4s ease infinite;
}

.inv-tab-btn.is-active small {
  opacity: 0.88;
  color: rgba(255, 255, 255, 0.9);
}

@keyframes tab-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.inv-card-wrapper {
  display: flex;
  justify-content: center;
  perspective: 2200px;
  padding: 8px 0 48px;
}

/* Card container */
.inv-card {
  position: relative;
  width: min(820px, 100%);
  aspect-ratio: auto;
  min-height: 600px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.34, 1.1, 0.64, 1);
  user-select: none;
}

.inv-card.is-opened {
  transform: rotateY(180deg);
}

.inv-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

/* ---- Front Cover ---- */
.inv-card__face--front {
  background: linear-gradient(155deg, #fef9f2 0%, #f8f0e0 30%, #ede0c6 60%, #e4d3b0 100%);
  border: 1.5px solid rgba(202, 169, 108, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 28px 72px rgba(66, 48, 28, 0.14),
    0 8px 28px rgba(66, 48, 28, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Cover layout */
.inv-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 40px;
  position: relative;
  gap: 2px;
}

/* Corner ornaments - SVG flourishes */
.inv-cover__corner {
  position: absolute;
  width: 52px;
  height: 52px;
  opacity: 0.35;
  color: var(--gold-deep);
  line-height: 1;
}
.inv-cover__corner--tl {
  top: 18px; left: 18px;
  animation: float-gentle 5s ease-in-out infinite;
}
.inv-cover__corner--tr {
  top: 18px; right: 18px;
  animation: float-gentle 5s ease-in-out infinite reverse;
}
.inv-cover__corner--bl {
  bottom: 18px; left: 18px;
  animation: float-gentle 5s ease-in-out infinite reverse;
}
.inv-cover__corner--br {
  bottom: 18px; right: 18px;
  animation: float-gentle 5s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

/* SVG ornaments */
.inv-cover__ornament {
  width: 200px;
  color: var(--gold);
  opacity: 0.5;
}

.inv-cover__ornament--top {
  animation: sway-gentle 4.5s ease-in-out infinite;
}

.inv-cover__ornament--bottom {
  animation: sway-gentle 4.5s ease-in-out infinite reverse;
  animation-delay: -2.2s;
}

@keyframes sway-gentle {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}

/* Cover content */
.inv-cover__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  animation: fade-in-up 1s ease 0.3s both;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.inv-cover__label-top {
  margin: 0;
  font-size: clamp(0.6rem, 1.4vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-soft);
  font-weight: 500;
}

.inv-cover__heart {
  width: 44px;
  height: 44px;
  color: #d4a0a0;
  margin: 6px 0;
  animation: heartbeat 2.2s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(212, 160, 160, 0.35));
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(1); }
  36% { transform: scale(1.1); }
  48% { transform: scale(1); }
}

.inv-cover__ch {
  margin: 0;
  font-size: clamp(0.58rem, 1.3vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-deep);
  font-weight: 600;
}

.inv-cover__chu {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.inv-cover__divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: var(--gold);
  opacity: 0.65;
  font-size: 0.5rem;
}

.inv-cover__divider span:not(:nth-child(2)) {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.inv-cover__address {
  margin: 0;
  font-size: clamp(0.55rem, 1.25vw, 0.72rem);
  color: var(--text-soft);
  line-height: 1.6;
}

.inv-cover__date {
  margin: 5px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.06em;
}

.inv-cover__hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  opacity: 0.6;
  animation: breathe-hint 2.5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes breathe-hint {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(-2px); }
}

/* ---- Inside (opened) ---- */
.inv-card__face--inside {
  background: linear-gradient(160deg, #fefcf7 0%, #faf3e3 40%, #f0e4ce 100%);
  transform: rotateY(180deg);
  border: 1.5px solid rgba(202, 169, 108, 0.5);
  box-shadow:
    inset 0 0 60px rgba(202, 169, 108, 0.07),
    0 28px 72px rgba(66, 48, 28, 0.14);
}

.inv-inside {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px 32px;
  gap: 8px;
  position: relative;
}

.inv-inside::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}

/* Inside header */
.inv-inside__header {
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(202, 169, 108, 0.2);
  animation: fade-in-up 0.8s ease 0.2s both;
}

.inv-header__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.inv-header__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 5px;
  color: var(--gold);
  font-size: 0.5rem;
}

.inv-header__line span:not(:nth-child(2)) {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Inside body */
.inv-inside__body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 4px 0;
}

/* Columns */
.inv-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Parents block */
.inv-parents {
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.75), rgba(255, 250, 240, 0.5));
  border: 1px solid rgba(202, 169, 108, 0.2);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slide-in-left 0.8s ease both;
}

.inv-col--left .inv-parents:nth-child(1) { animation-delay: 0.3s; }
.inv-col--left .inv-parents:nth-child(2) { animation-delay: 0.45s; }
.inv-col--right .inv-parents:nth-child(1) { animation-delay: 0.35s; }

.inv-parents:hover {
  border-color: rgba(202, 169, 108, 0.45);
  box-shadow: 0 4px 16px rgba(202, 169, 108, 0.12);
  transform: translateY(-1px);
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

.inv-parents::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), rgba(202, 169, 108, 0.2));
  border-radius: 2px 0 0 2px;
}

.inv-parents__heading {
  margin: 0 0 8px;
  font-size: clamp(0.6rem, 1.3vw, 0.76rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  font-weight: 700;
  font-family: "Be Vietnam Pro", sans-serif;
}

.inv-parents__name {
  margin: 0;
  font-size: clamp(0.62rem, 1.4vw, 0.82rem);
  color: var(--text);
  line-height: 1.7;
  font-weight: 500;
}

.inv-parents__addr {
  margin: 5px 0 0;
  font-size: clamp(0.56rem, 1.2vw, 0.7rem);
  color: var(--text-soft);
  line-height: 1.55;
}

/* Announce block */
.inv-announce {
  margin: 0;
  text-align: center;
  font-size: clamp(0.65rem, 1.5vw, 0.84rem);
  line-height: 1.8;
  color: var(--text-soft);
  animation: fade-in-up 0.8s ease 0.4s both;
}

.inv-announce strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--gold-deep);
  margin: 5px 0;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(202, 169, 108, 0.15);
}

/* Couple names */
.inv-couple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 0;
  animation: fade-in-up 0.8s ease 0.5s both;
}

.inv-couple__item {
  text-align: center;
  padding: 6px 12px;
  background: rgba(202, 169, 108, 0.07);
  border-radius: 10px;
  border: 1px solid rgba(202, 169, 108, 0.15);
}

.inv-couple__role {
  margin: 0;
  font-size: clamp(0.55rem, 1.15vw, 0.68rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  font-weight: 700;
}

.inv-couple__name {
  margin: 3px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.88rem, 2.1vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.inv-couple__relation {
  margin: 2px 0 0;
  font-size: clamp(0.5rem, 1.1vw, 0.63rem);
  color: var(--text-soft);
  font-style: italic;
}

.inv-couple__amp {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  color: #d4a0a0;
  font-style: italic;
  line-height: 1;
  animation: heartbeat 2.5s ease-in-out infinite;
  filter: drop-shadow(0 1px 4px rgba(212, 160, 160, 0.3));
}

/* Venue */
.inv-venue {
  text-align: center;
  padding: 7px 12px;
  background: linear-gradient(135deg, rgba(202, 169, 108, 0.1), rgba(202, 169, 108, 0.04));
  border-radius: 12px;
  border: 1px solid rgba(202, 169, 108, 0.2);
  animation: fade-in-up 0.8s ease 0.55s both;
}

.inv-venue__label {
  margin: 0;
  font-size: clamp(0.52rem, 1.1vw, 0.66rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
}

.inv-venue__place {
  margin: 3px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.9rem, 2.1vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
}

/* Date info */
.inv-date-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  border: 1px solid rgba(202, 169, 108, 0.15);
  animation: fade-in-up 0.8s ease 0.6s both;
}

.inv-date-info__item {
  margin: 0;
  font-size: clamp(0.58rem, 1.25vw, 0.74rem);
  color: var(--text-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}

.inv-date-info__item strong {
  color: var(--gold-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.8rem, 1.8vw, 1.02rem);
  font-weight: 700;
}

/* Closing */
.inv-closing {
  text-align: center;
  font-size: clamp(0.56rem, 1.2vw, 0.7rem);
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.6;
  padding: 7px 14px;
  border-top: 1px solid rgba(202, 169, 108, 0.2);
  margin-top: auto;
  animation: fade-in-up 0.8s ease 0.65s both;
  background: linear-gradient(135deg, rgba(202, 169, 108, 0.06), rgba(202, 169, 108, 0.02));
  border-radius: 0 0 12px 12px;
  position: relative;
}

.inv-closing::before,
.inv-closing::after {
  content: '✦';
  color: var(--gold);
  opacity: 0.4;
  margin: 0 6px;
  font-size: 0.55rem;
}

/* Footer / close button */
.inv-inside__footer {
  text-align: center;
  padding-top: 6px;
}

.inv-close-btn {
  border: none;
  background: linear-gradient(135deg, rgba(202, 169, 108, 0.12), rgba(202, 169, 108, 0.06));
  color: var(--gold-deep);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(202, 169, 108, 0.25);
  font-family: "Be Vietnam Pro", sans-serif;
}

.inv-close-btn:hover {
  opacity: 1;
  background: linear-gradient(135deg, rgba(202, 169, 108, 0.2), rgba(202, 169, 108, 0.1));
  box-shadow: 0 4px 12px rgba(202, 169, 108, 0.15);
}

/* Responsive: RSVP Card */
@media (max-width: 768px) {
  .rsvp-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
    max-width: 520px;
  }

  .rsvp-card__left {
    border-right: none;
    border-bottom: 1px solid rgba(202, 169, 108, 0.2);
    padding: 32px 24px 24px;
  }

  .rsvp-card__divider {
    flex-direction: row;
    padding: 0 24px;
  }

  .rsvp-divider__line {
    width: auto;
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(202, 169, 108, 0.35), transparent);
    min-height: unset;
    min-width: 40px;
  }

  .rsvp-divider__ornament {
    transform: rotate(90deg);
  }

  .rsvp-card__right {
    padding: 24px 20px;
  }

  .rsvp-form__fields {
    grid-template-columns: 1fr;
  }

  .rsvp-field--full {
    grid-column: 1;
  }

  .rsvp-attendance {
    grid-template-columns: 1fr;
  }

  .rsvp-left__ornament {
    width: 100px;
  }

  .rsvp-left__quote {
    display: none;
  }

  .rsvp-form__title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .rsvp-card {
    border-radius: 16px;
    max-width: 100%;
  }

  .rsvp-card__left {
    padding: 24px 20px 20px;
  }

  .rsvp-card__right {
    padding: 20px 16px;
  }

  .rsvp-form {
    gap: 16px;
  }

  .rsvp-field__input {
    padding: 11px 12px;
  }

  .rsvp-submit {
    width: 100%;
    padding: 13px 28px;
  }
}

/* =========================
   CALENDAR CARD RESPONSIVE
========================= */
@media (max-width: 768px) {
  .calendar-card {
    flex-direction: column;
    gap: 24px;
    padding: 28px 20px;
    margin-bottom: 28px;
  }

  .calendar-card__left {
    flex: none;
  }

  .calendar-card__polaroid {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .calendar-card {
    padding: 22px 16px;
  }

  .calendar-card__polaroid {
    max-width: 150px;
  }

  .mini-calendar {
    padding: 12px 14px;
  }

  .mini-cal__legend {
    flex-direction: column;
    gap: 6px;
  }
}

/* =========================
   INVITATION CARDS RESPONSIVE
========================= */
@media (max-width: 700px) {
  .inv-card {
    aspect-ratio: auto;
    min-height: 520px;
  }

  .inv-tabs {
    gap: 8px;
    margin-bottom: 24px;
  }

  .inv-tab-btn {
    padding: 11px 22px;
    font-size: 0.88rem;
    border-radius: 12px;
  }

  .inv-tab-btn small {
    font-size: 0.7rem;
  }

  .inv-cover {
    padding: 28px 24px;
  }

  .inv-cover__ornament {
    width: 130px;
  }

  .inv-cover__corner {
    width: 36px;
    height: 36px;
  }

  .inv-cover__hint {
    bottom: 14px;
    font-size: 0.68rem;
  }

  .inv-inside {
    padding: 16px 20px;
    gap: 8px;
  }

  .inv-inside__body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .inv-col--left {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .inv-parents {
    flex: 1;
    min-width: 140px;
  }

  .inv-cover__address {
    display: none;
  }

  .inv-couple {
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .inv-card {
    min-height: 580px;
  }

  .inv-cover {
    padding: 24px 20px;
  }

  .inv-cover__ornament {
    width: 100px;
  }

  .inv-cover__corner {
    width: 28px;
    height: 28px;
  }

  .inv-cover__corner--tl { top: 12px; left: 12px; }
  .inv-cover__corner--tr { top: 12px; right: 12px; }
  .inv-cover__corner--bl { bottom: 12px; left: 12px; }
  .inv-cover__corner--br { bottom: 12px; right: 12px; }

  .inv-inside {
    padding: 14px 16px;
    gap: 6px;
  }

  .inv-parents {
    padding: 8px 10px;
    min-width: unset;
    flex: 1 1 calc(50% - 4px);
  }

  .inv-cover__address {
    display: none;
  }

  .inv-couple__item {
    padding: 5px 8px;
  }

  .inv-date-info {
    padding: 5px 10px;
  }

  .inv-closing {
    font-size: 0.55rem;
  }
}

/* =========================
   FOOTER
========================= */
.site-footer {
  padding: 68px 0 92px;
  text-align: center;
  background: linear-gradient(180deg, #fbf6ef 0%, #f5eee1 100%);
}

.site-footer h2 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
}

/* =========================
   HEART BURST (Tab click effect)
========================= */
.heart-burst-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.heart-burst {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  animation: heart-burst-float 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.heart-burst svg {
  width: 100%;
  height: 100%;
  animation: heart-burst-pulse 1.6s ease-out forwards;
}

@keyframes heart-burst-float {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3);
  }
  30% {
    opacity: 1;
    transform: translate(
      calc(-50% + var(--dx)),
      calc(-50% + var(--dy) * 0.4)
    ) scale(1.3);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--dx) * 2.2),
      calc(-50% + var(--dy) * 2.8)
    ) scale(0.4);
  }
}

@keyframes heart-burst-pulse {
  0% { transform: scale(0.7); }
  20% { transform: scale(1.3); }
  60% { transform: scale(1); }
  100% { transform: scale(0.6); }
}

/* =========================
   LỜI CHÚC FLOATING OVERLAY
========================= */
.wishes-overlay {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px 80px;
  pointer-events: none;
  overflow: hidden;
}

.wishes-overlay__header {
  text-align: center;
  margin-top: auto;
  margin-bottom: 8px;
  pointer-events: none;
}

.wishes-overlay__label {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(202, 169, 108, 0.6);
  opacity: 0;
  animation: wishes-label-appear 1s ease 2s forwards;
}

@keyframes wishes-label-appear {
  to { opacity: 1; }
}

.wishes-overlay__bubbles {
  position: relative;
  width: 100%;
  flex: 1;
  overflow: visible;
}

/* --- Individual Bubble --- */
.wish-bubble {
  position: absolute;
  left: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(180, 80, 80, 0.6) 0%, rgba(155, 55, 55, 0.5) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  max-width: 260px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: auto;
  cursor: default;

  /* Float up animation */
  animation: bubble-float var(--bubble-duration, 8s) ease-in-out forwards;
  animation-delay: var(--bubble-delay, 0s);
}

@keyframes bubble-float {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.85);
  }
  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 0.85;
    transform: translateY(-140px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-240px) scale(0.88);
  }
}

.wish-bubble__name {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffd4d4;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-bubble__text {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.92rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

/* Bubble tail */
.wish-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid rgba(155, 55, 55, 0.5);
}

/* Bubble color variants */
.wish-bubble--warm {
  background: linear-gradient(135deg, rgba(202, 169, 108, 0.6) 0%, rgba(175, 135, 55, 0.5) 100%);
}
.wish-bubble--warm::after {
  border-top-color: rgba(175, 135, 55, 0.5);
}
.wish-bubble--warm .wish-bubble__name {
  color: #ffe4a0;
}

.wish-bubble--rose {
  background: linear-gradient(135deg, rgba(200, 100, 120, 0.6) 0%, rgba(165, 65, 85, 0.5) 100%);
}
.wish-bubble--rose::after {
  border-top-color: rgba(165, 65, 85, 0.5);
}
.wish-bubble--rose .wish-bubble__name {
  color: #ffb8c8;
}

/* --- Loading --- */
.wishes-overlay__loading {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.wishes-loading__dots {
  display: flex;
  gap: 6px;
}

.wishes-loading__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(202, 169, 108, 0.5);
  animation: wish-dot-bounce 1.2s ease-in-out infinite;
}

.wishes-loading__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.wishes-loading__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes wish-dot-bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.4; }
  40% { transform: scale(1.2); opacity: 1; }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .wishes-overlay {
    width: 200px;
    padding: 70px 8px 16px;
  }

  .wish-bubble {
    max-width: 180px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .wish-bubble__name {
    font-size: 0.8rem;
  }

  .wish-bubble__text {
    font-size: 0.82rem;
  }
}

@media (max-width: 480px) {
  .wishes-overlay {
    width: 160px;
    padding: 64px 6px 12px;
  }

  .wish-bubble {
    max-width: 148px;
    padding: 9px 10px;
    border-radius: 12px;
  }

  .wish-bubble__name {
    font-size: 0.75rem;
  }

  .wish-bubble__text {
    font-size: 0.76rem;
  }
}

/* =========================
   SCROLL REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 768px) {
  .header-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 0;
  }

  .section {
    padding: 96px 0;
  }

  .hero__dates {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }

  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }

  .countdown {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gift-cards-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    margin-bottom: 34px;
  }

  .timeline-item:nth-child(odd) {
    padding-right: 34px;
  }

  .timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 34px;
  }

  .timeline-dot {
    left: auto;
    right: -12px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
    right: auto;
  }
}

/* =============================================
   RÈM MỞ ĐẦU (Curtain Opening Effect)
   ============================================= */

/* Container bao phủ toàn màn hình */
.curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  overflow: hidden;
  pointer-events: none; /* chỉ bật pointer khi hiện */
}

/* Khi hiện, bật tương tác */
.curtain.is-open {
  pointer-events: auto;
}

/* Hai tấm rèm */
.curtain__panel {
  position: relative;
  width: 50%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  will-change: transform;
  transition: transform 1.8s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}

/* Rèm trái: gradient vàng kem mượt mà */
.curtain__panel--left {
  background:
    linear-gradient(
      135deg,
      #ffe8a0 0%,
      #ffd989 20%,
      #ffcf5c 40%,
      #ffd989 60%,
      #e8bc6a 80%,
      #d4a045 100%
    );
  background-size: 100% 100%;
  box-shadow:
    inset -20px 0 60px rgba(120, 80, 10, 0.25),
    inset -5px 0 20px rgba(255, 255, 255, 0.3),
    4px 0 20px rgba(120, 80, 10, 0.2);
  border-right: 1px solid rgba(255, 220, 150, 0.4);
}

/* Rèm phải: đảo ngược gradient để vân vải khớp nhau */
.curtain__panel--right {
  background:
    linear-gradient(
      225deg,
      #ffe8a0 0%,
      #ffd989 20%,
      #ffcf5c 40%,
      #ffd989 60%,
      #e8bc6a 80%,
      #d4a045 100%
    );
  background-size: 100% 100%;
  box-shadow:
    inset 20px 0 60px rgba(120, 80, 10, 0.25),
    inset 5px 0 20px rgba(255, 255, 255, 0.3),
    -4px 0 20px rgba(120, 80, 10, 0.2);
  border-left: 1px solid rgba(255, 220, 150, 0.4);
  margin-left: -1px;
}

/* Lớp texture vải nhung — dùng CSS thuần (không cần ảnh) */
.curtain__fabric {
  position: absolute;
  inset: 0;
  background-image:
    /* Sợi dọc mảnh */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      rgba(0, 0, 0, 0.04) 3px,
      rgba(0, 0, 0, 0.04) 4px
    ),
    /* Sợi ngang mảnh */
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 5px,
      rgba(0, 0, 0, 0.03) 5px,
      rgba(0, 0, 0, 0.03) 6px
    ),
    /* Lớp phản quang nhẹ — góc trên trái sáng hơn */
    radial-gradient(
      ellipse 60% 80% at 20% 30%,
      rgba(255, 200, 120, 0.12) 0%,
      transparent 70%
    ),
    /* Lớp phản quang nhẹ — góc dưới phải */
    radial-gradient(
      ellipse 50% 60% at 80% 70%,
      rgba(0, 0, 0, 0.25) 0%,
      transparent 70%
    );
  pointer-events: none;
}

/* Lớp phản quang 3D — tạo nếp gấp rèm */
.curtain__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 15%,
    transparent 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

/* Đường nối giữa 2 rèm — tạo bóng đổ chính giữa */
.curtain__seam {
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 100vh;
  transform: translateX(-50%);
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.9) 40%,
    rgba(0, 0, 0, 0.9) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 10;
  pointer-events: none;
  transition: opacity 1.5s ease 0.3s;
  box-shadow:
    -4px 0 12px rgba(0, 0, 0, 0.5),
    4px 0 12px rgba(0, 0, 0, 0.5);
}

.curtain__seam.is-hidden {
  opacity: 0;
}

/* Nút mở thiệp ở giữa */
.curtain__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.curtain__center.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

/* Nút bấm chính */
.curtain__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 36px;
  background: rgba(255, 253, 249, 0.95);
  border: 2px solid rgba(255, 210, 100, 0.7);
  border-radius: 50%;
  width: 130px;
  height: 130px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    0 8px 32px rgba(180, 130, 40, 0.35),
    0 2px 8px rgba(180, 130, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: curtainPulse 2.5s ease-in-out infinite;
}

.curtain__btn:hover {
  background: rgba(255, 253, 249, 1);
  border-color: rgba(255, 210, 100, 1);
  transform: scale(1.08);
  box-shadow:
    0 12px 40px rgba(180, 130, 40, 0.45),
    0 4px 16px rgba(180, 130, 40, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: none;
}

.curtain__btn:active {
  transform: scale(0.96);
  box-shadow:
    0 4px 16px rgba(180, 130, 40, 0.35),
    0 1px 4px rgba(180, 130, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Icon trái tim trong nút */
.curtain__btn-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffd989;
  filter: drop-shadow(0 2px 6px rgba(255, 210, 100, 0.5));
}

.curtain__btn-heart svg {
  width: 36px;
  height: 36px;
}

/* Chữ "Mở thiệp" */
.curtain__btn-text {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3f352d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Dòng gợi ý nhỏ bên dưới nút */
.curtain__hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(80, 50, 10, 0.75);
  letter-spacing: 0.06em;
  text-align: center;
  font-family: 'Be Vietnam Pro', sans-serif;
  animation: curtainHintFade 3s ease-in-out infinite;
}

/* Animation xung quanh nút — pulse nhẹ vàng gold */
@keyframes curtainPulse {
  0%, 100% {
    box-shadow:
      0 8px 32px rgba(180, 130, 40, 0.3),
      0 2px 8px rgba(180, 130, 40, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 0 0 0 rgba(255, 210, 100, 0);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(180, 130, 40, 0.3),
      0 2px 8px rgba(180, 130, 40, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.8),
      0 0 0 14px rgba(255, 210, 100, 0.18);
  }
}

/* Animation nhấp nháy hint */
@keyframes curtainHintFade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- Trạng thái mở rèm ---- */

/* Rèm trái trượt sang trái */
.curtain__panel--left.is-open {
  transform: translateX(-100%);
}

/* Rèm phải trượt sang phải */
.curtain__panel--right.is-open {
  transform: translateX(100%);
}

/* Rèm tổng — ẩn hoàn toàn sau khi mở */
.curtain.is-open .curtain__panel {
  pointer-events: none;
}

.curtain.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease 2.5s;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .curtain__btn {
    width: 110px;
    height: 110px;
    padding: 20px 28px;
  }

  .curtain__btn-heart svg {
    width: 30px;
    height: 30px;
  }

  .curtain__btn-text {
    font-size: 0.72rem;
  }

  .curtain__hint {
    font-size: 0.68rem;
  }
}

/* =============================================
   HƯỚNG DẪN TÙY CHỈNH RÈM
   ============================================= */

/* --- MÀU SẮC (màu hiện tại: vàng kem #ffd989) ---
   1. Vàng kem mặc định (hiện tại):
      .curtain__panel--left  gradient(135deg, #ffe8a0 …)
      .curtain__panel--right gradient(225deg, #ffe8a0 …)
   2. Đỏ nhung truyền thống:
      Rèm trái: background: linear-gradient(135deg, #7a1010, #c41e1e, #5c0a0a);
      Rèm phải: background: linear-gradient(225deg, #7a1010, #c41e1e, #5c0a0a);
   3. Kem sang trọng:
      Rèm trái: background: linear-gradient(135deg, #f5e6c8, #e8d5a3);
      Rèm phải: background: linear-gradient(225deg, #f5e6c8, #e8d5a3);
   4. Vàng hoàng gia:
      Rèm trái: background: linear-gradient(135deg, #d4a017, #b8860b);
      Rèm phải: background: linear-gradient(225deg, #d4a017, #b8860b);
   5. Xanh navy sang trọng:
      Rèm trái: background: linear-gradient(135deg, #1a237e, #283593);
      Rèm phải: background: linear-gradient(225deg, #1a237e 0%, #283593 100%);

   --- TEXTURE VẢI ẢNH ---
   Nếu muốn dùng ảnh texture vải thật:
   Thêm vào .curtain__fabric:
     background-image: url('texture-vai-ren-cua-ban.jpg'), [các gradient hiện tại];
     background-size: 200px 200px, 100% 100%;

   --- ĐỔ BÓNG BOX-SHADOW ---
   Điều chỉnh box-shadow trên .curtain__panel để thay đổi chiều sâu.

   --- TỐC ĐỘ MỞ RÈM ---
   Thay đổi giá trị transition trên .curtain__panel:
     transition: transform 1.8s cubic-bezier(0.76, 0, 0.24, 1);
   - Nhanh hơn: 1.2s cubic-bezier(0.4, 0, 0.2, 1)
   - Chậm & sang trọng: 2.5s cubic-bezier(0.22, 1, 0.36, 1)
*/

