/**
 * START - Stats Section Component Styles - By INFXO
 */

.am-stats-section,
.am-stats-section * {
    box-sizing: border-box;
}

/* 1. Identity Canvas with Seamless Flow from Services Section */
.am-stats-section {
    position: relative;
    width: 100%;
    padding: 95px 0 130px;
    background-color: #ffffff !important;
    /* Picks up gently from the tail of Services section */
    background-image: linear-gradient(180deg, #f7eaf1 0%, #fdf5f9 25%, #ffffff 75%, #ffffff 100%) !important;
    font-family: 'Cairo', sans-serif !important;
    overflow: hidden;
    direction: inherit;
}

/* Strictly Enforce Cairo Identity Across All Section Elements */
.am-stats-section h1,
.am-stats-section h2,
.am-stats-section h3,
.am-stats-section h4,
.am-stats-section h5,
.am-stats-section h6,
.am-stats-section p,
.am-stats-section a,
.am-stats-section span,
.am-stats-section .am-section-title,
.am-stats-section .am-badge-text,
.am-stats-section .am-head-desc,
.am-stats-section .am-pod-num,
.am-stats-section .am-pod-lbl,
.am-stats-section .am-pod-sub {
    font-family: 'Cairo', sans-serif !important;
}

body.rtl .am-stats-section,
[dir="rtl"] .am-stats-section {
    direction: rtl;
    text-align: right;
}

body:not(.rtl) .am-stats-section,
[dir="ltr"] .am-stats-section {
    direction: ltr;
    text-align: left;
}

.am-stats-section .am-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 2;
}

/* 2. Executive Split Header (Right Title - Left Description) */
.am-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
    z-index: 3;
}

.am-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
}

.am-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 16px;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid rgba(113, 18, 64, 0.14);
    box-shadow: 0 2px 8px rgba(113, 18, 64, 0.04);
    margin-bottom: 14px;
    line-height: 1;
}

.am-badge-tag svg {
    width: 14px;
    height: 14px;
    color: #711240;
    flex-shrink: 0;
    display: block;
}

.am-badge-text {
    font-size: 13px;
    font-weight: 800;
    color: #711240;
    line-height: 1;
}

.am-section-title {
    font-size: clamp(2rem, 2.7vw, 2.9rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    letter-spacing: -0.3px;
    margin: 0;
}

.am-head-desc {
    max-width: 540px;
    font-size: 14.5px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 6px;
}

.am-head-desc p {
    margin: 0;
}

/* 3. Luxury Metric Pods Grid (3 Columns) */
.am-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 3;
    align-items: stretch;
}

.am-pod-card {
    background: #ffffff;
    border: 1.5px solid rgba(113, 18, 64, 0.12);
    border-radius: 22px;
    padding: 28px 26px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.am-pod-card:hover {
    transform: translateY(-6px);
    border-color: #711240;
    box-shadow: 0 20px 45px -12px rgba(113, 18, 64, 0.12);
    background-color: #fdfbfe;
}

/* Dedicated Icon Box */
.am-pod-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #fdf2f7;
    border: 1px solid rgba(113, 18, 64, 0.1);
    color: #711240;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.am-pod-card:hover .am-pod-icon {
    transform: scale(1.08) rotate(-4deg);
    background-color: #711240;
    color: #ffffff;
}

.am-pod-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Metric Content Info */
.am-pod-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.am-pod-num {
    font-size: 34px;
    font-weight: 900;
    color: #711240;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.am-pod-lbl {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.am-pod-card:hover .am-pod-lbl {
    color: #711240;
}

.am-pod-sub {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.6;
}

/* 4. Scroll Reveal & Stagger Animation Setup */
.am-scroll-reveal {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.am-scroll-reveal[data-reveal="right"] {
    transform: translateX(30px);
}

body:not(.rtl) .am-scroll-reveal[data-reveal="right"],
[dir="ltr"] .am-scroll-reveal[data-reveal="right"] {
    transform: translateX(-30px);
}

.am-scroll-reveal[data-reveal="left"] {
    transform: translateX(-30px);
}

body:not(.rtl) .am-scroll-reveal[data-reveal="left"],
[dir="ltr"] .am-scroll-reveal[data-reveal="left"] {
    transform: translateX(30px);
}

.am-scroll-reveal.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

.am-stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.am-stagger-parent.in-view .am-stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.am-stagger-parent.in-view .am-stagger-item:nth-child(1) { transition-delay: 0.06s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(2) { transition-delay: 0.12s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(3) { transition-delay: 0.18s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(4) { transition-delay: 0.24s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(5) { transition-delay: 0.30s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(6) { transition-delay: 0.36s; }

/* 5. Responsiveness */
@media (max-width: 1024px) {
    .am-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 36px;
    }

    .am-head-desc {
        max-width: 100%;
    }

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

@media (max-width: 640px) {
    .am-stats-section {
        padding: 60px 0 85px;
    }

    .am-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .am-section-title {
        font-size: 1.85rem;
    }

    .am-pod-card {
        padding: 22px 20px;
        gap: 16px;
    }

    .am-pod-num {
        font-size: 30px;
    }
}

/**
 * END - Stats Section Component Styles - infxo.com
 */