/* ==========================================================================
   Reviews & Projects Page Styles (تجارب عملائنا ومشاريعنا)
   Mousahel for Technical Solutions - مسهل للحلول التقنية
   ========================================================================== */

:root {
    --rev-primary: #59358C;
    --rev-primary-light: #7046ae;
    --rev-primary-dark: #43266b;
    --rev-secondary: #CC581F;
    --rev-secondary-light: #e66a2d;
    --rev-secondary-dark: #a84717;
    --rev-text: #1e293b;
    --rev-muted: #64748b;
    --rev-bg: #f8fafc;
    --rev-card-bg: #ffffff;
    --rev-border: #e2e8f0;
    --rev-shadow: 0 10px 30px -5px rgba(89, 53, 140, 0.08);
    --rev-shadow-hover: 0 20px 40px -10px rgba(89, 53, 140, 0.18);
    --rev-radius: 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.reviews-hero {
    position: relative;
    padding: 160px 0 90px;
    background: linear-gradient(135deg, #0b0f19 0%, #1e1333 50%, #0f172a 100%);
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.reviews-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(89, 53, 140, 0.35) 0%, rgba(89, 53, 140, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.reviews-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(204, 88, 31, 0.25) 0%, rgba(204, 88, 31, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffb088;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.reviews-hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
}

.reviews-hero-title .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #ffc5a8 50%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cbd5e1;
    max-width: 820px;
    margin: 0 auto 35px;
}

/* ==========================================================================
   Stats Brief Section
   ========================================================================== */
.stats-brief-section {
    position: relative;
    margin-top: -50px;
    z-index: 10;
    padding-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item-card {
    background: #ffffff;
    border-radius: var(--rev-radius);
    padding: 30px 24px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stat-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rev-primary), var(--rev-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(89, 53, 140, 0.15);
    border-color: rgba(89, 53, 140, 0.3);
}

.stat-item-card:hover::before {
    opacity: 1;
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(89, 53, 140, 0.1) 0%, rgba(204, 88, 31, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rev-primary);
    margin-bottom: 16px;
}

.stat-item-card:nth-child(2) .stat-icon-wrapper {
    color: var(--rev-secondary);
}

.stat-item-card:nth-child(3) .stat-icon-wrapper {
    color: #0284c7;
}

.stat-item-card:nth-child(4) .stat-icon-wrapper {
    color: #10b981;
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--rev-text);
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rev-muted);
    margin: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-head {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-head .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(89, 53, 140, 0.08);
    color: var(--rev-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-head h2 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 16px;
}

.section-head p {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Process / What We Offer Section (ماذا نقدم للعميل؟)
   ========================================================================== */
.what-we-offer-section {
    padding: 80px 0;
    background: #ffffff;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.offer-card {
    background: #ffffff;
    border-radius: var(--rev-radius);
    padding: 32px 26px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(89, 53, 140, 0.12);
    border-color: rgba(89, 53, 140, 0.3);
}

.offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.offer-step-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(89, 53, 140, 0.25);
    font-family: inherit;
}

.offer-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(89, 53, 140, 0.1) 0%, rgba(204, 88, 31, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--rev-primary);
}

.offer-card:nth-child(even) .offer-icon-box {
    color: var(--rev-secondary);
}

.offer-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.offer-card p {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* ==========================================================================
   Filter Bar & Category Tabs
   ========================================================================== */
.reviews-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-btn {
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: #f1f5f9;
    color: var(--rev-primary);
    border-color: #cbd5e1;
}

.filter-btn.active {
    background: var(--rev-primary);
    color: #ffffff;
    border-color: var(--rev-primary);
    box-shadow: 0 4px 14px rgba(89, 53, 140, 0.3);
}

/* ==========================================================================
   Client Review Cards & Interactive Modern Showcase (19 Cards)
   ========================================================================== */
.reviews-main-section {
    padding: 80px 0;
    background: var(--rev-bg);
    position: relative;
}

/* Modern Filter & Controls Toolbar */
.showcase-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 34px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

/* Intro Statement in Toolbar */
.feedback-intro-note {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
    min-width: 280px;
}

.note-icon-pulse {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(89, 53, 140, 0.12) 0%, rgba(204, 88, 31, 0.12) 100%);
    color: var(--rev-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.note-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.note-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
}

.note-desc {
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.45;
}

.view-actions-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.view-mode-toggle {
    display: flex;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.mode-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.mode-btn.active {
    background: #ffffff;
    color: var(--rev-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.slider-arrows {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--rev-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.slider-arrow:hover {
    background: var(--rev-primary);
    color: #ffffff;
    border-color: var(--rev-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(89, 53, 140, 0.25);
}

/* Swiper Container & Pagination */
.reviews-swiper-container {
    width: 100%;
    padding: 10px 4px 44px;
    overflow: hidden;
}

.reviews-swiper-container .swiper-slide {
    height: auto;
    display: flex;
}

.reviews-pagination {
    bottom: 6px !important;
}

.swiper-pagination-bullet-active {
    background: var(--rev-primary) !important;
    width: 24px !important;
    border-radius: 10px !important;
}

/* Grid Mode fallback / toggle */
.client-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* Modern, Clean & Simplified Card */
.modern-project-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 26px 24px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.modern-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rev-primary), var(--rev-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px -8px rgba(89, 53, 140, 0.14);
    border-color: rgba(89, 53, 140, 0.25);
}

.modern-project-card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 14px;
    border-bottom: 1px solid #f8fafc;
}

.brand-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
    overflow: hidden;
}

.brand-avatar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modern-project-card:hover .brand-avatar img {
    transform: scale(1.08);
}

.brand-info {
    flex-grow: 1;
    min-width: 0;
}

.company-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-badge {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--rev-primary);
    background: rgba(89, 53, 140, 0.08);
    padding: 2px 10px;
    border-radius: 30px;
    line-height: 1.4;
}

.rating-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.stars-row {
    color: #f59e0b;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.rating-caption {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

/* Card Body */
.card-body {
    position: relative;
    margin-bottom: 18px;
    flex-grow: 1;
}

.quote-mark {
    position: absolute;
    top: -6px;
    right: 0;
    font-size: 1.6rem;
    color: rgba(89, 53, 140, 0.06);
    pointer-events: none;
}

.experience-text {
    font-size: 0.94rem;
    color: #334155;
    line-height: 1.75;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Card Footer */
.card-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.scope-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #edf2f7;
    flex-grow: 1;
}

.scope-tag i {
    color: #10b981;
    font-size: 0.82rem;
    flex-shrink: 0;
}

.project-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--rev-secondary);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(204, 88, 31, 0.08);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.project-mini-link:hover {
    background: var(--rev-secondary);
    color: #ffffff;
    transform: translateX(-3px);
}

@media (max-width: 1024px) {
    .client-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .showcase-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .view-actions-wrap {
        justify-content: space-between;
    }
    .client-cards-grid {
        grid-template-columns: 1fr;
    }
    .company-name {
        white-space: normal;
    }
}

/* ==========================================================================
   Why Choose Mousahel Section (لماذا يتعامل العملاء مع مسهل؟)
   ========================================================================== */
.why-mousahel-section {
    padding: 90px 0;
    background: #ffffff;
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.why-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 32px 26px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.why-card:hover {
    background: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(89, 53, 140, 0.1);
    border-color: rgba(89, 53, 140, 0.25);
}

.why-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(89, 53, 140, 0.12) 0%, rgba(204, 88, 31, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rev-primary);
    margin-bottom: 20px;
}

.why-card:nth-child(2) .why-icon,
.why-card:nth-child(5) .why-icon {
    color: var(--rev-secondary);
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   SEO Keywords Context Banner (Natural Semantic Content)
   ========================================================================== */
.seo-context-section {
    padding: 50px 0;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.seo-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.seo-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

.seo-pill:hover {
    border-color: var(--rev-primary);
    color: var(--rev-primary);
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */
.reviews-cta-section {
    padding: 90px 0;
    background: var(--rev-bg);
}

.cta-box-premium {
    background: linear-gradient(135deg, #0f172a 0%, #351c56 60%, #1a0f2e 100%);
    border-radius: 28px;
    padding: 60px 45px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(204, 88, 31, 0.3) 0%, rgba(204, 88, 31, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
}

.cta-box-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.cta-box-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 18px;
    line-height: 1.3;
}

.cta-box-desc {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 35px;
}

.cta-box-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-main {
    padding: 16px 38px;
    background: linear-gradient(135deg, var(--rev-secondary) 0%, var(--rev-secondary-light) 100%);
    color: #ffffff !important;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(204, 88, 31, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(204, 88, 31, 0.6);
}

.btn-cta-whatsapp {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-cta-whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    color: #25d366 !important;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-hero {
        padding: 130px 0 70px;
    }
    .reviews-hero-title {
        font-size: 2.2rem;
    }
    .reviews-hero-subtitle {
        font-size: 1.05rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .stats-brief-section {
        margin-top: -30px;
    }
    .offer-grid {
        grid-template-columns: 1fr;
    }
    .client-cards-grid {
        grid-template-columns: 1fr;
    }
    .why-grid {
        grid-template-columns: 1fr;
    }
    .client-card-top {
        flex-wrap: wrap;
    }
    .stars-and-badge {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 6px;
    }
    .cta-box-premium {
        padding: 40px 20px;
    }
    .cta-box-title {
        font-size: 1.8rem;
    }
}
