@import url('base.css');

/* CONTACT HERO (responsive) */
.hero {
    position: relative;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1)),
        url("/assets/images/contact_hero.jpg");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: white;
}

.hero .hero-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    /* centers text on narrow screens */
}

.hero .hero-card>h1.display-5 {
    /* scales from ~32px → 80px depending on viewport */
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 700;
    padding: 1rem 0.5rem;
    line-height: 1.1;
}

.hero-btn {
    background-color: #041536;
    margin-top: 1rem;
    margin-left: 0.9rem;
    padding: 0.8rem 1.1rem;
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
}

/* Tablet tweaks */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem;
    }

    .hero .hero-card {
        max-width: 520px;
    }

    .hero-btn {
        margin-left: 0;
        /* avoid horizontal overflow */
        display: inline-block;
    }
}

/* Phone tweaks */
@media (max-width: 576px) {
    .hero {
        padding: 1.25rem;
    }

    .hero .hero-card {
        max-width: 100%;
    }

    .hero .hero-card>h1.display-5 {
        line-height: 1.15;
        font-size: 3rem;
    }

    .hero .hero-card>p.fs-5 {
        line-height: 1.5;
    }

    .hero-btn {
        display: block;
        /* stack under paragraph nicely */
        margin: 0.75rem auto 0;
    }

    #our-services .services-title {
        font-size: 3rem !important;
        padding-bottom: 0rem;
        padding-top: 1rem;
    }

    .second-title {
        font-size: 2rem !important;
    }
}

#our-services {
    position: relative;
    overflow: hidden;
    min-height: 800px;
}

/* break the H1 out to full viewport width */
#our-services .services-title {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    margin: 0 0 2rem;
    font-size: 11rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--light-dark-grey);
    pointer-events: none;
}

/* pale block behind image */
#our-services .bg-block {
    position: absolute;
    top: 35%;
    right: -20%;
    width: 100%;
    height: 80%;
    background-color: #e6eef3;
    border-radius: 0.25rem;
    z-index: 1;
}

/* lift image above the block */
#our-services .section-img {
    position: relative;
    z-index: 2;
}

/* underline on Learn More */
#our-services .learn-more {
    border-bottom: 3px solid #00adef;
    padding-bottom: 2px;
}


/* 2. Sub-heading (<h2>) */
#our-services h2 {
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #33503f;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: .21em;
}

/* 3. Paragraphs */
#our-services p {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #222;
    margin-bottom: 1rem;
}

/* 4. List items */
#our-services ul li {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #222;
    margin-bottom: .5rem;
}

/* 5. “Learn More” link/button */
#our-services .learn-more {
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1d;
    text-decoration: none;
    border-bottom: 4px solid #009db3;
    /*padding-bottom: 2px;*/
    display: inline-block;
}

#our-services .learn-more:hover {
    border-color: #007a8a;
}
