/* --- CTA Section Background & Overlay --- */
.cta-section {
    position: relative;
    /* Replace with your actual background image URL */
    background-image: url('https://www.modexconstruction.ca/public/MODEXCONSTRUCTION/themeaB9xY12z/assets/images/backgrounds/cta-bg.webp'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: adds a nice parallax effect */
    padding: 100px 0;
    z-index: 1;
}

/* Dark overlay to make text pop */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient overlay similar to your image */
    background: linear-gradient(to right, rgba(20, 15, 10, 0.9) 0%, rgba(20, 15, 10, 0.7) 100%);
    z-index: -1;
}

/* --- Right Content Contact Box --- */
.cta-contact-box {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1; /* Ensures both items take up equal space */
}

/* Orange Icon Wrapper */
.icon-wrapper {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background-color: var(--color-3);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

/* Contact Details Typography */
.contact-info {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 13px;
    color: #777777;
    margin-bottom: 3px;
}

.info-text {
    font-size: 18px;
    font-weight: 700;
    color: #111111;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.info-text:hover {
    color: var(--color-2); /* Text turns orange on hover */
}

/* Vertical line between the two contact blocks */
.contact-divider {
    width: 1px;
    height: 60px;
    background-color: #e5e5e5;
    margin: 0 30px;
}

/* =========================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================= */
@media (max-width: 991px) {
    .cta-title {
        font-size: 36px;
    }
    .cta-contact-box {
        padding: 30px 20px;
    }
}

@media (max-width: 767px) {
    /* Stack the contact box vertically on small screens */
    .cta-contact-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px;
    }
    
    .contact-item {
        width: 100%;
    }

    /* Change vertical divider to a horizontal line */
    .contact-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }
    
    .cta-title {
        font-size: 32px;
    }
}