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

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

/* 1. Identity Canvas with Seamless Gradient Flow from Pure White */
.am-services-section {
    position: relative;
    width: 100%;
    padding: 85px 0 115px;
    background-color: #ffffff !important;
    /* Picks up seamlessly from #ffffff (products end) and gently flows into light pink */
    background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 20%, #fdf5f9 65%, #f7eaf1 100%) !important;
    font-family: 'Cairo', sans-serif !important;
    overflow: hidden;
    direction: inherit;
}

/* Enforce Cairo Identity Across All Elements */
.am-services-section h1,
.am-services-section h2,
.am-services-section h3,
.am-services-section h4,
.am-services-section h5,
.am-services-section h6,
.am-services-section p,
.am-services-section a,
.am-services-section span,
.am-services-section button,
.am-services-section .am-section-title,
.am-services-section .am-badge-text,
.am-services-section .am-head-desc,
.am-services-section .am-strip-idx,
.am-services-section .am-strip-title,
.am-services-section .am-strip-desc,
.am-services-section .am-strip-cta {
    font-family: 'Cairo', sans-serif !important;
}

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

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

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

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

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

.am-badge-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    gap: 8px;
    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;
    align-self: center;
}

.am-badge-text {
    font-size: 13px;
    font-weight: 800;
    color: #711240;
    line-height: 1;
    display: inline-block;
    align-self: center;
    position: relative;
    top: -0.5px;
}

.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: 520px;
    font-size: 14.5px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.8;
}

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

/* 3. The 4 Executive Precision Strips */
.am-services-strips-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 3;
}

.am-service-strip-row {
    background: #ffffff;
    border: 1.5px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    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);
}

.am-service-strip-row:hover {
    transform: translateY(-4px);
    border-color: rgba(113, 18, 64, 0.24);
    box-shadow: 0 16px 36px -10px rgba(113, 18, 64, 0.1);
    background-color: #fdfbfe;
}

/* Index Number (01, 02..) */
.am-strip-idx {
    font-size: 20px;
    font-weight: 900;
    color: #711240;
    opacity: 0.45;
    width: 38px;
    flex-shrink: 0;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Luxury Icon Pod */
.am-strip-icon-pod {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fdf2f7;
    border: 1px solid rgba(113, 18, 64, 0.12);
    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-strip-icon-pod svg {
    width: 24px;
    height: 24px;
    display: block;
}

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

/* Middle Content: Title & Scope */
.am-strip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.am-strip-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 4px 0;
    transition: color 0.2s ease;
}

.am-service-strip-row:hover .am-strip-title {
    color: #711240;
}

.am-strip-desc {
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.7;
}

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

/* Action Pill Button */
.am-strip-cta {
    background: #ffffff;
    border: 1.5px solid rgba(113, 18, 64, 0.18);
    color: #711240 !important;
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(113, 18, 64, 0.03);
    line-height: 1;
}

.am-strip-cta svg {
    transition: transform 0.25s ease;
}

body.rtl .am-strip-cta svg,
[dir="rtl"] .am-strip-cta svg {
    transform: scaleX(1);
}

body:not(.rtl) .am-strip-cta svg,
[dir="ltr"] .am-strip-cta svg {
    transform: scaleX(-1);
}

.am-service-strip-row:hover .am-strip-cta {
    background: #711240;
    color: #ffffff !important;
    border-color: #711240;
    box-shadow: 0 6px 18px rgba(113, 18, 64, 0.28);
}

body.rtl .am-service-strip-row:hover .am-strip-cta svg,
[dir="rtl"] .am-service-strip-row:hover .am-strip-cta svg {
    transform: translateX(-3px);
}

body:not(.rtl) .am-service-strip-row:hover .am-strip-cta svg,
[dir="ltr"] .am-service-strip-row:hover .am-strip-cta svg {
    transform: translateX(3px) scaleX(-1);
}

/* 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.08s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(2) { transition-delay: 0.18s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(3) { transition-delay: 0.28s; }
.am-stagger-parent.in-view .am-stagger-item:nth-child(4) { transition-delay: 0.38s; }

/* 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-service-strip-row {
        padding: 20px 24px;
        gap: 20px;
    }
}

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

    .am-service-strip-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .am-strip-idx {
        display: none; /* Clean up space on mobile screens */
    }

    .am-strip-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}

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