/* ==========================================================
   POOJASERVICE — ROYAL DIVINE HOMEPAGE ENHANCEMENT
   Additive visual layer. Existing functionality untouched.
========================================================== */

:root {
    --royal-maroon: #781731;
    --royal-deep: #4d0b20;
    --royal-gold: #b88938;
    --royal-light-gold: #e7c77e;
    --royal-cream: #fffaf0;
    --royal-ink: #49202b;
}

/* Overall premium visual atmosphere */
.content {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(184,137,56,.055), transparent 28%),
        radial-gradient(ellipse at 92% 42%, rgba(120,23,49,.045), transparent 30%),
        #fffaf3;
}

.hero-section,
.pandit-section,
.homepage-feature-shortcuts,
.pooja-samagri-section,
.customer-experience,
.testimonials-section {
    position: relative;
    isolation: isolate;
}

/* Delicate ornamental glow */
.hero-section::before,
.pandit-section::before,
.pooja-samagri-section::before,
.customer-experience::before,
.testimonials-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 0% 50%, rgba(184,137,56,.10), transparent 19%),
        radial-gradient(circle at 100% 50%, rgba(184,137,56,.09), transparent 19%);
}

/* Hero banner — retain original carousel and images */
#heroCarousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 15px 38px rgba(77,11,32,.20);
    background: var(--royal-deep);
}

#heroCarousel .carousel-item img {
    width: 100%;
    display: block;
    transform: scale(1.001);
    transition: transform 7s ease;
}

#heroCarousel .carousel-item.active img {
    transform: scale(1.045);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 52px;
    height: 52px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0 14px;
    border: 1px solid rgba(255,220,150,.7);
    border-radius: 50%;
    background: rgba(77,11,32,.62);
    opacity: .9;
    transition: background .3s ease, box-shadow .3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--royal-maroon);
    box-shadow: 0 0 22px rgba(231,199,126,.5);
}

/* Premium hero action buttons */
.hero-section > .hero-actions-wrapper {
    margin-top: 25px;
    margin-bottom: 24px;
}

.btn-spiritual-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--royal-gold) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 20px rgba(77,11,32,.16);
    transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}

.btn-spiritual-hero::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -80%;
    width: 45%;
    height: 220%;
    transform: rotate(25deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transition: left .7s ease;
    pointer-events: none;
}

.btn-spiritual-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 27px rgba(77,11,32,.25);
    filter: saturate(1.12);
}

.btn-spiritual-hero:hover::before {
    left: 140%;
}

.hero-diya-icon {
    display: inline-block;
    animation: royalDiyaGlow 2.8s ease-in-out infinite;
}

.hero-trust-strip {
    border: 1px solid rgba(184,137,56,.42);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffdf7, #fff3dc, #fffdf7);
    box-shadow: 0 9px 25px rgba(77,11,32,.09);
}

.hero-trust-item {
    transition: transform .25s ease, color .25s ease;
}

.hero-trust-item:hover {
    transform: translateY(-3px);
    color: #a16c1d;
}

.hero-trust-item .hero-trust-icon {
    filter: drop-shadow(0 2px 3px rgba(184,137,56,.25));
}

/* Section heading ornaments */
.pandit-section .pandit-heading-design,
.pooja-samagri-section .samagri-heading-design {
    position: relative;
    padding-top: 18px;
    padding-bottom: 22px;
}

.pandit-section .pandit-heading-divider,
.pooja-samagri-section .samagri-heading-divider {
    height: 2px;
    max-width: 100px;
    background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
}

.pandit-section .pandit-heading-ornament {
    text-shadow: 0 3px 12px rgba(184,137,56,.24);
    animation: royalOmFloat 4s ease-in-out infinite;
}

.pandit-section .section-title,
.pooja-samagri-section .section-title,
.customer-experience .section-header h2,
.testimonials-section .testi-title {
    color: var(--royal-maroon);
    text-shadow: 0 2px 0 rgba(255,255,255,.8);
}

/* Pandit cards — preserve data, buttons, search and modal triggers */
.pandit-section .pandit-card-wrapper {
    animation: royalCardEnter .7s both;
}

.pandit-section .pandit-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(184,137,56,.48);
    border-radius: 19px;
    background: linear-gradient(155deg, #fffefa, #fff7e9);
    box-shadow: 0 7px 22px rgba(77,11,32,.09);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.pandit-section .pandit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, transparent, var(--royal-gold), transparent);
}

.pandit-section .pandit-card:hover {
    transform: translateY(-7px);
    border-color: var(--royal-gold);
    box-shadow: 0 17px 34px rgba(77,11,32,.17);
}

.pandit-section .pandit-img {
    transition: transform .5s ease, filter .5s ease;
}

.pandit-section .pandit-card:hover .pandit-img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.pandit-section .pandit-details h3 {
    color: var(--royal-maroon);
}

.pandit-section .view-all-btn,
.pandit-section .pandit-details .btn-secondary {
    border-radius: 999px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.pandit-section .view-all-btn:hover,
.pandit-section .pandit-details .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(77,11,32,.18);
}

/* Existing six feature shortcuts */
.homepage-feature-shortcuts .shortcut-strip {
    gap: 8px;
    padding: 13px;
    border: 1px solid rgba(184,137,56,.48);
    border-radius: 20px;
    background: linear-gradient(135deg, #fffefa, #fff5e4);
    box-shadow: 0 10px 28px rgba(77,11,32,.08);
}

.homepage-feature-shortcuts .shortcut-item {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: transform .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.homepage-feature-shortcuts .shortcut-item:hover {
    transform: translateY(-5px);
    border-color: rgba(184,137,56,.55);
    background: linear-gradient(145deg, #fff4dc, #fffdfa);
    box-shadow: 0 9px 19px rgba(77,11,32,.10);
}

.homepage-feature-shortcuts .shortcut-icon {
    color: var(--royal-gold);
    filter: drop-shadow(0 3px 4px rgba(184,137,56,.2));
    transition: transform .35s ease, color .35s ease;
}

.homepage-feature-shortcuts .shortcut-item:hover .shortcut-icon {
    color: var(--royal-maroon);
    transform: translateY(-3px) scale(1.12);
}

.homepage-feature-shortcuts .shortcut-title {
    color: var(--royal-maroon);
}

/* Samagri section and product cards */
.pooja-samagri-section {
    padding-top: 25px;
    padding-bottom: 28px;
    border-radius: 24px;
}

.pooja-samagri-section .samagri-heading-cart {
    color: var(--royal-gold);
    filter: drop-shadow(0 3px 5px rgba(184,137,56,.2));
}

.pooja-samagri-section .samagri-card,
.pooja-samagri-section .product-card,
.pooja-samagri-section .card {
    border: 1px solid rgba(184,137,56,.35);
    border-radius: 17px;
    box-shadow: 0 7px 20px rgba(77,11,32,.07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.pooja-samagri-section .samagri-card:hover,
.pooja-samagri-section .product-card:hover,
.pooja-samagri-section .card:hover {
    transform: translateY(-5px);
    border-color: var(--royal-gold);
    box-shadow: 0 14px 28px rgba(77,11,32,.13);
}

/* Customer experience cards */
.customer-experience {
    padding-top: 42px;
    padding-bottom: 42px;
}

.customer-experience .experience-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(184,137,56,.38);
    border-radius: 20px;
    background: linear-gradient(145deg, #fffefa, #fff4df);
    box-shadow: 0 8px 23px rgba(77,11,32,.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.customer-experience .experience-card::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -55px;
    bottom: -55px;
    border: 1px solid rgba(184,137,56,.22);
    border-radius: 50%;
    transition: transform .5s ease;
}

.customer-experience .experience-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 32px rgba(77,11,32,.14);
}

.customer-experience .experience-card:hover::after {
    transform: scale(2);
}

.customer-experience .icon-box {
    transition: transform .35s ease, filter .35s ease;
}

.customer-experience .experience-card:hover .icon-box {
    transform: translateY(-4px) rotate(-5deg);
    filter: drop-shadow(0 5px 8px rgba(184,137,56,.25));
}

/* Existing testimonial slider — keep its controls and autoplay */
.testimonials-section {
    background:
        radial-gradient(circle at 10% 20%, rgba(184,137,56,.10), transparent 25%),
        linear-gradient(135deg, #fffaf0, #f9f0e2, #fffaf0);
}

.testi-kicker {
    color: var(--royal-gold);
}

.testimonials-section .testi-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184,137,56,.38);
    border-radius: 19px;
    background: linear-gradient(145deg, #fff, #fff9ed);
    box-shadow: 0 7px 20px rgba(77,11,32,.07);
    transition: transform .3s ease, box-shadow .3s ease;
}

.testimonials-section .testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(77,11,32,.13);
}

.testimonials-section .testi-quote {
    color: rgba(184,137,56,.35);
}

.testimonials-section .testi-avatar {
    border: 2px solid var(--royal-light-gold);
    box-shadow: 0 3px 9px rgba(77,11,32,.14);
}

.testimonials-section .testi-arrow {
    border-color: rgba(184,137,56,.55);
    transition: transform .25s ease, background .25s ease;
}

.testimonials-section .testi-arrow:hover {
    transform: scale(1.08);
    background: var(--royal-maroon);
}

/* Gentle motion */
@keyframes royalDiyaGlow {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 2px rgba(184,137,56,.2)); }
    50% { transform: translateY(-4px); filter: drop-shadow(0 0 9px rgba(184,137,56,.65)); }
}

@keyframes royalOmFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes royalCardEnter {
    from { opacity: .65; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile refinements */
@media (max-width: 767.98px) {
    #heroCarousel {
        border-radius: 0 0 15px 15px;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 36px;
        height: 36px;
        margin: 0 5px;
    }

    .hero-section > .hero-actions-wrapper {
        gap: 9px;
        margin: 15px auto 18px;
    }

    .hero-trust-strip {
        width: calc(100% - 20px);
        max-width: none;
        gap: 9px;
        padding: 10px 8px;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .hero-trust-item {
        font-size: 10px;
        gap: 4px;
    }

    .pandit-section .pandit-card {
        border-radius: 15px;
    }

    .homepage-feature-shortcuts .shortcut-strip {
        border-radius: 15px;
        padding: 7px;
        gap: 3px;
    }

    .homepage-feature-shortcuts .shortcut-item {
        border-radius: 10px;
    }

    .pooja-samagri-section {
        padding-top: 16px;
        padding-bottom: 18px;
    }

    .customer-experience {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .testimonials-section {
        padding: 38px 0;
    }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    #heroCarousel .carousel-item img,
    .hero-diya-icon,
    .pandit-section .pandit-heading-ornament,
    .pandit-section .pandit-card-wrapper,
    .pandit-section .pandit-card,
    .homepage-feature-shortcuts .shortcut-item,
    .customer-experience .experience-card,
    .testimonials-section .testi-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
