body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}


/* FIRST SECTION */

.hero-section {
    position: relative;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('../assets/homeAssets/home-page-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    margin: 0;
    padding: 0 5%;
    width: 100%;
    margin-left: 40px;
    text-align: left;
    max-width: 80%;
}

.hero-header {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: white;
    line-height: 150%;
    text-align: left;
    max-width: 80%;
}

.hvac-highlight {
    font-weight: 500;
    color: #FBC108;
}

.hero-subheader {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    line-height: 150%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.hero-button {
    padding: 12px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.primary-button {
    background-color: #004AAD;
    color: white;
}

.primary-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    background-color: transparent;
    color: white;
    position: relative;
    padding-right: 40px;
    border: none;
}

.secondary-button::after {
    content: "→";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.secondary-button:hover::after {
    right: 12px;
}

/* SECOND SECTION */
.two-column-section {
    display: flex;
    min-height: 600px;
    width: 100%;
    padding-top: 0; /* Remove any top padding */
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-column {
    padding: 0;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-column {
    padding: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: contents; 
}

.feature-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    align-self: center;
}

.feature-text {
    align-self: center;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.063;
    font-weight: 500;
}

.services-section {
    padding: 0 5%;
    margin-left: 40px;
}

.section-title {
    font-size: 3rem;
    line-height: 120%;
    margin-bottom: 2rem;
    color: #000000;
    font-weight: 500;
    text-align: left;
    padding: 0 20px;
}


/* THIRD SECTION */

.four-column-section {
    display: flex;
    gap: 20px;
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    margin-left: 40px;
}

/* First Column (Blue) */
.first-column {
    flex: 1;
    background-color: #004AAD;
    border-radius: 15px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: flex-start;
}

.first-column h1 {
    font-size: 1.25rem;
    margin-bottom: 5px; /* Reduced space between h1 and h2 */
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.best-highlight {
    font-weight: 500;
    color: #FBC108;
    display: inline;
}

.first-column h2 {
    font-size: 3rem;
    font-weight: 500;
    line-height: 120%;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.other-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.other-column:hover {
    transform: translateY(-5px);
}

.image-container {
    margin: 10%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.other-column:hover .image-container img {
    transform: scale(1.05);
}

.text-container {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* FOURTH SECTION */
.partner-section {
    background-image: url('../assets/homeAssets/partnerBackgroundImg.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5% 0; 
    box-sizing: border-box;
    position: relative;
}

.partner-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin: 0 auto 2rem auto;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    width: 80%; 
    max-width: 1200px;
    padding: 0 3%; 
    box-sizing: border-box;
}

.partner-box {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    padding: 2.5rem;
    width: 80%;
    max-width: 1200px; 
    margin: 0 auto;
    backdrop-filter: blur(75%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5% 10%;
    box-sizing: border-box;
}

.logo-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* All rows by default (mobile first) */
.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Logo items base style */
.logo-item {
    flex: 1 0 calc(50% - 1.5rem); /* 2 columns on mobile */
    min-width: 120px;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

.logo-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%) contrast(100%);
    transition: filter 0.3s ease;
}

/* Optional: For logos that should appear in color on hover */
.logo-item img.grayscale {
    filter: grayscale(100%) contrast(70%);
}

.logo-item:hover img.grayscale {
    filter: grayscale(0%) contrast(100%);
}

/* Responsive Design */

@media (max-width: 1024px) {
    .four-column-section {
        flex-wrap: wrap;
        margin-left: 20px;
    }
    
    .first-column {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
    
    .other-column {
        flex: 1 1 calc(50% - 20px);
        min-width: 200px;
    }
    .partner-title,
    .partner-box {
        width: 90%;
    }
    
    .logo-row:nth-child(-n+4) .logo-item {
        flex: 1 0 calc(33.33% - 1.5rem); 
        max-width: calc(33.33% - 1.5rem);
    }
    
    .logo-row:nth-child(5) .logo-item {
        flex: 1 0 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
    
    /* Adjust gap for desktop */
    .logo-row {
        gap: 2rem;
        justify-content: space-between;
    }
    
    .logo-item {
        padding: 2rem;
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .two-column-section {
        flex-direction: column;
        padding: 0;
        margin-left: 0;
    }
    
    .image-column {
        margin: 0;
    }
    
    .image-column img {
        width: 100%;
    }
    
    .text-column {
        padding: 40px 20px;
    }
    
    .features-grid {
        grid-template-columns: 40px 1fr;
        gap: 15px;
    }

    .four-column-section {
        padding: 40px 5%;
        margin-left: 0;
    }
    
    .other-column {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
    
    .first-column h1 {
        font-size: 1.8rem;
    }
    
    .first-column h2 {
        font-size: 1.1rem;
    }

    .partner-box {
        padding: 10% 5%;
        width: 90%;
    }
    
    .logo-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .logo-row {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
    }

    .logo-item {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-item.full-width {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .logo-row:nth-child(odd) .logo-item:nth-child(n+3) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .logo-row:nth-child(even) .logo-item:nth-child(1) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .logo-row:nth-child(even) .logo-item:nth-child(n+2) {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .logo-row:nth-child(3) .logo-item {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 486px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 60px 0 40px;
    }
    
    .hero-content {
        margin-left: 20px;
        max-width: 90%;
        padding: 0 5%;
    }
    
    .hero-header {
        font-size: 2rem;
        max-width: 100%;
        line-height: 130%;
        margin-bottom: 0.75rem;
    }
    
    .hero-subheader {
        font-size: 1rem;
        max-width: 100%;
        line-height: 140%;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-button {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .secondary-button {
        padding-right: 30px;
    }
    
    .first-column {
        padding: 20px;
    }
    
    .text-container {
        padding: 15px;
    }
    
    .logo-item {
        max-width: 150px;
        padding: 1rem;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .first-column {
        padding: 30px;
    }
    
    .text-container {
        padding: 20px;
    }
    
    .image-container {
        height: 150px;
    }
    .logo-row {
        gap: 15px;
    }
    .logo-item {
        flex: 0 0 100%;
        max-width: 200px;
        margin: 0.5rem auto;
      }
    
    .partner-title {
        margin-bottom: 1.5rem;
        padding: 0 5%;
    }
    
}