/*
 * Windows Page Specific Styles
 * Dedicated CSS for the Windows Page Template
 */

/* Wide container for main content areas */
.wide-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    text-align: center;
    width: 100% !important;
}

/* Responsive container padding */
@media (max-width: 1440px) {
    .wide-container {
        max-width: 1200px !important;
    }
}

@media (max-width: 1200px) {
    .wide-container {
        max-width: 100% !important;
        padding: 0 30px !important;
    }
}

@media (max-width: 768px) {
    .wide-container {
        padding: 0 20px !important;
    }
}

@media (max-width: 480px) {
    .wide-container {
        padding: 0 15px !important;
    }
}

/* Ensure body and main elements don't constrain width */
body.page-template-windows-page-template,
body.page-template-window-template {
    max-width: none !important;
    width: 100% !important;
}

body.page-template-windows-page-template #primary,
body.page-template-windows-page-template .site-main,
body.page-template-windows-page-template main,
body.page-template-window-template #primary,
body.page-template-window-template .site-main,
body.page-template-window-template main {
    max-width: none !important;
    width: 100% !important;
}

/* Windows Page Specific Section Improvements */
.windows-hero .wide-container {
    max-width: 1200px !important;
}

.windows-benefits .wide-container,
.our-windows .wide-container,
.our-process .wide-container,
.testimonials .wide-container {
    max-width: 1400px !important;
}

/* Override any Elementor or theme constraints for windows page */
body.page-template-windows-page-template .elementor-container,
body.page-template-window-template .elementor-container {
    max-width: 1400px !important;
}

/* Windows Hero Section */
.windows-hero {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    min-height: 400px;
}

.windows-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.windows-hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* CTA Button Styling */
.cta-button {
    display: inline-block;
    background-color: #2A8347;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1e6b35;
    color: white;
    text-decoration: none;
}

/* Benefits Section */
.windows-benefits {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.windows-benefits h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #031a31;
}

.windows-benefits .benefit-item {
    flex: 1 1 300px;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.windows-benefits .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.windows-benefits .benefit-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.windows-benefits .benefit-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #031a31;
}

/* Our Windows Section */
.our-windows {
    padding: 60px 0;
}

.our-windows h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #031a31;
}

.our-windows .window-type {
    flex: 1 1 45%;
    min-width: 300px;
}

.our-windows .window-type img {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.our-windows .window-type img:hover {
    transform: scale(1.02);
}

.our-windows .window-type h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #031a31;
}

/* Brands Section */
.brands-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.brands-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #031a31;
}

.brands-section .brand-logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.brands-section .brand-logo:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

.brands-section .brand-logo img {
    max-width: 200px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: filter 0.3s ease;
}

.brands-section .brand-logo:hover img {
    filter: none;
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0;
    background-color: #2A8347;
    color: white;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
    color: white;
}

/* Pricing CTA Button */
.pricing-cta-button {
    display: inline-block;
    background-color: white;
    color: #2A8347;
    padding: 18px 40px;
    font-size: 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-cta-button:hover {
    background-color: #f8f8f8;
    color: #1e6b35;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Process Section */
.our-process {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.our-process h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #031a31;
}

.our-process .process-step {
    flex: 1 1 250px;
    text-align: center;
    position: relative;
}

.our-process .step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #2A8347;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    transition: background-color 0.3s ease;
}

.our-process .process-step:hover .step-number {
    background-color: #1e6b35;
}

.our-process .process-step h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #031a31;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #031a31;
}

.testimonials .testimonial-item {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials .testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonials .stars {
    color: #2A8347;
    font-size: 24px;
    margin-bottom: 15px;
}

.testimonials .quote {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonials .author {
    font-weight: 600;
}

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background-color: #031a31;
    color: white;
}

.trust-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: white;
}

.trust-section .trust-item {
    flex: 1 1 150px;
    max-width: 200px;
    text-align: center;
    padding: 20px 10px;
    transition: transform 0.3s ease;
}

.trust-section .trust-item:hover {
    transform: translateY(-5px);
}

.trust-section .trust-icon {
    margin-bottom: 15px;
}

.trust-section .trust-icon i {
    font-size: 40px;
    color: #2A8347;
    transition: color 0.3s ease, transform 0.3s ease;
}

.trust-section .trust-item:hover .trust-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

.trust-section .trust-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2A8347;
    font-weight: 600;
    transition: color 0.3s ease;
}

.trust-section .trust-item:hover h3 {
    color: #ffffff;
}

.trust-section .trust-item p {
    font-size: 13px;
    line-height: 1.4;
    color: #d3d3d3;
}

/* Free Estimate Section */
.free-estimate {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    position: relative;
}

.free-estimate h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: #031a31;
}

.free-estimate .form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* Form Styling */
.custom-contact-form {
    background-color: white;
    padding: 0;
    border-radius: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.custom-contact-form input::placeholder,
.custom-contact-form textarea::placeholder {
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border-color: #2A8347;
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 131, 71, 0.1);
}

.custom-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.custom-contact-form button {
    background-color: #2A8347;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-contact-form button:hover {
    background-color: #1e6b35;
}

/* Responsive form layout */
@media (max-width: 768px) {
    .custom-contact-form div[style*="display: flex"] {
        flex-direction: column !important;
    }

    .custom-contact-form input[style*="flex: 1"] {
        flex: none !important;
    }
}

/* Improve spacing for wider layouts */
@media (min-width: 1200px) {
    .windows-benefits .benefit-item {
        flex: 1 1 350px;
    }

    .our-windows .window-type {
        flex: 1 1 48%;
    }

    .our-process .process-step {
        flex: 1 1 280px;
    }
}

/* Image Loading and Fallbacks */
.benefit-item img,
.window-type img {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
}

.benefit-item img:not([src]),
.window-type img:not([src]) {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f0f0f0"/><text x="50" y="50" text-anchor="middle" dy=".3em" fill="%23999">Image</text></svg>');
    background-size: cover;
    background-position: center;
}

/* Ensure all images are visible */
.benefit-item img,
.window-type img,
.trust-section .trust-icon img,
.brands-section .brand-logo img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Lazy loading support - removed opacity rules that were hiding images */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .windows-hero h1 {
        font-size: 36px;
    }

    .windows-hero p {
        font-size: 18px;
    }

    .windows-benefits h2,
    .our-windows h2,
    .brands-section h2,
    .pricing-section h2,
    .our-process h2,
    .testimonials h2 {
        font-size: 28px;
    }

    .windows-benefits .benefit-item,
    .our-windows .window-type,
    .our-process .process-step,
    .testimonials .testimonial-item,
    .trust-section .trust-item {
        flex: 1 1 100%;
    }

    .our-windows .window-type img {
        height: 200px;
    }

    .trust-section h2 {
        font-size: 28px;
    }

    .trust-section .trust-item {
        margin-bottom: 30px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        padding: 30px 20px;
    }

    /* Center the trust section container on mobile */
    .trust-section div[style*="display: flex"] {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Increase icon size on mobile for better visibility */
    .trust-section .trust-icon i {
        font-size: 50px !important;
    }

    /* Increase text size on mobile */
    .trust-section .trust-item h3 {
        font-size: 20px !important;
    }

    .trust-section .trust-item p {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* Brands section mobile */
    .brands-section .brand-logo {
        flex: 1 1 calc(50% - 30px);
        margin-bottom: 30px;
    }

    .brands-section .brand-logo img {
        max-width: 150px;
        max-height: 75px;
    }

    /* Pricing section mobile */
    .pricing-section h3 {
        font-size: 36px !important;
    }

    .pricing-section p {
        font-size: 18px !important;
    }

    .pricing-section div[style*="flex: 1 1 250px"] {
        flex: 1 1 100% !important;
        margin-bottom: 20px;
    }

    /* Pricing CTA button mobile */
    .pricing-cta-button {
        font-size: 18px !important;
        padding: 16px 30px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Medium screens - tablets and small desktops */
@media (max-width: 1024px) and (min-width: 769px) {
    .trust-section .trust-item {
        flex: 1 1 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}