/* ============================================================
   THEME OVERRIDE — "Motion 13" Garden Romantic
   Inspired by hi.thelove.id/motion-13/
   Loads after every other stylesheet so it has final say.
   ============================================================ */

:root {
    /* palette */
    --olive: #54694a;
    --olive-deep: #3c4e34;
    --olive-darker: #202a1b;
    --cream: #fff4f3;
    --cream-warm: #f8ede8;
    --glass-white: rgba(255, 255, 255, 0.72);
    --glass-white-strong: rgba(255, 255, 255, 0.85);
    --text-dark: #141414;
    --text-muted: #4a4a4a;
    --gold-soft: #b8a47a;

    /* fonts — Great Vibes as primary script (clearer "z" than Pinyon) */
    --font-script: 'Great Vibes', 'Pinyon Script', cursive;
    --font-script-alt: 'Pinyon Script', 'Great Vibes', cursive;
    --font-caps: 'Cormorant Infant', 'Times New Roman', serif;
    --font-display: 'Inria Serif', 'Times New Roman', serif;
    --font-italic: 'Abhaya Libre', serif;
    --font-body: 'Poppins', system-ui, sans-serif;
    --sacramento: 'Great Vibes', cursive;
    --arabic: 'Noto Naskh Arabic', serif;

    --primary-font-color: var(--text-dark);
    --bg-color: var(--cream);
    --fontSize-heading-lg: 3rem;
    --fontSize-heading-base: 2.6rem;
    --fontSize-text-base: 0.95rem;

    --shadow-card: 0 12px 40px rgba(32, 42, 27, 0.18);
    --shadow-md: 0 14px 40px rgba(32, 42, 27, 0.25);
    --shadow-soft: 0 6px 20px rgba(32, 42, 27, 0.12);

    --transition-small: all .35s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Base ---------- */
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

p { line-height: 1.7; font-family: var(--font-body); font-size: 0.9rem; }

main { position: relative; z-index: 1; }

/* Page-wide subtle grain for warmth */
main::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(184,164,122,0.03) 0%, transparent 1px),
        radial-gradient(circle at 70% 60%, rgba(84,105,74,0.03) 0%, transparent 1px);
    background-size: 200px 200px, 220px 220px;
}

/* Common reveal classes (for theme-animations.js) */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes gentleRise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================================
   WELCOME SECTION — full-bleed couple photo hero
   ============================================================ */
.welcome {
    background: var(--olive-darker);
    color: #fff;
    overflow: hidden;
    position: fixed;
}

/* Background photo with gentle zoom */
.welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/couple.jpeg') center / cover no-repeat;
    z-index: 0;
    animation: slowZoom 14s ease-out forwards;
}

/* Dark gradient overlay so white text reads */
.welcome::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(32,42,27,0.55) 0%, rgba(32,42,27,0.35) 40%, rgba(32,42,27,0.75) 100%);
    z-index: 1;
}

.welcome > * { position: relative; z-index: 2; }

.welcome h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: gentleRise 1.2s 0.6s ease-out forwards;
    letter-spacing: 0.02em;
}

.welcome figure {
    margin: 0.5rem 0 1rem;
    opacity: 0;
    animation: gentleRise 1.4s 0.9s ease-out forwards;
}

/* Hide the small couple thumbnail — the bg photo IS the hero */
.welcome figure img { display: none; }

.welcome figure figcaption {
    font-family: var(--font-script);
    font-weight: 400;
    font-size: 4.5rem;
    color: #fff;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.welcome p {
    color: #fff;
    margin-top: 1.5rem;
    opacity: 0;
    animation: gentleRise 1.4s 1.3s ease-out forwards;
    font-size: 0.85rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
}
.welcome p span {
    font-family: var(--font-caps);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0.4rem 0 0;
    letter-spacing: 0.02em;
    color: #fff;
    display: block;
}

.welcome button {
    background: var(--olive);
    color: #fff;
    padding: 0.85rem 2rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    font-family: var(--font-display);
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    text-transform: uppercase;
    margin-top: 2rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    opacity: 0;
    animation: gentleRise 1.4s 1.7s ease-out forwards;
    transition: var(--transition-small);
}
.welcome button:hover {
    background: var(--olive-deep);
    transform: translateY(-2px);
    color: #fff;
}
.welcome button i { font-size: 1rem; }

/* ============================================================
   HOME (cover2) — same full-bleed photo bg style
   ============================================================ */
.home {
    background: var(--olive-darker);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/1.jpeg') center / cover no-repeat;
    z-index: 0;
}
.home::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(32,42,27,0.5) 0%, rgba(32,42,27,0.7) 100%);
    z-index: 1;
}
.home > * { position: relative; z-index: 2; }

.home h2 {
    font-family: var(--font-display);
    font-weight: 500;
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}
.home figure { margin: 1.5rem 0 0.5rem; }
.home figure img { display: none; }
.home figure figcaption {
    font-family: var(--font-script);
    font-weight: 400;
    color: #fff;
    font-size: 4.2rem;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.home h3 {
    font-family: var(--font-caps);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}
.home .home-time {
    margin-top: 1.5rem;
    gap: 0.6rem;
}
.home .home-time div {
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(6px);
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 8px;
}
.home .home-time div p {
    color: #fff;
    font-family: var(--font-caps);
    font-weight: 600;
}
.home .home-time div p span {
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.85);
}
.home a {
    background: var(--olive);
    color: #fff;
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    font-family: var(--font-display);
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.home a:hover { background: var(--olive-deep); transform: translateY(-2px); }
.home .scroll_down { color: rgba(255,255,255,0.85); }
.home .scroll_down i { color: rgba(255,255,255,0.85); }
.home svg { display: none; }

/* ============================================================
   BRIDE SECTION — translucent card on photo bg
   ============================================================ */
.bride {
    position: relative;
    background: var(--cream);
    color: var(--text-dark);
    overflow: hidden;
    padding: 4rem 1.25rem !important;
}
.bride::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/2.jpeg') center / cover no-repeat;
    opacity: 0.6;
    z-index: 0;
}
.bride::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(255,244,243,0.85) 50%, var(--cream) 100%);
    z-index: 1;
}
.bride > * { position: relative; z-index: 2; }

.bride h2 { /* arabic */
    font-family: var(--arabic);
    color: var(--olive-deep);
    font-size: 1.6rem;
}
.bride h3 {
    font-family: var(--font-script);
    color: var(--olive-deep);
    font-size: 3rem;
    font-weight: 400;
    margin-top: 0.5rem;
}
.bride > p {
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 460px;
    margin: 1rem auto 2rem;
}

.bride_couple ul {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    padding: 2rem 1.5rem !important;
    box-shadow: var(--shadow-card);
    margin: 0 auto;
    max-width: 460px;
}
.bride_couple ul li figure img {
    border: 4px solid #fff;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-small);
    width: 9rem;
    height: 9rem;
}
.bride_couple ul li:hover figure img {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
}
.bride_couple ul li figure figcaption {
    font-family: var(--font-script);
    color: var(--olive-deep);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 0.5rem;
    line-height: 1;
}
.bride_couple ul li figure .bride-title {
    display: block;
    font-family: var(--font-caps);
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    color: var(--olive-deep);
    letter-spacing: 0.04em;
    margin-top: -1rem;
    line-height: 1.1;
    opacity: 0.85;
}
.bride_couple ul li > p {
    font-family: var(--font-caps);
    color: var(--text-dark);
    font-size: 1.15rem;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.bride_couple ul li > p br + br { display: none; } /* tighten line breaks */
.bride_couple ul li span {
    font-family: var(--font-script);
    color: var(--olive);
    font-size: 3.5rem;
    font-weight: 400;
}
.bride i.bx-heart { color: var(--olive) !important; opacity: 0.35; }

/* ============================================================
   HADIST SECTION — full sage-olive background, white verse
   ============================================================ */
.hadist {
    background: var(--olive) !important;
    color: #fff;
    position: relative;
    padding: 4rem 1.5rem !important;
    text-align: center;
}
.hadist svg { display: none; }
.hadist h2 {
    font-family: var(--font-script);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.hadist p {
    font-family: var(--font-body);
    color: #fff;
    font-size: 0.92rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}
.hadist p span {
    display: block;
    margin-top: 1.2rem;
    font-family: var(--font-italic);
    font-style: italic;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
}
.hadist i.bx-heart { color: rgba(255,255,255,0.5) !important; }

/* ============================================================
   TIME SECTION — sage bg with cream cards
   ============================================================ */
.time {
    background: var(--olive) !important;
    color: #fff;
    padding: 4rem 1.25rem !important;
    position: relative;
    overflow: hidden;
}
.time::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/3.jpeg') center / cover no-repeat;
    opacity: 0.18;
    z-index: 0;
}
.time > * { position: relative; z-index: 1; }
.time h2 {
    font-family: var(--font-script-alt);
    color: #fff;
    font-size: 3rem;
    font-weight: 400;
}
.time > p {
    color: rgba(255,255,255,0.9);
    font-family: var(--font-body);
    font-size: 0.88rem;
    max-width: 520px;
    margin: 1rem auto 2rem;
}
.time > div {
    display: flex !important;
    flex-direction: column;
    gap: 1.25rem !important;
    align-items: center;
}
.time > div > div {
    background: var(--cream) !important;
    border: 1px solid rgba(184,164,122,0.25) !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-card);
    padding: 2rem 1.5rem !important;
    width: 100%;
    max-width: 360px;
    transition: var(--transition-small);
}
.time > div > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.time > div > div h3 {
    font-family: var(--font-script) !important;
    color: var(--olive-deep) !important;
    font-size: 2.6rem !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    margin-bottom: 0.8rem !important;
}
.time > div > div p,
.time > div > div span {
    font-family: var(--font-caps) !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
}
.time > div > div p {
    font-size: 1rem !important;
    margin: 0.4rem 0 !important;
    letter-spacing: 0.02em;
}
.time a {
    background: var(--cream) !important;
    color: var(--olive-deep) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    border-radius: 999px !important;
    font-family: var(--font-display) !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.78rem !important;
    padding: 0.7rem 1.5rem !important;
    margin: 1.5rem auto !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.time a:hover {
    background: #fff !important;
    transform: translateY(-2px);
}
.time > p:last-of-type {
    color: rgba(255,255,255,0.95);
    font-family: var(--font-caps);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    letter-spacing: 0.02em;
}
.time i.bx-heart { color: rgba(255,255,255,0.5) !important; }

/* ============================================================
   LOVE STORY SECTION — translucent card on garden photo
   ============================================================ */
.love-story {
    background: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem 5rem !important;
    text-align: center;
}
.love-story::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/3.jpeg') center / cover no-repeat;
    opacity: 0.5;
    z-index: 0;
}
.love-story::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(255,244,243,0.7) 50%, var(--cream) 100%);
    z-index: 1;
}
.love-story > * { position: relative; z-index: 2; }

.love-story .ls-title {
    font-family: var(--font-script);
    color: var(--olive-deep);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.love-story .ls-card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-card);
    margin: 0 auto;
    max-width: 460px;
    text-align: left;
}

.love-story .ls-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 0 1.25rem;
    box-shadow: var(--shadow-soft);
}
.love-story .ls-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.15);
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}
.love-story .ls-card:hover .ls-photo img {
    transform: scale(1.03);
}

.love-story .ls-subtitle {
    font-family: var(--font-script);
    color: var(--olive-deep);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 0.85rem;
}

.love-story .ls-body p {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0.9rem;
    text-align: justify;
}
.love-story .ls-body p:last-child { margin-bottom: 0; }

@media (min-width: 640px) {
    .love-story .ls-title { font-size: 3.4rem; }
    .love-story .ls-card { padding: 2rem 2rem; max-width: 540px; }
    .love-story .ls-body p { font-size: 0.95rem; }
}

/* ============================================================
   GALERI SECTION — translucent card on photo
   ============================================================ */
.galeri {
    background: var(--cream);
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem 5rem !important;
    margin-top: 0 !important; /* kill original -6rem that overlapped wave SVG */
}
.galeri::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/4.jpeg') center / cover no-repeat;
    opacity: 0.5;
    z-index: 0;
}
.galeri::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--cream) 0%, rgba(255,244,243,0.7) 50%, var(--cream) 100%);
    z-index: 1;
}
.galeri > * { position: relative; z-index: 2; }

.galeri .container {
    background: var(--glass-white) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow-card);
    border-radius: 18px;
    padding: 2rem 1.5rem !important;
    max-width: 460px;
    margin: 0 auto;
}
.galeri h2 {
    font-family: var(--font-script) !important;
    color: var(--olive-deep) !important;
    font-size: 2.8rem !important;
    font-weight: 400 !important;
}

/* ---- Grid layout for photos ---- */
.galeri .container figure {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    height: auto !important;
    overflow: visible !important;
    padding: 0.5rem 0 1rem;
}
.galeri .container figure .galeri-item {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.4);
    transition: var(--transition-small);
}
.galeri .container figure .galeri-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
    display: block;
}
.galeri .container figure .galeri-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.galeri .container figure .galeri-item:hover img { transform: scale(1.06); }

/* Larger grid on wider screens */
@media (min-width: 640px) {
    .galeri .container figure { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* Hide the obsolete slideshow controls (pagination dots, prev/next, "Lihat semua foto") */
.galeri .container ul,
.galeri .container > button {
    display: none !important;
}
/* Also hide the popup overlay div that was used for "see all photos" */
.galeri > div:nth-of-type(2) { display: none !important; }

.galeri i.bx-heart { color: var(--olive) !important; opacity: 0.35; }

/* ---- Lightbox (click any tile to view large) ---- */
.galeri-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(32, 42, 27, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 2rem;
}
.galeri-lightbox.open { opacity: 1; visibility: visible; }
.galeri-lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}
.galeri-lightbox .lb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: var(--transition-small);
}
.galeri-lightbox .lb-close:hover {
    background: var(--olive);
    border-color: var(--olive);
}

/* ============================================================
   WISHAS SECTION — Love Gift + RSVP, translucent cards
   ============================================================ */
.wishas {
    background: var(--olive) !important;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem !important;
    margin-top: 0 !important; /* kill original -14rem that overlapped wave SVG */
}
.wishas::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/5.jpeg') center / cover no-repeat;
    opacity: 0.18;
    z-index: 0;
}
.wishas > * { position: relative; z-index: 1; }
.wishas svg { display: none; }
.wishas h2 {
    font-family: var(--font-script) !important;
    color: var(--olive-deep) !important;
    font-size: 2.6rem !important;
    font-weight: 400 !important;
}
.wishas > div {
    background: var(--cream) !important;
    border: 1px solid rgba(184,164,122,0.25);
    border-radius: 18px;
    padding: 2rem 1.5rem !important;
    box-shadow: var(--shadow-card);
    margin: 0 auto 1.5rem;
    max-width: 460px;
}
.wishas > div p, .wishas > div label {
    font-family: var(--font-body) !important;
    color: var(--text-dark) !important;
    font-size: 0.88rem;
}
.wishas form input, .wishas form textarea, .wishas form select {
    background: #fff !important;
    border: 1px solid rgba(60,78,52,0.25) !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    color: var(--text-dark) !important;
    padding: 0.7rem !important;
    font-size: 0.88rem !important;
    transition: var(--transition-small);
}
.wishas form input:focus, .wishas form textarea:focus, .wishas form select:focus {
    border-color: var(--olive) !important;
    box-shadow: 0 0 0 3px rgba(84,105,74,0.15);
}
.wishas form button[type="submit"] {
    background: var(--olive) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-family: var(--font-display) !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    padding: 0.8rem 1.6rem !important;
    cursor: pointer;
}
.wishas form button[type="submit"]:hover {
    background: var(--olive-deep) !important;
}
.wishas .button-grup button {
    background: #fff !important;
    color: var(--olive-deep) !important;
    border: 1px solid var(--olive) !important;
    border-radius: 999px !important;
    font-family: var(--font-body) !important;
}
.wishas .button-grup button:hover {
    background: var(--olive) !important;
    color: #fff !important;
}

/* Comment list — let it grow with content, don't clip long messages */
.wishas div:nth-of-type(3) ul {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
.wishas div:nth-of-type(3) ul li div:nth-of-type(2) p {
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* ============================================================
   NAVBAR
   ============================================================ */
header nav {
    background: rgba(255, 244, 243, 0.92) !important;
    border: 1px solid rgba(184,164,122,0.3);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}
header nav a, header nav a i { color: var(--olive-deep) !important; }
header nav a:hover, header nav a.active { color: var(--olive) !important; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--olive-darker) !important;
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem 2rem !important;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/couple.jpeg') center / cover no-repeat;
    opacity: 0.18;
    z-index: 0;
}
footer > * { position: relative; z-index: 1; }
footer p, footer h2, footer h4 { color: #fff !important; }
footer p {
    font-family: var(--font-body) !important;
    font-size: 0.88rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}
footer h2 {
    font-family: var(--font-script) !important;
    font-size: 2.2rem !important;
    color: #fff !important;
    margin: 1.5rem 0 0.5rem;
    font-weight: 400;
}
footer h4 {
    font-family: var(--arabic) !important;
    font-size: 1.3rem;
    margin-top: 0.5rem;
}
footer span { color: var(--cream) !important; }
footer a, footer a i { color: var(--cream) !important; opacity: 0.9; }

/* ============================================================
   AUDIO BUTTON — bottom-right, always on top
   ============================================================ */
.audio button {
    background: var(--olive) !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(32,42,27,0.4) !important;
    width: 2.6rem !important;
    height: 2.6rem !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    z-index: 100 !important; /* keep above all section stacking contexts */
}

/* ============================================================
   LANGUAGE TOGGLE BUTTON — stacked above the audio button
   ============================================================ */
.lang-toggle {
    position: fixed;
    right: 1rem; /* same right edge as the audio button */
    bottom: 4.2rem; /* sits directly above the audio button (1rem + 2.6rem + 0.6rem gap) */
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--olive);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 6px 18px rgba(32, 42, 27, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-small);
}

/* Mobile: bottom navbar is visible, so the original CSS pushes the audio button up.
   Match it here so the language toggle stays directly ABOVE the audio button. */
@media screen and (max-width: 768px) {
    .lang-toggle {
        right: 0.8rem;   /* matches mobile audio button right edge */
        bottom: 8.2rem;  /* 5rem (audio bottom) + 2.6rem (audio height) + 0.6rem gap */
    }
}
.lang-toggle:hover {
    background: var(--olive-deep);
    transform: translateY(-2px);
}
body:not(.active) .lang-toggle {
    display: none; /* hide before "Buka Undangan" so the welcome screen stays clean */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
