@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ACE Environmental — navbar & footer brand lockup */
.ace-brand {
    max-width: min(100%, 420px);
    line-height: 1.15;
    color: inherit;
}

.ace-brand:hover {
    color: inherit;
    opacity: 0.92;
}

.ace-brand-mark {
    height: 58px;
    width: auto;
    max-width: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.ace-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.ace-brand-name {
    display: block;
    font-family: 'Plus Jakarta Sans', Georgia, 'Times New Roman', serif;
    font-size: clamp(0.72rem, 1.6vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f3d2e;
    line-height: 1.2;
}

.ace-brand-tagline {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(0.65rem, 1.4vw, 0.78rem);
    font-style: italic;
    font-weight: 400;
    color: #475569;
    margin-top: 2px;
    letter-spacing: 0.01em;
}

.header_color .ace-brand-name {
    color: #0a2e22;
}

@media (max-width: 575.98px) {
    .ace-brand-mark {
        height: 48px;
        max-width: 48px;
    }

    .ace-brand-name {
        font-size: 0.62rem;
        letter-spacing: 0.03em;
    }

    .ace-brand-tagline {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .ace-brand-name {
        font-size: 0.72rem;
    }

    .ace-brand-tagline {
        font-size: 0.65rem;
    }
}

/* Footer lockup */
.ace-footer-brand .ace-brand-mark {
    height: 64px;
    max-width: 64px;
}

.ace-footer-brand .ace-brand-name {
    color: #fff;
    font-size: 0.85rem;
}

.ace-footer-brand .ace-brand-tagline {
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .header_color .navbar-nav {
        gap: 0.15rem !important;
        font-size: 0.9rem;
    }

    .header_color .navbar-nav .nav-link {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .header_color .btn-call {
        width: auto;
        padding: 0 0.9rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .header_color .ace-brand-name {
        max-width: 10.5rem;
        white-space: normal;
        line-height: 1.25;
    }

    .header_color .ace-brand-tagline {
        display: none;
    }
}

/* Bootstrap g-5 rows pull out 24px per side, wider than the 12px container padding on phones */
@media (max-width: 575.98px) {
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 599.98px), (min-width: 992px) and (max-width: 1023.98px) {
    .row.g-5,
    .row.g-lg-5 {
        --bs-gutter-x: 2rem;
    }
}
