/* =========================================================
   DIWALI THEME — Ruparel WestSky
   Remove after the festival: delete this file's <link> and
   the two blocks marked "DIWALI" in index.html.
   ========================================================= */

:root {
    --dw-marigold: #f7931e;
    --dw-saffron: #ffc93c;
    --dw-gold: #e8b64a;
    --dw-clay: #a8461a;
    --dw-leaf: #377a2b;
}

/* ---------- Marigold toran hanging under the nav ---------- */
.dw-toran {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 38px;
    pointer-events: none;
    z-index: 2;
    background-repeat: repeat-x;
    background-size: 46px 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='46' viewBox='0 0 56 46'%3E%3Cpath d='M0 3 Q28 9 56 3' stroke='%23b8860b' stroke-width='1.6' fill='none'/%3E%3Cpath d='M14 5 q5 9 0 17 q-5 -8 0 -17z' fill='%23377a2b'/%3E%3Cpath d='M14 6 v15' stroke='%23215018' stroke-width='.8'/%3E%3Cpath d='M42 5 q5 9 0 17 q-5 -8 0 -17z' fill='%23377a2b'/%3E%3Cpath d='M42 6 v15' stroke='%23215018' stroke-width='.8'/%3E%3Cpath d='M28 6 V40' stroke='%23b8860b' stroke-width='1'/%3E%3Ccircle cx='28' cy='12' r='5.6' fill='%23f7931e'/%3E%3Ccircle cx='28' cy='12' r='2.4' fill='%23c85a00'/%3E%3Ccircle cx='28' cy='22.5' r='5.6' fill='%23ffc93c'/%3E%3Ccircle cx='28' cy='22.5' r='2.4' fill='%23e08a00'/%3E%3Ccircle cx='28' cy='33' r='5.6' fill='%23f7931e'/%3E%3Ccircle cx='28' cy='33' r='2.4' fill='%23c85a00'/%3E%3Ccircle cx='28' cy='41.5' r='2' fill='%23d4322c'/%3E%3C/svg%3E");
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}

/* ---------- Akash kandil (star lanterns) on both sides ---------- */
.dw-kandil {
    position: absolute;
    top: 100%;
    width: 84px;
    pointer-events: none;
    z-index: 3;
    transform-origin: 50% 0;
    animation: dw-swing 5s ease-in-out infinite;
}

.dw-kandil svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.dw-kandil--left { left: 4%; }
.dw-kandil--right { right: 4%; animation-delay: -2.5s; }

.dw-kandil .dw-glow {
    animation: dw-glow 2.4s ease-in-out infinite;
}

@keyframes dw-swing {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
}

@keyframes dw-glow {
    0%, 100% { opacity: .55; }
    50% { opacity: .9; }
}

/* ---------- Diya row above the footer ---------- */
.dw-diyas {
    background: #111;
    text-align: center;
    padding: 34px 16px 8px;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(232, 182, 74, .35);
}

.dw-diyas__row {
    display: flex;
    justify-content: center;
    gap: clamp(14px, 4vw, 40px);
    margin-bottom: 14px;
}

.dw-diya {
    position: relative;
    width: 38px;
    height: 34px;
}

/* clay bowl */
.dw-diya::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 15px;
    background: linear-gradient(#c4622d, #7e3410);
    border-top: 2px solid var(--dw-gold);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

/* flame */
.dw-diya::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 15px;
    width: 10px;
    height: 18px;
    margin-left: -5px;
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    background: radial-gradient(circle at 50% 75%, #fff6c2 0 25%, #ffc93c 45%, #f7931e 80%);
    box-shadow: 0 0 12px 4px rgba(255, 180, 40, .45);
    transform-origin: 50% 100%;
    animation: dw-flicker 1.6s ease-in-out infinite;
}

.dw-diya:nth-child(2n)::after { animation-delay: -.5s; }
.dw-diya:nth-child(3n)::after { animation-delay: -1.1s; }

@keyframes dw-flicker {
    0%, 100% { transform: scale(1, 1) rotate(-2deg); }
    30% { transform: scale(.92, 1.08) rotate(2deg); }
    60% { transform: scale(1.04, .94) rotate(-1deg); }
}

.dw-diyas p {
    margin: 0;
    color: var(--dw-gold);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ---------- Small festive touches on existing elements ---------- */
.enquire_floating {
    border-color: var(--dw-marigold) !important;
    box-shadow: 0 0 14px rgba(247, 147, 30, .45);
}

.fixed-footer-cust {
    border-top: 3px solid var(--dw-saffron) !important;
}

#main-modal .modal-content {
    box-shadow: 0 0 0 2px var(--dw-gold), 0 0 30px rgba(247, 147, 30, .35);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .dw-toran {
        height: 30px;
        background-size: 36px 30px;
    }
    .dw-kandil { width: 54px; }
    .dw-kandil--left { display: none; } /* keep one lantern on small screens */
    .dw-kandil--right { right: 3%; }
    .dw-diya:nth-child(n+6) { display: none; }
}

/* ---------- Respect reduced-motion settings ---------- */
@media (prefers-reduced-motion: reduce) {
    .dw-kandil,
    .dw-kandil .dw-glow,
    .dw-diya::after {
        animation: none;
    }
}
