/* =====================================================================
   THE WEDDING OF IQBAL & THOYBAH
   Design system: "Soft UI Evolution" — elegant · romantic · premium
   Palette: warm gold / champagne / ivory   ·   Type: Great Vibes + Cormorant Garamond + Montserrat
   NB: semua class & ID asli dipertahankan; preloader & fitur tidak diubah.
   ===================================================================== */

/* --- DESIGN TOKENS --- */
:root {
    --primary-color: #b08d57;              /* di-inject ulang oleh PHP (theme_color) */
    --gold: var(--primary-color);
    --gold-deep: #97774a;                  /* aksen lebih dalam utk teks kontras */
    --gold-soft: #cbab78;
    --gold-tint: rgba(176, 141, 87, 0.14); /* garis & isian halus */
    --gold-line: rgba(176, 141, 87, 0.30);

    --ivory: #fffdf9;
    --cream: #fcf8f1;
    --champagne: #f5ecde;
    --ink: #4a4138;                        /* teks utama hangat */
    --ink-soft: #6f665b;                   /* teks sekunder */
    --muted: #9a9189;

    --surface: rgba(255, 255, 255, 0.90);
    --surface-solid: #fffdf9;

    --shadow-sm: 0 6px 18px rgba(74, 65, 56, 0.07);
    --shadow-md: 0 16px 40px rgba(74, 65, 56, 0.10);
    --shadow-lg: 0 28px 64px rgba(74, 65, 56, 0.14);
    --shadow-gold: 0 12px 30px rgba(176, 141, 87, 0.30);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 180ms;
    --t-mid: 280ms;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.75;
    overflow-x: hidden;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* BACKGROUND GHIBLI SETTING (dipertahankan) */
    background-image: url('content/wp.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #efe6d6;            /* fallback hangat */
}
body.no-scroll { overflow: hidden; height: 100vh; }

p { letter-spacing: 0.2px; }

/* Aksesibilitas: fokus terlihat utk navigasi keyboard */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.gallery-item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Label kecil (Montserrat) — dipakai berulang */
.sub-title,
.section-title,
.card h3,
.input-group label,
.timer-item p,
.btn-open,
.btn-send,
.btn-map,
.btn-calendar,
.date,
.surah {
    font-family: 'Montserrat', sans-serif;
}

/* =====================================================================
   HERO / COVER
   ===================================================================== */
.hero {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 9999;
    background: linear-gradient(rgba(28, 22, 16, 0.55), rgba(28, 22, 16, 0.65)), url('content/cover.jpg');
    background-size: cover; background-position: center;
    display: flex; justify-content: center; align-items: center; text-align: center; color: #fff;
    transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.hero.hide { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* Bingkai dekoratif tipis di dalam hero */
.hero::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    padding: 30px 22px;
    max-width: 560px;
    animation: heroRise 1.1s var(--ease) both;
}
@keyframes heroRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.4rem, 9vw, 5.6rem);
    font-weight: 400;
    line-height: 1.05;
    color: #fff;
    margin: 8px 0 6px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sub-title {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

/* Tanggal di hero dengan garis hias di kiri-kanan */
.hero .date {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    letter-spacing: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold-soft);
    margin-top: 4px;
}
.hero .date::before,
.hero .date::after {
    content: '';
    width: 38px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.hero .date::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* --- GUEST BOX & COUNTDOWN --- */
.guest-box {
    background: rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    padding: 28px 26px;
    border-radius: var(--radius-lg);
    margin: 28px auto;
    max-width: 460px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.guest-box > p { font-size: 1rem; color: rgba(255, 255, 255, 0.85); }
#guest-name {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-soft);
    font-size: 2rem;
    font-weight: 600;
    margin: 8px 0 6px;
    letter-spacing: 0.5px;
}

.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.timer-item {
    background: rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    padding: 12px 6px; border-radius: var(--radius-sm); min-width: 66px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.timer-item span {
    display: block; font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem; font-weight: 700; color: #fff;
    font-variant-numeric: tabular-nums;
}
.timer-item p { font-size: 0.55rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-soft); margin-top: 4px; }

/* Tombol utama */
.btn-open {
    display: inline-block; padding: 15px 44px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #fff; text-decoration: none; border-radius: 50px;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    margin-top: 26px;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.btn-open:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(176, 141, 87, 0.42); }
.btn-open:active { transform: translateY(-1px) scale(0.99); }

/* =====================================================================
   SECTION TITLES + ORNAMEN
   ===================================================================== */
.section-title {
    font-size: clamp(1.4rem, 4.5vw, 1.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--gold-deep);
    margin-bottom: 42px;
    display: block; width: 100%; text-align: center;
}
.section-title::after {
    content: '';
    display: block;
    width: 88px; height: 10px;
    margin: 16px auto 0;
    background:
        radial-gradient(circle, var(--gold) 0 2.6px, transparent 3.2px) center / 9px 9px no-repeat,
        linear-gradient(90deg, transparent, var(--gold-line) 18%, var(--gold-line) 82%, transparent) center / 88px 1px no-repeat;
}

/* =====================================================================
   MEMPELAI
   ===================================================================== */
.mempelai {
    padding: 70px 22px 50px;
    text-align: center;
    background: var(--surface);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.greeting {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--gold-deep);
    line-height: 1.2;
    margin-bottom: 6px;
}
.intro {
    max-width: 600px; margin: 0 auto;
    font-size: 1.08rem; color: var(--ink-soft);
}
.mempelai-flex {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 10px; margin-top: 10px;
}
.mempelai-detail { flex: 1 1 280px; max-width: 360px; padding: 10px 16px; }
.nama-lengkap {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.8rem, 9vw, 3.8rem);
    font-weight: 400; line-height: 1.1;
    color: var(--gold-deep); margin-bottom: 8px;
}
.orang-tua { font-size: 1.02rem; color: var(--ink-soft); font-style: italic; }
.separator {
    font-family: 'Great Vibes', cursive;
    font-size: 3.4rem; color: var(--gold); margin: 6px 18px; flex: 0 0 auto;
}

/* =====================================================================
   QUOTES
   ===================================================================== */
.quotes {
    padding: 90px 22px 30px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: -24px;
    position: relative; z-index: 2;
    box-shadow: 0 -20px 40px rgba(74, 65, 56, 0.06);
}
.quotes-container { max-width: 780px; margin: 0 auto; }
.arabic {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
    line-height: 2.4;
    margin-bottom: 26px;
    color: var(--gold-deep);           /* perbaikan kontras: dulu putih → tak terbaca */
    direction: rtl;
    font-family: 'Cormorant Garamond', 'Amiri', serif;
}
.translation {
    font-size: 1.12rem; line-height: 1.85; color: var(--ink-soft);
    font-style: italic; margin-bottom: 12px; padding: 0 10px;
}
.surah {
    font-weight: 600; font-size: 0.78rem;
    color: var(--gold-deep); text-transform: uppercase; letter-spacing: 3px;
}

/* Divider dekoratif */
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 42px; }
.divider span {
    display: block; width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-line));
}
.divider span:last-child { background: linear-gradient(90deg, var(--gold-line), transparent); }
.divider .icon { font-style: normal; font-size: 1.25rem; line-height: 1; }

/* =====================================================================
   EVENT / DETAILS + CARDS
   ===================================================================== */
.details { padding: 80px 22px; text-align: center; background: var(--surface); }
.info-grid {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
    gap: 24px; margin: 42px auto; max-width: 1000px;
}
.card {
    position: relative;
    background: linear-gradient(180deg, var(--ivory), var(--cream));
    padding: 44px 32px; border-radius: var(--radius-lg); width: 330px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gold-tint);
    display: flex; flex-direction: column; justify-content: center;
    overflow: hidden;
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
/* aksen emas tipis di atas kartu */
.card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.85;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 {
    font-size: 0.9rem; color: var(--gold-deep);
    letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 16px;
}
.card p { color: var(--ink-soft); }
.card p strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--ink); margin: 10px 0; font-weight: 700; }

/* =====================================================================
   GALLERY
   ===================================================================== */
.gallery { padding: 80px 22px; text-align: center; background: var(--surface); }
.gallery-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 1100px; margin: 0 auto; }
.gallery-item {
    position: relative;
    width: 260px; height: 260px; border-radius: var(--radius); overflow: hidden; cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gold-tint);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(74, 65, 56, 0.28));
    opacity: 0; transition: opacity var(--t-mid) var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }

/* =====================================================================
   GUEST BOOK & FORM
   ===================================================================== */
.guest-book { padding: 100px 22px; background: var(--surface); text-align: center; }
.guest-book-container { max-width: 720px; margin: 0 auto; }
.rsvp-form {
    background: rgba(255, 255, 255, 0.96);
    padding: 44px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gold-tint);
    text-align: left;
}
.input-row { display: flex; gap: 22px; }
.input-group { flex: 1; margin-bottom: 22px; }
.input-group label {
    display: block; font-size: 0.72rem; font-weight: 600; color: var(--gold-deep);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 9px;
}
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 15px 16px; border: 1px solid #e7ddcb; border-radius: var(--radius-sm);
    font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--ink);
    background: var(--ivory);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.input-group input::placeholder, .input-group textarea::placeholder { color: var(--muted); }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-tint);
}
.input-group input[readonly] { background: #f1ece2; color: var(--muted); }
.input-group textarea { resize: vertical; }

.btn-send {
    width: 100%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #fff; padding: 17px; border: none; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.btn-send:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(176, 141, 87, 0.40); }
.btn-send:active { transform: translateY(-1px); }

.message-wall { margin-top: 34px; max-height: 420px; overflow-y: auto; text-align: left; padding: 6px 10px; }
.msg-card {
    background: rgba(255, 255, 255, 0.96); padding: 18px 20px; border-radius: var(--radius-sm);
    margin-bottom: 12px; border-left: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
    animation: slideIn 0.5s var(--ease);
}
.msg-card strong { color: var(--gold-deep); font-size: 1.1rem; }
.msg-card p { margin: 6px 0; color: var(--ink); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar halus utk dinding ucapan */
.message-wall::-webkit-scrollbar { width: 8px; }
.message-wall::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 8px; }

/* =====================================================================
   MAP & TOMBOL SEKUNDER
   ===================================================================== */
.map-container { margin-top: 18px; }
.map-wrapper {
    border-radius: var(--radius-lg); overflow: hidden; max-width: 820px; margin: 24px auto;
    border: 6px solid #fff; box-shadow: var(--shadow-md);
}
.map-wrapper iframe { display: block; }

.btn-map, .btn-calendar {
    display: inline-block; padding: 13px 28px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #fff; text-decoration: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.btn-map:hover, .btn-calendar:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(176, 141, 87, 0.40); }
.btn-map:active, .btn-calendar:active { transform: translateY(0); }

/* QRIS agar gambar tidak pecah */
.card img { max-width: 150px; margin: 0 auto; }

/* =====================================================================
   MUSIC CONTROL & LIGHTBOX
   ===================================================================== */
.music-control {
    position: fixed; bottom: 26px; right: 26px;
    display: none;                 /* JS → flex saat undangan dibuka */
    flex-direction: column; align-items: center; gap: 10px;
    z-index: 1000;
}

/* Tombol speaker (lingkaran emas) */
.music-btn {
    order: 2; flex: 0 0 auto;
    position: relative;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.music-btn:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(176, 141, 87, 0.45); }
.music-btn:active { transform: scale(1.02); }
.music-btn .ic { width: 26px; height: 26px; display: block; }
.music-btn .ic-muted { display: none; }
.music-btn.is-muted .ic-speaker { display: none; }
.music-btn.is-muted .ic-muted { display: block; }

/* Denyut halus saat musik berputar */
.music-control.playing .music-btn::after {
    content: ''; position: absolute; inset: -1px; border-radius: 50%;
    border: 2px solid var(--gold-soft);
    animation: musicRipple 1.9s ease-out infinite;
    pointer-events: none;
}
@keyframes musicRipple {
    0%   { transform: scale(1);   opacity: 0.55; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Panel volume (muncul ke atas saat speaker ditekan) */
.volume-popover {
    order: 1;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
    background: rgba(255, 255, 255, 0.32);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    max-height: 0; padding: 0; opacity: 0;
    overflow: hidden; pointer-events: none;
    transform: translateY(14px);
    transition: max-height var(--t-mid) var(--ease), opacity var(--t-mid) var(--ease),
                transform var(--t-mid) var(--ease), padding var(--t-mid) var(--ease);
}
.music-control.open .volume-popover {
    max-height: 230px; opacity: 1; pointer-events: auto;
    transform: translateY(0);
    padding: 18px 10px 14px;
}
.volume-popover .volume-slider { order: 1; }   /* slider di atas */
.volume-popover .vp-toggle { order: 2; }       /* play/jeda di bawah */

/* Play / Jeda di dalam panel */
.vp-toggle {
    flex: 0 0 auto; width: 34px; height: 34px; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--t-fast) var(--ease);
}
.vp-toggle:hover { transform: scale(1.1); }
.vp-toggle .ic { width: 15px; height: 15px; display: block; }
.vp-toggle .ic-play { display: none; }
.vp-toggle.is-paused .ic-pause { display: none; }
.vp-toggle.is-paused .ic-play { display: block; }

/* Slider volume (vertikal) */
.volume-slider {
    -webkit-appearance: none; appearance: none;
    writing-mode: vertical-lr; direction: rtl;   /* 0 di bawah, maks di atas */
    width: 6px; height: 120px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.65);
    outline: none; cursor: pointer; margin: 0;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--gold);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--gold); cursor: pointer;
}

.lightbox {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 16, 12, 0.92);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    display: none; justify-content: center; align-items: center; z-index: 10000;
}
.lightbox img { max-width: 90%; max-height: 85vh; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

/* =====================================================================
   LOVE STORY TIMELINE — rail kiri, rapi & terkurung utk berapa pun item
   (mengganti model zig-zag yang menyebabkan overflow di mobile)
   ===================================================================== */
.lovestory { padding: 80px 22px; background: var(--surface); text-align: center; }
.timeline {
    position: relative;
    max-width: 600px;
    margin: 42px auto 0;
    text-align: left;
}
.timeline-item {
    position: relative;
    padding: 0 4px 30px 38px;     /* ruang utk rail + titik di kiri */
    box-sizing: border-box;
    width: 100%;
}
.timeline-item:last-child { padding-bottom: 0; }
/* garis penghubung antar-titik; otomatis berhenti di item terakhir */
.timeline-item::before {
    content: '';
    position: absolute; left: 6px; top: 10px; bottom: -10px; width: 2px;
    background: var(--gold-line);
}
.timeline-item:last-child::before { display: none; }
/* titik pada rail */
.timeline-item::after {
    content: '';
    position: absolute; left: 0; top: 8px; width: 14px; height: 14px;
    background: #fff; border: 3px solid var(--gold); border-radius: 50%;
    box-shadow: 0 0 0 4px var(--gold-tint); z-index: 1;
}
.timeline-content {
    padding: 22px; background: linear-gradient(180deg, var(--ivory), var(--cream));
    border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--gold-tint);
}
.timeline-content h3 { color: var(--gold-deep); margin-bottom: 6px; font-size: 1.35rem; font-weight: 600; }
.timeline-content span.date {
    display: block; font-family: 'Montserrat', sans-serif; font-size: 0.72rem; color: var(--muted);
    margin-bottom: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
}
.timeline-content p { color: var(--ink-soft); }

/* =====================================================================
   AOS guard
   ===================================================================== */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 600px) {
    body { font-size: 17px; }
    .input-row { flex-direction: column; gap: 0; }
    .card {
        background: linear-gradient(180deg, var(--ivory), var(--cream));
        padding: 38px 26px;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--gold-tint);
        width: 100%;
    }
    .rsvp-form { padding: 30px 22px; }
    .gallery-item { width: 100%; height: 300px; }
    .separator { margin: 0; flex-basis: 100%; width: 100%; text-align: center; }
    .section-title { letter-spacing: 2.5px; }   /* cegah judul terpotong di layar kecil */
}

/* =====================================================================
   REDUCED MOTION (aksesibilitas)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
    .music-control.playing .music-btn::after { animation: none; }
}
