:root {
    /* ── KIT 1: Olive Garden (mặc định) ── */
    --kit-primary: #6b7c45;
    --kit-primary-dark: #4e5c30;
    --kit-primary-light: #8a9d5a;
    --kit-primary-rgb: 107, 124, 69;
    /* RGB của --kit-primary */
    --kit-primary-dark-rgb: 78, 92, 48;
    /* RGB của --kit-primary-dark */
    --kit-bg: #f5f0e8;
    --kit-bg-dark: #e8e0d0;
    --kit-surface: #fdfaf5;
    --kit-text-dark: #2c2c2c;
    --kit-text-mid: #5a5a5a;
    --kit-accent: #c9a84c;
    --kit-envelope-bg: #fae1dd;
    --kit-photo-grad-a: #c8b890;
    --kit-photo-grad-b: #a09060;

    /* ── Alias ngữ nghĩa (KHÔNG cần chỉnh, tự kế thừa từ kit) ── */
    --olive: var(--kit-primary);
    --olive-dark: var(--kit-primary-dark);
    --olive-light: var(--kit-primary-light);
    --cream: var(--kit-bg);
    --cream-dark: var(--kit-bg-dark);
    --white: var(--kit-surface);
    --text-dark: var(--kit-text-dark);
    --text-mid: var(--kit-text-mid);
    --gold: var(--kit-accent);

    /* ── Màu nền body ── */
    --body-bg: #1a1a1a;

    /* ── Màu overlay cover section (tự động theo kit qua RGB) ── */
    --cover-overlay-a: rgba(var(--kit-primary-rgb), 0.72);
    --cover-overlay-b: rgba(var(--kit-primary-dark-rgb), 0.88);

    /* ── Màu formal/countdown section ── */
    --formal-bg-start: var(--kit-primary-dark);
    --formal-bg-end: var(--kit-primary);

    /* ── Màu on-dark (text/elements trên nền tối) ── */
    --on-dark-text: #ffffff;
    --on-dark-text-muted: rgba(255, 255, 255, 0.52);
    --on-dark-text-subtle: rgba(255, 255, 255, 0.40);
    --on-dark-line: rgba(255, 255, 255, 0.32);
    --on-dark-line-subtle: rgba(255, 255, 255, 0.22);
    --on-dark-dot: rgba(255, 255, 255, 0.40);

    /* ── Màu button confirm ── */
    --btn-confirm-bg: #ffffff;
    --btn-confirm-text: var(--kit-primary-dark);
    --btn-confirm-hover-bg: transparent;
    --btn-confirm-hover-text: #ffffff;
    --btn-confirm-border: #ffffff;

    /* ── Màu album overlay ── */
    --album-overlay: rgba(20, 24, 28, 0.55);

    /* ── Màu map shadow ── */
    --map-shadow: rgba(0, 0, 0, 0.2);

    /* ── Màu focus outline ── */
    --focus-outline: rgba(107, 124, 69, 0.65);
}

/* ─────────────────────────────────────────────────────────────
   NOTE: Khi đổi sang kit khác, chỉ cần copy đúng khối kit (bao gồm cả
   --kit-primary-rgb và --kit-primary-dark-rgb) vào :root là xong.
   Overlay cover section sẽ tự đổi màu theo kit, không cần sửa thêm gì.
   ───────────────────────────────────────────────────────────── */

body {
    background: var(--body-bg);
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ===================== ENVELOPE SCENE ===================== */
#envelope-scene {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--kit-envelope-bg);
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#envelope-scene.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===================== INVITATION CONTENT ===================== */
#invitation-content {
    display: none;
    width: 100%;
    max-width: 786px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    box-sizing: border-box;
    overflow-x: hidden;
    background-image: url('https://webservice247.com/wp-content/uploads/2026/04/bg-frame-scaled.webp');
}

#invitation-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.ws-section {
    padding: clamp(28px, 3.83vw + 11.9px, 46px) clamp(20px, 2.46vw + 9.7px, 29px);
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(30px, 3.83vw + 9.9px, 42px);
    /* tăng từ 26/36 → 30/42 */
    color: var(--olive-dark);
    text-align: center;
    margin-bottom: clamp(16px, 2vw + 6px, 24px);
    line-height: 1.2;
}

/* ===================== COVER SECTION ===================== */
.cover-section {
    background-color: var(--olive-dark);
    background-image: linear-gradient(180deg,
            var(--cover-overlay-a) 0%,
            var(--cover-overlay-b) 100%),
        var(--ws-cover-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 40px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cover-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cover-top-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    position: relative;
}

.cover-line {
    height: 0.5px;
    width: 48px;
    background: var(--on-dark-line);
}

.cover-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(44px, 7vw, 60px);
    color: var(--on-dark-text);
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
    position: relative;
}

.cover-ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(13px, 1.37vw + 7.25px, 18px);
    /* tăng từ 20px cố định → responsive */
    letter-spacing: 4px;
    opacity: 0.55;
    display: block;
    line-height: 1;
    margin: 6px 0 4px;
    font-style: normal;
    color: var(--on-dark-text);
}

.cover-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto;
    position: relative;
}

.cover-divider-line {
    display: block;
    height: 0.5px;
    width: 36px;
    background: var(--on-dark-line-subtle);
}

.cover-divider-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--on-dark-dot);
}

.cover-invite {
    position: relative;
}

.cover-invite-label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(10px, 0.82vw + 5.55px, 13px);
    /* tăng từ 10px cố định */
    letter-spacing: 4.5px;
    color: var(--on-dark-text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ws-guest-name {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(28px, 4vw, 40px);
    /* tăng nhẹ từ 26/38 → 28/40 */
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--on-dark-text);
}

.cover-invite-sub-wrap {
    margin-top: 14px;
}

.cover-invite-sub-line {
    display: block;
    height: 0.5px;
    width: 28px;
    background: var(--on-dark-line-subtle);
    margin: 0 auto 14px;
}

.cover-invite-sub {
    display: block;
    font-size: clamp(13px, 1.09vw + 7.4px, 16px);
    /* tăng từ 12.5px cố định */
    letter-spacing: 2px;
    color: var(--on-dark-text-muted);
    line-height: 1.9;
    text-transform: none;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
}

/* ===================== EVENT SECTION ===================== */
.cover-family--event {
    margin: 0 auto clamp(20px, 2.73vw + 8.55px, 30px);
    max-width: 560px;
    text-align: center;
}

.cover-family__hero {
    margin-bottom: clamp(2px, 0.55vw + 0.7px, 4px);
}

.cover-family__hero-role {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(10px, 1.09vw + 4.4px, 14px);
    /* tăng từ 9/13 → 10/14 */
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: clamp(3px, 0.55vw + 0.7px, 5px);
}

.cover-family__hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 4.37vw + 9.6px, 46px);
    /* tăng từ 28/44 → 30/46 */
    font-weight: 700;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: 0.3px;
    color: var(--olive-dark);
}

.cover-family__ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(34px, 4.37vw + 13.6px, 50px);
    /* tăng từ 32/48 → 34/50 */
    color: var(--olive);
    opacity: 0.5;
    line-height: 1;
    margin: clamp(4px, 0.82vw + 0.55px, 7px) 0;
}

.cover-family__parents-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    column-gap: clamp(14px, 1.91vw + 5.98px, 21px);
    margin-top: clamp(14px, 1.91vw + 5.98px, 21px);
    padding-top: clamp(12px, 1.64vw + 5.11px, 18px);
    border-top: 1px solid var(--olive-light);
}

.cover-family__parents-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2px, 0.27vw + 0.85px, 3px);
}

.cover-family__parents-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(9px, 0.82vw + 4.55px, 12px);
    /* tăng nhẹ từ 8/11 → 9/12 */
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: clamp(4px, 0.55vw + 1.7px, 6px);
}

.cover-family__parents-col span {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(13px, 1.37vw + 6.25px, 18px);
    /* tăng từ 12/17 → 13/18 */
    color: var(--olive-dark);
    white-space: nowrap;
    line-height: 1.6;
}

.cover-family__parents-divider {
    width: 1px;
    height: clamp(50px, 6.83vw + 21.3px, 75px);
    background: var(--olive-light);
    margin-top: clamp(20px, 2.73vw + 8.55px, 30px);
}

.event-block {
    text-align: center;
}

.event-icon {
    width: clamp(36px, 4.92vw + 15.3px, 54px);
    height: clamp(36px, 4.92vw + 15.3px, 54px);
    margin: 0 auto clamp(8px, 1.09vw + 3.4px, 12px);
    color: var(--olive);
}

.event-icon-text {
    font-size: clamp(20px, 2.73vw + 8.55px, 30px);
    line-height: 1;
    display: inline-block;
}

.event-time {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(16px, 2.05vw + 6.4px, 24px);
    /* tăng từ 15/22 → 16/24 */
    color: var(--olive-dark);
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.event-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(14px, 1.64vw + 6.11px, 20px);
    /* tăng từ 13/19 → 14/20 */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--olive-dark);
    margin-bottom: 4px;
}

.event-place {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(14px, 1.64vw + 6.11px, 20px);
    /* tăng từ 13/19 → 14/20 */
    color: var(--olive);
    margin-bottom: clamp(10px, 1.37vw + 4.25px, 15px);
}

.btn-location {
    display: inline-block;
    border: 1px solid var(--olive);
    color: var(--olive);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(10px, 1.09vw + 4.4px, 14px);
    /* tăng từ 9/13 → 10/14 */
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: clamp(7px, 0.96vw + 2.97px, 10px) clamp(18px, 2.46vw + 7.7px, 27px);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    cursor: pointer;
    background: none;
}

.btn-location:hover {
    background: var(--olive);
    color: var(--kit-surface);
}

.divider {
    width: 40px;
    height: 1px;
    background: var(--olive-light);
    margin: clamp(18px, 2.46vw + 7.7px, 27px) auto;
}

/* ===================== CALENDAR / FORMAL SECTION ===================== */
.formal-section {
    background: linear-gradient(180deg, var(--formal-bg-start) 0%, var(--formal-bg-end) 100%);
    text-align: center;
    color: var(--on-dark-text);
    position: relative;
}

.formal-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.formal-section>* {
    position: relative;
    z-index: 1;
}

.countdown-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(9px, 0.82vw + 4.55px, 13px);
    /* tăng từ 8/11 → 9/13 */
    letter-spacing: 4px;
    color: var(--on-dark-text-subtle);
    margin-bottom: clamp(8px, 1.09vw + 3.4px, 12px);
}

.countdown-timer {
    display: flex;
    gap: clamp(2px, 0.55vw + 0.7px, 4px);
    justify-content: center;
    margin-bottom: clamp(18px, 2.46vw + 7.7px, 27px);
}

.countdown-unit {
    text-align: center;
    min-width: clamp(48px, 5.46vw + 25.1px, 68px);
}

.countdown-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(28px, 3.83vw + 9.9px, 42px);
    /* tăng từ 26/40 → 28/42 */
    font-weight: 600;
    color: var(--on-dark-text);
    line-height: 1;
}

.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(24px, 3.28vw + 8.2px, 36px);
    /* tăng từ 22/34 → 24/36 */
    color: var(--on-dark-text-subtle);
    line-height: 1.1;
    align-self: flex-start;
    margin-top: clamp(3px, 0.55vw + 0.7px, 5px);
}

.countdown-unit-label {
    font-family: 'Lato', sans-serif;
    font-size: clamp(8px, 0.82vw + 3.55px, 11px);
    /* tăng từ 7/10 → 8/11 */
    letter-spacing: 2px;
    color: var(--on-dark-text-subtle);
    text-transform: uppercase;
    margin-top: clamp(3px, 0.55vw + 0.7px, 5px);
}

.btn-confirm {
    font-size: clamp(10px, 1.09vw + 4.4px, 14px);
    /* tăng từ 9/13 → 10/14 */
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--btn-confirm-text);
    background: var(--btn-confirm-bg);
    border: 2px solid transparent;
    padding: clamp(8px, 1.09vw + 3.4px, 12px) clamp(20px, 2.73vw + 8.55px, 30px);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    font-family: 'Cormorant Garamond', serif;
}

.btn-confirm:hover {
    background: var(--btn-confirm-hover-bg);
    color: var(--btn-confirm-hover-text);
    border-color: var(--btn-confirm-border);
}

.calendar-map {
    margin: clamp(14px, 1.91vw + 5.98px, 21px) auto 0;
    width: min(100%, 500px);
    aspect-ratio: 5 / 3;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--map-shadow);
    border-radius: 6px;
}

.calendar-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ===================== ALBUM SECTION ===================== */
.album-section {
    overflow: hidden;
    max-width: 100%;
}

.album-section>img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    max-width: 500px;
    margin: auto;
}

.album-grid--triple {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    align-items: stretch;
    aspect-ratio: 5 / 3;
}

.album-grid.is-single {
    grid-template-columns: 1fr;
}

.album-item {
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    width: 100%;
    display: block;
}

.album-grid--triple .album-item:first-child {
    grid-row: 1 / span 2;
    aspect-ratio: auto;
    height: 100%;
}

.album-grid--triple .album-item:nth-child(2),
.album-grid--triple .album-item:nth-child(3) {
    aspect-ratio: auto;
    height: 100%;
}

.album-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.album-item:hover img,
.album-item:focus-visible img {
    transform: scale(1.04);
}

.album-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--album-overlay);
    color: var(--on-dark-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.05vw + 9.4px, 24px);
    /* tăng từ 22px cố định → responsive */
    letter-spacing: 3px;
    text-transform: uppercase;
}

.album-item:focus-visible {
    outline: 2px solid var(--focus-outline);
    outline-offset: 2px;
}

.album-section .photo-placeholder {
    background: linear-gradient(135deg, var(--kit-photo-grad-a) 0%, var(--kit-photo-grad-b) 100%);
    min-height: 260px;
}

/* ===================== GIFT SECTION ===================== */
.gift-section {
    text-align: center;
}

.gift-section .section-title {
    color: var(--olive-dark);
}

.gift-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(14px, 1.37vw + 7.25px, 20px);
    /* tăng từ 13/18 → 14/20 */
    color: var(--olive-dark);
    line-height: 1.7;
    margin-bottom: clamp(16px, 2.19vw + 6.8px, 24px);
}

.gift-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 1.64vw + 5.11px, 18px);
    max-width: 500px;
    margin: auto;
}

.gift-qr-card {
    display: grid;
    justify-items: center;
    gap: clamp(5px, 0.68vw + 2.13px, 7px);
}

.gift-qr-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--kit-surface);
}

.gift-qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.gift-qr-bank {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(10px, 1.09vw + 4.4px, 14px);
    /* tăng từ 9/13 → 10/14 */
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--olive);
}

.gift-qr-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(11px, 1.09vw + 5.4px, 15px);
    /* tăng từ 10/14 → 11/15 */
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--olive-dark);
}

.gift-qr-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    font-weight: 500;
    font-size: clamp(13px, 1.09vw + 7.4px, 17px);
    /* tăng từ 12/16 → 13/17 */
    color: var(--olive-dark);
}

.gift-qr-empty {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(14px, 1.37vw + 7.25px, 20px);
    /* tăng từ 13/18 → 14/20 */
    color: var(--olive);
    opacity: 0.6;
}

/* ===================== FINAL SECTION ===================== */
.final-section {
    text-align: center;
}

.final-thanks {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(24px, 3.83vw + 9.9px, 32px);
    color: var(--olive-dark);
    line-height: 1.4;
    margin: 0 0 clamp(8px, 1.09vw + 3.4px, 12px);
}

.final-message {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(14px, 1.37vw + 7.25px, 20px);
    /* tăng từ 13/18 → 14/20 */
    color: var(--olive);
    opacity: 0.8;
    line-height: 1.8;
    max-width: clamp(280px, 38.25vw + 119.3px, 420px);
    margin: 0 auto;
}

/* ===================== FOOTER ===================== */
.site-footer-credit {
    text-align: center;
    padding: 0 0 clamp(20px, 2.73vw + 8.55px, 30px);
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: clamp(10px, 1.37vw + 4.25px, 16px);
}

.footer-divider__line {
    display: block;
    width: clamp(40px, 8.21vw + 5.95px, 80px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--olive, #7a7a50), transparent);
    opacity: 0.35;
}

.footer-divider__icon {
    font-size: 9px;
    color: var(--olive, #7a7a50);
    opacity: 0.4;
    line-height: 1;
}

.site-footer-credit a {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: lowercase;
    text-decoration: none;
    opacity: 0.35;
    transition: opacity 0.3s ease;
    color: var(--olive, #7a7a50);
}

.site-footer-credit a:hover {
    opacity: 0.7;
}

/* ===================== AOS ===================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}