/* Midwest Flooring Homepage - Complete Styles */
/* Extracted from inline styles for performance optimization */

/* Animations */
@keyframes mwFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes mwTrustScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Utility Classes */
#midwest-home-scope .mw-fade-in {
    opacity: 0;
    animation: mwFadeIn 0.6s ease-out forwards;
}

#midwest-home-scope .mw-visible {
    opacity: 1;
}

/* Focus States */
#midwest-home-scope *:focus-visible {
    outline: 2px solid var(--mw-accent);
    outline-offset: 2px;
}

/* Button Variants */
#midwest-home-scope .mw-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#midwest-home-scope .mw-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

#midwest-home-scope .mw-btn-light {
    background: white;
    color: var(--mw-blue);
    border: 2px solid rgba(47, 72, 88, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#midwest-home-scope .mw-btn-light:hover {
    background: var(--mw-blue);
    color: white;
    border-color: var(--mw-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 72, 88, 0.2);
}

/* Hero Enhancements */
#midwest-home-scope .mw-hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255,255,255,0.95);
    max-width: 750px;
    margin: 0 auto var(--mw-space-2xl);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.6;
}

/* Enhanced parallax smoothness */
@media (min-width: 769px) {
    #midwest-home-scope .mw-hero {
        will-change: transform;
        transform: translateZ(0);
    }

    #midwest-home-scope .mw-hero-bg {
        /* No transition - handled by JS for smooth parallax */
        transition: none;
    }
}

/* Ensure hero content stays crisp during parallax */
#midwest-home-scope .mw-hero-content {
    transform: translateZ(0);
    backface-visibility: hidden;
}

#midwest-home-scope .mw-hero-buttons {
    display: flex;
    gap: var(--mw-space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

#midwest-home-scope .mw-hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--mw-space-xl);
    margin-top: var(--mw-space-3xl);
    flex-wrap: wrap;
}

#midwest-home-scope .mw-stat {
    text-align: center;
    color: white;
}

#midwest-home-scope .mw-stat-number {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--mw-accent);
    display: block;
    line-height: 1.15;
}

#midwest-home-scope .mw-stat-label {
    font-size: clamp(0.8125rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--mw-space-xs);
    opacity: 0.9;
    line-height: 1.6;
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-hero-content {
        padding: var(--mw-space-3xl) var(--mw-space-sm) var(--mw-space-xl);
    }

    #midwest-home-scope .mw-hero h1 {
        margin-top: 0;
        padding-top: var(--mw-space-lg);
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    #midwest-home-scope .mw-hero-subtitle {
        font-size: clamp(1.0625rem, 4.5vw, 1.375rem);
    }

    #midwest-home-scope .mw-hero-buttons .mw-btn-secondary {
        display: none;
    }

    #midwest-home-scope .mw-stat-number {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    #midwest-home-scope .mw-stat-label {
        font-size: clamp(0.75rem, 3vw, 0.875rem);
    }

    #midwest-home-scope .mw-hero-stats {
        gap: var(--mw-space-md);
        margin-top: var(--mw-space-xl);
    }

    #midwest-home-scope .mw-hero-stats .mw-stat {
        flex: 1 1 calc(50% - var(--mw-space-md));
        max-width: 180px;
    }

    #midwest-home-scope .mw-stat--mobile-hide {
        display: none;
    }
}

/* Short viewport / landscape mode adjustments */
@media (max-height: 700px) {
    #midwest-home-scope .mw-hero {
        min-height: 100vh;
    }

    #midwest-home-scope .mw-hero h1 {
        font-size: clamp(2.25rem, 6.5vw, 3.75rem);
    }

    #midwest-home-scope .mw-hero-subtitle {
        font-size: clamp(1.0625rem, 2.8vw, 1.25rem);
        margin-bottom: var(--mw-space-sm);
    }

    #midwest-home-scope .mw-hero-content {
        padding: var(--mw-space-lg) var(--mw-space-sm);
    }

    #midwest-home-scope .mw-stat-number {
        font-size: clamp(1.625rem, 4vw, 2.25rem);
    }

    #midwest-home-scope .mw-stat-label {
        font-size: clamp(0.6875rem, 1.8vw, 0.8125rem);
    }

    #midwest-home-scope .mw-hero-stats {
        gap: var(--mw-space-sm);
        margin-top: var(--mw-space-md);
    }

    #midwest-home-scope .mw-hero-buttons {
        margin-top: var(--mw-space-md);
    }
}

/* Very short viewport (landscape phones) */
@media (max-height: 500px) {
    #midwest-home-scope .mw-hero {
        min-height: 100vh;
        padding: var(--mw-space-sm) 0;
    }

    #midwest-home-scope .mw-hero h1 {
        font-size: clamp(1.875rem, 6vw, 3.25rem);
        margin-bottom: var(--mw-space-xs);
    }

    #midwest-home-scope .mw-hero-subtitle {
        font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
        margin-bottom: var(--mw-space-xs);
    }

    #midwest-home-scope .mw-hero-content {
        padding: var(--mw-space-sm);
    }

    #midwest-home-scope .mw-stat-number {
        font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    }

    #midwest-home-scope .mw-stat-label {
        font-size: 0.625rem;
        margin-top: 2px;
    }

    #midwest-home-scope .mw-hero-stats {
        gap: var(--mw-space-xs);
        margin-top: var(--mw-space-sm);
    }

    #midwest-home-scope .mw-hero-buttons {
        margin-top: var(--mw-space-sm);
    }

    #midwest-home-scope .mw-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
        min-height: 40px;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    #midwest-home-scope .mw-hero h1 {
        font-size: clamp(2.125rem, 11vw, 3.25rem);
    }

    #midwest-home-scope .mw-hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.1875rem);
    }

    #midwest-home-scope .mw-stat-number {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    #midwest-home-scope .mw-stat-label {
        font-size: clamp(0.625rem, 3vw, 0.75rem);
    }

    #midwest-home-scope .mw-hero-stats .mw-stat {
        flex: 1 1 calc(50% - var(--mw-space-sm));
        max-width: 160px;
    }
}

/* Trust Carousel - Matching Original Design */
#midwest-home-scope .mw-trust-carousel {
    background: linear-gradient(to bottom, #FFFFFF, #F9F9F4);
    padding: 2.5rem 0;
    overflow: hidden;
    border-bottom: 2px solid var(--mw-accent);
    position: relative;
}

#midwest-home-scope .mw-carousel-title {
    text-align: center;
    color: var(--mw-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

#midwest-home-scope .mw-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0.5rem 0;
}

#midwest-home-scope .mw-carousel-track {
    display: flex;
    animation: mwTrustScroll 30s linear infinite;
    align-items: center;
    padding: 0.5rem 0;
}

#midwest-home-scope .mw-carousel-container:hover .mw-carousel-track {
    animation-play-state: paused;
}

#midwest-home-scope .mw-carousel-slide {
    flex: 0 0 auto;
    width: 150px;
    height: 90px;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#midwest-home-scope .mw-carousel-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    outline: none;
    border: none;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}

#midwest-home-scope .mw-carousel-slide a:focus,
#midwest-home-scope .mw-carousel-slide a:active {
    outline: none;
    box-shadow: none;
}

#midwest-home-scope .mw-carousel-slide img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

#midwest-home-scope .mw-carousel-slide a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Aggressive Symmetric Gradient Fade */
#midwest-home-scope .mw-trust-carousel::before,
#midwest-home-scope .mw-trust-carousel::after {
    content: '';
    position: absolute;
    top: 3.5rem;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

#midwest-home-scope .mw-trust-carousel::before {
    left: 0;
    background: linear-gradient(to right,
        rgba(249, 249, 244, 1) 0%,
        rgba(249, 249, 244, 0.95) 20%,
        rgba(249, 249, 244, 0.8) 40%,
        rgba(249, 249, 244, 0.5) 60%,
        rgba(249, 249, 244, 0.2) 80%,
        rgba(249, 249, 244, 0) 100%);
}

#midwest-home-scope .mw-trust-carousel::after {
    right: 0;
    background: linear-gradient(to left,
        rgba(249, 249, 244, 1) 0%,
        rgba(249, 249, 244, 0.95) 20%,
        rgba(249, 249, 244, 0.8) 40%,
        rgba(249, 249, 244, 0.5) 60%,
        rgba(249, 249, 244, 0.2) 80%,
        rgba(249, 249, 244, 0) 100%);
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-carousel-title {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    #midwest-home-scope .mw-trust-carousel::before,
    #midwest-home-scope .mw-trust-carousel::after {
        width: 80px;
        top: 3rem;
    }

    #midwest-home-scope .mw-carousel-slide {
        width: 100px;
        height: 70px;
        margin: 0 1rem;
    }

    #midwest-home-scope .mw-carousel-slide img {
        max-height: 50px;
    }

    #midwest-home-scope .mw-carousel-track {
        animation-duration: 20s;
    }
}

@media (prefers-reduced-motion: reduce) {
    #midwest-home-scope .mw-carousel-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    #midwest-home-scope .mw-carousel-slide {
        width: 120px;
        margin: 0.5rem;
    }

    #midwest-home-scope .mw-trust-carousel::before,
    #midwest-home-scope .mw-trust-carousel::after {
        display: none;
    }
}

/* Categories Section */
#midwest-home-scope .mw-categories {
    padding: var(--mw-space-3xl) 0;
    background: var(--mw-bg);
}

#midwest-home-scope .mw-section-header {
    text-align: center;
    margin-bottom: var(--mw-space-2xl);
}

#midwest-home-scope .mw-section-header h2 {
    margin-bottom: var(--mw-space-sm);
}

#midwest-home-scope .mw-section-subtitle {
    color: var(--mw-text-light);
    font-size: var(--mw-text-lg);
    max-width: 600px;
    margin: 0 auto;
}

#midwest-home-scope .mw-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--mw-space-lg);
    margin-top: var(--mw-space-xl);
}

#midwest-home-scope .mw-category-card {
    position: relative;
    background: white;
    border-radius: var(--mw-radius-lg);
    overflow: hidden;
    box-shadow: var(--mw-shadow-md);
    transition: var(--mw-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    transform: translateZ(0);
}

#midwest-home-scope .mw-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--mw-shadow-xl);
}

#midwest-home-scope .mw-category-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--mw-bg-alt);
}

#midwest-home-scope .mw-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#midwest-home-scope .mw-category-card:hover .mw-category-image img {
    transform: scale(1.1);
}

#midwest-home-scope .mw-category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(47,72,88,0.9) 100%);
    pointer-events: none;
}

#midwest-home-scope .mw-category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--mw-space-md);
    color: white;
    z-index: 2;
}

#midwest-home-scope .mw-category-name {
    font-size: var(--mw-text-2xl);
    font-weight: 700;
    margin-bottom: var(--mw-space-xs);
    color: white;
}

#midwest-home-scope .mw-category-price {
    font-size: var(--mw-text-sm);
    color: var(--mw-accent);
    font-weight: 600;
    margin-bottom: var(--mw-space-xs);
}

#midwest-home-scope .mw-category-features {
    font-size: var(--mw-text-sm);
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
}

#midwest-home-scope .mw-popular-badge {
    position: absolute;
    top: var(--mw-space-sm);
    right: var(--mw-space-sm);
    background: var(--mw-accent);
    color: var(--mw-blue);
    padding: 6px 12px;
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

/* Services Section */
#midwest-home-scope .mw-services {
    padding: var(--mw-space-3xl) 0;
    background: var(--mw-bg-alt);
}

#midwest-home-scope .mw-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--mw-space-lg);
    margin-top: var(--mw-space-xl);
}

#midwest-home-scope .mw-service-card {
    background: white;
    border-radius: var(--mw-radius-lg);
    overflow: hidden;
    box-shadow: var(--mw-shadow);
    transition: var(--mw-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

#midwest-home-scope .mw-service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mw-shadow-lg);
}

#midwest-home-scope .mw-service-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: var(--mw-bg-alt);
}

#midwest-home-scope .mw-service-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#midwest-home-scope .mw-service-card:hover .mw-service-img {
    transform: scale(1.08);
}

#midwest-home-scope .mw-service-content {
    padding: var(--mw-space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

#midwest-home-scope .mw-service-content h3 {
    margin-bottom: var(--mw-space-sm);
}

#midwest-home-scope .mw-service-content p {
    flex: 1;
    color: var(--mw-text-light);
    margin-bottom: var(--mw-space-md);
}

#midwest-home-scope .mw-service-link {
    color: var(--mw-accent);
    font-weight: 600;
    font-size: var(--mw-text-lg);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--mw-space-xs);
    transition: var(--mw-transition);
}

#midwest-home-scope .mw-service-link:hover {
    color: var(--mw-blue);
    gap: var(--mw-space-sm);
}

/* About Section */
#midwest-home-scope .mw-about {
    padding: calc(var(--mw-space-3xl) * 1.25) 0;
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-dark));
    position: relative;
    overflow: hidden;
}

#midwest-home-scope .mw-about-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#midwest-home-scope .mw-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mw-space-2xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-about-content {
        grid-template-columns: 1fr;
    }
}

#midwest-home-scope .mw-about-text {
    color: var(--mw-white);
    text-align: left;
}

#midwest-home-scope .mw-about-text h2 {
    color: var(--mw-accent);
    margin-bottom: var(--mw-space-md);
}

#midwest-home-scope .mw-about-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--mw-text-lg);
    line-height: 1.8;
    margin-bottom: var(--mw-space-lg);
}

#midwest-home-scope .mw-about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mw-space-md);
}

#midwest-home-scope .mw-about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#midwest-home-scope .mw-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg,
        rgba(255, 175, 0, 0.25),
        rgba(255, 175, 0, 0.15)
    );
    border: 1px solid rgba(255, 175, 0, 0.2);
    border-radius: var(--mw-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mw-accent);
    font-size: var(--mw-text-xl);
    flex-shrink: 0;
    box-shadow:
        0 2px 4px rgba(255, 175, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all var(--mw-transition);
}

#midwest-home-scope .mw-about-feature:hover .mw-feature-icon {
    background: linear-gradient(135deg,
        rgba(255, 175, 0, 0.35),
        rgba(255, 175, 0, 0.25)
    );
}

#midwest-home-scope .mw-feature-content h5 {
    color: #FFFFFF;
    margin-bottom: 4px;
    font-size: var(--mw-text-lg);
    font-weight: 600;
}

#midwest-home-scope .mw-feature-content p {
    font-size: var(--mw-text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

#midwest-home-scope .mw-about-image {
    position: relative;
    height: 500px;
    border-radius: var(--mw-radius-xl);
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 40px 80px rgba(0, 0, 0, 0.1);
    transition: transform var(--mw-transition);
}


#midwest-home-scope .mw-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--mw-transition);
}


#midwest-home-scope .mw-about-stats {
    position: absolute;
    bottom: var(--mw-space-md);
    left: var(--mw-space-md);
    right: var(--mw-space-md);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98),
        rgba(255, 255, 255, 0.95)
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 175, 0, 0.15);
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-md);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mw-space-sm);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

#midwest-home-scope .mw-about-stat {
    text-align: center;
}

#midwest-home-scope .mw-about-stat-number {
    font-size: var(--mw-text-2xl);
    font-weight: 700;
    color: var(--mw-blue);
    display: block;
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#midwest-home-scope .mw-about-stat-label {
    font-size: var(--mw-text-xs);
    color: var(--mw-text-light);
    text-transform: uppercase;
}

/* Testimonials Section */
#midwest-home-scope .mw-testimonials {
    padding: calc(var(--mw-space-3xl) + var(--mw-space-lg)) 0;
    background: linear-gradient(180deg, #F9F9F4 0%, #ffffff 50%, #F9F9F4 100%);
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

/* Reduce spacing below testimonials header */
#midwest-home-scope .mw-testimonials .mw-section-header {
    margin-bottom: 60px;
}

/* Reduce spacing below testimonials carousel */
#midwest-home-scope .mw-testimonials .mw-carousel-nav {
    margin-top: 45px;
}

#midwest-home-scope .mw-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 175, 0, 0.3) 50%, transparent);
}

#midwest-home-scope .mw-testimonials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 175, 0, 0.3) 50%, transparent);
}

/* Testimonials Carousel Container */
#midwest-home-scope .mw-testimonials-carousel {
    position: relative;
    margin-top: var(--mw-space-xl);
    overflow: hidden;
    padding: calc(var(--mw-space-xl) + 20px) var(--mw-space-sm);
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, 0.05) 2%,
        rgba(0, 0, 0, 0.15) 4%,
        rgba(0, 0, 0, 0.3) 6%,
        rgba(0, 0, 0, 0.5) 8%,
        rgba(0, 0, 0, 0.7) 10%,
        rgba(0, 0, 0, 0.85) 12%,
        rgba(0, 0, 0, 0.95) 14%,
        black 16%,
        black 84%,
        rgba(0, 0, 0, 0.95) 86%,
        rgba(0, 0, 0, 0.85) 88%,
        rgba(0, 0, 0, 0.7) 90%,
        rgba(0, 0, 0, 0.5) 92%,
        rgba(0, 0, 0, 0.3) 94%,
        rgba(0, 0, 0, 0.15) 96%,
        rgba(0, 0, 0, 0.05) 98%,
        transparent 100%);
    mask-image: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, 0.05) 2%,
        rgba(0, 0, 0, 0.15) 4%,
        rgba(0, 0, 0, 0.3) 6%,
        rgba(0, 0, 0, 0.5) 8%,
        rgba(0, 0, 0, 0.7) 10%,
        rgba(0, 0, 0, 0.85) 12%,
        rgba(0, 0, 0, 0.95) 14%,
        black 16%,
        black 84%,
        rgba(0, 0, 0, 0.95) 86%,
        rgba(0, 0, 0, 0.85) 88%,
        rgba(0, 0, 0, 0.7) 90%,
        rgba(0, 0, 0, 0.5) 92%,
        rgba(0, 0, 0, 0.3) 94%,
        rgba(0, 0, 0, 0.15) 96%,
        rgba(0, 0, 0, 0.05) 98%,
        transparent 100%);
}

/* Track that holds all cards - flexbox for smooth horizontal scrolling */
#midwest-home-scope .mw-testimonials-track {
    display: flex;
    gap: 40px;
    position: relative;
    transition: transform 1.8s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    transform-style: preserve-3d;
    padding: 10px 0;
}

/* Smoother transition for direct jumps */
#midwest-home-scope .mw-testimonials-track.mw-smooth-jump {
    transition: transform 2.2s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Consistent card sizing with 3D transforms - 20% larger */
#midwest-home-scope .mw-testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #FFFFFF 100%);
    border-radius: var(--mw-radius-xl);
    padding: var(--mw-space-xl);
    box-shadow:
        0 4px 16px rgba(47, 72, 88, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 456px;
    width: 456px;
    height: 408px;
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border: 2px solid rgba(47, 72, 88, 0.08);
    opacity: 1;
    overflow: hidden;
}

#midwest-home-scope .mw-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--mw-accent) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Subtle scale during carousel movement for momentum feel */
#midwest-home-scope .mw-testimonials-track.mw-transitioning .mw-testimonial-card {
    transition:
        transform 1.3s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 1.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#midwest-home-scope .mw-testimonial-card:hover {
    transform: translateY(-8px) translateZ(20px) scale(1.02);
    box-shadow:
        0 12px 32px rgba(47, 72, 88, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 175, 0, 0.25),
        0 0 12px rgba(255, 175, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 175, 0, 0.3);
}

#midwest-home-scope .mw-testimonial-card:hover::before {
    opacity: 1;
}

/* Responsive carousel layout with consistent sizing */
@media (max-width: 1199px) {
    #midwest-home-scope .mw-testimonial-card {
        flex: 0 0 408px;
        width: 408px;
        height: 432px;
    }

    #midwest-home-scope .mw-testimonials-track {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-testimonial-card {
        flex: 0 0 360px;
        width: 360px;
        height: 456px;
        padding: var(--mw-space-lg);
    }

    #midwest-home-scope .mw-testimonials-track {
        gap: 24px;
    }
}

/* Enhanced quote mark with gradient */
#midwest-home-scope .mw-testimonial-quote {
    position: absolute;
    top: var(--mw-space-lg);
    right: var(--mw-space-lg);
    font-size: 5rem;
    background: linear-gradient(135deg,
        var(--mw-accent) 0%,
        var(--mw-accent-hover) 50%,
        var(--mw-accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: 700;
    transition: all 0.4s ease;
    transform-origin: top right;
}

#midwest-home-scope .mw-testimonial-card:hover .mw-testimonial-quote {
    opacity: 0.25;
    transform: scale(1.1) rotate(-5deg);
    text-shadow: 0 4px 12px rgba(255, 175, 0, 0.2);
}

#midwest-home-scope .mw-testimonial-text {
    font-size: 15px;
    color: var(--mw-text);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: var(--mw-space-md);
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom scrollbar for testimonial text */
#midwest-home-scope .mw-testimonial-text::-webkit-scrollbar {
    width: 4px;
}

#midwest-home-scope .mw-testimonial-text::-webkit-scrollbar-track {
    background: transparent;
}

#midwest-home-scope .mw-testimonial-text::-webkit-scrollbar-thumb {
    background: rgba(255, 175, 0, 0.3);
    border-radius: 2px;
}

#midwest-home-scope .mw-testimonial-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 175, 0, 0.5);
}

#midwest-home-scope .mw-testimonial-rating {
    color: var(--mw-accent);
    font-size: var(--mw-text-xl);
    margin-bottom: var(--mw-space-sm);
    letter-spacing: 3px;
    text-shadow:
        0 2px 4px rgba(255, 175, 0, 0.3),
        0 0 8px rgba(255, 175, 0, 0.2);
    filter: drop-shadow(0 1px 2px rgba(255, 175, 0, 0.4));
    transition: all 0.3s ease;
}

#midwest-home-scope .mw-testimonial-card:hover .mw-testimonial-rating {
    transform: scale(1.05);
    letter-spacing: 4px;
}

#midwest-home-scope .mw-testimonial-footer {
    display: flex;
    align-items: center;
    gap: var(--mw-space-md);
    padding-top: var(--mw-space-md);
    border-top: 2px solid rgba(47, 72, 88, 0.08);
    margin-top: auto;
}

/* Enhanced avatar with better gradient and shadow */
#midwest-home-scope .mw-author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        var(--mw-accent) 0%,
        var(--mw-accent-hover) 50%,
        var(--mw-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mw-blue);
    font-weight: 900;
    font-size: var(--mw-text-xl);
    box-shadow:
        0 6px 16px rgba(255, 175, 0, 0.3),
        0 2px 8px rgba(255, 175, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

#midwest-home-scope .mw-author-avatar::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

#midwest-home-scope .mw-testimonial-card:hover .mw-author-avatar {
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 8px 24px rgba(255, 175, 0, 0.4),
        0 4px 12px rgba(255, 175, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

#midwest-home-scope .mw-testimonial-card:hover .mw-author-avatar::before {
    transform: translateX(100%);
}

#midwest-home-scope .mw-author-info {
    flex: 1;
}

#midwest-home-scope .mw-author-name {
    font-weight: 700;
    color: var(--mw-blue);
    margin-bottom: 4px;
    font-size: var(--mw-text-base);
    letter-spacing: -0.01em;
}

#midwest-home-scope .mw-author-details {
    font-size: var(--mw-text-sm);
    color: var(--mw-text-light);
    line-height: 1.4;
}

/* Floating animation for cards */
@keyframes mwFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

#midwest-home-scope .mw-testimonial-card:hover {
    animation: mwFloat 3s ease-in-out infinite;
}

/* Disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
    #midwest-home-scope .mw-testimonial-card:hover {
        animation: none;
        transform: none;
    }

    #midwest-home-scope .mw-testimonials-track {
        transition: none;
    }
}

/* Carousel Navigation */
#midwest-home-scope .mw-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mw-space-md);
    margin-top: var(--mw-space-xl);
}

#midwest-home-scope .mw-nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #F9F9F4 100%);
    border: 2px solid rgba(47, 72, 88, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--mw-blue);
    flex-shrink: 0;
    box-shadow:
        0 2px 8px rgba(47, 72, 88, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

#midwest-home-scope .mw-nav-arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--mw-accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#midwest-home-scope .mw-nav-arrow svg {
    position: relative;
    z-index: 1;
}

#midwest-home-scope .mw-nav-arrow:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--mw-accent) 0%, var(--mw-accent-hover) 100%);
    border-color: var(--mw-accent);
    color: var(--mw-blue);
    transform: scale(1.15) rotate(5deg);
    box-shadow:
        0 8px 24px rgba(255, 175, 0, 0.4),
        0 4px 12px rgba(255, 175, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#midwest-home-scope .mw-nav-arrow:hover:not(:disabled)::before {
    opacity: 0.2;
}

#midwest-home-scope .mw-nav-arrow:active:not(:disabled) {
    transform: scale(0.95);
}

#midwest-home-scope .mw-nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#midwest-home-scope .mw-nav-arrow svg {
    display: block;
}

/* Navigation Dots */
#midwest-home-scope .mw-nav-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

#midwest-home-scope .mw-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(47, 72, 88, 0.15);
    border: 2px solid rgba(47, 72, 88, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#midwest-home-scope .mw-nav-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 175, 0, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#midwest-home-scope .mw-nav-dot:hover {
    background: rgba(255, 175, 0, 0.6);
    border-color: rgba(255, 175, 0, 0.4);
    transform: scale(1.3);
    box-shadow: 0 3px 8px rgba(255, 175, 0, 0.2);
}

#midwest-home-scope .mw-nav-dot:hover::before {
    opacity: 1;
}

#midwest-home-scope .mw-nav-dot.active {
    background: linear-gradient(135deg, var(--mw-accent) 0%, var(--mw-accent-hover) 100%);
    width: 32px;
    border-radius: 6px;
    border-color: var(--mw-accent);
    box-shadow:
        0 4px 12px rgba(255, 175, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#midwest-home-scope .mw-nav-dot.active::before {
    opacity: 0;
}

#midwest-home-scope .mw-nav-dot.active:hover {
    transform: scale(1.08);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #midwest-home-scope .mw-carousel-nav {
        gap: var(--mw-space-sm);
        margin-top: var(--mw-space-lg);
    }

    #midwest-home-scope .mw-testimonials .mw-carousel-nav {
        margin-top: 30px;
    }

    #midwest-home-scope .mw-nav-arrow {
        width: 36px;
        height: 36px;
    }

    #midwest-home-scope .mw-nav-arrow svg {
        width: 16px;
        height: 16px;
    }

    #midwest-home-scope .mw-nav-dots {
        gap: 8px;
    }

    #midwest-home-scope .mw-nav-dot {
        width: 8px;
        height: 8px;
    }

    #midwest-home-scope .mw-nav-dot.active {
        width: 24px;
    }
}

/* About Section with Parallax */
#midwest-home-scope .mw-about {
    position: relative;
    padding: var(--mw-space-3xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--mw-blue-dark);
}

#midwest-home-scope .mw-about-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120%;
    background-image: url('/images/2025/09/istockphoto-1390738888-612x612-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transform: translateZ(0);
    will-change: transform;
}


/* Calculator Section */
#midwest-home-scope .mw-calculator {
    padding: var(--mw-space-3xl) 0;
    background: linear-gradient(to bottom, white, var(--mw-bg-alt));
    position: relative;
}

/* Two-column grid layout */
#midwest-home-scope .mw-calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mw-space-2xl);
    margin-top: var(--mw-space-xl);
    align-items: start;
}

@media (max-width: 992px) {
    #midwest-home-scope .mw-calculator-grid {
        grid-template-columns: 1fr;
        gap: var(--mw-space-xl);
    }
}

#midwest-home-scope .mw-calculator-container {
    background: white;
    border-radius: var(--mw-radius-xl);
    box-shadow: var(--mw-shadow-xl);
    overflow: hidden;
}

#midwest-home-scope .mw-calculator-header {
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-light));
    padding: var(--mw-space-lg);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

#midwest-home-scope .mw-calculator-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

#midwest-home-scope .mw-calculator-header h3 {
    color: white;
    margin-bottom: var(--mw-space-xs);
    position: relative;
    z-index: 1;
}

#midwest-home-scope .mw-calculator-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--mw-text-sm);
    position: relative;
    z-index: 1;
}

#midwest-home-scope .mw-calculator-body {
    padding: var(--mw-space-lg);
}

#midwest-home-scope .mw-calc-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--mw-space-lg);
}

#midwest-home-scope .mw-calc-step {
    flex: 1;
    text-align: center;
    position: relative;
}

#midwest-home-scope .mw-calc-step::after {
    content: "";
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--mw-border);
}

#midwest-home-scope .mw-calc-step:last-child::after {
    display: none;
}

#midwest-home-scope .mw-calc-step-circle {
    width: 40px;
    height: 40px;
    background: var(--mw-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--mw-space-xs);
    font-weight: 700;
    color: var(--mw-text-light);
    position: relative;
    z-index: 1;
    transition: var(--mw-transition);
}

#midwest-home-scope .mw-calc-step.active .mw-calc-step-circle {
    background: var(--mw-accent);
    color: var(--mw-blue);
}

#midwest-home-scope .mw-calc-step.completed .mw-calc-step-circle {
    background: var(--mw-success);
    color: white;
}

#midwest-home-scope .mw-calc-step-label {
    font-size: var(--mw-text-xs);
    color: var(--mw-text-light);
}

#midwest-home-scope .mw-calc-form {
    display: grid;
    gap: var(--mw-space-md);
}

#midwest-home-scope .mw-form-group {
    display: grid;
    gap: var(--mw-space-xs);
}

#midwest-home-scope .mw-form-label {
    font-weight: 600;
    color: var(--mw-blue);
    font-size: var(--mw-text-sm);
}

#midwest-home-scope .mw-form-input,
#midwest-home-scope .mw-form-select {
    width: 100%;
    padding: var(--mw-space-sm);
    border: 2px solid var(--mw-border);
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-base);
    transition: var(--mw-transition);
    background: white;
}

#midwest-home-scope .mw-form-input:focus,
#midwest-home-scope .mw-form-select:focus {
    outline: none;
    border-color: var(--mw-accent);
    box-shadow: 0 0 0 3px rgba(255,175,0,0.1);
}

#midwest-home-scope .mw-calc-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mw-space-sm);
}

#midwest-home-scope .mw-calc-option {
    padding: var(--mw-space-md);
    border: 2px solid var(--mw-border);
    border-radius: var(--mw-radius-md);
    cursor: pointer;
    transition: var(--mw-transition);
    text-align: center;
    background: white;
    position: relative;
}

#midwest-home-scope .mw-calc-option:hover {
    border-color: var(--mw-accent);
    transform: translateY(-2px);
    box-shadow: var(--mw-shadow-md);
}

#midwest-home-scope .mw-calc-option.selected {
    background: rgba(255, 175, 0, 0.1);
    border-color: var(--mw-accent);
}

#midwest-home-scope .mw-calc-option-name {
    font-weight: 600;
    color: var(--mw-blue);
    margin-bottom: var(--mw-space-xs);
}

#midwest-home-scope .mw-calc-option-price {
    font-size: var(--mw-text-sm);
    color: var(--mw-text-light);
}

/* Tooltip Info Icon */
#midwest-home-scope .mw-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(47, 72, 88, 0.1);
    border-radius: 50%;
    font-size: 12px;
    color: var(--mw-blue);
    cursor: help;
    position: relative;
}

#midwest-home-scope .mw-info-icon:hover {
    background: var(--mw-accent);
    color: white;
}

/* Tooltip */
#midwest-home-scope .mw-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--mw-blue);
    color: white;
    padding: var(--mw-space-sm);
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--mw-transition);
    z-index: 100;
    pointer-events: none;
    box-shadow: var(--mw-shadow-lg);
}

#midwest-home-scope .mw-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--mw-blue);
}

#midwest-home-scope .mw-info-icon:hover .mw-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Trust & Context Panel */
#midwest-home-scope .mw-trust-panel {
    display: flex;
    flex-direction: column;
    gap: var(--mw-space-md);
}

#midwest-home-scope .mw-trust-card {
    background: white;
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
    transition: var(--mw-transition);
}

#midwest-home-scope .mw-trust-card:hover {
    box-shadow: var(--mw-shadow-md);
    transform: translateY(-2px);
}

#midwest-home-scope .mw-trust-card h4 {
    color: var(--mw-blue);
    font-size: var(--mw-text-lg);
    margin-bottom: var(--mw-space-sm);
    display: flex;
    align-items: center;
    gap: var(--mw-space-xs);
}

#midwest-home-scope .mw-trust-card-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 175, 0, 0.15), rgba(255, 175, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mw-accent);
    font-size: 1.1rem;
}

#midwest-home-scope .mw-trust-card p {
    color: var(--mw-text-light);
    font-size: var(--mw-text-sm);
    line-height: 1.6;
    margin: 0;
}

#midwest-home-scope .mw-trust-card ul {
    list-style: none;
    margin: var(--mw-space-sm) 0 0 0;
    padding: 0;
}

#midwest-home-scope .mw-trust-card li {
    color: var(--mw-text);
    font-size: var(--mw-text-sm);
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
}

#midwest-home-scope .mw-trust-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mw-accent);
    font-weight: 700;
}

/* Speed Badge */
#midwest-home-scope .mw-speed-badge {
    background: linear-gradient(135deg, rgba(255, 175, 0, 0.12), rgba(255, 175, 0, 0.08));
    border: 1px solid rgba(255, 175, 0, 0.3);
    border-radius: var(--mw-radius-md);
    padding: var(--mw-space-sm);
    text-align: center;
    margin-top: var(--mw-space-sm);
}

#midwest-home-scope .mw-speed-badge-text {
    color: var(--mw-accent-dark);
    font-weight: 600;
    font-size: var(--mw-text-sm);
}

/* Rating Display */
#midwest-home-scope .mw-rating-display {
    display: flex;
    align-items: center;
    gap: var(--mw-space-xs);
    margin-top: var(--mw-space-sm);
}

#midwest-home-scope .mw-stars {
    color: var(--mw-accent);
    font-size: 1.2rem;
}

#midwest-home-scope .mw-rating-text {
    color: var(--mw-text-light);
    font-size: var(--mw-text-sm);
}

#midwest-home-scope .mw-form-textarea {
    width: 100%;
    padding: var(--mw-space-sm);
    border: 2px solid var(--mw-border);
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-base);
    transition: var(--mw-transition);
    background: white;
    font-family: inherit;
    resize: vertical;
}

#midwest-home-scope .mw-form-textarea:focus {
    outline: none;
    border-color: var(--mw-accent);
    box-shadow: 0 0 0 3px rgba(255,175,0,0.1);
}

#midwest-home-scope .mw-calc-result {
    background: linear-gradient(135deg, rgba(255,175,0,0.1) 0%, rgba(255,175,0,0.05) 100%);
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-lg);
    text-align: center;
    margin-top: var(--mw-space-lg);
    display: none;
}

#midwest-home-scope .mw-calc-result.show {
    display: block;
    animation: mwFadeIn 0.5s ease-out;
}

#midwest-home-scope .mw-success-icon {
    width: 64px;
    height: 64px;
    background: var(--mw-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--mw-text-3xl);
    font-weight: 700;
    margin: 0 auto var(--mw-space-md);
    box-shadow: 0 4px 12px rgba(90, 138, 94, 0.3);
}

#midwest-home-scope .mw-calc-result h3 {
    margin-bottom: var(--mw-space-sm);
}

#midwest-home-scope .mw-calc-price {
    font-size: var(--mw-text-4xl);
    font-weight: 800;
    color: var(--mw-accent);
    margin-bottom: var(--mw-space-sm);
}

#midwest-home-scope .mw-calc-price.counting {
    animation: mwPulse 0.3s ease-in-out;
}

@keyframes mwPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#midwest-home-scope .mw-calc-disclaimer {
    font-size: var(--mw-text-sm);
    color: var(--mw-text-light);
    margin-bottom: var(--mw-space-md);
}

/* Comparison Table */
#midwest-home-scope .mw-comparison-section {
    margin-top: var(--mw-space-2xl);
    background: white;
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-xl);
    box-shadow: var(--mw-shadow);
}

#midwest-home-scope .mw-comparison-section h3 {
    text-align: center;
    margin-bottom: var(--mw-space-lg);
}

#midwest-home-scope .mw-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: var(--mw-radius-md);
    border: 1px solid var(--mw-border);
}

#midwest-home-scope .mw-comparison-table thead {
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-light));
}

#midwest-home-scope .mw-comparison-table th {
    color: white;
    padding: var(--mw-space-md);
    font-weight: 600;
    text-align: left;
    font-size: var(--mw-text-base);
}

#midwest-home-scope .mw-comparison-table th:first-child {
    width: 40%;
}

#midwest-home-scope .mw-comparison-table tbody tr {
    border-bottom: 1px solid var(--mw-border);
}

#midwest-home-scope .mw-comparison-table tbody tr:last-child {
    border-bottom: none;
}

#midwest-home-scope .mw-comparison-table tbody tr:nth-child(even) {
    background: rgba(249, 249, 244, 0.5);
}

#midwest-home-scope .mw-comparison-table td {
    padding: var(--mw-space-md);
    font-size: var(--mw-text-sm);
    vertical-align: top;
}

#midwest-home-scope .mw-comparison-table .mw-check {
    color: var(--mw-success);
    font-weight: 700;
    font-size: 1.2rem;
}

#midwest-home-scope .mw-comparison-table .mw-cross {
    color: #C4605A;
    font-weight: 700;
    font-size: 1.2rem;
}

#midwest-home-scope .mw-comparison-table .mw-highlight {
    background: linear-gradient(135deg, rgba(255, 175, 0, 0.08), rgba(255, 175, 0, 0.04));
    font-weight: 600;
}

/* FAQ Section */
#midwest-home-scope .mw-faq-section {
    margin-top: var(--mw-space-xl);
    background: white;
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-xl);
    box-shadow: var(--mw-shadow);
}

#midwest-home-scope .mw-faq-section h3 {
    text-align: center;
    margin-bottom: var(--mw-space-lg);
}

#midwest-home-scope .mw-faq-item {
    border: 1px solid var(--mw-border);
    border-radius: var(--mw-radius-md);
    margin-bottom: var(--mw-space-sm);
    overflow: hidden;
    transition: var(--mw-transition);
}

#midwest-home-scope .mw-faq-item:hover {
    box-shadow: var(--mw-shadow-md);
}

#midwest-home-scope .mw-faq-question {
    width: 100%;
    text-align: left;
    background: white;
    border: none;
    padding: var(--mw-space-md);
    font-weight: 600;
    color: var(--mw-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--mw-transition);
    font-size: var(--mw-text-base);
}

#midwest-home-scope .mw-faq-question:hover {
    background: rgba(255, 175, 0, 0.05);
}

#midwest-home-scope .mw-faq-icon {
    color: var(--mw-accent);
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

#midwest-home-scope .mw-faq-item.active .mw-faq-icon {
    transform: rotate(180deg);
}

#midwest-home-scope .mw-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--mw-space-md);
}

#midwest-home-scope .mw-faq-item.active .mw-faq-answer {
    max-height: 500px;
    padding: 0 var(--mw-space-md) var(--mw-space-md);
}

#midwest-home-scope .mw-faq-answer p {
    color: var(--mw-text-light);
    line-height: 1.6;
    font-size: var(--mw-text-sm);
    margin: 0;
}

/* Room Size Helper */
#midwest-home-scope .mw-room-helper {
    font-size: var(--mw-text-xs);
    color: var(--mw-text-light);
    font-style: italic;
    margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 992px) {
    #midwest-home-scope .mw-comparison-table {
        font-size: var(--mw-text-xs);
    }

    #midwest-home-scope .mw-comparison-table th,
    #midwest-home-scope .mw-comparison-table td {
        padding: var(--mw-space-sm);
    }
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-calc-options {
        grid-template-columns: 1fr;
    }

    #midwest-home-scope .mw-calc-steps {
        gap: var(--mw-space-xs);
    }

    #midwest-home-scope .mw-calc-step-label {
        font-size: 0.625rem;
    }

    #midwest-home-scope .mw-comparison-section,
    #midwest-home-scope .mw-faq-section {
        padding: var(--mw-space-md);
    }

    #midwest-home-scope .mw-comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #midwest-home-scope .mw-comparison-table thead,
    #midwest-home-scope .mw-comparison-table tbody,
    #midwest-home-scope .mw-comparison-table th,
    #midwest-home-scope .mw-comparison-table td,
    #midwest-home-scope .mw-comparison-table tr {
        display: block;
    }

    #midwest-home-scope .mw-comparison-table thead {
        display: none;
    }

    #midwest-home-scope .mw-comparison-table tr {
        margin-bottom: var(--mw-space-md);
        border: 1px solid var(--mw-border);
        border-radius: var(--mw-radius-md);
        padding: var(--mw-space-sm);
    }

    #midwest-home-scope .mw-comparison-table td {
        padding: var(--mw-space-xs) 0;
        position: relative;
        padding-left: 50%;
    }

    #midwest-home-scope .mw-comparison-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 48%;
        font-weight: 600;
        color: var(--mw-blue);
    }
}

/* Approach Section - Mako-Inspired Design */
#midwest-home-scope .mw-approach {
    padding: var(--mw-space-3xl) 0 calc(var(--mw-space-3xl) + var(--mw-space-lg));
    background: linear-gradient(180deg, #ffffff 0%, #F9F9F4 100%);
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
#midwest-home-scope .mw-approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(34, 54, 67, 0.5) 35px, rgba(34, 54, 67, 0.5) 70px);
    pointer-events: none;
}

#midwest-home-scope .mw-approach .mw-container {
    position: relative;
}

#midwest-home-scope .mw-approach .mw-section-header {
    margin-bottom: var(--mw-space-3xl);
}

/* Process Timeline */
#midwest-home-scope .mw-process-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Connection Line */
#midwest-home-scope .mw-timeline-line {
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, #E6E6D1 0%, var(--mw-accent) 25%, var(--mw-accent) 75%, #E6E6D1 100%);
    z-index: 1;
}

/* Process Cards Container */
#midwest-home-scope .mw-process-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--mw-space-lg);
    position: relative;
    z-index: 2;
}

#midwest-home-scope .mw-process-card {
    position: relative;
}

/* Phase Circle */
#midwest-home-scope .mw-phase-circle {
    width: 120px;
    height: 120px;
    background: white;
    border: 3px solid var(--mw-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 175, 0, 0.15);
}

#midwest-home-scope .mw-phase-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 175, 0, 0.25);
}

#midwest-home-scope .mw-phase-label {
    font-family: 'system-ui', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--mw-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

#midwest-home-scope .mw-phase-number {
    font-family: 'system-ui', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--mw-accent);
    line-height: 1;
}

/* Card Content */
#midwest-home-scope .mw-card-content {
    background: white;
    padding: 30px 24px 28px;
    border-radius: var(--mw-radius-xl);
    box-shadow: var(--mw-shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

#midwest-home-scope .mw-card-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--mw-shadow-xl);
    border-color: rgba(255, 175, 0, 0.2);
}

/* Progress Indicator */
#midwest-home-scope .mw-progress-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mw-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#midwest-home-scope .mw-card-content:hover .mw-progress-indicator {
    transform: scaleX(1);
}

#midwest-home-scope .mw-process-title {
    margin-bottom: 14px;
    color: var(--mw-blue);
    font-size: var(--mw-text-xl);
    font-weight: 700;
    line-height: 1.25;
}

#midwest-home-scope .mw-duration-badge {
    display: inline-block;
    background: rgba(255, 175, 0, 0.1);
    color: var(--mw-accent-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#midwest-home-scope .mw-process-description {
    color: var(--mw-text-light);
    line-height: 1.65;
    font-size: 15px;
    flex-grow: 1;
    margin: 0;
    font-weight: 400;
}

/* Animation on scroll */
#midwest-home-scope .mw-process-card {
    opacity: 0;
    transform: translateY(30px);
    animation: mwFadeIn 0.8s ease-out forwards;
}

#midwest-home-scope .mw-process-card:nth-child(1) {
    animation-delay: 0.2s;
}

#midwest-home-scope .mw-process-card:nth-child(2) {
    animation-delay: 0.4s;
}

#midwest-home-scope .mw-process-card:nth-child(3) {
    animation-delay: 0.6s;
}

#midwest-home-scope .mw-process-card:nth-child(4) {
    animation-delay: 0.8s;
}

/* Responsive Design */
@media (max-width: 1200px) {
    #midwest-home-scope .mw-process-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mw-space-lg);
    }

    #midwest-home-scope .mw-timeline-line {
        display: none;
    }
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-approach {
        padding: calc(var(--mw-space-2xl) + var(--mw-space-md)) 0 var(--mw-space-3xl);
    }

    #midwest-home-scope .mw-process-cards {
        grid-template-columns: 1fr;
        gap: var(--mw-space-xl);
        max-width: 500px;
        margin: 0 auto;
    }

    #midwest-home-scope .mw-phase-circle {
        width: 100px;
        height: 100px;
    }

    #midwest-home-scope .mw-phase-number {
        font-size: 28px;
    }

    #midwest-home-scope .mw-phase-label {
        font-size: 12px;
    }

    #midwest-home-scope .mw-card-content {
        padding: 24px 20px 22px;
        height: auto;
        min-height: 240px;
    }

    #midwest-home-scope .mw-process-title {
        font-size: var(--mw-text-lg);
        margin-bottom: 12px;
    }

    #midwest-home-scope .mw-duration-badge {
        padding: 5px 12px;
        font-size: 10px;
        margin-bottom: 16px;
    }

    #midwest-home-scope .mw-process-description {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #midwest-home-scope .mw-process-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    #midwest-home-scope .mw-card-content:hover,
    #midwest-home-scope .mw-phase-circle:hover {
        transform: none;
    }

    #midwest-home-scope .mw-progress-indicator {
        transform: scaleX(1);
    }
}

/* Project Portfolio Excellence Section */
#midwest-home-scope .mw-projects-portfolio {
    padding: var(--mw-space-3xl) 0;
    background: var(--mw-bg);
}

#midwest-home-scope .mw-projects-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--mw-space-lg);
    margin-top: var(--mw-space-xl);
}

#midwest-home-scope .mw-portfolio-card {
    position: relative;
    background: white;
    border-radius: var(--mw-radius-lg);
    overflow: hidden;
    box-shadow: var(--mw-shadow-md);
    transition: var(--mw-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

#midwest-home-scope .mw-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--mw-shadow-xl);
}

#midwest-home-scope .mw-portfolio-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--mw-bg-alt);
}

#midwest-home-scope .mw-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

#midwest-home-scope .mw-portfolio-card:hover .mw-portfolio-image img {
    transform: scale(1.1);
}

#midwest-home-scope .mw-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(47, 72, 88, 0.2) 0%,
        rgba(47, 72, 88, 0.85) 60%,
        rgba(47, 72, 88, 0.95) 100%
    );
    padding: var(--mw-space-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    opacity: 0;
    transition: var(--mw-transition);
}

#midwest-home-scope .mw-portfolio-card:hover .mw-portfolio-overlay {
    opacity: 1;
}

#midwest-home-scope .mw-portfolio-badge {
    position: absolute;
    top: var(--mw-space-sm);
    right: var(--mw-space-sm);
    background: rgba(255, 175, 0, 0.95);
    color: var(--mw-blue);
    padding: 6px 12px;
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#midwest-home-scope .mw-portfolio-overlay h3 {
    color: white;
    font-size: var(--mw-text-2xl);
    margin-bottom: var(--mw-space-xs);
}

#midwest-home-scope .mw-portfolio-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--mw-text-sm);
    line-height: 1.5;
    margin-bottom: var(--mw-space-sm);
}

#midwest-home-scope .mw-portfolio-cta {
    color: var(--mw-accent);
    font-weight: 600;
    font-size: var(--mw-text-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #midwest-home-scope .mw-projects-portfolio-grid {
        grid-template-columns: 1fr;
    }

    #midwest-home-scope .mw-portfolio-image {
        height: 250px;
    }
}

/* Suppliers Section - Professional Layout */
#midwest-home-scope .mw-suppliers {
    padding: var(--mw-space-3xl) 0;
    background: var(--mw-bg-alt);
}

/* Force WordPress theme overrides */
#midwest-home-scope .mw-suppliers,
#midwest-home-scope .mw-suppliers * {
    box-sizing: border-box !important;
}

#midwest-home-scope .mw-suppliers-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--mw-space-lg) !important;
    margin: var(--mw-space-2xl) auto !important;
    max-width: 1200px !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    flex: none !important;
    float: none !important;
    position: relative !important;
}

#midwest-home-scope .mw-supplier-card {
    background: white !important;
    border: 2px solid var(--mw-border) !important;
    border-radius: var(--mw-radius-md) !important;
    overflow: visible !important;
    transition: var(--mw-transition) !important;
    position: relative !important;
    cursor: pointer !important;
    box-shadow: var(--mw-shadow) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: var(--mw-space-lg) !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

#midwest-home-scope .mw-supplier-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mw-shadow-lg);
    border-color: var(--mw-accent);
}

#midwest-home-scope .mw-supplier-icon {
    width: 100% !important;
    min-height: 120px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: var(--mw-space-sm) !important;
    padding: var(--mw-space-md) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
    flex: 1 !important;
}

#midwest-home-scope .mw-supplier-icon img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: var(--mw-transition) !important;
    opacity: 0.85 !important;
    display: block !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    border: none !important;
    outline: none !important;
    image-rendering: auto !important;
}

#midwest-home-scope .mw-supplier-card:hover .mw-supplier-icon img {
    transform: scale(1.05);
    opacity: 1;
}

#midwest-home-scope .mw-supplier-info {
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

#midwest-home-scope .mw-supplier-info h4 {
    font-size: var(--mw-text-sm) !important;
    font-weight: 600 !important;
    color: var(--mw-text-light) !important;
    margin: 0 !important;
    transition: var(--mw-transition) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    text-align: center !important;
}

#midwest-home-scope .mw-supplier-card:hover .mw-supplier-info h4 {
    color: var(--mw-blue);
}

#midwest-home-scope .mw-suppliers-cta {
    text-align: center;
    background: white;
    border: 2px solid var(--mw-border);
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-2xl) var(--mw-space-xl);
    margin-top: var(--mw-space-2xl);
    box-shadow: var(--mw-shadow-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#midwest-home-scope .mw-suppliers-cta h3 {
    font-size: var(--mw-text-2xl);
    font-weight: 700;
    color: var(--mw-blue);
    margin: 0 0 var(--mw-space-sm);
}

#midwest-home-scope .mw-suppliers-cta p {
    font-size: var(--mw-text-lg);
    color: var(--mw-text-light);
    margin-bottom: var(--mw-space-lg);
}

/* WordPress Theme Override Protection */
#midwest-home-scope .mw-suppliers-grid *,
#midwest-home-scope .mw-suppliers-grid *::before,
#midwest-home-scope .mw-suppliers-grid *::after {
    box-sizing: border-box !important;
}

#midwest-home-scope .mw-supplier-card img,
#midwest-home-scope .mw-supplier-icon img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block !important;
    background: transparent !important;
    outline: none !important;
    image-rendering: auto !important;
    shape-margin: 0 !important;
    shape-outside: none !important;
}
/* WordPress responsive image class overrides */
#midwest-home-scope .mw-supplier-icon .wp-image,
#midwest-home-scope .mw-supplier-icon .size-full,
#midwest-home-scope .mw-supplier-icon .size-large,
#midwest-home-scope .mw-supplier-icon .size-medium,
#midwest-home-scope .mw-supplier-icon .size-thumbnail,
#midwest-home-scope .mw-supplier-icon .attachment-full,
#midwest-home-scope .mw-supplier-icon .attachment-large,
#midwest-home-scope .mw-supplier-icon .attachment-medium,
#midwest-home-scope .mw-supplier-icon .attachment-thumbnail {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    width: auto !important;
    flex: none !important;
    grid-area: initial !important;
    align-self: center !important;
    justify-self: center !important;
}

/* WordPress container and theme overrides */
#midwest-home-scope .mw-suppliers .wp-block-group,
#midwest-home-scope .mw-suppliers .wp-block-columns,
#midwest-home-scope .mw-suppliers .wp-block-column,
#midwest-home-scope .mw-suppliers .container,
#midwest-home-scope .mw-suppliers .container-fluid {
    max-width: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    display: contents !important;
}

/* Force WordPress theme card resets */
#midwest-home-scope .mw-supplier-card {
    flex: none !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    grid-area: initial !important;
    align-self: stretch !important;
    justify-self: stretch !important;
    contain: none !important;
}

/* WordPress theme container clipping fixes */
#midwest-home-scope .mw-suppliers .container,
#midwest-home-scope .mw-suppliers .container-fluid,
#midwest-home-scope .mw-suppliers .mw-container {
    overflow: visible !important;
    clip: none !important;
    clip-path: none !important;
}

/* WordPress image lazy loading fixes */
#midwest-home-scope .mw-supplier-icon img[loading="lazy"],
#midwest-home-scope .mw-supplier-icon img[loading="lazy"],
#midwest-home-scope .mw-supplier-icon img[data-lazy] {
    opacity: 1 !important;
    opacity: 1 !important;
    filter: none !important;
}
    contain: layout;
}

#midwest-home-scope .mw-service-card,
#midwest-home-scope .mw-testimonial-card {
    contain: layout style;
}

#midwest-home-scope .mw-supplier-card {
    contain: none;
}

#midwest-home-scope .mw-trust-carousel,
#midwest-home-scope .mw-suppliers-grid {
    contain: layout;
}

/* Improve image rendering */
#midwest-home-scope img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Optimize animations */
#midwest-home-scope * {
    will-change: auto;
}

#midwest-home-scope .mw-service-card:hover,
#midwest-home-scope .mw-supplier-card:hover {
    will-change: transform;
}

@media (max-width: 992px) {
    #midwest-home-scope .mw-suppliers-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: var(--mw-space-md) !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-suppliers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--mw-space-md) !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }

    #midwest-home-scope .mw-supplier-card {
        min-height: 160px !important;
        padding: var(--mw-space-md) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #midwest-home-scope .mw-supplier-icon {
        min-height: 100px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        padding: var(--mw-space-sm) !important;
        flex: 1 !important;
    }

    #midwest-home-scope .mw-supplier-icon img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        border: none !important;
    }
}

@media (max-width: 480px) {
    #midwest-home-scope .mw-suppliers-grid {
        grid-template-columns: 1fr !important;
        gap: var(--mw-space-md) !important;
        padding: 0 var(--mw-space-sm) !important;
        max-width: 100% !important;
        overflow-x: visible !important;
    }

    #midwest-home-scope .mw-supplier-card {
        min-height: 120px !important;
        padding: var(--mw-space-sm) !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    #midwest-home-scope .mw-supplier-icon {
        min-height: 80px !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        padding: var(--mw-space-xs) !important;
        flex: 1 !important;
    }

    #midwest-home-scope .mw-supplier-icon img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        border: none !important;
    }
}

/* CTA Section */
#midwest-home-scope .mw-cta {
    padding: var(--mw-space-3xl) 0 0 0;
    background: linear-gradient(135deg, var(--mw-blue) 0%, var(--mw-blue-dark) 100%);
    text-align: center;
    color: white;
}

#midwest-home-scope .mw-cta h2 {
    color: white;
    margin-bottom: var(--mw-space-md);
}

#midwest-home-scope .mw-cta-subtitle {
    font-size: var(--mw-text-lg);
    margin-bottom: var(--mw-space-xl);
    opacity: 0.95;
}

#midwest-home-scope .mw-cta-buttons {
    display: flex;
    gap: var(--mw-space-md);
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: var(--mw-space-3xl);
}

#midwest-home-scope .mw-phone-number {
    display: inline-flex;
    align-items: center;
    gap: var(--mw-space-xs);
    font-size: var(--mw-text-2xl);
    font-weight: 700;
    color: var(--mw-accent);
    margin-top: var(--mw-space-lg);
}


/* Responsive Design */
@media (max-width: 768px) {
    #midwest-home-scope .mw-hero {
        min-height: 60vh;
    }

    #midwest-home-scope .mw-categories-grid,
    #midwest-home-scope .mw-services-grid,
    #midwest-home-scope .mw-testimonials-grid {
        grid-template-columns: 1fr;
    }


    #midwest-home-scope .mw-trust-carousel::before,
    #midwest-home-scope .mw-trust-carousel::after {
        width: 50px;
    }
}

/* Service Guarantee Section */
#midwest-home-scope .mw-guarantee {
    padding: var(--mw-space-3xl) 0;
    background: var(--mw-blue-dark);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

#midwest-home-scope .mw-guarantee-bg {
    position: absolute;
    top: -20%;
    left: -5%;
    width: 110%;
    height: 160%;
    object-fit: cover;
    object-position: center top;
    transform: translateZ(0) translateY(0) scale(1.05);
    transform-origin: center center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
}

#midwest-home-scope .mw-guarantee::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(47, 72, 88, 0.88) 0%,
        rgba(47, 72, 88, 0.80) 30%,
        rgba(47, 72, 88, 0.72) 60%,
        rgba(47, 72, 88, 0.85) 100%
    );
    z-index: 1;
}

#midwest-home-scope .mw-guarantee .mw-container {
    position: relative;
    z-index: 2;
}

#midwest-home-scope .mw-guarantee .mw-section-header {
    margin-bottom: var(--mw-space-2xl);
    text-align: center;
}

#midwest-home-scope .mw-guarantee .mw-section-header h2 {
    color: white;
}

#midwest-home-scope .mw-guarantee .mw-section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--mw-text-xl);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Enhanced parallax smoothness for guarantee section */
@media (min-width: 769px) {
    #midwest-home-scope .mw-guarantee {
        will-change: transform;
        transform: translateZ(0);
    }

    #midwest-home-scope .mw-guarantee-bg {
        /* No transition - handled by JS for smooth parallax */
        transition: none;
    }
}

/* Ensure content stays crisp during parallax */
#midwest-home-scope .mw-guarantee .mw-container {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Mobile fallback - fixed background when parallax is disabled */
@media (max-width: 768px) {
    #midwest-home-scope .mw-guarantee-bg {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-position: center center;
        transform: scale(1.1);
    }
}

#midwest-home-scope .mw-guarantee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--mw-space-lg);
    margin-top: var(--mw-space-2xl);
    position: relative;
    z-index: 2;
}

#midwest-home-scope .mw-guarantee-feature {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 175, 0, 0.2);
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-lg);
    transition: var(--mw-transition);
    text-align: center;
}

#midwest-home-scope .mw-guarantee-feature:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--mw-accent);
    box-shadow: 0 12px 32px rgba(255, 175, 0, 0.2);
}

#midwest-home-scope .mw-guarantee-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg,
        rgba(255, 175, 0, 0.25),
        rgba(255, 175, 0, 0.15)
    );
    border: 2px solid rgba(255, 175, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mw-accent);
    font-size: var(--mw-text-3xl);
    margin: 0 auto var(--mw-space-md);
    box-shadow:
        0 4px 8px rgba(255, 175, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: all var(--mw-transition);
}

#midwest-home-scope .mw-guarantee-feature:hover .mw-guarantee-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg,
        rgba(255, 175, 0, 0.35),
        rgba(255, 175, 0, 0.25)
    );
    box-shadow:
        0 8px 16px rgba(255, 175, 0, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

#midwest-home-scope .mw-guarantee-feature h4 {
    color: white;
    font-size: var(--mw-text-lg);
    font-weight: 700;
    margin-bottom: var(--mw-space-sm);
    line-height: 1.3;
}

#midwest-home-scope .mw-guarantee-feature p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--mw-text-sm);
    line-height: 1.6;
    margin: 0;
}

#midwest-home-scope .mw-guarantee-cta {
    text-align: center;
    margin-top: var(--mw-space-2xl);
    position: relative;
    z-index: 2;
}

#midwest-home-scope .mw-guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 175, 0, 0.12);
    border: 1px solid rgba(255, 175, 0, 0.3);
    border-radius: 50px;
    padding: 6px 14px;
    color: var(--mw-accent);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--mw-space-sm);
    box-shadow: 0 2px 8px rgba(255, 175, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#midwest-home-scope .mw-guarantee-badge-icon {
    font-size: 0.875rem;
}

@media (max-width: 992px) {
    #midwest-home-scope .mw-guarantee-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--mw-space-md);
    }
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-guarantee {
        padding: var(--mw-space-2xl) 0;
    }

    #midwest-home-scope .mw-guarantee-grid {
        grid-template-columns: 1fr;
        gap: var(--mw-space-md);
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    #midwest-home-scope .mw-guarantee-icon {
        width: 56px;
        height: 56px;
        font-size: var(--mw-text-2xl);
    }

    #midwest-home-scope .mw-guarantee-badge {
        font-size: 0.6875rem;
        padding: 5px 12px;
    }

    #midwest-home-scope .mw-guarantee-badge-icon {
        font-size: 0.75rem;
    }
}

/* Contact Form Section */
#midwest-home-scope .mw-contact-section {
    padding: var(--mw-space-3xl) 0;
    background: linear-gradient(to bottom, white, var(--mw-bg-alt));
}

/* Two-column grid layout */
#midwest-home-scope .mw-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mw-space-2xl);
    margin-top: var(--mw-space-xl);
    align-items: start;
}

#midwest-home-scope .mw-contact-form-container {
    background: white;
    border-radius: var(--mw-radius-xl);
    box-shadow: var(--mw-shadow-xl);
    overflow: hidden;
}

#midwest-home-scope .mw-contact-header {
    background: linear-gradient(135deg, var(--mw-blue), var(--mw-blue-light));
    padding: var(--mw-space-lg);
    text-align: center;
    color: white;
}

#midwest-home-scope .mw-contact-header h3 {
    color: white;
    margin-bottom: var(--mw-space-xs);
}

#midwest-home-scope .mw-contact-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--mw-text-sm);
    margin: 0;
}

#midwest-home-scope .mw-contact-body {
    padding: var(--mw-space-lg);
}

#midwest-home-scope .mw-contact-form {
    display: grid;
    gap: var(--mw-space-md);
}

#midwest-home-scope .mw-form-textarea {
    width: 100%;
    padding: var(--mw-space-sm);
    border: 2px solid var(--mw-border);
    border-radius: var(--mw-radius-md);
    font-size: var(--mw-text-base);
    transition: var(--mw-transition);
    background: white;
    font-family: inherit;
    resize: vertical;
}

#midwest-home-scope .mw-form-textarea:focus {
    outline: none;
    border-color: var(--mw-accent);
    box-shadow: 0 0 0 3px rgba(255,175,0,0.1);
}

/* Success Message */
#midwest-home-scope .mw-contact-success {
    text-align: center;
    padding: var(--mw-space-xl);
    background: linear-gradient(135deg, rgba(90, 138, 94, 0.1), rgba(90, 138, 94, 0.05));
    border-radius: var(--mw-radius-lg);
    animation: mwFadeIn 0.5s ease-out;
}

#midwest-home-scope .mw-success-icon {
    width: 64px;
    height: 64px;
    background: var(--mw-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--mw-text-3xl);
    font-weight: 700;
    margin: 0 auto var(--mw-space-md);
    box-shadow: 0 4px 12px rgba(90, 138, 94, 0.3);
}

#midwest-home-scope .mw-contact-success h4 {
    color: var(--mw-success);
    margin-bottom: var(--mw-space-sm);
}

#midwest-home-scope .mw-contact-success p {
    color: var(--mw-text);
    margin: 0;
}

/* Trust Elements Panel */
#midwest-home-scope .mw-contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: var(--mw-space-md);
}

#midwest-home-scope .mw-contact-info-card {
    background: white;
    border-radius: var(--mw-radius-lg);
    padding: var(--mw-space-lg);
    box-shadow: var(--mw-shadow);
    border: 1px solid var(--mw-border);
    transition: var(--mw-transition);
}

#midwest-home-scope .mw-contact-info-card:hover {
    box-shadow: var(--mw-shadow-md);
    transform: translateY(-2px);
}

#midwest-home-scope .mw-contact-highlight {
    background: linear-gradient(135deg, rgba(255, 175, 0, 0.08), rgba(255, 175, 0, 0.04));
    border: 2px solid rgba(255, 175, 0, 0.3);
}

#midwest-home-scope .mw-contact-info-card h4 {
    color: var(--mw-blue);
    font-size: var(--mw-text-lg);
    margin-bottom: var(--mw-space-sm);
    display: flex;
    align-items: center;
    gap: var(--mw-space-xs);
}

#midwest-home-scope .mw-contact-icon {
    font-size: 1.5rem;
}

#midwest-home-scope .mw-contact-phone-link {
    display: block;
    font-size: var(--mw-text-3xl);
    font-weight: 700;
    color: var(--mw-accent);
    text-decoration: none;
    margin-bottom: var(--mw-space-md);
    transition: var(--mw-transition);
}

#midwest-home-scope .mw-contact-phone-link:hover {
    color: var(--mw-accent-hover);
    transform: scale(1.02);
}

#midwest-home-scope .mw-contact-hours {
    color: var(--mw-text-light);
    font-size: var(--mw-text-sm);
    line-height: 1.8;
    margin: 0;
}

#midwest-home-scope .mw-contact-hours strong {
    color: var(--mw-blue);
}

#midwest-home-scope .mw-contact-info-card p {
    color: var(--mw-text-light);
    font-size: var(--mw-text-sm);
    line-height: 1.6;
    margin-bottom: var(--mw-space-sm);
}

#midwest-home-scope .mw-service-area-list,
#midwest-home-scope .mw-guarantee-list {
    list-style: none;
    margin: var(--mw-space-sm) 0 0 0;
    padding: 0;
}

#midwest-home-scope .mw-service-area-list li,
#midwest-home-scope .mw-guarantee-list li {
    color: var(--mw-text);
    font-size: var(--mw-text-sm);
    line-height: 1.8;
    padding-left: 24px;
    position: relative;
}

#midwest-home-scope .mw-service-area-list li::before,
#midwest-home-scope .mw-guarantee-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--mw-accent);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    #midwest-home-scope .mw-contact-grid {
        grid-template-columns: 1fr;
        gap: var(--mw-space-xl);
    }

    #midwest-home-scope .mw-contact-phone-link {
        font-size: var(--mw-text-2xl);
    }
}

@media (max-width: 768px) {
    #midwest-home-scope .mw-contact-section {
        padding: var(--mw-space-2xl) 0;
    }

    #midwest-home-scope .mw-contact-body {
        padding: var(--mw-space-md);
    }

    #midwest-home-scope .mw-contact-phone-link {
        font-size: var(--mw-text-xl);
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    #midwest-home-scope * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #midwest-home-scope .mw-carousel-track {
        animation: none;
    }
}

/* Include the minimal styles from midwest-homepage.css */
/* Homepage Consultation Form Enhancements */
.mw-btn-submit .mw-btn-loading {
    display: none;
}

.mw-btn-submit.loading .mw-btn-text {
    display: none;
}

.mw-btn-submit.loading .mw-btn-loading {
    display: inline;
}

.mw-btn-submit.loading {
    pointer-events: none;
    opacity: 0.85;
}

.mw-form-alert {
    display: none;
    margin: 16px 0 24px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #F9E8E6;
    border: 1px solid #E8C4C2;
    color: #8B4742;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mw-form-alert.active {
    display: block;
}