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

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

/* 1. Identity Typography & Background Canvas */
.am-trust-section {
    position: relative;
    width: 100%;
    padding: 85px 0 115px;
    background-color: #ffffff !important;
    background-image: linear-gradient(180deg, #ffffff 0%, #fefbfc 30%, #fbf3f7 70%, #f6e8ef 100%) !important;
    font-family: 'Cairo', sans-serif !important;
    overflow: hidden;
    direction: inherit;
}

/* Force Cairo across all elements with proper corporate weight hierarchy */
.am-trust-section h1,
.am-trust-section h2,
.am-trust-section h3,
.am-trust-section h4,
.am-trust-section h5,
.am-trust-section h6,
.am-trust-section p,
.am-trust-section span,
.am-trust-section div,
.am-trust-section .am-section-title,
.am-trust-section .am-badge-text,
.am-trust-section .am-meta-pill,
.am-trust-section .am-wing-idx,
.am-trust-section .am-wing-title,
.am-trust-section .am-wing-desc,
.am-trust-section .am-wing-tag,
.am-trust-section .am-header-desc {
    font-family: 'Cairo', sans-serif !important;
}

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

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

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

/* 2. Ambient ECG Cardiac Wave Flow */
.am-flow-ecg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.11;
    overflow: hidden;
    z-index: 1;
}

.am-flow-ecg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.am-flow-path {
    fill: none;
    stroke: #711240;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: amEcgRunLoop 7s linear infinite;
}

@keyframes amEcgRunLoop {
    0% { stroke-dashoffset: 2600; }
    100% { stroke-dashoffset: 0; }
}

/* 3. Asymmetric Executive Split Header */
.am-trust-header-split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 50px;
    position: relative;
    z-index: 3;
}

.am-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 650px;
}

/* Centered Verified Badge */
.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: 16px;
    line-height: 1;
}

.am-badge-tag svg {
    width: 15px;
    height: 15px;
    color: #711240;
    flex-shrink: 0;
    display: block;
    align-self: center;
    margin: 0;
}

.am-badge-text {
    font-size: 13px;
    font-weight: 800;
    color: #711240;
    line-height: 1;
    display: inline-block;
    align-self: center;
    margin: 0;
    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-header-left {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.am-header-desc {
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    line-height: 1.85;
}

.am-header-desc p {
    margin: 0 0 8px 0;
}

.am-header-desc p:last-child {
    margin-bottom: 0;
}

.am-header-meta-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.am-meta-pill {
    font-size: 12px;
    font-weight: 700;
    color: #711240;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(113, 18, 64, 0.14);
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

/* 4. Kinetic Expanding Accordion Deck */
.am-kinetic-deck {
    display: flex;
    gap: 20px;
    width: 100%;
    min-height: 420px;
    position: relative;
    z-index: 3;
}

.am-kinetic-wing {
    flex: 1;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    padding: 34px 28px;
    cursor: pointer;
    /* Combined transition properties to prevent CSS override conflicts */
    transition: flex 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top Accent Line on Hover/Active */
.am-kinetic-wing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, transparent, #711240, transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 5;
}

.am-kinetic-wing:hover,
.am-kinetic-wing.active {
    flex: 2.3;
    background: #ffffff;
    border-color: rgba(113, 18, 64, 0.22);
    box-shadow: 0 24px 60px -15px rgba(113, 18, 64, 0.12), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.am-kinetic-wing:hover::before,
.am-kinetic-wing.active::before {
    opacity: 1;
}

/* Card Top Section: Spotlight Icon Pod + Watermark Number */
.am-wing-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.am-icon-pod {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fdf2f7 0%, #ffffff 100%);
    border: 1.5px solid rgba(113, 18, 64, 0.12);
    box-shadow: 0 6px 16px rgba(113, 18, 64, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #711240;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

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

.am-kinetic-wing:hover .am-icon-pod,
.am-kinetic-wing.active .am-icon-pod {
    background: #711240;
    border-color: #711240;
    color: #ffffff;
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 10px 24px rgba(113, 18, 64, 0.28);
}

.am-wing-idx {
    font-size: 42px;
    font-weight: 900;
    color: rgba(113, 18, 64, 0.08);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    transition: color 0.3s ease;
}

.am-kinetic-wing.active .am-wing-idx {
    color: rgba(113, 18, 64, 0.16);
}

/* Card Body Content */
.am-wing-body {
    margin-top: auto;
    position: relative;
}

.am-wing-title {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 12px 0;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.am-kinetic-wing:hover .am-wing-title,
.am-kinetic-wing.active .am-wing-title {
    color: #711240;
}

.am-wing-desc {
    font-size: 14.5px;
    font-weight: 500;
    color: #475569;
    line-height: 1.85;
    transition: opacity 0.3s ease;
    min-height: 78px;
}

.am-wing-desc p {
    margin: 0 0 6px 0;
}

.am-wing-desc p:last-child {
    margin-bottom: 0;
}

/* Status Tag That Slides Up on Hover/Active */
.am-wing-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 800;
    color: #711240;
    background: #fdf2f7;
    border: 1px solid rgba(113, 18, 64, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s ease;
}

.am-kinetic-wing:hover .am-wing-tag,
.am-kinetic-wing.active .am-wing-tag {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Scroll Reveal Stagger Animations */
.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);
    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; }

/* 6. Responsiveness */
@media (max-width: 1024px) {
    .am-trust-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .am-header-left {
        max-width: 100%;
    }
    .am-kinetic-deck {
        flex-direction: column;
        min-height: auto;
        gap: 16px;
    }
    .am-kinetic-wing {
        flex: none !important;
        width: 100%;
        min-height: auto;
        padding: 26px 22px;
    }
    .am-wing-desc {
        min-height: auto;
    }
    .am-wing-tag {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .am-trust-section {
        padding: 55px 0 75px;
    }
    .am-section-title {
        font-size: 1.85rem;
    }
    .am-wing-title {
        white-space: normal;
    }
}

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