/* AB Detailing Process Widget Styles */

.abp-section {
    padding: 100px 20px;
    background-color: #f8fafc;
}

.abp-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.abp-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.abp-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.abp-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #2563EB;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.abp-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #2563EB;
    margin: 25px 0 0 0;
    line-height: 1.4;
}

/* Grid */
.abp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Process Card */
.abp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.abp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background-color: #2563EB;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.abp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.abp-card:hover::before {
    transform: scaleX(1);
}

/* Step Badge */
.abp-step-badge {
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* Watermark Number */
.abp-step-number {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 100px;
    font-weight: 900;
    color: #2563EB;
    opacity: 0.05;
    line-height: 1;
    z-index: 1;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
    pointer-events: none;
}

.abp-card:hover .abp-step-number {
    opacity: 0.1;
    transform: scale(1.05) translate(-5px, 5px);
}

/* Text Content */
.abp-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px 0;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    letter-spacing: -0.5px;
}

.abp-card-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* ---------- Smooth scroll reveal (only active when JS adds .abp-ready) ---------- */
.abp-ready .abp-header {
    opacity: 0;
    translate: 0 18px;
    transition: opacity 0.7s ease, translate 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.abp-ready .abp-header.abp-in {
    opacity: 1;
    translate: 0 0;
}

.abp-ready .abp-title::after {
    transform: translateX(-50%) scaleX(0);
}

.abp-ready .abp-header.abp-in .abp-title::after {
    transform: translateX(-50%) scaleX(1);
}

.abp-ready .abp-card {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.7s ease var(--abp-d, 0ms),
                translate 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--abp-d, 0ms),
                transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
}

.abp-ready .abp-card.abp-in {
    opacity: 1;
    translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .abp-ready .abp-header,
    .abp-ready .abp-card {
        opacity: 1;
        translate: none;
        transition: none;
    }
    .abp-ready .abp-title::after { transform: translateX(-50%) scaleX(1); transition: none; }
    .abp-card, .abp-card::before, .abp-step-number { transition: none; }
}

/* Responsive */
@media (max-width: 768px) {
    .abp-section { padding: 60px 15px; }
    .abp-title { font-size: 32px; }
    .abp-subtitle { font-size: 18px; }
    
    .abp-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 20px;
    }
    
    .abp-card {
        padding: 30px 25px;
    }
    
    .abp-card-title { font-size: 20px; }
    .abp-step-number { font-size: 80px; top: 0; right: 10px; }
}
