/* ============================================================
   landing.css — Trang chủ vands.love (trang cá nhân 2 vợ chồng)
   Dùng token màu/typography từ styles.css (theme-bride: be/kem).
   Prefix class: .ld-*
   ============================================================ */

:root { --hand: "Dancing Script", "Segoe Script", cursive; } /* font viết tay cho caption/note */

/* ---- Menu sticky ---- */
.ld-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(248, 245, 238, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.ld-nav.scrolled { border-bottom-color: var(--line-soft); }
.ld-nav__mono {
  font-family: var(--serif); font-size: 19px; color: #9B1C1C;
  text-decoration: none; letter-spacing: .06em; white-space: nowrap;
}
.ld-nav__links { display: flex; gap: clamp(14px, 3vw, 30px); }
.ld-nav__links a {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(9.5px, 1.6vw, 11px);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-deep); text-decoration: none;
  transition: color .25s;
}
.ld-nav__links a:hover { color: #9B1C1C; }

/* ---- Hero: slideshow crossfade + Ken Burns zoom chậm ---- */
.ld-hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; background: #2e2a22; }
.ld-hero img.ld-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 38%;
  opacity: 0; transition: opacity 1.6s ease;
}
.ld-hero img.ld-hero__bg.show { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
/* Chấm điều hướng slideshow */
.ld-hero__dots { position: absolute; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); display: flex; gap: 8px; z-index: 3; }
.ld-hero__dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75);
  background: transparent; padding: 0; cursor: pointer; transition: background .3s;
}
.ld-hero__dots button.on { background: #fff; }
.ld-hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40, 36, 28, .58) 0%, rgba(40, 36, 28, .08) 45%, rgba(40, 36, 28, .12) 100%);
}
.ld-hero__inner {
  position: absolute; left: 0; right: 0; bottom: clamp(48px, 10vh, 110px);
  text-align: center; color: #fff; padding: 0 20px;
}
.ld-hero__names {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 8vw, 72px); line-height: 1.12; margin: 0;
}
.ld-hero__tag {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 3vw, 24px); margin: 14px 0 0; opacity: .95;
}
.ld-hero__date {
  font-family: var(--sans); font-size: clamp(11px, 2vw, 13px);
  letter-spacing: .34em; margin-top: 18px; opacity: .9;
}

/* ---- Khung section chung ---- */
.ld-sec { padding: clamp(64px, 11vw, 130px) clamp(20px, 5vw, 40px); }
.ld-sec--tint { background: var(--sage-mist); } /* be nhạt #F4E8D7 */
.ld-sec__head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 6vw, 64px); }
.ld-sec__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 5.6vw, 46px); color: #9B1C1C;
  margin: 14px 0 0; line-height: 1.15;
}
.ld-sec__sub {
  font-family: var(--serif); font-style: italic;
  color: var(--ink-soft); font-size: clamp(15px, 2.4vw, 18px); margin: 12px 0 0;
}

/* ---- Chuyện tụi mình: polaroid chồng lệch + chữ 2 cột ---- */
.ld-story { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 56px); max-width: 980px; margin: 0 auto; align-items: center; }
@media (min-width: 760px) { .ld-story { grid-template-columns: 5fr 6fr; } }

/* Cụm 2 polaroid: tấm sau chồng lệch lên tấm trước */
.ld-pols { position: relative; aspect-ratio: 1/1.06; max-width: 440px; margin: 0 auto; width: 100%; }
.ld-pol {
  position: absolute; width: 72%; background: #FCFAF5;
  padding: 4.2% 4.2% 0; box-shadow: 0 12px 34px rgba(58,61,52,.18);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.ld-pol img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.ld-pol figcaption {
  font-family: var(--hand); font-size: clamp(17px, 2.6vw, 21px);
  color: var(--ink-soft); text-align: center; padding: 10px 4px 14px;
}
.ld-pol--a { top: 0; left: 0; transform: rotate(-3.2deg); z-index: 1; }
.ld-pol--b { bottom: 0; right: 0; transform: rotate(2.6deg); z-index: 2; }
.ld-pol:hover { transform: rotate(0deg) scale(1.02); z-index: 3; }
/* Miếng "băng dính" be dán góc trên polaroid */
.ld-pol::before {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 92px; height: 26px; background: rgba(239,216,189,.85);
  box-shadow: 0 1px 4px rgba(58,61,52,.12);
}
.ld-story__text p {
  font-family: var(--sans); font-weight: 300;
  color: var(--ink); font-size: clamp(15px, 2.2vw, 16.5px);
  line-height: 1.85; margin: 0 0 1.1em;
}
.ld-story__text p strong { font-weight: 500; color: var(--sage-deep); }
.ld-story__sign {
  font-family: var(--hand);
  font-size: clamp(22px, 3.4vw, 28px); color: #9B1C1C; margin-top: 8px;
}

/* ---- Số liệu vui (đếm tăng khi cuộn tới) ---- */
.ld-stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: clamp(22px, 4vw, 34px); flex-wrap: wrap; }
.ld-stat__num {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 5vw, 44px); color: #9B1C1C; line-height: 1;
}
.ld-stat__label {
  font-family: var(--sans); font-size: clamp(10.5px, 1.8vw, 12px);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px;
}

/* ---- Kỷ niệm cưới: 3 thẻ (kiểu alb-fcard) ---- */
.ld-cards { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2.5vw, 24px); max-width: 1000px; margin: 0 auto; }
@media (min-width: 700px) { .ld-cards { grid-template-columns: repeat(3, 1fr); } }
.ld-card {
  position: relative; display: block; aspect-ratio: 3/4; overflow: hidden;
  box-shadow: var(--shadow-soft); border: 1px solid var(--line);
  text-decoration: none; color: #fff;
}
.ld-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.ld-card:hover img { transform: scale(1.06); }
.ld-card__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 42, 34, .66) 0%, rgba(40, 42, 34, .05) 52%); }
.ld-card__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 3vw, 26px); text-align: center; }
.ld-card__kicker { font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .92; margin: 0 0 8px; }
.ld-card__title { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.2vw, 28px); margin: 0; line-height: 1.2; }
.ld-card__note { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .9; margin: 8px 0 0; }

/* ---- Dải phim marquee: ảnh nghiêng xen kẽ chạy ngang vô tận ---- */
.ld-strip { margin-top: clamp(36px, 6vw, 60px); overflow: hidden; padding: 18px 0 26px; }
.ld-strip__track { display: flex; gap: clamp(14px, 2.4vw, 24px); width: max-content; animation: strip-run 48s linear infinite; }
.ld-strip:hover .ld-strip__track { animation-play-state: paused; }
@keyframes strip-run { to { transform: translateX(-50%); } }
.ld-strip__item {
  height: clamp(120px, 18vw, 180px); flex: none; background: #FCFAF5;
  padding: 6px 6px 16px; box-shadow: 0 8px 22px rgba(58,61,52,.14);
}
.ld-strip__item:nth-child(odd)  { transform: rotate(-1.6deg); }
.ld-strip__item:nth-child(even) { transform: rotate(1.4deg); }
.ld-strip__item img { height: calc(100% - 0px); width: auto; display: block; }
.ld-strip__more {
  display: block; text-align: center; margin-top: 20px;
  font-family: var(--hand); font-size: clamp(19px, 3vw, 24px);
  color: var(--sage-deep); text-decoration: none;
}
.ld-strip__more:hover { color: #9B1C1C; }
@media (prefers-reduced-motion: reduce) { .ld-strip__track { animation: none; } }

/* ---- Nhật ký: giấy note dán tường thay hộp trống ---- */
.ld-notes { display: flex; justify-content: center; gap: clamp(16px, 3.5vw, 36px); flex-wrap: wrap; max-width: 860px; margin: 0 auto; }
.ld-note {
  width: min(100%, 250px); background: #FCF6EA; padding: 26px 22px 30px;
  box-shadow: 0 10px 26px rgba(58,61,52,.14);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.ld-note:nth-child(1) { transform: rotate(-2.4deg); }
.ld-note:nth-child(2) { transform: rotate(1.8deg); background: var(--sage-mist); }
.ld-note:nth-child(3) { transform: rotate(-1.2deg); background: #FBEFDD; }
.ld-note:hover { transform: rotate(0) translateY(-4px); }
.ld-note::before { /* băng dính đầu note */
  content: ""; position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(1.6deg);
  width: 76px; height: 24px; background: rgba(201,160,107,.38);
  box-shadow: 0 1px 3px rgba(58,61,52,.1);
}
.ld-note p {
  font-family: var(--hand); font-size: clamp(17px, 2.6vw, 20px);
  color: var(--ink); line-height: 1.5; margin: 0; text-align: center;
}

/* ---- Footer ---- */
.ld-foot { background: var(--sage-mist); text-align: center; padding: clamp(48px, 8vw, 80px) 20px clamp(36px, 6vw, 56px); }
.ld-foot__mono { font-family: var(--serif); font-size: clamp(26px, 4.5vw, 36px); color: #9B1C1C; margin: 0; }
.ld-foot__est { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--sage-deep); margin: 12px 0 26px; }
.ld-foot__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; }
.ld-foot__links a {
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: none;
}
.ld-foot__links a:hover { color: #9B1C1C; }

/* ---- Nav: gạch chân mục đang xem ---- */
.ld-nav__links a { position: relative; }
.ld-nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px; background: #9B1C1C; transition: right .3s ease;
}
.ld-nav__links a.active { color: #9B1C1C; }
.ld-nav__links a.active::after { right: 0; }

/* ---- Nút lên đầu trang ---- */
.ld-top {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(252,250,245,.92); border: 1px solid var(--line);
  color: var(--sage-deep); font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow-soft);
}
.ld-top.show { opacity: 1; pointer-events: auto; transform: none; }
.ld-top:hover { color: #9B1C1C; border-color: #9B1C1C; }

/* ---- Reveal-on-scroll (JS gắn .rv rồi .on; không JS = hiện bình thường)
       Lệch nhịp: JS đặt transition-delay theo thứ tự phần tử trong nhóm ---- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
