/**
 * Washington Home Improvements - Services Overview Page
 * Clean, simple services grid
 */

/* ========================================
   SERVICES HERO
   ======================================== */

.services-hero {
    background: linear-gradient(135deg, #1a2332 0%, #2a3e50 50%, #3d5a6e 100%);
    padding: var(--space-3xl) 0 var(--space-2xl);
    position: relative;
    overflow: hidden;
}

/* Blueprint pattern overlay */
.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(135, 206, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 235, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: var(--space-xl);
    letter-spacing: -1px;
    display: inline-block;
    position: relative;
}

/* Animated Graphite Underline */
.title-underline {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #6c757d, transparent);
    animation: underlineExpand 2s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes underlineExpand {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 200px;
        opacity: 1;
    }
}

.services-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-top: var(--space-md);
}

/* ========================================
   SERVICES OVERVIEW GRID
   ======================================== */

.services-overview-section {
    padding: var(--space-3xl) 0;
    background: #f8f9fa;
}

.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.service-overview-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-overview-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2332 0%, #2a3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-overview-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(135, 206, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 235, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

/* Orange line at bottom border (full width) */
.service-overview-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff9100, #ff7c00);
    z-index: 3;
}

.service-overview-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-lg);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.2))
            drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    transition: all 0.4s ease;
}

/* Hover effect - just slight scale, NO yellow glow */
.service-overview-card:hover .service-overview-image img {
    transform: scale(1.05);
}

.service-overview-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-overview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: var(--space-md);
}

.service-overview-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.btn-service-overview {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-service-overview:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 145, 0, 0.4);
}

.btn-service-overview svg {
    transition: transform 0.3s ease;
}

.btn-service-overview:hover svg {
    transform: translateX(3px);
}

/* ========================================
   BOTTOM CTA SECTION
   ======================================== */

.services-cta-section {
    background: linear-gradient(135deg, #1a2332 0%, #2a3e50 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.services-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(135, 206, 235, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(135, 206, 235, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.services-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    margin-bottom: var(--space-md);
}

.services-cta-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
}

.services-cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 145, 0, 0.3);
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    border-radius: 18px;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 145, 0, 0.5);
}

.btn-cta-secondary {
    background: linear-gradient(135deg, #87CEEB 0%, #5FA8D3 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.3);
}

.btn-cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(135, 206, 235, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .services-overview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .services-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: var(--space-2xl) var(--space-md);
    }

    .services-overview-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .services-cta-section {
        padding: var(--space-2xl) var(--space-md);
    }
}
