/**
 * Washington Home Improvements - Homepage New Sections
 * SEO Content, Power CTA, and Excavator Animation
 */

/* ========================================
   SEO CONTENT SECTION
   ======================================== */

.seo-content-section {
    background: #ffffff;
    padding: var(--space-3xl) 0;
}

.seo-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.seo-content-main {
    margin-bottom: var(--space-2xl);
}

.seo-content-main .section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #1a2332;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.seo-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a5568;
}

.seo-text p {
    margin-bottom: var(--space-lg);
}

.seo-text strong {
    color: #1a2332;
    font-weight: 700;
}

.seo-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.seo-block {
    background: #f8f9fa;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid #ff9100;
}

.seo-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: var(--space-md);
}

.seo-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: var(--space-md);
}

.seo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
}

.seo-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #ff9100;
    font-weight: 700;
}

.seo-list li strong {
    color: #1a2332;
    font-weight: 700;
}

.seo-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: var(--space-md) 0;
}

.seo-list-inline li {
    background: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2332;
    border: 2px solid #87CEEB;
}

.seo-note {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ff9100;
    text-align: center;
}

/* ========================================
   POWER CTA SECTION
   ======================================== */

.power-cta-section {
    background: white;
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.power-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.05) 0%, rgba(255, 145, 0, 0.05) 100%);
    pointer-events: none;
}

.power-cta-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.power-cta-content {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid #87CEEB;
}

.power-cta-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #1a2332;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.power-cta-subtext {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: #4a5568;
    margin-bottom: var(--space-2xl);
    font-weight: 500;
}

.power-cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.btn-power {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-lg);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-power::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-power:hover::before {
    width: 300px;
    height: 300px;
}

.btn-power-call {
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: white;
    border: 3px solid #ff9100;
}

.btn-power-call:hover {
    background: linear-gradient(135deg, #ff7c00 0%, #ff6600 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 145, 0, 0.4);
}

.btn-power-quote {
    background: white;
    color: #1a2332;
    border: 3px solid #87CEEB;
}

.btn-power-quote:hover {
    background: #87CEEB;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(135, 206, 235, 0.4);
}

.btn-power-icon {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-power-text {
    position: relative;
    z-index: 1;
}

.power-cta-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    padding-top: var(--space-xl);
    border-top: 2px solid rgba(135, 206, 235, 0.3);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.trust-badge-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.trust-badge-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2332;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   EXCAVATOR ANIMATION - DRIVE IN FROM LEFT
   ======================================== */

/* For Tool Showcase Template */
.excavator-drive-in {
    opacity: 0;
    transform: translateX(-300px);
    animation: driveInExcavatorLarge 2s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes driveInExcavatorLarge {
    0% {
        opacity: 0;
        transform: translateX(-300px);
    }
    60% {
        opacity: 1;
        transform: translateX(15px);
    }
    80% {
        transform: translateX(-8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover bounce for tool showcase */
.excavator-animated:hover .excavator-drive-in {
    animation: excavatorBounce 0.6s ease-in-out;
}

/* For Service Cards (Homepage) */

.service-card-excavator .excavator-icon {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    overflow: visible;
}

.excavator-image {
    width: 80px;
    height: auto;
    opacity: 0;
    transform: translateX(-200px);
    animation: driveInExcavator 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes driveInExcavator {
    0% {
        opacity: 0;
        transform: translateX(-200px);
    }
    60% {
        opacity: 1;
        transform: translateX(10px);
    }
    80% {
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Trigger animation on scroll */
.service-card-excavator[data-scroll-visible="true"] .excavator-image {
    animation: driveInExcavator 1.5s ease-out forwards;
}

/* Hover effect - excavator bounces */
.service-card-excavator:hover .excavator-image {
    animation: excavatorBounce 0.6s ease-in-out;
}

@keyframes excavatorBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-8px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-4px);
    }
}

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

@media (max-width: 968px) {
    .seo-content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .power-cta-content {
        padding: var(--space-2xl);
    }

    .power-cta-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }

    .btn-power {
        width: 100%;
        max-width: 400px;
    }

    .power-cta-badges {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 640px) {
    .seo-content-main .section-heading {
        font-size: 1.5rem;
    }

    .seo-text {
        font-size: 1rem;
    }

    .seo-block {
        padding: var(--space-lg);
    }

    .power-cta-heading {
        font-size: 1.75rem;
    }

    .power-cta-subtext {
        font-size: 1rem;
    }

    .btn-power {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
    }

    .btn-power-icon {
        font-size: 1.25rem;
    }

    .trust-badge-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .trust-badge-text {
        font-size: 0.85rem;
    }

    .excavator-image {
        width: 60px;
    }
}
