/* Dewandaru landing — reusable components (alert, toast, modal, lightbox, accordion, tabs, animations) */
html:not(.js) [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}
html:not(.js) img[loading="lazy"] {
    opacity: 1;
}
/* animation utilities: data-anim="fade-up|fade-down|fade-left|fade-right|zoom|blur|fade" + data-delay="0.2" */
[data-anim] {
    opacity: 0;
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.9s ease;
    transition-delay: var(--d, 0s);
}
[data-anim="fade-up"] {
    transform: translateY(30px);
}
[data-anim="fade-down"] {
    transform: translateY(-30px);
}
[data-anim="fade-left"] {
    transform: translateX(-40px);
}
[data-anim="fade-right"] {
    transform: translateX(40px);
}
[data-anim="zoom"] {
    transform: scale(0.92);
}
[data-anim="blur"] {
    filter: blur(10px);
    transform: translateY(16px);
}
[data-anim].in {
    opacity: 1;
    transform: none;
    filter: none;
}
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.8s ease;
}
img[loading="lazy"].loaded {
    opacity: 1;
}
/* scroll progress, preloader */
.dw-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 3500;
    background: linear-gradient(90deg, var(--gold), #e8d5b0);
}
.dw-pre {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: var(--navy);
    display: grid;
    place-content: center;
    text-align: center;
    color: #fff;
    transition:
        opacity 0.7s,
        visibility 0.7s;
}
.dw-pre.hide {
    opacity: 0;
    visibility: hidden;
}
.dw-pre b {
    font:
        300 1.6rem Fraunces,
        serif;
    letter-spacing: 0.35em;
    animation: dwp 1.6s ease-in-out infinite;
}
.dw-pre small {
    display: block;
    letter-spacing: 0.6em;
    font-size: 0.6rem;
    color: #e8d5b0;
    margin: 0.5rem 0 1.4rem;
}
.dw-pre i {
    display: block;
    height: 2px;
    width: 120px;
    margin: auto;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}
.dw-pre i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-100%);
    animation: dwl 1.2s ease-in-out infinite;
}
@keyframes dwp {
    50% {
        opacity: 0.5;
    }
}
@keyframes dwl {
    to {
        transform: translateX(100%);
    }
}
/* announcement bar */
.dw-announce {
    position: relative;
    z-index: 1001;
    background: var(--navy);
    color: #fff;
    font-size: 0.82rem;
    text-align: center;
    padding: 0.6rem 3rem;
    transition: opacity 0.3s;
}
.dw-announce a {
    color: #e8d5b0;
    font-weight: 700;
    margin-left: 0.6rem;
    border-bottom: 1px solid;
}
.dw-announce button {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
}
.dw-announce button:hover {
    opacity: 1;
}
.dw-announce.out,
.dw-alert.out {
    opacity: 0;
}
/* inline alerts */
.dw-alert {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1rem 1.2rem;
    border: 1px solid;
    border-radius: var(--r);
    transition: opacity 0.3s;
    font-size: 0.92rem;
}
.dw-alert > i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
}
.dw-alert div {
    flex: 1;
}
.dw-alert strong {
    display: block;
}
.dw-alert button {
    background: none;
    border: 0;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.6;
}
.dw-alert.success {
    background: #eef6f0;
    border-color: #c9e0ce;
    color: #2e5a3d;
}
.dw-alert.info {
    background: #eef3f8;
    border-color: #cddbe9;
    color: #25496b;
}
.dw-alert.warning {
    background: #fbf4e4;
    border-color: #ecd9a9;
    color: #7a5c20;
}
.dw-alert.error {
    background: #fbeeea;
    border-color: #efc7bd;
    color: #8c3a22;
}
/* toast */
#dw-toasts {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 3200;
    display: grid;
    gap: 0.6rem;
    max-width: calc(100vw - 2.4rem);
}
.dw-toast {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: var(--navy);
    color: #fff;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(14, 22, 32, 0.3);
    font-size: 0.9rem;
    max-width: 380px;
    opacity: 0;
    transform: translateY(14px);
    transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-left: 4px solid var(--gold);
}
.dw-toast.show {
    opacity: 1;
    transform: none;
}
.dw-toast.success {
    border-color: #4caf7a;
}
.dw-toast.error {
    border-color: #d9604a;
}
.dw-toast.warning {
    border-color: #e0a93b;
}
.dw-toast span {
    flex: 1;
}
.dw-toast button {
    background: none;
    border: 0;
    color: #fff;
    opacity: 0.6;
    font-size: 1.1rem;
}
@media (max-width: 575px) {
    #dw-toasts {
        left: 1rem;
        right: 1rem;
        bottom: 5.5rem;
    }
    .dw-toast {
        max-width: none;
    }
}
/* modal */
.dw-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s,
        visibility 0.35s;
}
.dw-modal.open {
    opacity: 1;
    visibility: visible;
}
.dw-modal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(14, 22, 32, 0.65);
    backdrop-filter: blur(4px);
}
.dw-dialog {
    position: relative;
    background: #fff;
    border-radius: 8px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow: auto;
    padding: 2rem;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dw-modal.open .dw-dialog {
    transform: none;
}
.dw-dialog h3 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}
.dw-dialog p {
    color: #5d564c;
}
.dw-x {
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--sand);
    color: var(--navy);
    display: grid;
    place-items: center;
    transition: 0.3s;
}
.dw-x:hover {
    background: var(--navy);
    color: #fff;
}
.dw-vid {
    aspect-ratio: 16/9;
    background: var(--sand);
    border-radius: 4px;
    display: grid;
    place-items: center;
    color: var(--earth);
    text-align: center;
    margin-top: 1rem;
}
/* lightbox */
.dw-lb {
    position: fixed;
    inset: 0;
    z-index: 2800;
    background: rgba(10, 16, 24, 0.94);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
}
.dw-lb.open {
    opacity: 1;
    visibility: visible;
}
.dw-lb figure {
    margin: 0;
    text-align: center;
    max-width: 92vw;
}
.dw-lb img {
    max-width: 92vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 1 !important;
}
.dw-lb figcaption {
    color: #fff;
    margin-top: 0.8rem;
    font-size: 0.9rem;
}
.dw-lb small {
    opacity: 0.6;
    margin-left: 0.5rem;
}
.dw-lb .dw-x {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.dw-pv,
.dw-nx {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    transition: 0.3s;
}
.dw-pv {
    left: 1rem;
}
.dw-nx {
    right: 1rem;
}
.dw-pv:hover,
.dw-nx:hover {
    background: var(--gold);
}
/* gallery */
.gal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.gal a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1;
    background: var(--sand);
}
.gal a:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}
.gal a:nth-child(n + 6) {
    grid-column: span 2;
    aspect-ratio: 2/1;
}
.gal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.8s;
}
.gal a:hover img {
    transform: scale(1.07);
}
.gal a i {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.4s;
}
.gal a:hover i,
.gal a:focus-visible i {
    opacity: 1;
    transform: none;
}
@media (max-width: 767px) {
    .gal {
        grid-template-columns: repeat(2, 1fr);
    }
    .gal a:nth-child(1) {
        grid-column: span 2;
    }
    .gal a:nth-child(n + 6) {
        grid-column: span 1;
        aspect-ratio: 1;
    }
}
/* accordion */
.dw-acc-i {
    border-bottom: 1px solid #ddd5c8;
}
.dw-acc-q {
    width: 100%;
    background: none;
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 0;
    font:
        300 1.35rem Fraunces,
        serif;
    text-align: left;
    color: var(--navy);
}
.dw-acc-q i {
    transition: transform 0.4s;
    color: var(--gold);
    flex: none;
}
.dw-acc-i.open .dw-acc-q i {
    transform: rotate(45deg);
}
.dw-acc-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dw-acc-i.open .dw-acc-a {
    grid-template-rows: 1fr;
}
.dw-acc-a > div {
    overflow: hidden;
}
.dw-acc-a p {
    margin: 0;
    padding-bottom: 1.3rem;
    color: #5d564c;
}
/* tabs */
.dw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    border-bottom: 1px solid #ddd5c8;
    margin-bottom: 1.5rem;
}
.dw-tab {
    background: none;
    border: 0;
    padding: 0.8rem 1.2rem;
    color: #5d564c;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: 0.3s;
}
.dw-tab.on {
    color: var(--navy);
    border-color: var(--gold);
}
.dw-pane {
    display: none;
}
.dw-pane.on {
    display: block;
    animation: up 0.6s both;
}
/* back to top, marquee, ripple */
.dw-top {
    position: fixed;
    right: 1.2rem;
    bottom: 5.2rem;
    z-index: 998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.35s;
}
.dw-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.dw-top:hover {
    background: var(--gold);
}
.dw-marq {
    overflow: hidden;
    white-space: nowrap;
    border-block: 1px solid #ddd5c8;
    padding: 1.1rem 0;
}
.dw-marq > div {
    display: inline-flex;
    gap: 3.5rem;
    padding-right: 3.5rem;
    animation: dwm 32s linear infinite;
    font:
        300 1.3rem Fraunces,
        serif;
    color: var(--earth);
    letter-spacing: 0.08em;
}
.dw-marq:hover > div {
    animation-play-state: paused;
}
@keyframes dwm {
    to {
        transform: translateX(-50%);
    }
}
.btn-d {
    position: relative;
    overflow: hidden;
}
.dw-rip {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: dwr 0.6s linear;
    pointer-events: none;
}
@keyframes dwr {
    to {
        transform: scale(4);
        opacity: 0;
    }
}
.sk-b {
    background: linear-gradient(90deg, #eee6d8 25%, #f6f0e5 50%, #eee6d8 75%);
    background-size: 200% 100%;
    animation: dws 1.3s infinite;
    border-radius: 4px;
}
@keyframes dws {
    to {
        background-position: -200% 0;
    }
}
@media (max-width: 575px) {
    .dw-top {
        right: 1rem;
        bottom: 4.9rem;
    }
    .dw-dialog {
        padding: 1.5rem;
    }
    .dw-pv,
    .dw-nx {
        width: 40px;
        height: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    [data-anim],
    img[loading="lazy"] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .dw-marq > div,
    .dw-pre b,
    .dw-pre i::after {
        animation: none;
    }
}
