/* ============================================================
   Wedding Site — style.css
   Single-page snap-scroll card-stack layout
   ============================================================ */

/* ---------- @font-face: self-hosted subsets ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/cormorant-vi.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/cormorant-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/montserrat-vi.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/greatvibes-vi.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Great Vibes';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/greatvibes-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- CSS Variables ---------- */
:root {
  --color-bg: #FFFCF7;
  --color-secondary: #F8F4E3;
  --color-accent: #7B1E28;
  --color-accent-dark: #5A161D;
  --color-text: #2C2C2C;
  --color-border: #DCD6C5;
  --color-border-light: #EAE6D5;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Great Vibes', 'Brush Script MT', cursive;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.28, 0.84, 0.42, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}
/* Body is the scroll container.
   Native scroll-snap-type intentionally OMITTED — combo of sticky + mandatory snap
   causes "stuck halfway" bug on iOS Safari when scrolling up. JS handles snap with
   custom RAF (180ms) on touchend — fires immediately, no native fight, no delay. */
body {
  margin: 0;
  padding: 0;
  /* 100lvh = LARGEST viewport (URL bar hidden state). Stable — never changes
     during scroll, unlike 100dvh which grows/shrinks with the mobile URL bar
     and causes the next section to slide into view after snap settles. */
  height: 100vh;
  height: 100lvh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  position: relative;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--color-accent); color: #fff; }

/* ---------- Card sections (sticky stack, body-scroll) ---------- */
.card {
  position: sticky;
  top: 0;
  /* 100lvh = LARGEST viewport. Matches body height. Stable: never changes
     when mobile URL bar shows/hides — so cards never resize mid-scroll, and
     next section never bleeds into viewport after snap settles. */
  height: 100vh;     /* fallback */
  height: 100lvh;    /* wins on modern browsers — matches body */
  width: 100%;
  scroll-snap-align: start;
  /* NO scroll-snap-stop: always — it conflicts with sticky positioning on iOS
     Safari, causing the "stuck halfway" bug when scrolling up. Mandatory snap
     alone handles commits; JS touch-assist catches partial gestures. */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* iOS Safari sticky stability: compositor layer hint. */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

#hero { z-index: 0; background: var(--color-bg); padding-top: 48px; padding-bottom: 120px; }
#lich-trinh { z-index: 10; background: var(--color-accent); color: var(--color-secondary); padding-top: 64px; padding-bottom: 90px; }
#cau-chuyen { z-index: 20; background: var(--color-bg); padding-top: 80px; padding-bottom: 100px; }
#hoi-dap { z-index: 30; background: var(--color-secondary); padding-top: 64px; padding-bottom: 90px; }
#rsvp { z-index: 40; background: var(--color-bg); padding-top: 80px; padding-bottom: 100px; }
#qua-tang { z-index: 50; background: var(--color-secondary); justify-content: space-between; }

/* All sections except hero get rounded top + shadow (card stack effect) */
.card:not(#hero) {
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.15);
}
#lich-trinh { box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.2); }
#qua-tang { box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.15); }

@media (min-width: 768px) {
  #hero { padding-top: 64px; padding-bottom: 48px; }
  #lich-trinh { padding-top: 64px; }
  #cau-chuyen { padding-top: 64px; padding-bottom: 0; }
  #hoi-dap { padding: 64px 0; }
  #rsvp { padding-top: 64px; padding-bottom: 32px; }
  .card:not(#hero) { border-radius: 3rem 3rem 0 0; }
}

/* Inner card container */
.card__inner {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .card__inner { padding: 0 48px; }
}

/* Run bounce animation when section becomes active */
@keyframes snapBounce {
  0% { transform: translateY(12px) scale(0.995); }
  40% { transform: translateY(-4px) scale(1.002); }
  70% { transform: translateY(2px) scale(1); }
  100% { transform: translateY(0) scale(1); }
}
.run-bounce { animation: snapBounce 0.6s var(--ease-bounce) forwards; }

/* ---------- Floating menu toggle ---------- */
.menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  background: rgba(255, 252, 247, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 12px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border-light);
  color: var(--color-accent);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover, .menu-toggle:focus-visible {
  background: var(--color-accent);
  color: var(--color-bg);
}
.menu-toggle svg { transition: transform 0.3s var(--ease); }
.menu-toggle:hover svg { transform: scale(1.1); }

@media (min-width: 768px) {
  .menu-toggle { top: 32px; right: 48px; width: 56px; height: 56px; padding: 16px; }
}

/* ---------- Menu overlay ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 252, 247, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 110;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.menu-overlay.is-open {
  display: flex;
  opacity: 1;
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 12px;
  color: var(--color-accent);
  transition: transform 0.3s var(--ease);
}
.menu-close:hover { transform: rotate(90deg); }
@media (min-width: 768px) {
  .menu-close { top: 32px; right: 48px; padding: 16px; }
}

.menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
@media (min-width: 768px) {
  .menu-content { gap: 32px; }
}

.menu-brand {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--color-accent);
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .menu-brand { font-size: 3rem; margin-bottom: 24px; }
}

.menu-link {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.menu-link:hover, .menu-link:focus-visible {
  color: var(--color-accent);
  transform: scale(1.05);
}
@media (min-width: 768px) {
  .menu-link { font-size: 2.25rem; }
}

.menu-btn {
  display: block;
  text-align: center;
  width: 100%;
  max-width: 320px;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 16px 32px;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s var(--ease);
  margin-top: 32px;
}
.menu-btn:hover { background: var(--color-accent-dark); }
@media (min-width: 768px) {
  .menu-btn { max-width: 420px; padding: 20px 32px; font-size: 1rem; }
}

/* ---------- HERO ---------- */
.hero__names {
  font-family: var(--font-serif);
  font-size: 20vw;
  line-height: 0.85;
  color: var(--color-accent);
  opacity: 0.95;
  margin: 0;
  white-space: nowrap;
  z-index: 20;
  position: relative;
  flex-shrink: 0;
}

.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-height: 0;
  margin-top: 16px;
  gap: 24px;
}

.hero__info {
  width: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.hero__tagline {
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero__info-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-gray-300);
  padding: 12px 0;
}
.hero__info-row:last-child {
  border-bottom: 1px solid var(--color-gray-300);
}

.hero__info-label {
  width: 35%;
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.hero__info-content { width: 65%; }
.hero__info-main {
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
}
.hero__info-sub {
  font-size: 12px;
  font-family: var(--font-serif);
  color: var(--color-gray-500);
  margin-top: 2px;
}

.hero__photo {
  width: 100%;
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 30vh;
  flex-shrink: 1;
  min-height: 0;
  padding-bottom: 8px;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  background: #f3f4f6;
  border-radius: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .hero__names { font-size: 18vw; }
  .hero__photo { height: 35vh; }
}

@media (min-width: 768px) {
  .hero__names { font-size: clamp(5rem, 15vh, 12rem); }
  .hero__body { flex-direction: row; gap: 48px; margin-top: 32px; margin-bottom: 0; justify-content: space-between; }
  .hero__info { width: 42%; margin-bottom: 0; }
  .hero__tagline { font-size: clamp(2.5rem, 6vh, 4rem); margin-bottom: 24px; }
  .hero__info-row { padding: 16px 0; }
  .hero__info-label { font-size: 0.875rem; }
  .hero__info-main { font-size: 1rem; }
  .hero__info-sub { font-size: 11px; }
  .hero__photo { width: 50%; height: 100%; border-radius: 2px; }
  .hero__photo img { border-radius: 2px; }
}

/* ---------- LỊCH TRÌNH ---------- */
#lich-trinh .card__inner {
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 90px;
}

.sched__title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.sched__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1024px;
  padding-bottom: 16px;
}

.sched__item .sched__date {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  opacity: 0.7;
  margin-bottom: 4px;
}

.sched__body {
  border-top: 1px solid rgba(248, 244, 227, 0.3);
  padding-top: 12px;
}

.sched__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.sched__day {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 8px;
  font-weight: 600;
}

.sched__desc {
  font-size: 13px;
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .sched__title { font-size: 4rem; text-align: left; margin-bottom: 48px; }
  .sched__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .sched__item .sched__date { font-size: 6.5rem; margin-bottom: 16px; }
  .sched__body { padding-top: 24px; }
  .sched__name { font-size: 1.875rem; margin-bottom: 8px; }
  .sched__day { font-size: 12px; }
  .sched__desc { font-size: 0.875rem; }
}
@media (min-width: 1024px) {
  .sched__item .sched__date { font-size: 7.5rem; }
}

/* ---------- CÂU CHUYỆN ---------- */
#cau-chuyen .card__inner {
  justify-content: center;
}

.story {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 72vh;
  height: 72lvh;
  align-items: stretch;
}

.story__text {
  width: 100%;
  background: var(--color-secondary);
  border-radius: 1rem;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50%;
  flex-shrink: 0;
}
.story__subtitle {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 4px;
}
.story__heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.story__desc {
  color: var(--color-gray-600);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story__photo {
  width: 100%;
  height: 50%;
  flex-shrink: 0;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease);
}

.story__arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}
.story__arrow {
  pointer-events: auto;
  background: rgba(255, 252, 247, 0.8);
  color: var(--color-accent);
  padding: 8px;
  border-radius: 9999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story__arrow:hover, .story__arrow:active { background: var(--color-bg); }

.story__dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.story__dot {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  background: rgba(255, 252, 247, 0.6);
  transition: all 0.3s var(--ease);
}
.story__dot.is-active {
  width: 24px;
  background: var(--color-bg);
}

@media (min-width: 640px) {
  .story__heading { font-size: 1.5rem; }
  .story__desc { font-size: 12px; }
}

@media (min-width: 768px) {
  .story__text { padding: 32px; }
  .story__subtitle { font-size: 2rem; margin-bottom: 16px; }
  .story__heading { font-size: 1.75rem; margin-bottom: 16px; }
  .story__desc { font-size: 0.9375rem; -webkit-line-clamp: unset; }
  .story__arrows { padding: 0 32px; }
  .story__arrow { padding: 12px; }
  .story__dots { bottom: 24px; gap: 12px; }
  .story__dot { height: 8px; width: 8px; }
  .story__dot.is-active { width: 32px; }
}

@media (min-width: 1024px) {
  .story { flex-direction: row; gap: 24px; height: auto; }
  .story__text { width: 40%; height: 65vh; height: 65dvh; padding: 56px; border-radius: 2rem; }
  .story__photo { width: 60%; height: 65vh; height: 65dvh; border-radius: 2rem; }
  .story__heading { font-size: 2.25rem; }
}

/* ---------- HỎI ĐÁP ---------- */
#hoi-dap .card__inner {
  max-width: 56rem;
  padding-top: 32px;
  padding-bottom: 90px;
}
@media (min-width: 768px) {
  #hoi-dap .card__inner { justify-content: center; padding-top: 0; padding-bottom: 0; }
}

.faq__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .faq__title { font-size: 2.25rem; margin-bottom: 48px; }
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
  width: 100%;
}
@media (min-width: 768px) {
  .faq__list { gap: 40px; }
}

.faq__group h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.faq__group p, .faq__group li {
  color: var(--color-gray-700);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.6;
}
.faq__group ul { display: flex; flex-direction: column; gap: 8px; }
.faq__row { display: flex; flex-direction: column; }
.faq__row .faq__rowlabel {
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.025em;
}
.faq__row .faq__sub {
  font-size: 12px;
  color: var(--color-gray-500);
  margin-top: 2px;
  font-style: italic;
}

@media (min-width: 768px) {
  .faq__group h3 { font-size: 1.25rem; margin-bottom: 16px; padding-bottom: 8px; }
  .faq__group p, .faq__group li { font-size: 1rem; }
  .faq__row { flex-direction: row; align-items: flex-start; }
  .faq__row .faq__rowlabel { min-width: 200px; }
  .faq__row .faq__sub { font-size: 0.75rem; margin-top: 4px; }
}

/* ---------- RSVP ---------- */
#rsvp .card__inner { justify-content: center; }

.rsvp {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  height: 75vh;
  height: 75lvh;
}

.rsvp__photo {
  display: none;
}

.rsvp__form-wrap {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.rsvp__heading {
  text-align: center;
  flex-shrink: 0;
}
.rsvp__heading-script {
  font-family: var(--font-script);
  font-size: 1.875rem;
  color: var(--color-accent);
}
.rsvp__heading h2 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.2;
}
.rsvp__heading p {
  color: var(--color-gray-500);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 0 8px;
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: left;
  flex-shrink: 0;
}

.rsvp__field { display: flex; flex-direction: column; gap: 4px; }
.rsvp__field label {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  font-weight: 600;
}

.rsvp__input,
.rsvp__textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  color: var(--color-text);
}
.rsvp__input:focus,
.rsvp__textarea:focus { outline: none; border-color: var(--color-accent); }
.rsvp__textarea { resize: none; }

.rsvp__dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rsvp__date-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
  background: transparent;
  flex: 1;
  transition: all 0.3s var(--ease);
}
.rsvp__date-card.is-checked {
  border-color: var(--color-accent);
  background: rgba(123, 30, 40, 0.05);
}

.rsvp__date-card label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 100%;
  font-weight: normal;
  font-size: 12px;
}
.rsvp__date-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
  margin: 0;
}
.rsvp__date-card .rsvp__date-name {
  margin-left: 10px;
  flex: 1;
  font-weight: 500;
  font-size: 12px;
  color: var(--color-text);
  transition: color 0.3s var(--ease);
}
.rsvp__date-card.is-checked .rsvp__date-name { color: var(--color-accent); }

.rsvp__guests {
  display: none;
  margin-top: 8px;
  margin-left: 24px;
  align-items: center;
  justify-content: space-between;
}
.rsvp__date-card.is-checked .rsvp__guests { display: flex; }
.rsvp__guests-label {
  font-size: 13px;
  color: var(--color-gray-600);
  font-weight: 500;
}
.rsvp__guests select {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  color: var(--color-text);
  font-weight: 500;
}
.rsvp__guests select:focus { outline: none; border-color: var(--color-accent); }

.rsvp__submit {
  width: 100%;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
  margin-top: 8px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.rsvp__submit:hover { background: var(--color-accent-dark); }
.rsvp__submit:active { transform: scale(0.98); }

@media (min-width: 640px) {
  .rsvp__dates { flex-direction: row; gap: 12px; }
}

@media (min-width: 768px) {
  .rsvp__heading-script { font-size: 3rem; margin-bottom: 8px; }
  .rsvp__heading h2 { font-size: 2.25rem; margin-bottom: 16px; }
  .rsvp__heading p { font-size: 0.875rem; margin-bottom: 24px; padding: 0; }
  .rsvp__form { gap: 20px; }
  .rsvp__field label { font-size: 0.875rem; }
  .rsvp__input, .rsvp__textarea { padding: 12px 14px; font-size: 0.875rem; }
  .rsvp__date-card { padding: 12px; }
  .rsvp__date-card label { font-size: 0.875rem; }
  .rsvp__date-card input[type="checkbox"] { width: 20px; height: 20px; }
  .rsvp__date-card .rsvp__date-name { margin-left: 12px; font-size: 0.875rem; }
  .rsvp__guests-label { font-size: 0.875rem; }
  .rsvp__guests select { font-size: 0.875rem; }
  .rsvp__submit { padding: 16px 32px; font-size: 0.875rem; }
}

@media (min-width: 1024px) {
  .rsvp { flex-direction: row; gap: 48px; height: 75vh; height: 75dvh; }
  .rsvp__photo {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  }
  .rsvp__photo img { width: 100%; height: 100%; object-fit: cover; }
  .rsvp__form-wrap { width: 50%; max-width: 32rem; }
  .rsvp__heading { text-align: left; }
}

/* ---------- QUÀ TẶNG + FOOTER ---------- */
.gift {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 40px 20px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.gift__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text);
  margin-bottom: 16px;
}
.gift__desc {
  color: var(--color-gray-600);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 0 8px;
}
.gift__btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 14px 32px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.gift__btn:hover { background: var(--color-accent-dark); }
.gift__btn:active { transform: scale(0.98); }

@media (min-width: 768px) {
  .gift { padding: 40px 32px 0; }
  .gift__title { font-size: 2.25rem; margin-bottom: 32px; }
  .gift__desc { font-size: 1rem; margin-bottom: 48px; padding: 0 16px; }
  .gift__btn { padding: 16px 48px; font-size: 0.75rem; }
}

.site-footer {
  background: var(--color-bg);
  padding: 24px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--color-border-light);
  margin-top: auto;
  flex-shrink: 0;
}
.site-footer__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-footer__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-accent);
  font-weight: 600;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}
.site-footer__nav a:hover { color: var(--color-accent); }
.site-footer__nav .sep { display: none; }
.site-footer__copy {
  font-size: 10px;
  color: var(--color-gray-400);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 300;
}

@media (min-width: 640px) {
  .site-footer__nav .sep { display: inline; }
  .site-footer__nav { gap: 12px; }
}

@media (min-width: 768px) {
  .site-footer { padding: 48px 32px; }
  .site-footer__brand { font-size: 2.25rem; margin-bottom: 32px; }
  .site-footer__nav { font-size: 10px; }
  .site-footer__copy { font-size: 9px; margin-top: 32px; }
}

/* ---------- Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { scroll-behavior: auto; }
}
