/* Performance Optimizations */

/* Font fallback with size-adjust to reduce CLS when Poppins loads */
@font-face {
    font-family: 'Poppins Fallback';
    src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('sans-serif');
    ascent-override: 105%;
    descent-override: 35%;
    line-gap-override: 10%;
    size-adjust: 112%;
}

/* Prevent transitions from firing on page load - reduces non-composited animations */
.preload-transitions * {
    transition: none !important;
}

/* Font loading optimization - reduce CLS from font swap */
html {
    font-family: 'Poppins', 'Poppins Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ensure text is visible during font load */
body {
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Note: Don't set height: auto globally - it overrides explicit height attributes needed for CLS */
img {
    max-width: 100%;
    display: block;
}

/* Only apply height: auto to images without explicit height attribute */
img:not([height]) {
    height: auto;
}

/* Use will-change sparingly on elements that will animate */
.service-card:hover,
.feature-card:hover,
.partner-logo:hover {
    will-change: transform, opacity;
}

/* Remove unwanted borders */
.brxe-text-basic,
div[class*="brxe-"] {
    border: none !important;
}

/* Hide Google Places Autocomplete branding */
.pac-container::after,
.pac-logo::after,
.hdpi.pac-logo::after {
    display: none !important;
}

.pac-container {
    border-top: 1px solid #2D3748;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-top: 2px;
}

.pac-item {
    padding: 8px 12px;
    cursor: pointer;
    border: none;
}

.pac-item:hover {
    background-color: #1A1F2E;
}

/* About Us Page Styles */
.hero-section {
    background: #1A1F2E;
    color: #F7FAFC;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: #F5A623 !important;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.features-section {
    padding: 100px 0;
    background: #1A1F2E;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F7FAFC;
    text-align: center;
    margin-bottom: 3rem;
}

.feature-card {
    background: #252B3A;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #2D3748;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: block;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1.5rem;
}

.feature-description {
    font-size: 1.1rem;
    color: #CBD5E0;
    line-height: 1.6;
}

.process-section {
    padding: 100px 0;
    background: #252B3A;
}

.process-card {
    background: #1A1F2E;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    height: 100%;
    border: 2px solid #2D3748;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
    border-color: #F5A623;
    background: #252B3A;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.1);
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: block;
    object-fit: contain;
}

.process-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1.5rem;
}

.process-description {
    font-size: 1rem;
    color: #CBD5E0;
    line-height: 1.6;
}

.cta-section {
    background: #1A1F2E;
    color: #F7FAFC;
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-button {
    background: #F5A623;
    color: #F7FAFC;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #E59400;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(200, 80, 0, 0.3);
    color: #F7FAFC;
    text-decoration: none;
}

.disclosure-section {
    padding: 40px 0;
    background: #1A1F2E;
}

.disclosure-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #252B3A;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.disclosure-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #718096;
    margin-bottom: 1rem;
}

.disclosure-text {
    font-size: 0.8rem;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.disclosure-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #718096;
    margin: 1.5rem 0 0.5rem;
}

/* Force About Us Grid Layouts - More Aggressive */
.features-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
}

.features-section .row .col-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    padding: 0 4px !important;
    display: block !important;
    float: none !important;
    width: 33.333333% !important;
}

.process-section .row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -15px !important;
}

.process-section .row .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding: 0 4px !important;
    display: block !important;
    float: none !important;
    width: 25% !important;
}

@media (max-width: 992px) {
    .features-section .row .col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    .process-section .row .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    /* Contact Page Mobile Styles */
    .contact-hero-section {
        padding: 60px 0;
    }
    
    .contact-hero-title {
        font-size: 1.5rem;
    }
    
    .contact-hero-subtitle {
        font-size: 2rem;
    }
    
    .contact-hero-description {
        font-size: 1rem;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 40px 20px;
        margin: 0 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-submit-btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    /* Join Contractor Mobile Styles */
    .contractor-hero-title {
        font-size: 2rem;
    }
    
    .contractor-hero-description {
        font-size: 1.1rem;
    }
    
    .attention-title,
    .process-title {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contractor-form {
        padding: 30px 20px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card,
    .process-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .features-section .row .col-lg-4,
    .process-section .row .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Optimize image loading - simplified */

/* Remove problematic aspect-ratio rule */
/* img[width][height] {
    aspect-ratio: attr(width) / attr(height);
} */

/* Remove conflicting font loading - Font Awesome is already loaded via CDN */

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #CBD5E0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Make main content grow to push footer down */
main {
    flex: 1 0 auto;
}

/* Ensure footer stays at bottom */
footer {
    flex-shrink: 0;
}

.container {
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wider screens get slightly constrained for readability */
@media (min-width: 2000px) {
    .container {
        max-width: 1800px;
    }
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #252B3A;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

 .header-top {
     background: #1A1F2E;
     padding: 8px 0;
 }

.header-cta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.cta-text {
    font-size: 16px;
    color: #F7FAFC;
    font-weight: 500;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F7FAFC;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    background: #1A1F2E;
    padding: 8px 16px;
    border-radius: 25px;
}

.cta-phone:hover {
    background: #F5A623;
    color: #F7FAFC;
}

 .header-main {
     padding: 5px 0;
 }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

/* Common transition for interactive elements */
.nav-menu a,
.cta-phone,
.nav-menu .quote-btn,
.cta-button,
.service-card,
.state-button,
.blog-card,
.nav-column a,
.legal-links a,
.footer-hero .cta-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-menu a {
    text-decoration: none;
    color: #CBD5E0;
    font-weight: 500;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #F7FAFC;
}

.nav-menu .quote-btn {
    background: #1A1F2E;
    color: #F7FAFC;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-menu .quote-btn:hover {
    background: #1A1F2E;
    color: #F7FAFC;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #F5A623;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.8) 100%), url('images/hero/banner-1024x484.webp') center center/cover no-repeat !important;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1F2E;
    margin: 0 auto 20px;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #4A5568;
    margin: 0 auto 40px;
    max-width: 700px;
}

.hero-features {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto 40px;
    max-width: 700px;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #4A5568;
    flex: 1;
    text-align: left;
}

.feature img {
    width: 23px;
    height: 23px;
}

.feature strong {
    color: #1A1F2E;
    display: inline;
}

.cta-button {
    display: inline-block;
    background: #F5A623;
    color: #F7FAFC;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 50px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background: #1A1F2E;
}

.trust-indicators {
    font-size: 14px;
    color: #4A5568;
    margin-top: 15px;
    font-style: italic;
}

/* Services Section */
.services-section {
    margin-top: 50px;
}

.services-section h2 {
    font-size: 1.8rem;
    color: #1A1F2E;
    margin-bottom: 30px;
    text-align: center;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    border: 1px solid #1A1F2E;
    border-radius: 8px;
    text-decoration: none;
    color: #4A5568;
    position: relative;
    background: white;
}

.service-card:hover {
    background: #F5A623;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #F5A623;
}

.service-icon {
    width: 85px;
    height: 80px;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.service-icon-hover {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 80px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
    /* opacity: 0; */ /* Removed - icons should remain visible on hover */
}

.service-card:hover .service-icon-hover {
    opacity: 1;
}

.service-card span {
    font-weight: 600;
    font-size: 14px;
}

/* Process Section */
.process {
    padding: 80px 0;
    background: #252B3A;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 0 auto 50px;
    max-width: 1000px;
}

.process-step.reverse {
    flex-direction: row-reverse;
}

.process-image {
    flex: 1;
    text-align: center;
}

.process-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.process-content {
    flex: 1;
}

.process-content h3 {
    font-size: 1.8rem;
    color: #F7FAFC;
    margin-bottom: 20px;
}

.process-content p {
    color: #CBD5E0;
    margin-bottom: 30px;
    line-height: 1.8;
}

.divider {
    text-align: center;
    margin: 40px 0;
}

.divider img {
    max-width: 300px;
    height: auto;
}

/* States Section */
.states {
    padding: 80px 0;
    background: #1A1F2E;
}

.states h2 {
    text-align: center;
    font-size: 2rem;
    color: #F7FAFC;
    margin-bottom: 30px;
}

.steps-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #F7FAFC;
}

.step i,
.project-step i {
    color: #F7FAFC;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Older states-grid definition - consolidated above with responsive breakpoints */

.state-button {
    display: inline-block;
    padding: 12px 20px;
    background: #252B3A;
    color: #F7FAFC;
    text-decoration: none;
    border: 2px solid #F5A623;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.state-button:hover {
    background: #1A1F2E;
    color: #F7FAFC;
}

.project-start {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.project-start h2 {
    margin-bottom: 30px;
}

.project-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.project-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #F7FAFC;
}

.project-start p {
    color: #CBD5E0;
    line-height: 1.8;
}

/* Partners Section */
.partners {
    padding: 60px 0;
    background: #252B3A;
}

.partners-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 150px));
    gap: 40px 30px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* Join Section */
.join {
    padding: 80px 0;
    background: #1A1F2E;
}

.join h2 {
    text-align: center;
    font-size: 2rem;
    color: #F7FAFC;
    margin-bottom: 50px;
}

.join-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 95%;
    margin: 0 auto;
}

/* Medium Desktop - 3 columns */
@media (min-width: 1025px) {
    .join-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .join-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

.join-card {
    background: #252B3A;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.join-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    display: block;
}

.join-card h3 {
    font-size: 1.5rem;
    color: #F7FAFC;
    margin-bottom: 20px;
}

.join-card p {
    color: #CBD5E0;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: #252B3A;
}

.blog h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #F7FAFC;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 40px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Medium Desktop - 3 columns */
@media (min-width: 1025px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

.blog-card {
    background: #252B3A;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-category {
    margin-bottom: 10px;
}

.blog-category a {
    color: #F7FAFC;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.blog-content h3 {
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: #CBD5E0;
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1.4;
}

.blog-content h3 a:hover {
    color: #F7FAFC;
}

.blog-meta {
    color: #CBD5E0;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-content p {
    color: #CBD5E0;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: #F7FAFC;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

.see-more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #F7FAFC;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.see-more-link:hover {
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: #1A1F2E;
    color: #F7FAFC;
}

/* Footer Hero Section */
.footer-hero {
    background: #1A1F2E;
    padding: 60px 0;
    text-align: center;
}

.footer-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #F7FAFC;
}

.footer-hero p {
    font-size: 1.1rem;
    margin: 0 auto 30px;
    color: #F7FAFC;
    max-width: 600px;
}

.footer-hero .cta-button {
    background: #F5A623;
    color: #F7FAFC;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

.footer-hero .cta-button:hover {
    background: #E59400;
}

/* Main Footer Content */
.footer-main {
    padding: 40px 0 20px;
}

.footer-content {
    margin-bottom: 30px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Navigation */
.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.nav-column h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #F7FAFC;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.nav-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.nav-column li {
    margin-bottom: 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.nav-column a {
    color: #F7FAFC;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.2;
}

.nav-column a:hover {
    color: #F5A623;
}

/* Logo column specific styling */
.nav-column:first-child {
    display: flex;
    align-items: flex-start;
}

.nav-column:first-child img {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Footer Disclaimer */
.footer-disclaimer {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #4A5568;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-disclaimer h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #F7FAFC;
    margin-bottom: 15px;
}

.footer-disclaimer p {
    color: #F7FAFC;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #4A5568;
}

.copyright p {
    color: #F7FAFC;
    font-size: 0.85rem;
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #F7FAFC;
    text-decoration: none;
    font-size: 0.85rem;
}

 .legal-links a:hover {
     color: #F5A623;
 }
 
 /* Powered By Footer */
.powered-by-footer {
    background: #1A1F2E;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #4A5568;
}

.powered-by-logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Top Cities Section */
.top-cities {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #4A5568;
}

.top-cities h4 {
    color: #F7FAFC;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Large Desktop - 4 columns */
@media (min-width: 1200px) {
    .cities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Desktop - 3 columns */
@media (max-width: 1199px) and (min-width: 769px) {
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

.cities-grid a {
    color: #718096;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 14px;
}

.cities-grid a:hover {
    color: #F5A623;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
 
 /* Join Contractor Page Styles */
.contractor-hero-section {
    background: #1A1F2E;
    padding: 60px 0;
    text-align: center;
}

.contractor-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contractor-hero-description {
    font-size: 1.2rem;
    color: #CBD5E0;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.contractor-cta-button {
    display: inline-block;
    background: #1A1F2E;
    color: #F7FAFC;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contractor-cta-button:hover {
    background: #1A1F2E;
    text-decoration: underline;
}

.contractor-attention-section {
    background: #252B3A;
    padding: 30px 0;
    text-align: center;
}

.attention-title {
    font-size: 2rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.attention-description {
    font-size: 1.1rem;
    color: #CBD5E0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

.contractor-benefits-section {
    background: #1A1F2E;
    padding: 40px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    max-width: 95%;
    margin: 0 auto;
}

/* Large Desktop - 4 columns */
@media (min-width: 1400px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Desktop - 3 columns */
@media (max-width: 1399px) and (min-width: 1025px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.benefit-card {
    background: #252B3A;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.benefit-image {
    margin-bottom: 1.5rem;
}

.benefit-image img {
    width: 200px;
    height: 150px;
    object-fit: contain;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F7FAFC;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.benefit-card p {
    color: #CBD5E0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.benefit-button {
    display: inline-block;
    background: #F5A623;
    color: #F7FAFC;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 0.9rem;
}

.benefit-button:hover {
    background: #F5A623;
}

.contractor-process-section {
    background: #252B3A;
    padding: 30px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    margin-bottom: 2rem;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Large Desktop - 4 columns */
@media (min-width: 1400px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Desktop - 3 columns */
@media (max-width: 1399px) and (min-width: 1025px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.process-card {
    text-align: center;
    padding: 20px;
}

.process-icon {
    margin-bottom: 1rem;
}

.process-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.process-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F7FAFC;
    margin-bottom: 0.8rem;
}

.process-card p {
    color: #CBD5E0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.process-cta {
    text-align: center;
    font-size: 1rem;
    color: #CBD5E0;
}

.process-cta a {
    color: #F7FAFC;
    text-decoration: none;
    font-weight: 600;
}

.process-cta a:hover {
    text-decoration: underline;
}

.contractor-services-section {
    background: #1A1F2E;
    padding: 40px 0 40px 0;
    margin-bottom: 0;
}

.contractor-services-section .services-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    width: 100% !important;
    grid-auto-rows: min-content !important;
    align-items: start !important;
}

.contractor-services-section .service-card {
    background: #F1F5F9 !important; /* Light Grey/Blue */
    padding: 40px 30px !important;
    border-radius: 8px !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border: 2px solid #2D3748 !important;
    min-height: auto !important;
}

.contractor-services-section .service-card:hover {
    background: #F5A623 !important;
    border-color: #1A1F2E !important;
    transform: translateY(-5px) !important;
}

.contractor-services-section .service-card:hover .service-icon {
    opacity: 1 !important;
}

.contractor-services-section .service-card h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1A1F2E !important;
    margin: 15px 0 !important;
}

.contractor-services-section .service-card p {
    color: #4A5568 !important;
    margin-bottom: 25px !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
}

.contractor-services-section .service-card:hover p {
    color: #1A1F2E !important;
}

.contractor-services-section .service-button {
    background: #1A1F2E !important;
    color: #F7FAFC !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    margin-top: auto !important;
    display: inline-block !important;
    border: 2px solid #1A1F2E !important;
}

.contractor-services-section .service-card:hover .service-button {
    background: #F7FAFC !important;
    color: #1A1F2E !important;
    border-color: #F7FAFC !important;
}

.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-icon {
    margin-bottom: 1rem;
}

.service-icon img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1A1F2E;
    margin-bottom: 1rem;
}

.service-card p {
    color: #CBD5E0;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

.service-button {
    display: inline-block;
    background: #F5A623;
    color: #F7FAFC;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 1rem;
    margin-top: auto;
}

.service-button:hover {
    background: #F5A623;
}

.contractor-form-section {
    background: #252B3A;
    padding: 40px 0 40px 0;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.form-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1rem;
}

.form-wrapper p {
    font-size: 1.1rem;
    color: #CBD5E0;
    margin-bottom: 1rem;
}

.contractor-form {
    background: #1A1F2E;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #CBD5E0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #2D3748;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F5A623;
}

.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.submit-button {
    background: #F5A623;
    color: #F7FAFC;
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.submit-button:hover {
    background: #F5A623;
}

/* Affiliate Page Styles */
.affiliate-hero-section {
    background: #1A1F2E;
    padding: 80px 0;
    text-align: center;
    width: 100%;
    margin: 0;
}

.affiliate-hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.affiliate-hero-section p {
    font-size: 1.2rem;
    color: #CBD5E0;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.affiliate-link {
    color: #F7FAFC;
    text-decoration: underline;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.affiliate-link:hover {
    color: #F7FAFC;
    text-decoration: underline;
}

.affiliate-content-section {
    padding: 80px 0;
    background: #252B3A;
}

.affiliate-content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 3rem;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.affiliate-item {
    background: #1A1F2E;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.affiliate-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.affiliate-item p {
    color: #CBD5E0;
    line-height: 1.6;
    font-size: 1rem;
}

.affiliate-cta-section {
    padding: 80px 0;
    background: #252B3A;
    text-align: center;
}

.affiliate-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 2rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .affiliate-hero-section h1 {
        font-size: 2rem;
    }
    
    .affiliate-hero-section p {
        font-size: 1rem;
    }
    
    .affiliate-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .affiliate-cta-section h2 {
        font-size: 2rem;
    }
}

/* About Us Page Styles */
.about-hero-section {
    background: #1A1F2E;
    padding: 80px 0;
    text-align: center;
}

.about-hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-hero-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-hero-section p {
    font-size: 1.1rem;
    color: #CBD5E0;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.why-choose-section {
    padding: 80px 0;
    background: #252B3A;
}

.why-choose-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #F7FAFC;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    background: #1A1F2E;
    border-radius: 12px;
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-content p {
    color: #CBD5E0;
    line-height: 1.6;
    font-size: 1rem;
}

.about-cta-section {
    background: #1A1F2E;
    color: #F7FAFC;
    padding: 80px 0;
    text-align: center;
}

.about-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.disclosure-section {
    padding: 80px 0;
    background: #252B3A;
}

.disclosure-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #F7FAFC;
    text-align: center;
    margin-bottom: 2rem;
}

.disclosure-section > p {
    font-size: 1.1rem;
    color: #CBD5E0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.disclosure-items {
    max-width: 1000px;
    margin: 0 auto;
}

.disclosure-item {
    margin-bottom: 2rem;
}

.disclosure-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.disclosure-item p {
    color: #CBD5E0;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .about-hero-section h1 {
        font-size: 2rem;
    }
    
    .about-hero-section h2 {
        font-size: 1.5rem;
    }
    
    .about-hero-section p {
        font-size: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .about-cta-section h2 {
        font-size: 2rem;
    }
    
        .disclosure-section h2 {
            font-size: 1.8rem;
        }
    }

    /* Homeowners Page Styles */
    .homeowners-hero-section {
        background: #1A1F2E;
        padding: 80px 0;
        text-align: center;
    }

    .homeowners-hero-section h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #F7FAFC;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .homeowners-hero-section p {
        font-size: 1.2rem;
        color: #CBD5E0;
        max-width: 800px;
        margin: 0 auto 2rem;
        line-height: 1.6;
    }

    .homeowners-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 2rem;
    }

    .homeowners-btn {
        padding: 12px 24px;
        border: 2px solid #F5A623;
        background: #252B3A;
        color: #F7FAFC;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 700;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .homeowners-btn:hover {
        background: #1A1F2E;
        color: #F7FAFC;
        text-decoration: none;
    }

    .homeowners-btn.active {
        background: #F5A623;
        color: #F7FAFC;
        border-color: #F5A623;
    }

    .homeowners-btn.active:hover {
        background: #E59400;
        border-color: #E59400;
    }

    .homeowners-content-section {
        padding: 80px 0;
        background: #252B3A;
    }

    .homeowners-content-section h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #F7FAFC;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .homeowners-content-section > p {
        font-size: 1.1rem;
        color: #CBD5E0;
        max-width: 800px;
        margin: 0 auto 3rem;
        line-height: 1.6;
    }

    .homeowners-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        margin-top: 3rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Medium Desktop - 3 columns */
    @media (min-width: 1025px) {
        .homeowners-steps {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    /* Tablet - 2 columns */
    @media (max-width: 1024px) and (min-width: 769px) {
        .homeowners-steps {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
    }

    .step-card {
        background: #1A1F2E;
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .step-card:nth-child(2) {
        background: #252B3A;
        border: 2px solid #2D3748;
    }

    .step-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #F7FAFC;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .step-image {
        width: 200px;
        height: 200px;
        object-fit: contain;
        margin: 0 auto 1.5rem;
    }

    .step-card p {
        color: #CBD5E0;
        line-height: 1.6;
        font-size: 1rem;
        margin-bottom: 1rem;
        flex-grow: 1;
    }

    .step-card .cta-button {
        margin-top: auto;
        align-self: center;
    }

    @media (max-width: 768px) {
        .homeowners-hero-section h1 {
            font-size: 2rem;
        }
        
        .homeowners-hero-section p {
            font-size: 1rem;
        }
        
        .homeowners-buttons {
            flex-direction: column;
            align-items: center;
        }
        
        .homeowners-steps {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .step-card {
            padding: 20px;
        }
        
        .step-image {
            width: 150px;
            height: 150px;
        }
    }

/* Contact Page Styles */
.contact-hero-section {
    background: #1A1F2E;
    color: #F7FAFC;
    padding: 80px 0;
    text-align: center;
}

.contact-hero-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #F5A623;
    line-height: 1.2;
}

.contact-hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form-section {
    padding: 80px 0;
    background-color: #1A1F2E;
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #252B3A;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 60px;
}

.contact-form {
    width: 100%;
}

.contact-success-message,
.contact-error-message {
    margin-bottom: 1.5rem;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: left;
}

.contact-success-message {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #34d399;
}

.contact-error-message {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.field-error {
    margin-top: 0.5rem;
    color: #b91c1c;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #CBD5E0;
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #2D3748;
    border-radius: 8px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background-color: #F7FAFC;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.contact-submit-btn {
    background: #F5A623;
    color: #F7FAFC;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        display: none !important;
    }
    
    .cta-text {
        font-size: 14px;
    }
    
    .cta-phone {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .header-main {
        padding: 15px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background: #252B3A;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
        /* Ensure menu doesn't interfere when closed */
        pointer-events: none;
        visibility: hidden;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .nav-menu .quote-btn {
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero {
        min-height: 400px;
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }
    
    .feature {
        flex: none;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .process-step.reverse {
        flex-direction: column;
    }
    
    
    .steps-indicator,
    .project-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .join-cards {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile Styles */
    .footer-hero h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        max-width: 95%;
    }
    
    .footer-nav {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-column:first-child img {
        max-width: 150px;
    }
}

/* Index Page Enhancements */

/* Partners Section - Trusted by Leading Brands */
.partners {
    padding: 60px 0;
    background: #1A1F2E;
}

.partners-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 40px;
}

.partners-carousel {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.partners-carousel::-webkit-scrollbar {
    display: none;
}

.partner-logo {
    flex: 0 0 auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
}

/* States Section Enhancements - Even Column Grid */
.states-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Large Desktop - 4 columns */
@media (min-width: 1200px) {
    .states-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Desktop/Tablet - 3 columns (NEVER 2+1) */
@media (max-width: 1199px) and (min-width: 769px) {
    .states-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 768px) and (min-width: 481px) {
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Mobile - 2 columns (maintain even grid) */
@media (max-width: 480px) {
    .states-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.state-button {
    padding: 15px 20px;
    background: #252B3A;
    border: 2px solid #2D3748;
    border-radius: 8px;
    text-decoration: none;
    color: #CBD5E0;
    font-weight: 600;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.state-button:hover {
    border-color: #F5A623;
    background: #1A1F2E;
    color: #F5A623;
    transform: translateY(-2px);
}

.project-start {
    text-align: center;
    padding: 40px 0;
    background: #1A1F2E;
    border-radius: 12px;
    margin-top: 40px;
}

.project-start h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #F7FAFC;
    margin-bottom: 30px;
}

.project-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.project-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #CBD5E0;
}

.project-step i {
    color: #10b981;
    font-size: 1.2rem;
}

/* Services Grid - Even Column Layout (4→3→2→1) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 95%;
    width: 95%;
    margin: 0 auto;
}

/* Large Desktop - 4 columns */
@media (min-width: 1400px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Desktop - 3 columns */
@media (max-width: 1399px) and (min-width: 1025px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: white;
    border: 2px solid #2D3748;
    border-radius: 12px;
    text-decoration: none;
    color: #4A5568;
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: #F5A623;
    border-color: #1A1F2E;
    color: #1A1F2E;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(234, 103, 49, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-icon-hover {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
    /* opacity: 0; */ /* Removed - icons should remain visible on hover */
}

.service-card:hover .service-icon-hover {
    opacity: 1;
}

.service-card span {
    text-align: center;
    line-height: 1.3;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .partners-heading {
        font-size: 2rem;
        text-align: center;
    }
    
    .partners-carousel {
        gap: 30px;
        padding: 15px 0;
    }
    
    .partner-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    
    .state-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .project-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px 15px;
        min-height: 120px;
    }
    
    .service-icon,
    .service-icon-hover {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .partners-heading {
        font-size: 1.8rem;
    }
    
    .partner-logo img {
        max-width: 80px;
        max-height: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 25px 20px;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logo {
        width: 120px;
        height: 60px;
    }
    
    /* Footer Mobile Styles */
    .footer-hero {
        padding: 40px 0;
    }
    
    .footer-hero h2 {
        font-size: 1.8rem;
    }
    
    .footer-main {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        max-width: 95%;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-column:first-child img {
        max-width: 120px;
    }
    
    .nav-column h3 {
        font-size: 0.9rem;
    }
    
    .legal-links {
        gap: 15px;
    }
    
    .legal-links a {
        font-size: 0.8rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Mobile-tight spacing for landing/CTA/sections (global)                     */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container-modern {
        padding: 0 12px;
    }

    /* Hero */
    .modern-hero {
        min-height: 70vh;
    }
    .hero-content {
        padding: 30px 0;
    }
    .hero-title-large {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 12px;
    }
    .hero-content .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .hero-content .btn-modern {
        padding: 12px 22px;
        margin-bottom: 20px;
    }
    .hero-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 25px;
    }
    .hero-feature-item {
        padding: 12px;
        gap: 8px;
    }
    .hero-feature-item strong {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }
    .hero-feature-item span {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    /* Sections & headers */
    .section-spacer {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    .section-subtitle {
        margin: 0 auto 12px;
        line-height: 1.5;
    }

    /* Services grid (home) */
    .services-section-modern {
        padding: 60px 0;
    }
    .services-grid-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .service-card-modern {
        padding: 16px;
        border-radius: 16px;
    }
    .service-icon-wrapper {
        width: 72px;
        height: 72px;
        margin-bottom: 12px;
    }
    .service-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    .service-desc {
        display: none;
    }

    /* Process (home) */
    .process-section-modern.section-spacer {
        padding: 60px 0;
    }
    .process-item {
        gap: 20px;
        margin-bottom: 50px;
    }
    .process-heading {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .process-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    .process-img-wrapper img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: contain;
        padding: 10px;
        background: transparent;
    }
    /* Hide the first process image to save height */
    .process-item:first-child .process-img-wrapper {
        display: none;
    }
    .step-number {
        font-size: 3rem;
        top: -20px;
    }

    /* Ready CTA */
    .ready-cta {
        padding: 32px 20px;
        margin: 40px auto 0;
    }
    .ready-cta .section-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    .features-check-grid {
        gap: 16px;
        margin: 20px 0;
    }
    .check-item {
        font-size: 0.95rem;
    }
    .ready-cta .btn-modern {
        padding: 12px 22px;
    }

    /* Partners / States spacing */
    .partners-section-modern {
        padding: 40px 0;
    }
    .states-section-modern.section-spacer {
        padding: 60px 0;
    }

    /* Footer centering */
    .footer-modern .footer-top,
    .footer-modern .footer-bottom {
        text-align: center;
    }
    .footer-modern .footer-bottom {
        justify-content: center;
    }
    /* Hide hero feature cards on mobile */
    .hero-features-grid {
        display: none;
    }
}
