/* ===========================
   Diwali decoration — loaded only while the festive decor is switched on
   (admin → Settings → Maintenance → Diwali Decoration). Markup:
   app/Services/DiwaliDecor.php, hero fireworks: assets/js/diwali.js. Moving
   parts animate transform/opacity on HTML boxes so they stay on the compositor.
   =========================== */

.dw-decor, .dw-decor * { pointer-events: none; user-select: none; }
.dw-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header: bulb string along the top edge (footer: bottom edge) ---------- */
.dw-topbar-lights {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 10px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    overflow: hidden;
}
.dw-topbar-lights::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 1px;
    border-top: 1px solid rgba(255, 213, 74, .3);
}
.dw-bulb, .dw-tbulb {
    --c: #ffd54a;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    background: radial-gradient(circle at 40% 35%, #fff 0 15%, var(--c) 55%);
    box-shadow: 0 0 5px 1px var(--c), 0 0 12px 3px var(--c);
    animation: dw-chase 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * -.12s);
}
.dw-bulb {
    position: relative;
    flex-shrink: 0;
    width: 5px; height: 7px;
    margin-top: 1px;
}
.menu-area > .dw-topbar-lights { top: 0; bottom: auto; z-index: 2; }
.menu-area > .dw-topbar-lights::before { top: 2px; border-top-color: rgba(160, 110, 30, .35); }
@keyframes dw-chase {
    0%, 100% { opacity: .28; }
    50%      { opacity: 1; }
}

/* ---------- Header: marigold toran ---------- */
/* The menu bar turns position:fixed (.sticky-menu) on scroll; the toran rides along */
.menu-area:not(.sticky-menu) { position: relative; }
.dw-toran-wrap {
    position: absolute;
    left: 0; right: 0;
    height: 52px;
    overflow: hidden;
}
.dw-toran-wrap--nav { top: 100%; z-index: -1; }
.dw-toran {
    position: absolute;
    top: 0; left: 50%;
    width: 2640px; height: 52px;
    margin-left: -1320px;
}
.dw-garland {
    position: absolute;
    top: 0; left: 0;
    width: 2640px; height: 50px;
    overflow: visible;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}
.dw-wire { fill: none; stroke: #4a3420; stroke-width: 1; opacity: .8; }
.dw-tbulb {
    position: absolute;
    width: 6px; height: 9px;
    margin-left: -3px;
    animation-delay: calc(var(--i) * -.15s);
}
.dw-tbulb::before {
    content: '';
    position: absolute;
    left: 1px; top: -2px;
    width: 4px; height: 3px;
    background: #6b5030;
    border-radius: 1px;
}
.dw-latkan {
    position: absolute;
    top: 1px;
    width: 16px;
    margin-left: -8px;
    transform-origin: 50% 0;
    animation: dw-sway 3.2s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -.7s);
}
.dw-latkan svg { display: block; width: 16px; overflow: visible; }
@keyframes dw-sway {
    from { transform: rotate(-6deg); }
    to   { transform: rotate(6deg); }
}
@media (max-width: 767px) {
    .dw-toran-wrap { height: 40px; }
    .dw-toran { transform: scale(.75); transform-origin: 50% 0; }
}

/* Diyas in the gutters beside the header content (auto-container is 1670px) */
.dw-nav-diyas {
    position: absolute;
    top: 0; bottom: 0;
    width: calc(50% - 835px);
    display: none;
    align-items: center;
    justify-content: space-evenly;
    padding-top: 6px;
}
.dw-nav-diyas--l { left: 0; }
.dw-nav-diyas--r { right: 0; }
/* narrow gutter: just the centre diya; wide gutter: all three */
@media (min-width: 1790px) {
    .dw-nav-diyas { display: flex; }
    .dw-nav-diyas .dw-diya:not(:nth-child(2)) { display: none; }
}
@media (min-width: 2100px) {
    .dw-nav-diyas .dw-diya:not(:nth-child(2)) { display: inline-block; }
}

/* ---------- Diya (SVG, sized by --s) ---------- */
.dw-diya {
    --s: 1;
    position: relative;
    display: inline-block;
    width: calc(70px * var(--s));
    aspect-ratio: 120 / 110;
    flex-shrink: 0;
}
.dw-diya-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dw-diya-halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: dw-breathe 2.6s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
}
.dw-diya-flame {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: dw-flicker 1.5s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
}
.dw-diya-flame .dw-core { animation: dw-core .18s ease-in-out infinite alternate; }
.dw-diya-pool {
    position: absolute;
    left: 50%; bottom: -12%;
    width: 200%; height: 46%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255, 170, 60, .55) 0%, rgba(255, 120, 30, .18) 40%, transparent 70%);
    animation: dw-pool 2.6s ease-in-out infinite;
    animation-delay: var(--fd, 0s);
}
@keyframes dw-flicker {
    0%   { transform: scale(1, 1) skewX(0deg); }
    15%  { transform: scale(.95, 1.07) skewX(2deg); }
    30%  { transform: scale(1.03, .95) skewX(-1.5deg); }
    45%  { transform: scale(.97, 1.09) skewX(1deg); }
    60%  { transform: scale(1.02, .96) skewX(-2.5deg); }
    80%  { transform: scale(.98, 1.04) skewX(1.5deg); }
    100% { transform: scale(1, 1) skewX(0deg); }
}
@keyframes dw-core {
    from { opacity: .75; }
    to   { opacity: 1; }
}
@keyframes dw-breathe {
    0%, 100% { opacity: .75; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.12); }
}
@keyframes dw-pool {
    0%, 100% { opacity: .7; }
    50%      { opacity: 1; }
}

/* small diya used inline (offer tag, logo, greeting) */
.dw-diya--xs { width: 24px; vertical-align: -5px; }
.dw-diya--xs .dw-diya-pool { display: none; }

/* tucked into the empty space right of the logo image (the link is 190px, the logo 130px) */
.logo-box a .dw-logo-diya { position: absolute; left: 136px; top: 50%; margin-top: -16px; }
@media (max-width: 767px) { .dw-logo-diya { display: none; } }

/* ---------- Home hero ---------- */
.dw-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
/* text covers most of the hero on phones — keep the fireworks in the background */
@media (max-width: 767px) { .dw-fx { opacity: .65; } }
/* The hero photo is a bright daytime sky with dark text on the left, so only the
   sky top-right (where the fireworks burst) is dimmed to evening */
.dw-dusk {
    position: absolute;
    inset: 0;
    background: linear-gradient(205deg, rgba(14, 6, 34, .6) 0%, rgba(14, 6, 34, .28) 30%, rgba(14, 6, 34, 0) 55%);
}

.dw-greeting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 6px 16px 6px 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(110, 14, 0, .72), rgba(50, 8, 0, .45));
    box-shadow: inset 0 0 0 1px rgba(255, 210, 110, .5), 0 0 22px rgba(255, 150, 40, .25);
}
.dw-greeting-hi { font-size: 18px; font-weight: 700; line-height: 1.2; }
.dw-greeting-sep { width: 4px; height: 4px; border-radius: 50%; background: #ffcf6b; opacity: .7; }
.dw-greeting-en {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 226, 160, .88);
}
.dw-gold-text {
    background: linear-gradient(100deg, #f7c95a 0%, #fff4c7 20%, #e9a52c 40%, #ffe28a 60%, #c98b1c 80%, #f7c95a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: dw-foil 4s linear infinite;
}
@keyframes dw-foil { to { background-position: 200% center; } }

/* Kandil lanterns hanging from the toran */
.dw-lantern {
    position: absolute;
    top: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: 50% 0;
    animation: dw-swing 4.5s ease-in-out infinite alternate;
}
.dw-lantern::before {
    content: '';
    width: 1.5px;
    height: var(--len);
    background: linear-gradient(#c9a24a, #8a6a2a);
}
.dw-lantern svg { position: relative; display: block; width: 54px; aspect-ratio: 60 / 112; overflow: visible; }
.dw-lantern-glow {
    position: absolute;
    left: 50%;
    top: calc(var(--len) + 44px);
    width: 170px; height: 170px;
    margin: -85px 0 0 -85px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 160, 50, .5), rgba(255, 100, 20, .14) 40%, transparent 70%);
    animation: dw-pool 3s ease-in-out infinite;
}
.dw-lantern--l { left: 3%; --len: 40px; }
.dw-lantern--r { right: 5%; --len: 70px; animation-delay: -2.2s; }
@keyframes dw-swing {
    from { transform: rotate(-4deg); }
    to   { transform: rotate(4deg); }
}
@media (max-width: 1399px) { .dw-lantern--l { display: none; } }
@media (max-width: 767px) {
    .dw-lantern--r { right: 12px; --len: 22px; }
    .dw-lantern svg { width: 32px; }
    .dw-lantern-glow { width: 100px; height: 100px; margin: -50px 0 0 -50px; top: calc(var(--len) + 26px); }
}

/* Diyas on a rangoli, bottom-right of the hero */
.dw-hero-floor {
    position: absolute;
    right: 2%;
    bottom: 10px;
    z-index: 5;
    width: 400px;
    height: 170px;
}
.dw-floor-glow {
    position: absolute;
    left: 50%; bottom: -16px;
    width: 460px; height: 160px;
    margin-left: -230px;
    background: radial-gradient(ellipse at center, rgba(255, 160, 60, .42), rgba(255, 110, 30, .14) 45%, transparent 70%);
    animation: dw-pool 3s ease-in-out infinite;
}
.dw-rangoli {
    position: absolute;
    left: 50%; bottom: 0;
    width: 360px; height: 360px;
    margin-left: -180px;
    transform: scaleY(.3);
    transform-origin: 50% 100%;
}
.dw-rangoli svg {
    display: block;
    width: 100%; height: 100%;
    opacity: .95;
    animation: dw-spin 90s linear infinite;
}
@keyframes dw-spin { to { transform: rotate(360deg); } }
.dw-hero-floor .dw-diya { position: absolute; transform: translateX(-50%); }
@media (max-width: 1023px) {
    .dw-hero-floor { transform: scale(.75); transform-origin: 100% 100%; }
}
@media (max-width: 767px) {
    .dw-hero-floor { right: 4px; bottom: 6px; transform: scale(.52); }
}

/* ---------- Homepage sections ---------- */
.dw-divider {
    position: absolute;
    top: 20px; left: 50%;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}
.dw-divider-line {
    position: relative;
    width: 150px; height: 2px;
    background: linear-gradient(90deg, transparent, #e0a53a 70%, #c98417);
}
.dw-divider-line--r { transform: scaleX(-1); }
/* small diamond + dot near the diya end of each line */
.dw-divider-line::before, .dw-divider-line::after {
    content: '';
    position: absolute;
    top: 50%;
    background: #e0a53a;
}
.dw-divider-line::before { right: 14px; width: 8px; height: 8px; margin-top: -4px; transform: rotate(45deg); }
.dw-divider-line::after  { right: 34px; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; }
.dw-divider-diya { --s: .55; }
@media (max-width: 767px) {
    .dw-divider { top: 4px; gap: 6px; }
    .dw-divider-line { width: 70px; }
    .dw-divider-diya { --s: .45; }
}

.dw-corner-clip { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.dw-corner {
    position: absolute;
    width: 320px; height: 320px;
    opacity: .2;
}
.dw-corner svg { display: block; width: 100%; height: 100%; animation: dw-spin 120s linear infinite; }
.dw-corner--tl { top: -160px; left: -160px; }
.dw-corner--tr { top: -160px; right: -160px; }
.dw-corner--bl { bottom: -160px; left: -160px; }
.dw-corner--br { bottom: -160px; right: -160px; }
@media (max-width: 767px) {
    .dw-corner { width: 180px; height: 180px; opacity: .16; }
    .dw-corner--tl, .dw-corner--tr { top: -90px; }
    .dw-corner--bl, .dw-corner--br { bottom: -90px; }
    .dw-corner--tl, .dw-corner--bl { left: -90px; }
    .dw-corner--tr, .dw-corner--br { right: -90px; }
}

/* Services: lanterns hanging from the section top, wide screens only */
.dw-lantern--sl { left: 2.5%; --len: 30px; }
.dw-lantern--sr { right: 2.5%; --len: 56px; animation-delay: -1.4s; }
@media (max-width: 1279px) { .dw-lantern--sl, .dw-lantern--sr { display: none; } }

/* ---------- Footer ---------- */
/* room for the row of diyas above the logo */
.footer-one.dw-footer .footer-main { padding-top: 64px; }
.dw-diya-line {
    position: absolute;
    top: 10px; left: 0; right: 0;
    z-index: 5;
    display: flex;
    justify-content: space-around;
    padding: 0 2%;
}
.dw-diya-line .dw-diya { --s: .5; }
@media (max-width: 767px) {
    .dw-diya-line { top: 8px; }
    .dw-diya-line .dw-diya { --s: .42; }
    .dw-diya-line .dw-diya:nth-child(even) { display: none; }
}

.dw-band {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-bottom: 32px;
    padding: 30px 24px;
    border-radius: 18px;
    background: radial-gradient(ellipse at center, #5c0f06 0%, #2c0804 55%, #170403 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 200, 100, .28), inset 0 0 40px rgba(255, 140, 30, .12), 0 10px 30px rgba(0, 0, 0, .35);
    text-align: center;
}
.dw-band .dw-fx { z-index: 0; }
.dw-band-text { position: relative; z-index: 1; max-width: 640px; }
.dw-band-hi { font-size: 38px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.dw-band-en { font-size: 15px; line-height: 1.6; color: rgba(255, 233, 196, .88); }
.dw-band-diya { --s: .95; position: relative; z-index: 1; }
@media (max-width: 767px) {
    .dw-band { gap: 10px; padding: 22px 12px; }
    .dw-band-hi { font-size: 26px; }
    .dw-band-en { font-size: 13px; }
    .dw-band-diya { --s: .55; }
}

/* ---------- Package combo-offer popup ---------- */
.dw-toran-wrap--modal { top: 0; z-index: 30; }
#packageOfferModal .po-content.dw-modal {
    box-shadow: 0 0 0 2px rgba(233, 182, 90, .7), 0 0 60px rgba(255, 150, 40, .4), 0 30px 70px rgba(0, 0, 0, .3);
}
.dw-modal .po-close { z-index: 40; }
/* room for the toran on top and the diya row at the bottom (beats the popup's own .po-left padding) */
.po-left.dw-modal-left { position: relative; padding-bottom: 80px; }
@media (max-width: 991px) { .po-left.dw-modal-left { padding-top: 60px; } }
.dw-modal-left .dw-diya-line { top: auto; bottom: 16px; padding: 0 12%; }
.dw-modal-left .dw-diya-line .dw-diya { --s: .55; }
.dw-modal .po-tag .dw-diya { flex-shrink: 0; }
/* lanterns hang over the sky in the photo */
.dw-lantern--ml { left: 30%; --len: 36px; z-index: 1; }
.dw-lantern--mr { left: 66%; --len: 70px; z-index: 1; animation-delay: -1.8s; }
@media (max-width: 991px) {
    .dw-lantern--ml { left: 12%; --len: 24px; }
    .dw-lantern--mr { left: 78%; --len: 40px; }
}

/* ---------- Respect reduced-motion: keep everything lit, stop the movement ---------- */
@media (prefers-reduced-motion: reduce) {
    .dw-bulb, .dw-tbulb, .dw-latkan, .dw-diya-halo, .dw-diya-flame, .dw-diya-flame .dw-core,
    .dw-diya-pool, .dw-gold-text, .dw-lantern, .dw-lantern-glow, .dw-floor-glow, .dw-rangoli svg, .dw-corner svg { animation: none; }
    .dw-bulb, .dw-tbulb { opacity: .9; }
}
