/**
 * Matheson Contact Hero Styles
 */

/* Break out of Divi container for true full-bleed */
.et_pb_row:has(#contact-hero) {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 48px;
}

.et_pb_section:has(#contact-hero) {
    padding: 0 !important;
}

#contact-hero,
#contact-hero * {
    box-sizing: border-box;
}

#contact-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: top center;
    overflow: hidden;
}

#contact-hero .contact-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(28, 31, 78, 0.94) 0%,
            rgba(37, 40, 95, 0.82) 50%,
            rgba(28, 31, 78, 0.92) 100%);
    z-index: 1;
}

#contact-hero .contact-hero-container {
    position: relative;
    z-index: 2;
    width: 80%;
    max-width: 1208px;
    margin: 0 auto;
    padding: 136px 0;
}

#contact-hero .contact-hero-eyebrow {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #B0C637;
    margin: 0 0 12px;
    padding: 0;
}

#contact-hero .contact-hero-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0 0 20px;
    padding: 0;
}

#contact-hero .contact-hero-accent-bar {
    width: 60px;
    height: 3px;
    background: #B0C637;
    margin: 0 0 28px;
}

#contact-hero .contact-hero-subtext {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    padding: 0;
    max-width: 620px;
}

/* Scroll reveal */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
    /* Match the header/logo container width so the hero content lines up */
    #contact-hero .contact-hero-container {
        width: 90%;
        padding: 112px 0;
    }

    #contact-hero .contact-hero-heading {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    #contact-hero .contact-hero-container {
        padding: 96px 0;
    }

    #contact-hero .contact-hero-heading {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    #contact-hero .contact-hero-container {
        width: 92%;
    }
}
