/* =============================================================
   RIMMELA · LANDING REFRESH
   بازطراحی سکشن‌های صفحه‌ی اصلی (از «محصولات» به بعد).
   هیرو (سکشن ۱) و استوری (سکشن ۲) دست‌نخورده‌اند.
   بر پایه‌ی قوانین ui-ux-pro-max: ریتم فاصله ۴/۸pt، سلسله‌مراتب
   بصری، ارتفاع/سایه‌ی یکدست، حرکت ۱۵۰–۳۰۰ms، احترام به reduced-motion.
   پالت هماهنگ با هیرو: قرمز #FF1744 + صورتی.
   ============================================================= */

.rf {
    --rf-red: #FF1744;
    --rf-red-600: #e60f3a;
    --rf-pink: #FF5A7E;
    --rf-soft: #FFF1F4;
    --rf-ink: #0f172a;
    --rf-muted: #64748b;
    --rf-line: #eef0f4;
    --rf-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --rf-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --rf-shadow-brand: 0 16px 40px rgba(255, 23, 68, .22);
    --rf-r: 20px;
}

/* ---------- سربرگ سکشن (kicker → title → sub) ---------- */
.rf-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.rf-head.rf-head-start { text-align: start; margin-inline: 0; }
.rf-kicker {
    display: inline-flex; align-items: center; gap: .45rem;
    background: var(--rf-soft); color: var(--rf-red-600);
    font-size: .8rem; font-weight: 800; letter-spacing: .01em;
    padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.rf-kicker i { font-size: .85rem; }
.rf-title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; color: var(--rf-ink); line-height: 1.3; }
.rf-title .rf-hl {
    background: linear-gradient(120deg, var(--rf-red), var(--rf-pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rf-sub { color: var(--rf-muted); font-size: 1.05rem; margin-top: .8rem; line-height: 1.9; }

/* ---------- ارتقای کارت محصول (کلاس تولیدشده توسط JS) ---------- */
#products .product-card {
    border: 1px solid var(--rf-line);
    box-shadow: var(--rf-shadow-sm) !important;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s cubic-bezier(.4, 0, .2, 1), border-color .25s;
}
#products .product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rf-shadow) !important;
    border-color: transparent;
}

/* ---------- دسته‌بندی‌ها ---------- */
.rf-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.rf-cat {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--rf-r); padding: 1.75rem; min-height: 200px;
    color: #fff; text-decoration: none;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
    isolation: isolate;
}
.rf-cat::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, 0); transition: background .25s;
}
.rf-cat:hover { transform: translateY(-6px); box-shadow: var(--rf-shadow); }
.rf-cat:hover::after { background: rgba(255, 255, 255, .08); }
.rf-cat-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255, 255, 255, .2); backdrop-filter: blur(4px);
    display: grid; place-items: center; font-size: 1.5rem;
}
.rf-cat-body h3 { font-size: 1.4rem; font-weight: 800; margin-top: 1.25rem; }
.rf-cat-body p { opacity: .9; font-size: .9rem; margin-top: .2rem; }
.rf-cat-go {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .85rem; font-weight: 700; margin-top: 1.1rem;
    transition: gap .2s;
}
.rf-cat:hover .rf-cat-go { gap: .75rem; }

/* ---------- چرا ما (feature cards) ---------- */
.rf-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.rf-feature {
    background: #fff; border: 1px solid var(--rf-line); border-radius: var(--rf-r);
    padding: 2rem 1.5rem; text-align: center;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s, border-color .25s;
}
.rf-feature:hover { transform: translateY(-6px); box-shadow: var(--rf-shadow); border-color: transparent; }
.rf-feature-icon {
    width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 18px;
    background: linear-gradient(135deg, var(--rf-red), var(--rf-pink));
    display: grid; place-items: center; color: #fff; font-size: 1.5rem;
    box-shadow: var(--rf-shadow-brand);
}
.rf-feature h3 { font-size: 1.2rem; font-weight: 800; color: var(--rf-ink); margin-bottom: .5rem; }
.rf-feature p { color: var(--rf-muted); font-size: .92rem; line-height: 1.9; }

/* ---------- آمار ---------- */
.rf-stats-band {
    background: linear-gradient(120deg, #b0001e 0%, var(--rf-red) 45%, var(--rf-pink) 100%);
    border-radius: 28px; padding: 3rem 2rem; color: #fff;
    box-shadow: var(--rf-shadow-brand);
}
.rf-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .rf-stats { grid-template-columns: repeat(4, 1fr); } }
.rf-stat-num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1; }
.rf-stat-label { opacity: .9; margin-top: .5rem; font-size: .95rem; }
.rf-stat + .rf-stat { position: relative; }

/* ---------- نظرات ---------- */
.rf-testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.rf-testi {
    background: #fff; border: 1px solid var(--rf-line); border-radius: var(--rf-r);
    padding: 2rem; display: flex; flex-direction: column;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1), box-shadow .25s;
}
.rf-testi:hover { transform: translateY(-5px); box-shadow: var(--rf-shadow); }
.rf-testi-quote { color: var(--rf-red); font-size: 1.6rem; opacity: .25; }
.rf-testi-text { color: #374151; font-size: 1.02rem; line-height: 1.9; margin: .6rem 0 1.25rem; flex: 1; }
.rf-testi-stars { display: flex; gap: .2rem; margin-bottom: 1.25rem; color: #f59e0b; }
.rf-testi-foot { display: flex; align-items: center; gap: .9rem; }
.rf-testi-avatar {
    width: 48px; height: 48px; border-radius: 999px; flex-shrink: 0;
    display: grid; place-items: center; color: #fff; font-weight: 800;
    background: linear-gradient(135deg, var(--rf-red), var(--rf-pink));
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rf-soft);
}
.rf-testi-name { font-weight: 800; color: var(--rf-ink); }
.rf-testi-role { font-size: .82rem; color: var(--rf-muted); }

/* ---------- CTA ---------- */
.rf-cta {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, #b0001e, var(--rf-red) 55%, var(--rf-pink));
    border-radius: 32px; padding: clamp(2.5rem, 6vw, 4.5rem) 2rem; text-align: center; color: #fff;
    box-shadow: var(--rf-shadow-brand);
}
.rf-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 80% -20%, rgba(255,255,255,.18), transparent 60%);
    pointer-events: none;
}
.rf-cta h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 1rem; position: relative; }
.rf-cta p { font-size: 1.1rem; opacity: .92; max-width: 560px; margin: 0 auto 2rem; position: relative; }
.rf-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.rf-btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .95rem 2.2rem; border-radius: 14px; font-weight: 800; font-size: 1.05rem;
    text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.rf-btn-solid { background: #fff; color: var(--rf-red-600); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.rf-btn-solid:hover { transform: translateY(-2px) scale(1.02); }
.rf-btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }
.rf-btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- احترام به کاهش حرکت ---------- */
@media (prefers-reduced-motion: reduce) {
    .rf * { transition: none !important; }
    .rf-cat:hover, .rf-feature:hover, .rf-testi:hover, #products .product-card:hover, .rf-btn-solid:hover { transform: none; }
}
