/* =============================================
   Munna Rose Water — Global Stylesheet
   ============================================= */

/* ── Fonts & Base ── */
*, *::before, *::after { box-sizing: border-box; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #fda4af; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #f43f5e; }

/* ── Preloader ── */
#preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: #fff1f2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 700;
    color: #be123c; letter-spacing: 0.1em;
    margin-bottom: 28px;
}
.preloader-bar {
    width: 180px; height: 3px;
    background: #fecdd3; border-radius: 99px; overflow: hidden;
}
.preloader-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #f43f5e, #be123c);
    border-radius: 99px;
    animation: preload 1.6s ease forwards;
}
@keyframes preload { to { width: 100%; } }
.preloader-petals {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.petal {
    position: absolute; width: 12px; height: 12px;
    background: radial-gradient(circle, #fda4af 40%, transparent 70%);
    border-radius: 50% 0 50% 0;
    opacity: 0.5;
    animation: petalFall linear infinite;
}
@keyframes petalFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 0.6; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* ── Hero Pattern ── */
.hero-pattern {
    background-color: #fff1f2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fda4af' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero {
    background-color: #fff1f2;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fda4af' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Animated Blobs ── */
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(60px); pointer-events: none;
    animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 { width: 420px; height: 420px; background: rgba(253,164,175,0.35); top: -80px; right: -80px; animation-delay: 0s; }
.blob-2 { width: 320px; height: 320px; background: rgba(244,63,94,0.18); bottom: -60px; left: -60px; animation-delay: -3s; }
.blob-3 { width: 260px; height: 260px; background: rgba(253,164,175,0.22); top: 40%; left: 30%; animation-delay: -5s; }
@keyframes blobFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Floating Particles (canvas) ── */
#hero-canvas {
    position: absolute; inset: 0; pointer-events: none; z-index: 1;
}

/* ── Hero image ring ── */
.hero-ring {
    position: relative; display: inline-block;
}
.hero-ring::before {
    content: '';
    position: absolute; inset: -12px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 2px dashed #fda4af;
    animation: ringRotate 18s linear infinite;
}
.hero-ring::after {
    content: '';
    position: absolute; inset: -28px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 1px solid rgba(253,164,175,0.4);
    animation: ringRotate 28s linear infinite reverse;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* ── Floating badge pulse ── */
.badge-float {
    animation: badgeFloat 3s ease-in-out infinite;
}
.badge-float-2 {
    animation: badgeFloat 3.5s ease-in-out infinite reverse;
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ── Counter number ── */
.counter-num { font-variant-numeric: tabular-nums; }

/* ── Marquee ticker ── */
.marquee-track {
    display: flex; gap: 3rem; align-items: center;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Product card ── */
.product-card {
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.2), box-shadow 0.35s ease;
}
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px -10px rgba(225,29,72,0.18);
}
.product-card .card-icon {
    transition: transform 0.5s cubic-bezier(.22,.68,0,1.4);
}
.product-card:hover .card-icon { transform: scale(1.18) rotate(-6deg); }

/* ── Why-choose card ── */
.why-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -8px rgba(225,29,72,0.14);
    border-color: #fda4af;
}
.why-card .why-icon {
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.why-card:hover .why-icon {
    background: #e11d48; color: #fff; transform: scale(1.1) rotate(-5deg);
}

/* ── Timeline ── */
.timeline-item { position: relative; }
.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute; left: 31px; top: 64px;
    width: 2px; height: calc(100% - 32px);
    background: linear-gradient(to bottom, #fda4af, transparent);
}
@media (min-width: 768px) {
    .timeline-item:not(:last-child)::after { display: none; }
    .timeline-connector {
        position: absolute; top: 32px; left: calc(50% + 32px);
        width: calc(50% - 32px); height: 2px;
        background: linear-gradient(to right, #fda4af, transparent);
    }
}

/* ── Slider ── */
.slider-track {
    display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.slider-btn {
    transition: background 0.2s, transform 0.2s;
}
.slider-btn:hover { background: #e11d48; transform: scale(1.1); }
.slider-dot { transition: background 0.2s, transform 0.2s; }
.slider-dot.active { background: #e11d48; transform: scale(1.3); }

/* ── Video placeholder ── */
.video-play-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 0 0 16px rgba(244,63,94,0.15);
}

/* ── Certification card ── */
.cert-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cert-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.12);
}

/* ── Social grid ── */
.social-item {
    transition: transform 0.3s ease;
    overflow: hidden;
}
.social-item:hover { transform: scale(1.04); }
.social-item img { transition: transform 0.5s ease; }
.social-item:hover img { transform: scale(1.1); }
.social-item .social-overlay {
    opacity: 0; transition: opacity 0.3s ease;
}
.social-item:hover .social-overlay { opacity: 1; }

/* ── CTA gradient ── */
.cta-gradient {
    background: linear-gradient(135deg, #be123c 0%, #e11d48 50%, #9f1239 100%);
}

/* ── FAQ ── */
.faq-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}
.faq-item {
    transition: box-shadow 0.3s ease;
}
.faq-item.open {
    box-shadow: 0 8px 30px -4px rgba(225,29,72,0.12);
}

/* ── Scroll animations ── */
.fade-in {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-left {
    opacity: 0; transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
    opacity: 0; transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
    opacity: 0; transform: scale(0.88);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.22,.68,0,1.2);
}
.scale-in.visible { opacity: 1; transform: scale(1); }

/* stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ── Lightbox ── */
#lightbox-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.88); z-index: 9999;
    align-items: center; justify-content: center;
}
#lightbox-overlay.active { display: flex; }
#lightbox-img {
    max-width: 90vw; max-height: 85vh;
    border-radius: 12px; box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}
#lightbox-caption {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6); color: #fff;
    padding: 8px 20px; border-radius: 30px;
    font-size: 0.9rem; white-space: nowrap;
}
#lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #fff; font-size: 2rem; cursor: pointer;
    line-height: 1; transition: color 0.2s;
}
#lightbox-close:hover { color: #fda4af; }

/* ── Misc ── */
nav a.active-nav { color: #e11d48; font-weight: 600; }
.process-step:not(:last-child)::after {
    content: ''; display: block;
    width: 2px; height: 32px;
    background: #fda4af; margin: 8px auto 0;
}
@media (min-width: 768px) {
    .process-step:not(:last-child)::after { display: none; }
}

/* ── Button shine effect ── */
.btn-shine {
    position: relative; overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}
.btn-shine:hover::after { left: 150%; }

/* ── Section divider wave ── */
.wave-divider svg { display: block; }

/* ── Bulk supply card ── */
.bulk-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bulk-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -8px rgba(225,29,72,0.16);
}
