/* =============================================================================
   wastex-legacy.css
   Overrides and fixes that only apply when wastex-styles.css is loaded.
   These rules exist because Wastex sets opinionated defaults that need
   correcting for this site's brand. When a page is migrated off the Wastex
   template, stop loading this file on that page.

   Load order: AFTER wastex-styles.css, BEFORE styles.css
   ============================================================================= */


/* ── Wastex minibar ──────────────────────────────────────────────────────── */

.navbar-minibar {
    text-transform: none;
}

@media(max-width: 481px) {
    .navbar-minibar {
        height: 4rem;
        justify-content: center;
        padding: 0.25rem 0;
    }
}


/* ── Wastex template utility classes ─────────────────────────────────────── */

.template-text-alignment {
    text-align: justify !important;
}

.template-divider-alignment {
    display: none;
    margin: 0;
}


/* ── Wastex footer overrides ─────────────────────────────────────────────── */

.footer-below {
    background-color: rgb(96, 122, 139) !important;
}

.footer__links-container {
    background-color: #2D651A !important;
}

.footer-terms a {
    text-decoration: none;
}

.footer__links-list .list-item a:hover {
    color: #fff;
}

/* Footer logo — smaller than header */
.footer-logo img { width: 120px !important; }


/* ── Wastex text-with-bg-img component ───────────────────────────────────── */

.text-with-bg-img__text {
    text-align: center !important;
}

.text-with-bg-img__content h4 {
    font-size: 4vw;
}

.text-with-bg-img__text p {
    font-size: 20px;
}


/* ── Wastex logo-parade / navbar logo ────────────────────────────────────── */

.logo-parade__gallery img {
    max-height: 60px;
}

.navbar__logo {
    margin-top: 12px;
}


/* ── Wastex content-feature ──────────────────────────────────────────────── */

.content-feature h1, .content-feature h2, .content-feature h3, .content-feature h4, .content-feature h6 {
    color: var(--paragraph-font-color);
}

.content-feature h5 {
    color: #fff;
}


/* ── Wastex form heading / button colours ────────────────────────────────── */

.form__heading h2 {
    background-color: var(--color-primary) !important;
    color: #fff !important;
    margin-bottom: 0;
}

.form__button {
    color: var(--color-primary) !important;
}


/* ── Wastex section-component ────────────────────────────────────────────── */

.section-component {
    font-size: var(--paragraph-font-size);
}

.section-component {
    min-height: auto;
}

.section-component {
    padding: 0 !important;
}

@media (max-width: 991px) {
    .section-component .container { padding-top: 0; padding-bottom: 0; }
}


/* ── Wastex contact / newsletter ─────────────────────────────────────────── */

.contact-quote-request {
    flex-direction: column;
    gap: 2rem;
}

.contact-quote-request label {
    color: var(--color-primary);
    font-size: 22px;
}

.contact-quote-request .form__input {
    background: #fff !important;
}

.newsletter {
    --newsletter-background-color: #2D651A !important;
}

.newsletter__title {
    color: #fff;
}


/* ── Wastex c-2345 / c-2344 / c-2431 component overrides ─────────────────── */

.c-2345 {
    padding-bottom: 1rem;
}

    .c-2345 * .heading {
        line-height: normal;
        letter-spacing: normal;
        margin-bottom: 0;
        text-transform: none;
        font-size: 1.5rem;
    }

    .c-2345 .simple-text .simple-text__content, .c-2345 * .paragraph {
        text-align: center;
        text-transform: uppercase;
        font-size: 2.5rem;
        font-weight: 600;
        letter-spacing: 0.125rem;
    }

.c-2344 {
    padding-top: 0;
}

    .c-2344 .features-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 1rem;
    }

@media(max-width: 1024px) {
    .c-2344 .features-container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1rem;
    }

        .c-2344 .features-container .feature {
            max-width: max-content !important;
            padding: 1rem;
        }
}

@media(max-width: 600px) {
    .c-2344 .features-container {
        grid-template-columns: repeat(1, 1fr);
        row-gap: 1rem;
    }
}

.c-2344 .features-container .feature {
    max-width: 25rem;
    padding: 2.5rem;
    height: 26.5rem;
    box-shadow: var(--shadow-3);
    background-color: rgba(240, 101, 0, 0.3);
    border-radius: 4px;
}

@media(max-width: 600px) {
    .c-2344 .features-container .feature {
        max-width: 100% !important;
    }
}

.c-2344 .features-container .feature .heading {
    display: inline-block;
    width: 100%;
    font-size: 1.8rem;
    white-space: pre-line;
    font-family: var(--paragraph-font-family);
    font-weight: var(--main-heading-font-weight);
    letter-spacing: 0.025rem;
    line-height: 1.6rem;
    text-align: center;
    text-transform: none;
    color: var(--color-primary);
}

.c-2344 .feature * .paragraph {
    font-size: var(--paragraph-font-size);
    font-family: var(--paragraph-font-family);
    font-weight: var(--paragraph-font-family);
    color: var(--color-dark-grey-1);
    line-height: normal;
    letter-spacing: normal;
    word-spacing: normal;
    white-space: normal;
}

.c-2431.simple-text {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}


/* ── Wastex c-2404 / c-2400 / c-2401 background sections ─────────────────── */

.c-2404 {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 500px;
}

    .c-2404 p {
        max-width: 1200px;
    }

.c-2400 {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 500px;
}

.c-2401 {
    background-color: #FFF8E5;
}


/* ── Wastex .site-title sticky-positioning bug fix ───────────────────────────
   wastex-styles sets position:sticky on .site-title which hides headings
   behind the fixed navbar on mobile — force to static flow              */

.site-title {
    position: relative !important;
}
.site-title-tagline {
    display: block !important;
}


/* ── Wastex top header bar — compact ─────────────────────────────────────── */

.header-top {
    padding: 5px 0 !important;
}

.header-top-contact ul {
    gap: 20px !important;
}

.header-top-contact ul li {
    gap: 8px !important;
}

.header-top-contact-icon {
    width: 32px !important;
    height: 32px !important;
    line-height: 30px !important;
}

.header-top-contact-icon img {
    width: 16px !important;
}

.header-top-contact-info h6 {
    font-size: 13px !important;
    margin-bottom: 0 !important;
}

.header-top-contact ul li a {
    font-size: 13px !important;
}

.header-top-social a {
    width: 32px !important;
    height: 32px !important;
    line-height: 34px !important;
    font-size: 15px !important;
}

.header-top-right {
    padding-right: 12px;
}


/* ── Wastex CTA area ──────────────────────────────────────────────────────── */

.cta-area {
    padding: 40px 0;
}

.cta-wrapper h2 {
    color: #fff;
}


/* ── Wastex industry cards — image flush with card top ───────────────────── */

.industry-item {
    margin-bottom: 0;
    padding: 0 !important;
}

.industry-img {
    line-height: 0;
    overflow: hidden;
}

.industry-img a {
    display: block;
    line-height: 0;
}

.industry-img img {
    margin-top: 0 !important;
    display: block;
    width: 100%;
}

/* Industry tile "More Details" buttons — brand orange, full width */
.industry-arrow .theme-btn {
    background: #FD8000 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
.industry-arrow .theme-btn::before {
    background: #d96e00 !important;
}


/* ── Wastex inner-page top padding ───────────────────────────────────────────
   Pages without a hero banner (FAQ, About, Services, Contact, Quote, Social)
   inherit py-120 (120px) which looks like dead space. Reduce to 40px.    */

.faq-area.py-120,
.about-area.py-120,
.service-area.bg.py-120,
.contact-area.py-120,
.contact-area.pt-80 {
    padding-top: 40px !important;
}


/* ── Wastex mobile spacing overrides ─────────────────────────────────────────
   The Wastex theme uses very large padding utilities (py-120 = 120px, etc.)
   designed for desktop. On mobile these create excessive whitespace.
   Override all of them to compact values on screens under 992px.          */

@media (max-width: 991px) {
    .py-120 { padding-top:  30px !important; padding-bottom: 30px !important; }
    .py-60  { padding-top:  20px !important; padding-bottom: 20px !important; }
    .pt-120 { padding-top:  30px !important; }
    .pt-80  { padding-top:  25px !important; }
    .pt-60  { padding-top:  20px !important; }
    .pb-120 { padding-bottom: 30px !important; }
    .pb-60  { padding-bottom: 20px !important; }
    .pb-50  { padding-bottom: 20px !important; }
    .mt-50  { margin-top:   20px !important; }
    .mb-50  { margin-bottom: 20px !important; }

    /* Request-pickup form section */
    .request-pickup { padding-top: 25px !important; padding-bottom: 25px !important; }

    /* Process section */
    .process-area { padding-top: 10px !important; padding-bottom: 10px !important; }

    /* Bullet list — add breathing room before the next section */
    .collect-area { padding-bottom: 30px; }

    /* Truck — clip within its own section, reposition as subtle top-right watermark */
    .case-area { overflow: hidden; }
    .case-shape {
        top: 0 !important;
        left: auto !important;
        right: 0;
        opacity: 0.3;
    }
    .case-shape img {
        max-width: 55vw;
        height: auto;
    }
}


/* ── Strip inner py-120 / py-5 so section element owns all spacing ────────── */

section.features .py-120, section.services .py-120, section.process .py-120,
section.split .py-120, section.gallery .py-120, section.cta .py-120,
section.logos .py-120, section.form .py-120, section.reviews .py-120,
section.faq .py-120, section.social .py-120, section.text .py-120,
section.attributes .py-120 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* ── Wastex justify text in content sections ──────────────────────────────── */

.about-right p,
.about-text p,
.collect-content p,
.collect-content span,
.service-text,
.industry-text {
    text-align: justify;
}


/* ── Wastex copyright bar centering ──────────────────────────────────────── */

.copyright .row {
    justify-content: center;
    text-align: center;
}
.copyright .footer-menu {
    text-align: center !important;
    margin-top: 8px;
}
.copyright .col-lg-6 {
    text-align: center;
}


/* ── Wastex collect-content styling ──────────────────────────────────────── */

.collect-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #558E4C;
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

/* Green circle-check bullets — flexbox + Unicode ✓ avoids FontAwesome font
   rendering issues entirely. The circle is pure CSS, guaranteed to render. */
.collect-content-info ul {
    padding-left: 0 !important;
    list-style: none !important;
    margin-left: 0;
}

.collect-content-info ul li {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding-left: 0 !important;
    margin-top: 16px;
    list-style: none !important;
}

.collect-content-info ul li::before {
    content: "✓";
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #558E4C;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: Arial, sans-serif;
}


/* ── Wastex feature-item mobile shadow overflow ───────────────────────────── */

@media (max-width: 767px) {
    .feature-area-wrapper {
        overflow: hidden;
    }
    .feature-item {
        box-shadow: -5px 5px 0 #FD8000 !important;
    }
}
.section-component,
.feature-area,
.feature-area-wrapper {
    max-width: 100%;
}
