/* Thiệp cưới — theo DESIGN.md (TEC-107): hồng pastel + vàng gold, mobile-first. */
:root {
  --bg: #FDF2F4;
  --bg-alt: #FFF9F5;
  --pink: #E8A2B4;
  --pink-dark: #D87E96;
  --gold: #C9A227;
  --ink: #4A3F42;
  --muted: #8A7D80;
  --green: #7FB069;
  --white: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
main { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Mục 1 — Mở đầu */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #FBE3E8, #FDF2F4);
  border-radius: 0 0 24px 24px;
  overflow: hidden;
}
.hero__overlay { position: absolute; inset: 0; background: rgba(253, 242, 244, 0.35); }
.hero__content { position: relative; padding: 32px 20px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-size: 13px;
  margin: 0 0 16px;
}
.hero__names { margin: 0; line-height: 1.2; }
.hero__names .name {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 44px;
  font-weight: 700;
}
.hero__names .amp {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
}
.hero__date { font-size: 18px; margin: 20px 0 12px; }
.countdown { display: flex; gap: 8px; justify-content: center; margin: 16px 0 8px; }
.countdown__box {
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: 12px;
  min-width: 64px;
  padding: 10px 4px;
}
.countdown__num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--gold);
  line-height: 1.1;
}
.countdown__label { font-size: 12px; color: var(--muted); }
.countdown__note { font-size: 13px; color: var(--muted); margin: 4px 0 20px; }
.hero__scroll {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

/* Dải phân cách */
.divider { text-align: center; margin: 8px 0; color: var(--gold); }
.divider::before, .divider::after {
  content: "";
  display: inline-block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 8px;
}

/* Các mục chung */
.section { padding: 40px 0; }
.section--alt { background: var(--bg-alt); border-radius: 24px; padding-left: 16px; padding-right: 16px; }
.section__title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--pink-dark);
  text-align: center;
  margin: 0 0 20px;
}
.section__note { text-align: center; color: var(--muted); font-size: 14px; }
.placeholder-frame {
  border: 1px dashed var(--pink);
  border-radius: 16px;
  background: var(--white);
  padding: 24px 20px;
  text-align: center;
}
.placeholder-frame__tag { color: var(--gold); font-weight: 700; }
.placeholder-frame__note { color: var(--muted); font-size: 14px; }

/* Album */
.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.album-tile {
  aspect-ratio: 1;
  border: 4px solid var(--white);
  border-radius: 12px;
  background: #FBE3E8;
  color: var(--pink-dark);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(74, 63, 66, 0.10);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(74, 63, 66, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__content {
  background: #FBE3E8;
  color: var(--pink-dark);
  border-radius: 16px;
  width: min(90vw, 520px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  font-weight: 700;
}
.lightbox__close, .lightbox__nav {
  min-width: 44px;
  min-height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox__counter {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--white);
  margin: 0;
}

/* Lịch trình */
.schedule { display: grid; gap: 16px; margin-bottom: 20px; }
.schedule__card {
  background: var(--white);
  border: 1px solid var(--pink);
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  padding: 20px;
}
.schedule__time {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 4px;
}
.schedule__name { margin: 0 0 8px; font-size: 20px; }
.schedule__place, .schedule__note { margin: 4px 0; }
.inline-note { color: var(--muted); font-size: 14px; text-align: center; }

/* Địa điểm */
.venue-card {
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.venue-card__name { font-family: "Playfair Display", serif; font-size: 24px; margin: 0 0 8px; }
.venue-card__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0 8px; }
.map-placeholder {
  border: 1px dashed var(--pink);
  border-radius: 16px;
  background: var(--white);
  padding: 32px 20px;
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
}

/* Nút */
.btn {
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn--primary { background: var(--pink-dark); color: var(--white); border: none; }
.btn--outline { background: var(--white); color: var(--pink-dark); border: 1.5px solid var(--pink); }

/* Nút nổi Xác nhận tham dự */
.fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  z-index: 40;
  min-height: 44px;
  line-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(74, 63, 66, 0.25);
}
.fab[hidden] { display: none; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 20px 96px; }

/* Desktop ≥ 768px: vẫn một cột 720px, chỉ tăng cỡ chữ, album 3 cột */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .hero__names .name { font-size: 68px; }
  .hero__names .amp { font-size: 72px; }
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .section__title { font-size: 32px; }
}
