/* ==========================================================================
   Car Agent Dufter - Services Page Styles
   Black/Red/White Corporate Design
   ========================================================================== */

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: var(--primary-white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-red);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='rgba(255,0,0,0.1)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    opacity: 0.3;
}

.page-title {
    font-family: var(--font-headline);
    font-size: 3.5rem; /* Increased for Broshk (was 3rem) */
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    color: var(--light-gray);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

/* Header Stats */
.header-stats {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 0, 0, 0.1);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(255, 0, 0, 0.3);
    min-width: 120px;
}

.stat-number {
    font-family: var(--font-brand);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-red);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
}

/* Services Main Section */
.services-main {
    padding: var(--spacing-2xl) 0;
    background: var(--dark-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}

/* Service Card Detailed */
.service-card-detailed {
    background: var(--primary-black);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    border: 2px solid var(--medium-gray);
}

/* Service Card with Background Image */
.service-with-image {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
}

.service-with-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
    z-index: 0;
    transition: all 0.3s ease;
}

.service-with-image:hover::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
}

.service-with-image > * {
    position: relative;
    z-index: 1;
}

.service-card-detailed {
    background: var(--primary-black);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    border: 2px solid var(--medium-gray);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.05), transparent);
    transition: left 0.6s;
}

.service-card-detailed:hover::before {
    left: 100%;
}

.service-card-detailed:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl), var(--shadow-red);
    border-color: var(--primary-red);
}

/* Service Diamond */
.service-diamond {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.service-card-detailed .diamond-shape {
    width: 80px;
    height: 80px;
    background: var(--gradient-red);
    transform: rotate(45deg);
    border: 3px solid var(--primary-red);
    box-shadow: var(--shadow-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-detailed .diamond-content {
    transform: rotate(-45deg);
    color: var(--primary-white);
}

/* Service Content */
.service-content {
    text-align: center;
}

.service-content h3 {
    font-family: var(--font-headline);
    font-size: 1.7rem; /* Increased for Broshk (was 1.5rem) */
    font-weight: var(--font-weight-bold);
    color: var(--primary-white);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-description {
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

/* Service Features */
.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.service-features li {
    color: var(--primary-white);
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-lg);
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: var(--font-weight-bold);
    font-size: 1.2rem;
}

/* Service Pricing */
.service-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.price-label {
    color: var(--light-gray);
    font-weight: var(--font-weight-medium);
}

.price {
    font-family: var(--font-brand);
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-red);
}

/* Services CTA Section */
.services-cta {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-red);
    text-align: center;
}

.services-cta .cta-content h2 {
    font-family: var(--font-headline);
    font-size: 2.9rem; /* Increased for Broshk (was 2.5rem) */
    font-weight: var(--font-weight-bold);
    color: var(--primary-white);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-cta .cta-content p {
    font-size: 1.2rem;
    color: var(--primary-white);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cta-buttons .btn-secondary {
    background: transparent;
    border-color: var(--primary-white);
    color: var(--primary-white);
}

.cta-buttons .btn-secondary:hover {
    background: var(--primary-white);
    color: var(--primary-red);
}

/* Service Card Animations */
.service-card-detailed[data-service="search"]:hover .diamond-shape {
    animation: pulse-search 2s infinite;
}

.service-card-detailed[data-service="sell"]:hover .diamond-shape {
    animation: pulse-sell 2s infinite;
}

.service-card-detailed[data-service="financing"]:hover .diamond-shape {
    animation: pulse-financing 2s infinite;
}

.service-card-detailed[data-service="transport"]:hover .diamond-shape {
    animation: pulse-transport 2s infinite;
}

.service-card-detailed[data-service="appraisal"]:hover .diamond-shape {
    animation: pulse-appraisal 2s infinite;
}

.service-card-detailed[data-service="repair"]:hover .diamond-shape {
    animation: pulse-repair 2s infinite;
}

.service-card-detailed[data-service="detailing"]:hover .diamond-shape {
    animation: pulse-detailing 2s infinite;
}

@keyframes pulse-search {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), var(--shadow-red); }
}

@keyframes pulse-sell {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.5), var(--shadow-red); }
}

@keyframes pulse-financing {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.5), var(--shadow-red); }
}

@keyframes pulse-transport {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 0 20px rgba(139, 69, 19, 0.5), var(--shadow-red); }
}

@keyframes pulse-appraisal {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 0 20px rgba(147, 51, 234, 0.5), var(--shadow-red); }
}

@keyframes pulse-repair {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 0 20px rgba(236, 72, 153, 0.5), var(--shadow-red); }
}

@keyframes pulse-detailing {
    0%, 100% { box-shadow: var(--shadow-red); }
    50% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), var(--shadow-red); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem; /* Increased for Broshk (was 2.2rem) */
    }
    
    .header-stats {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .service-card-detailed {
        padding: var(--spacing-lg);
    }
    
    .service-content h3 {
        font-size: 1.5rem; /* Increased for Broshk (was 1.3rem) */
    }
    
    .services-cta .cta-content h2 {
        font-size: 2.3rem; /* Increased for Broshk (was 2rem) */
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2.1rem; /* Increased for Broshk (was 1.8rem) */
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card-detailed .diamond-shape {
        width: 60px;
        height: 60px;
    }
    
    .service-content h3 {
        font-size: 1.4rem; /* Increased for Broshk (was 1.2rem) */
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .services-cta .cta-content h2 {
        font-size: 1.8rem; /* Increased for Broshk (was 1.6rem) */
    }
    
    .services-cta .cta-content p {
        font-size: 1rem;
    }
}