
/* hbtechsolutions — responsive homepage hero */

.header {
    background-image:
        linear-gradient(
            90deg,
            rgba(12, 13, 16, 0.42) 0%,
            rgba(12, 13, 16, 0.12) 65%,
            rgba(12, 13, 16, 0.05) 100%
        ),
        url("../imgs/hero/desktop.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.header .header-content {
    z-index: 1;
}

.header .header-content .header-title {
    line-height: 1.05;
    opacity: 1;
}

@media (max-width: 767.98px) {
    .header {
        height: 620px;
        min-height: 620px;

        background-image:
            linear-gradient(
                to bottom,
                rgba(12, 13, 16, 0.12),
                rgba(12, 13, 16, 0.22)
            ),
            url("../imgs/hero/mobile.png");

        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
    }

    .header .header-content {
        top: 43%;
        padding: 20px;
    }

    .header .header-content .header-title {
        font-size: clamp(2.5rem, 10vw, 4.5rem);
        line-height: 1.08;
        overflow-wrap: normal;
    }

    .header .header-content .header-mono {
        letter-spacing: 2px;
        margin-bottom: 28px;
    }
}

@media (max-width: 380px) {
    .header .header-content .header-title {
        font-size: 2.35rem;
    }
}
/* Keep desktop hero text away from the infrastructure artwork */
@media (min-width: 992px) {
    .header .header-content {
        max-width: 62%;
    }

    .header .header-content .header-title {
        font-size: clamp(3.3rem, 5.8vw, 6rem);
        line-height: 1.08;
        white-space: normal;
    }
}

/* Ensure hero text and secondary button remain visible */

.header .header-content .hb-hero-tagline {
    color: #f1f1f1;
    opacity: 1;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    margin: -20px 0 24px;
    letter-spacing: 0.02em;
}

.header .header-content .hb-hero-tagline span {
    color: #f85c70;
}

.header .header-content .hb-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header .header-content .hb-hero-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    color: #ffffff;
    background: rgba(20, 22, 27, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    text-decoration: none;
    font-weight: 600;
    opacity: 1;
}

.header .header-content .hb-hero-project-btn:hover,
.header .header-content .hb-hero-project-btn:focus {
    color: #ffffff;
    background: #dc3545;
    border-color: #dc3545;
}

@media (max-width: 767.98px) {
    .header .header-content .hb-hero-tagline {
        font-size: 0.82rem;
        margin: -12px 0 22px;
        max-width: 340px;
    }

    .header .header-content .hb-hero-actions {
        gap: 10px;
    }

    .header .header-content .hb-hero-project-btn {
        padding: 8px 14px;
    }
}
