/* AB Detailing Core Services Widget Styles */

.abc-section {
    --abc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

.abc-title {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

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

.abc-desc {
    font-size: 16px;
    color: #64748b;
    line-height: 1.7;
}

/* Grid */
.abc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Card */
.abc-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.45s var(--abc-ease), box-shadow 0.45s var(--abc-ease), border-color 0.45s ease;
}

.abc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background-color: #2563EB;
    transform-origin: top center;
    transition: transform 0.45s var(--abc-ease);
}

@media (hover: hover) {
    .abc-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
        border-color: #dbe4f0;
    }
    .abc-card:hover::before {
        transform: scaleY(1.5);
    }
    .abc-card:hover .abc-bullet-icon {
        transform: scale(1.15);
    }
}

.abc-card-body {
    padding: 40px 40px 30px 40px;
    flex: 1; /* Pushes footer to bottom */
}

/* Title & Intro */
.abc-card-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.abc-card-intro {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 25px 0;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

/* List */
.abc-list-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 15px 0;
}

.abc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abc-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.abc-bullet-icon {
    color: #2563EB;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.35s var(--abc-ease);
}

.abc-bullet-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
}

/* Footer / Button */
.abc-card-footer {
    padding: 0 40px 40px 40px;
    margin-top: auto; /* Stays at bottom */
}

.abc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    background-color: #2563EB;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--abc-ease), box-shadow 0.35s var(--abc-ease);
    border: 1px solid transparent;
}

.abc-btn-arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.35s var(--abc-ease);
}

.abc-btn:hover {
    background-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
}

.abc-btn:hover .abc-btn-arrow,
.abc-btn:focus-visible .abc-btn-arrow {
    transform: translateX(4px);
}

.abc-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.abc-btn:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 3px;
}

/* Scroll reveal (only active when JS adds .abc-anim; content is always visible without JS) */
@keyframes abc-fade-up {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.abc-anim .abc-reveal {
    opacity: 0;
}

.abc-anim .abc-reveal.abc-in {
    opacity: 1;
    animation: abc-fade-up 0.7s var(--abc-ease) backwards;
    animation-delay: var(--abc-d, 0s);
}

.abc-anim .abc-card.abc-reveal:nth-child(even) {
    --abc-d: 0.08s;
}

/* Responsive */
@media (max-width: 991px) {
    .abc-anim .abc-card.abc-reveal:nth-child(even) {
        --abc-d: 0s;
    }
    .abc-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .abc-section {
        padding: 60px 15px;
    }
    .abc-title {
        font-size: 32px;
    }
    .abc-subtitle {
        font-size: 18px;
    }
    .abc-card-body {
        padding: 30px 25px 25px 25px;
    }
    .abc-card-footer {
        padding: 0 25px 30px 25px;
    }
    .abc-card-title {
        font-size: 22px;
    }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .abc-section *,
    .abc-section *::before,
    .abc-section *::after {
        transition: none !important;
        animation: none !important;
    }
    .abc-anim .abc-reveal {
        opacity: 1 !important;
    }
}
