@import url("common.css");
@import url("animation.css");

/* Font Arab lokal (Amiri, lisensi OFL): teks ayat Al-Qur'an dirender font
   Arab, bukan font Latin/sistem. Berkas di /fonts/, bukan CDN. */
@font-face{font-family:'Amiri';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/amiri-regular.woff2) format('woff2')}
@font-face{font-family:'Amiri';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/amiri-bold.woff2) format('woff2')}

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Sacramento', cursive !important;
}

.font-arabic {
    font-family: 'Noto Naskh Arabic', serif !important;
}

.img-center-crop {
    width: 13rem;
    height: 13rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(255, 255, 255);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent);
}

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
}

svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}

/* ---- Safara polish (2026-11-14) ---- */
/* Foto mempelai: jangan potong bagian atas kepala/peci/hijab di bingkai bundar. */
img[alt="cowo"],
img[alt="cewe"] {
    object-position: center 15% !important;
}

/* Animasi scroll (AOS): fade-in lebih cepat supaya kartu tidak lama terlihat pucat. */
[data-aos] {
    transition-duration: 0.6s !important;
}

/* Dress code: beri ruang di bawah lingkaran warna supaya tidak menempel teks. */
.d-flex.justify-content-center.align-items-center.mb-3 {
    margin-bottom: 1rem !important;
}

/* ---- Safara polish 2 (2026-11-14): nav bawah ---- */
/* Menu aktif di nav bawah sebelumnya tidak ada bedanya dengan menu lain
   (tidak ada styling .active), jadi saat klik Mempelai tidak muncul
   tanda apa pun. Sekarang item aktif tampil penuh (putih di mode gelap,
   hitam di mode terang), tebal, dan beralas pil supaya jelas. */
#navbar-menu .nav-link.active {
    font-weight: 700;
}
html[data-bs-theme="dark"] #navbar-menu .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-radius: .75rem;
}
html[data-bs-theme="light"] #navbar-menu .nav-link.active {
    color: #000;
    background: rgba(0, 0, 0, .08);
    border-radius: .75rem;
}

/* ---- Safara polish 3 (2026-11-14): upgrade tampilan ---- */
/* Judul section (tengah): garis emas kecil di bawah judul supaya lebih elegan. */
h2.font-esthetic.text-center::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: #C99969;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Countdown: angka lebih besar dan tebal, label kecil berhuruf kapital. */
#day, #hour, #minute, #second {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    line-height: 1.1;
}
#day + small, #hour + small, #minute + small, #second + small {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .7;
}

/* Tombol: transisi halus, naik sedikit saat hover. */
.btn {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
#rsvp-form button[type="submit"]:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .3) !important;
}

/* Kartu: garis halus supaya tepi lebih tegas. */
.bg-theme-auto.rounded-4.shadow,
.bg-theme-auto.rounded-5.shadow {
    border: 1px solid rgba(0, 0, 0, .06);
}

/* Form RSVP: fokus emas yang lembut dan jelas. */
#rsvp-form .form-control:focus,
#rsvp-form .form-select:focus {
    border-color: #C99969;
    box-shadow: 0 0 0 .25rem rgba(201, 153, 105, .22);
}

/* Galeri carousel: bayangan lembut. */
.carousel-inner {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

/* Nav bawah: bayangan atas supaya terasa mengambang. */
#navbar-menu {
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .1);
}