/**
 * CARexplorer - Services Page CSS
 * SEO landing page "Services automobile"
 * Eldora UI effects + full-width layout (matching explore.css)
 */

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes servicesShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =====================================================
   STAGGERED REVEAL
   ===================================================== */
.ce-services-hero {
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-services-section {
    animation: fadeInUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-services-section:nth-child(1) { animation-delay: 0.05s; }
.ce-services-section:nth-child(2) { animation-delay: 0.1s; }
.ce-services-section:nth-child(3) { animation-delay: 0.15s; }

.ce-service-card {
    animation: cardReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ce-service-card:nth-child(1) { animation-delay: 0.06s; }
.ce-service-card:nth-child(2) { animation-delay: 0.12s; }
.ce-service-card:nth-child(3) { animation-delay: 0.18s; }
.ce-service-card:nth-child(4) { animation-delay: 0.24s; }
.ce-service-card:nth-child(5) { animation-delay: 0.30s; }
.ce-service-card:nth-child(6) { animation-delay: 0.36s; }
.ce-service-card:nth-child(7) { animation-delay: 0.42s; }

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.ce-services-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

/* =====================================================
   HERO SEO SECTION
   ===================================================== */
.ce-services-hero {
    text-align: center;
    padding: 60px 0 48px;
}

.ce-services-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(210, 133, 255, 0.08);
    border: 1px solid rgba(210, 133, 255, 0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #D285FF;
    margin-bottom: 28px;
}

.ce-services-badge svg {
    color: #D285FF;
}

.ce-services-h1 {
    font-family: 'Inter', sans-serif;
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(210, 133, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ce-services-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 32px;
}

.ce-services-subtitle strong {
    color: rgba(255, 255, 255, 0.75);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.ce-services-section {
    margin-bottom: 56px;
}

.ce-services-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0 0 8px 0;
}

.ce-services-section-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    text-align: center;
    margin: 0 0 32px 0;
}

/* =====================================================
   SERVICE CARDS GRID
   ===================================================== */
.ce-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.ce-service-card {
    position: relative;
    background: linear-gradient(145deg, rgba(28, 22, 50, 0.95) 0%, rgba(18, 14, 35, 0.98) 100%);
    border: 1px solid rgba(120, 100, 180, 0.2);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}

.ce-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(145deg, rgba(210, 133, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.ce-service-card:hover {
    border-color: rgba(210, 133, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 28px rgba(210, 133, 255, 0.1);
}

.ce-service-card:hover::after {
    opacity: 1;
}

/* Featured card (inspection) */
.ce-service-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    border-color: rgba(210, 133, 255, 0.3);
    background: linear-gradient(145deg, rgba(35, 28, 60, 0.95) 0%, rgba(18, 14, 35, 0.98) 100%);
}

.ce-service-card.featured:hover {
    border-color: rgba(210, 133, 255, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(210, 133, 255, 0.15);
}

.ce-service-featured-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ce-service-featured-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Icon */
.ce-service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(210, 133, 255, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(210, 133, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.ce-service-icon svg {
    width: 28px;
    height: 28px;
    color: #D285FF;
}

/* Green icon variant */
.ce-service-icon.green {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.ce-service-icon.green svg {
    color: #4ade80;
}

/* Blue icon variant */
.ce-service-icon.blue {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.ce-service-icon.blue svg {
    color: #60a5fa;
}

/* Name */
.ce-service-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Description */
.ce-service-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Badges */
.ce-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.ce-service-badge.available {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.25);
    color: #4ade80;
}

.ce-service-badge.coming {
    background: rgba(210, 133, 255, 0.08);
    border: 1px solid rgba(210, 133, 255, 0.25);
    color: #D285FF;
}

/* CTA button on card */
.ce-service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #D285FF 0%, #a855f7 100%);
    color: #000;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(210, 133, 255, 0.25);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.ce-service-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.ce-service-cta:hover::after {
    left: 150%;
}

.ce-service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(210, 133, 255, 0.35);
    color: #000;
}

.ce-service-cta svg {
    width: 16px;
    height: 16px;
}

/* Checklist for featured card */
.ce-service-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ce-service-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.ce-service-checklist li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #4ade80;
    margin-top: 1px;
}

.ce-service-checklist li strong {
    color: rgba(255, 255, 255, 0.9);
}

/* =====================================================
   DIVIDER WITH SHIMMER
   ===================================================== */
.ce-services-divider {
    height: 1px;
    margin: 56px 0;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.ce-services-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 133, 255, 0.4), rgba(0, 229, 255, 0.3), transparent);
    animation: servicesShimmer 5s ease-in-out infinite;
}

/* =====================================================
   PROCESS / HOW IT WORKS
   ===================================================== */
.ce-services-process {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.ce-process-step {
    text-align: center;
    padding: 28px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    position: relative;
    animation: cardReveal 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ce-process-step:nth-child(1) { animation-delay: 0.05s; }
.ce-process-step:nth-child(2) { animation-delay: 0.1s; }
.ce-process-step:nth-child(3) { animation-delay: 0.15s; }
.ce-process-step:nth-child(4) { animation-delay: 0.2s; }

.ce-process-step:hover {
    background: rgba(210, 133, 255, 0.04);
    border-color: rgba(210, 133, 255, 0.2);
    transform: translateY(-3px);
    transition: all 0.25s ease;
}

.ce-process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(210, 133, 255, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(210, 133, 255, 0.2);
    border-radius: 12px;
    margin: 0 auto 16px;
    font-size: 16px;
    font-weight: 800;
    color: #D285FF;
}

.ce-process-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.ce-process-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.ce-services-cta-section {
    text-align: center;
    padding: 48px 40px;
    background: linear-gradient(145deg, rgba(35, 28, 60, 0.8) 0%, rgba(18, 14, 35, 0.9) 100%);
    border: 1px solid rgba(210, 133, 255, 0.2);
    border-radius: 24px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.ce-services-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(210, 133, 255, 0.3) 20%,
        rgba(210, 133, 255, 0.6) 50%,
        rgba(210, 133, 255, 0.3) 80%,
        transparent 100%
    );
}

.ce-services-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.ce-services-cta-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ce-services-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #D285FF 0%, #a855f7 100%);
    color: #000;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(210, 133, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.ce-services-cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.ce-services-cta-btn:hover::after {
    left: 150%;
}

.ce-services-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(210, 133, 255, 0.4);
    color: #000;
}

/* =====================================================
   SEO TEXT SECTION
   ===================================================== */
.ce-services-seo {
    margin: 0 0 48px 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.ce-services-seo h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.ce-services-seo h3 {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin: 24px 0 10px 0;
}

.ce-services-seo p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0 0 14px 0;
}

.ce-services-seo p:last-child {
    margin-bottom: 0;
}

.ce-services-seo strong {
    color: rgba(255, 255, 255, 0.7);
}

.ce-services-seo a {
    color: #D285FF;
    text-decoration: none;
    transition: color 0.2s;
}

.ce-services-seo a:hover {
    color: #c066f7;
    text-decoration: underline;
}

.ce-services-seo ul {
    margin: 0 0 14px 0;
    padding-left: 20px;
}

.ce-services-seo li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 4px;
}

.ce-services-seo li strong {
    color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   FOOTER (reuse explore footer styles)
   ===================================================== */
.ce-services-footer {
    text-align: center;
    padding: 32px 0 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.ce-services-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ce-services-footer-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.ce-services-footer-links a:hover {
    color: #D285FF;
}

.ce-services-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .ce-services-main {
        padding: 0 16px;
        padding-top: 80px;
    }

    .ce-services-hero {
        padding: 40px 0 32px;
    }

    .ce-services-h1 {
        font-size: 34px;
    }

    .ce-services-subtitle {
        font-size: 15px;
    }

    .ce-services-section-title {
        font-size: 22px;
    }

    .ce-services-grid {
        grid-template-columns: 1fr;
    }

    .ce-service-card.featured {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ce-service-card {
        padding: 24px;
    }

    .ce-services-process {
        grid-template-columns: repeat(2, 1fr);
    }

    .ce-services-cta-section {
        padding: 32px 20px;
    }

    .ce-services-seo {
        padding: 24px 20px;
    }

    .ce-services-seo h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ce-services-h1 {
        font-size: 28px;
    }

    .ce-services-grid {
        grid-template-columns: 1fr;
    }

    .ce-services-process {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   REDUCE MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .ce-services-hero,
    .ce-services-section,
    .ce-service-card,
    .ce-process-step,
    .ce-services-cta-section,
    .ce-services-seo,
    .ce-services-footer {
        animation: none !important;
    }
}
