/* ===========================================================
   SRII BHOG — Animation Enhancements
=========================================================== */

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-14px);
    }
}
.float-anim {
    animation: float 5s ease-in-out infinite;
}

@keyframes floatSlow {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}
.float-slow {
    animation: floatSlow 7s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 164, 75, 0.4);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(212, 164, 75, 0);
    }
}
.pulse-glow {
    animation: pulseGlow 2.4s ease-out infinite;
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.spin-slow {
    animation: spinSlow 18s linear infinite;
}

/* Header shrink on scroll */
.site-header.scrolled {
    padding: 4px 0;
    box-shadow: var(--shadow-md);
}
.site-header.scrolled .header-logo img {
    height: 46px;
}

/* Reveal fallback for no-js */
.no-js [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}
.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}
.loader-ring {
    width: 54px;
    height: 54px;
    border: 4px solid rgba(90, 15, 18, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spinSlow 1s linear infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Header alignment fix */
.site-header {
    position: sticky;
    top: 0;
    background: var(--color-white, #fff);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header .container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.desktop-nav a:hover {
    color: var(--color-secondary, #d4a44b) !important;
}
/* ===========================================================
   SRII BHOG — RESPONSIVE OVERRIDES
   Ensures featured sections stay in 1 row, header & footer
   are fully responsive, and product grid displays 2-per-row
   on mobile devices.
=========================================================== */

/* --- Mobile Single Row: Featured Badges --- */
.features-badge-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: clamp(4px, 1.8vw, 20px) !important;
    align-items: stretch !important;
    width: 100% !important;
}

/* --- Mobile Single Row: Feature USPs --- */
.features-section .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    margin-left: -4px !important;
    margin-right: -4px !important;
}
.features-section .col-feature,
.features-section .col-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
}

/* --- Mobile Product Cards (2 per row) --- */
@media (max-width: 767.98px) {
    .products-section .row > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

/* --- Header Responsiveness (Prevent Laptop Collision) --- */
@media (min-width: 992px) and (max-width: 1199.98px) {
    #mainNav,
    .desktop-nav {
        margin-right: 20px !important;
        gap: 16px !important;
    }
}

/* --- Footer Mobile Layout (Compact & Balanced) --- */
@media (max-width: 575.98px) {
    .site-footer .row > .footer-col:nth-child(1) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    .site-footer .row > .footer-col:nth-child(2),
    .site-footer .row > .footer-col:nth-child(3) {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    .site-footer .row > .footer-col:nth-child(4) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
