@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;
    }
}

/* ==== Top bar ==== */
.ace-topbar {
    background: #0b3b2c;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.ace-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    min-height: 40px;
    flex-wrap: wrap;
}

.ace-topbar-group {
    display: flex;
    align-items: center;
    gap: 6px 22px;
    flex-wrap: wrap;
    min-width: 0;
}

.ace-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    white-space: nowrap;
}

.ace-topbar a.ace-topbar-item:hover {
    color: #e9c46a;
}

.ace-topbar-item i,
.ace-topbar i.fas.fa-phone-alt,
.ace-topbar i.fas.fa-envelope {
    color: #e9c46a;
    font-size: 12px;
}

.ace-topbar-social {
    display: inline-flex;
    gap: 6px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.ace-topbar-social a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.ace-topbar-social a:hover {
    background: #e9c46a;
    color: #0b3b2c;
}

@media (max-width: 1199.98px) {
    .ace-topbar-hours { display: none; }
}

@media (max-width: 991.98px) {
    .ace-topbar-tagline,
    .ace-topbar-area { display: none; }
    .ace-topbar-inner { justify-content: center; }
}

@media (max-width: 575.98px) {
    .ace-topbar { font-size: 12px; }
    .ace-topbar-inner { padding-top: 6px; padding-bottom: 6px; }
    .ace-topbar-group { gap: 4px 14px; justify-content: center; }
    .ace-topbar-social { display: none; }
}

/* ==== Header / navbar ==== */
.ace-header {
    background: #fff;
    box-shadow: 0 6px 24px rgba(6, 35, 26, 0.08);
}

.ace-header .header_color {
    background: #fff;
    padding-top: 8px;
    padding-bottom: 8px;
}

.ace-header .navbar-nav {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.ace-header .navbar-nav .nav-link {
    color: #12261e !important;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding: 10px 8px;
    border-bottom: 0;
    transition: color 0.2s;
}

.ace-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: #1f6b47;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.ace-header .navbar-nav .nav-link.dropdown-toggle::after {
    border: 0;
    margin: 0;
    vertical-align: 0;
}

.ace-header .navbar-nav .nav-link.dropdown-toggle {
    padding-right: 22px;
}

.ace-header .navbar-nav .nav-link.dropdown-toggle::before {
    content: '\f107';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: #2f8f5b;
    transition: transform 0.2s;
}

.ace-header .navbar-nav .nav-link.dropdown-toggle.show::before {
    transform: translateY(-50%) rotate(180deg);
}

.ace-header .navbar-nav .nav-link:hover,
.ace-header .navbar-nav .nav-link.active,
.ace-header .navbar-nav .nav-link.show {
    color: #1f6b47 !important;
    border-bottom: 0;
}

.ace-header .navbar-nav .nav-link:hover::after,
.ace-header .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.ace-header .dropdown-menu {
    border: 1px solid #e6efe9;
    border-top: 3px solid #1f6b47;
    border-radius: 12px;
    padding: 8px;
    min-width: 250px;
    box-shadow: 0 18px 40px rgba(6, 35, 26, 0.14);
    margin-top: 6px;
}

.ace-header .dropdown-item {
    font-size: 13.5px;
    font-weight: 600;
    color: #24352e;
    border-radius: 8px;
    padding: 8px 12px;
    letter-spacing: 0.01em;
    transition: background 0.15s, color 0.15s, padding 0.15s;
}

.ace-header .dropdown-item:hover,
.ace-header .dropdown-item:focus {
    background: #eef6f1;
    color: #1f6b47;
    padding-left: 16px;
}

.ace-header .dropdown-item.active,
.ace-header .dropdown-item:active {
    background: #1f6b47;
    color: #fff;
}

.ace-header .btn-call {
    width: auto;
    height: auto;
    min-height: 46px;
    gap: 9px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0f3d2e, #1f6b47);
    color: #fff !important;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(15, 61, 46, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.ace-header .btn-call i {
    font-size: 13px;
}

.ace-header .btn-call .ace-cta-arrow {
    transition: transform 0.2s;
}

.ace-header .btn-call:hover {
    background: linear-gradient(135deg, #1f6b47, #2f8f5b);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 61, 46, 0.3);
}

.ace-header .btn-call:hover .ace-cta-arrow {
    transform: translateX(3px);
}

.ace-header .navbar-toggler {
    border: 1px solid #d6e6dc;
    border-radius: 10px;
    padding: 8px 10px;
}

.ace-header .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.2);
}

@media (min-width: 992px) {
    .ace-header .navbar-nav .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .ace-header .navbar-nav .btn-call {
        margin-left: 10px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .ace-header .navbar-nav .nav-link {
        font-size: 13.5px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .ace-header .navbar-nav .nav-link.dropdown-toggle {
        padding-right: 18px;
    }

    .ace-header .navbar-nav .nav-link::after {
        left: 6px;
        right: 6px;
    }

    .ace-header .btn-call {
        padding: 0 14px;
        font-size: 13.5px;
    }

    .ace-header .btn-call .ace-cta-arrow {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .ace-header .navbar-collapse {
        margin-top: 10px;
        padding: 8px 4px 14px;
        border-top: 1px solid #eef2ef;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .ace-header .navbar-nav .nav-link {
        padding: 11px 6px;
        border-bottom: 1px solid #f1f5f2;
    }

    .ace-header .navbar-nav .nav-link::after {
        display: none;
    }

    .ace-header .dropdown-menu {
        box-shadow: none;
        border: 0;
        border-left: 3px solid #1f6b47;
        border-radius: 0 10px 10px 0;
        background: #f6faf7;
        margin: 4px 0 8px;
    }

    .ace-header .btn-call {
        margin: 14px 0 0 !important;
        width: 100%;
    }
}

/* ==== Footer ==== */
.ace-footer {
    position: relative;
    background:
        radial-gradient(circle at 12% 0%, rgba(47, 143, 91, 0.22), transparent 42%),
        radial-gradient(circle at 92% 100%, rgba(214, 170, 79, 0.1), transparent 40%),
        linear-gradient(180deg, #0b3b2c 0%, #06231a 100%);
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.ace-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #b98b2f, #e9c46a, #b98b2f);
}

.ace-footer-main {
    padding: 64px 0 36px;
    row-gap: 32px;
}

.ace-footer h5 {
    position: relative;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 22px;
    padding-bottom: 12px;
}

.ace-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: #e9c46a;
}

.ace-footer .footer_logo {
    margin-bottom: 4px;
    text-align: left;
}

.ace-footer-about {
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.ace-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ace-footer ul li {
    margin-bottom: 11px;
}

.ace-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s, padding 0.2s;
}

.ace-footer a:hover {
    color: #e9c46a;
}

.ace-footer .ace-footer-col > ul:not(.ace-footer-contact) a {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.ace-footer .ace-footer-col > ul:not(.ace-footer-contact) a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    color: #e9c46a;
}

.ace-footer .ace-footer-col > ul:not(.ace-footer-contact) a:hover {
    padding-left: 3px;
}

.ace-footer-services ul {
    columns: 2;
    column-gap: 24px;
}

.ace-footer-services ul li {
    break-inside: avoid;
}

.ace-footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    line-height: 1.55;
    margin-bottom: 14px;
}

.ace-footer-contact i {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e9c46a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.ace-footer-contact li > a,
.ace-footer-contact li > span {
    padding-top: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.ace-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
}

.ace-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    flex-wrap: wrap;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 13px;
}

.ace-footer-bottom p {
    margin: 0;
}

.ace-footer-slogan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
}

.ace-footer-slogan i {
    color: #e9c46a;
}

.ace-footer-social {
    display: flex;
    gap: 8px;
}

.ace-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

.ace-footer-social a:hover {
    background: #e9c46a;
    border-color: #e9c46a;
    color: #0b3b2c;
}

@media (max-width: 991.98px) {
    .ace-footer-main { padding-top: 48px; }
    .ace-footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 575.98px) {
    .ace-footer-services ul { columns: 1; }
    .ace-footer-bottom-inner { flex-direction: column; }
}

/* 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;
    }
}
