/*=========================================================
WHY IT WORKS
Before / After cards (image + list in one card)
=========================================================*/

.why{
    background:var(--light);
}

.why .section-header{
    margin-bottom:60px;
}

/*=========================================================
CARDS
=========================================================*/

.why-compare{
    position:relative;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:44px;
    align-items:stretch;
}

.why-card{
    display:flex;
    flex-direction:column;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    overflow:hidden;
    box-shadow:var(--shadow-sm);
}

.why-card img{
    width:100%;
    height:260px;
    object-fit:cover;
}

.why-card-body{
    flex:1;
    padding:34px;
}

.why-card h3{
    margin-bottom:22px;
}

/* BEFORE: muted, quiet */
.before-card{
    border-top:5px solid #C9D3DD;
}
.before-card img{
    filter:grayscale(.9) contrast(.95);
}

/* AFTER: brand blue, one gold line */
.after-card{
    border-top:5px solid var(--accent);
    box-shadow:var(--shadow-md);
}

/*=========================================================
LABELS
=========================================================*/

.why-label{
    display:inline-block;
    margin-bottom:16px;
    padding:7px 16px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.before-card .why-label{
    background:#EEF3F8;
    color:var(--secondary);
}
.after-card .why-label{
    background:var(--primary);
    color:var(--white);
}

/*=========================================================
LISTS
=========================================================*/

.why-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.why-list li{
    display:flex;
    align-items:flex-start;
    gap:14px;
    color:var(--text);
    line-height:1.6;
}

.why-list li i{
    flex-shrink:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    margin-top:2px;
    border-radius:50%;
    font-size:11px;
}
.before-card .why-list li i{
    background:#EEF3F8;
    color:var(--secondary);
}
.after-card .why-list li i{
    background:var(--primary);
    color:var(--white);
}

.after-card .why-list li{
    color:var(--dark);
    font-weight:500;
}

/*=========================================================
ARROW BETWEEN CARDS (desktop only)
=========================================================*/

.why-arrow{
    position:absolute;
    top:130px;
    left:50%;
    transform:translate(-50%,-50%);
    z-index:2;
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--accent);
    color:var(--primary);
    font-size:18px;
    border:4px solid var(--light);
}

/*=========================================================
CLOSING CTA
=========================================================*/

.why-cta{
    margin-top:56px;
    text-align:center;
}
.why-cta p{
    margin-bottom:20px;
    font-size:18px;
    font-weight:600;
    color:var(--primary);
}

/*=========================================================
TABLET
=========================================================*/

@media (max-width:991px){

    .why-compare{
        grid-template-columns:1fr;
        gap:28px;
    }
    .why-arrow{ display:none; }
    .why-card-body{ padding:30px; }

}

/*=========================================================
MOBILE
=========================================================*/

@media (max-width:768px){

    .why .section-header{ margin-bottom:44px; }
    .why-card img{ height:210px; }
    .why-card-body{ padding:26px; }
    .why-cta{ margin-top:44px; }

}