/* =============================================================
   Waste Management Software Development — page-scoped styles
   Scope: .wms-page  (only loaded for this template)

   Palette is the theme's own: brand red #ec2024 on the #fdecec
   tint, near-black inks and grey lines pulled from variable.css.
   Same accent convention as real-estate-ai-agent.css and
   industrial-waste-exchange.css — no colours invented here.
============================================================= */

.wms-page {
    color: var(--text-black);

    /* accent */
    --wms-red: #ec2024;
    --wms-red-soft: #fdecec;
    --wms-red-line: var(--border-light-red);
    /* #F8A9AA */

    /* surfaces */
    --wms-ink: #000;
    /* matches .bg-section-black */
    --wms-ink-2: #111;
    /* var(--black-bg-three)   */
    --wms-soft: #F9F9F9;
    /* var(--grey-bg-thirteen) */

    /* text + lines */
    --wms-body: var(--text-black-two);
    /* #434343 */
    --wms-muted: var(--text-black-three);
    /* #5E5E5E */
    --wms-line: var(--border-grey-three);
    /* #E5E5EA */
}

/* ---------- shared section rhythm ---------- */
.wms-page section {
    padding: 90px 0;
}

.wms-page .heading-row {
    margin-bottom: 48px;
}

@media (max-width: 991.98px) {
    .wms-page section {
        padding: 60px 0;
    }

    .wms-page .heading-row {
        margin-bottom: 32px;
    }
}

/* ---------- buttons ---------- */
.wms-btn {
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 26px;
    /* Deliberately no `border` declaration. .button-red supplies the theme's
       own 1px rgba(255,255,255,.4) edge and .wms-btn--ghost supplies its own,
       so both hero buttons end up with a 1px box and matching heights.
       An earlier `border: 0` here flattened the theme's red button. */
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

/* the theme's explore icon is an SVG with no intrinsic size; left alone it
   renders 28px and pushes the primary button taller than the ghost */
.wms-hero__cta .wms-btn img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

/* the two hero buttons wrap onto separate rows on small screens; at their
   natural widths they stack ragged, so square them off */
@media (max-width: 575.98px) {
    .wms-hero__cta {
        width: 100%;
    }

    .wms-hero__cta .wms-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.wms-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(236, 32, 36, .28);
}

.wms-btn--ghost {
    color: #fff;
    border: 1px solid var(--border-light-white-three);
    background: rgba(255, 255, 255, .05);
}

.wms-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transform: translateY(-2px);
}

.wms-btn__arrow {
    transition: transform .18s ease;
}

.wms-btn--ghost:hover .wms-btn__arrow {
    transform: translateX(4px);
}

/* theme gradient-bg-eleven, as text */
.wms-text-gradient {
    background: linear-gradient(90deg, #EC2024 0%, #F08789 48.62%, #F2BCBD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.wms-hero {
    padding: 110px 0 100px;
    /* solid black underneath so the hero never flashes white while the
       background image loads, and stays correct if it 404s */
    background-color: var(--wms-ink);
    background-image: url("../images/development/waste-management-software/waste-management-software-development.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* The artwork (truck, route line, recycle mark) sits in the LEFT third of
   the image, which is exactly where the headline and lead copy land.
   This scrim is graded left-to-right: heaviest behind the text, lightest
   over the middle so the illustration still reads, then slightly deeper
   again under the form card. Contrast was measured, not eyeballed. */
.wms-hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .76) 0%,
            rgba(0, 0, 0, .64) 30%,
            rgba(0, 0, 0, .26) 58%,
            rgba(0, 0, 0, .44) 100%);
    pointer-events: none;
}

@media (max-width: 991.98px) {

    /* single column: text runs the full width over the busiest part of the
       artwork, so the scrim goes flat and heavier */
    .wms-hero {
        background-position: 28% center;
    }

    .wms-hero__scrim {
        background: rgba(0, 0, 0, .66);
    }
}

/* The form card is much taller than the copy, so centring the row dropped
   the headline well down the hero. The row is top-aligned from lg up; this
   nudge lines the H1 up optically with the card's own heading rather than
   with the card's top border. */
@media (min-width: 992px) {
    .wms-hero__copy {
        padding-top: 26px;
    }
}

.wms-hero__title {
    font-size: 54px;
    line-height: 1.12;
    letter-spacing: -.02em;
}

.wms-hero__lead {
    font-size: 18px;
    line-height: 1.7;
    max-width: 620px;
}

.wms-hero__chips li {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dull-white-eight);
    border: 1px solid var(--border-light-white-three);
    border-radius: 999px;
    padding: 7px 14px;
}

@media (max-width: 1199.98px) {
    .wms-hero__title {
        font-size: 42px;
    }
}

@media (max-width: 767.98px) {
    .wms-hero {
        padding: 70px 0 60px;
    }

    .wms-hero__title {
        font-size: 32px;
    }

    .wms-hero__lead {
        font-size: 16px;
    }
}

/* ---------- hero form card ---------- */
.wms-formcard {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border-light-white-three);
    border-radius: 18px;
    padding: 30px;
    backdrop-filter: blur(8px);
}

/* Lift the card 10% of its own height. Transform rather than a negative
   margin so the row's layout height is untouched. lg+ only — below that the
   card stacks under the copy and shifting it would collide with the CTA. */
@media (min-width: 992px) {
    .wms-formcard {
        transform: translateY(-10%);
    }
}

.wms-formcard__title {
    font-size: 24px;
}

.wms-formcard__sub {
    color: var(--text-dull-white-two);
    font-size: 14px;
    line-height: 1.6;
}

.wms-field {
    margin-bottom: 14px;
}

.wms-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dull-white-five);
    margin-bottom: 6px;
}

.wms-input {
    width: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border-light-white-three);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    transition: border-color .18s ease, background .18s ease;
}

.wms-input::placeholder {
    color: var(--text-dull-white);
}

.wms-input:focus {
    outline: 0;
    border-color: var(--wms-red);
    background: rgba(255, 255, 255, .09);
}

.wms-textarea {
    resize: vertical;
    min-height: 84px;
}

.wms-form-submit {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.wms-form-note {
    color: var(--text-dull-white-two);
    font-size: 12px;
    text-align: center;
    margin: 12px 0 0;
}

@media (max-width: 767.98px) {
    .wms-formcard {
        padding: 22px;
    }
}

/* ==========================================================================
   INTRO
   ========================================================================== */
/* The routing render sits behind this section. It is a light image and the
   copy over it is near-black, so the scrim below is white rather than the
   black one used in the hero. Contrast measured, not eyeballed. */
.wms-intro {
    background-color: #fff;
    background-image: url("../images/development/waste-management-software/waste-routing-software.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.wms-intro__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, .93) 0%,
            rgba(255, 255, 255, .88) 45%,
            rgba(255, 255, 255, .82) 100%);
    pointer-events: none;
}

/* The leaks card sits on top of the artwork. Kept near-opaque on purpose:
   at .82 the image showed through prettily but dropped the small grey
   detail text from ~7:1 to 6:1. Legibility wins over the effect. */
.wms-intro .wms-leaks {
    background: rgba(249, 249, 249, .96);
    backdrop-filter: blur(3px);
}

@media (max-width: 991.98px) {

    /* single column, copy runs full width over the busiest part */
    .wms-intro__scrim {
        background: rgba(255, 255, 255, .93);
    }
}

/* fills the half-row under the heading, which was otherwise dead space */
.wms-leaks {
    margin-top: 34px;
    border-left: 3px solid var(--wms-red);
    background: var(--wms-soft);
    border-radius: 0 14px 14px 0;
    padding: 24px 26px;
}

.wms-leaks__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--wms-red);
    margin-bottom: 16px;
}

.wms-leaks__list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--wms-line);
}

.wms-leaks__list li:first-child {
    padding-top: 0;
}

.wms-leaks__list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.wms-leaks__list strong {
    display: block;
    color: var(--text-black);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 3px;
}

.wms-leaks__list span {
    color: var(--wms-muted);
    font-size: 14.5px;
    line-height: 1.55;
}

@media (max-width: 991.98px) {
    .wms-leaks {
        margin-top: 26px;
        padding: 20px 22px;
    }
}

/* ==========================================================================
   TYPES OF SOFTWARE  (keyword-capture cards)
   ========================================================================== */
.wms-types {
    background: var(--wms-soft);
}

.wms-type-card {
    background: #fff;
    border: 1px solid var(--wms-line);
    border-radius: 16px;
    padding: 30px 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.wms-type-card:hover {
    transform: translateY(-4px);
    border-color: var(--wms-red-line);
    box-shadow: 0 18px 40px rgba(17, 17, 17, .08);
}

.wms-type-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--wms-red-soft);
    color: var(--wms-red);
    font-size: 22px;
    margin-bottom: 16px;
}

.wms-type-card__title {
    line-height: 1.35;
    /* longest title is "Landfill, Transfer Station & Scale House Software" —
       keep the grid rows even by reserving two lines */
    min-height: 2.7em;
}

/* cards are single-column below md, so the reserved second line just
   adds dead space — drop it */
@media (max-width: 767.98px) {
    .wms-type-card__title {
        min-height: 0;
    }
}

.wms-type-card em {
    font-style: normal;
    font-weight: 600;
    color: var(--wms-red);
}

.wms-type-card__tags li {
    font-size: 12px;
    font-weight: 600;
    color: var(--wms-red);
    background: var(--wms-red-soft);
    border-radius: 999px;
    padding: 5px 11px;
}

/* ==========================================================================
   MODULES
   ========================================================================== */
.wms-modules {
    background: var(--wms-ink);
}

.wms-module {
    position: relative;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-light-white-three);
    border-radius: 14px;
    padding: 26px 24px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.wms-module:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(236, 32, 36, .45);
    transform: translateY(-3px);
}

.wms-module__num {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--wms-red);
    margin-bottom: 10px;
}

.wms-module__title {
    line-height: 1.35;
}

.wms-module__text {
    color: var(--text-dull-white-six);
    font-size: 15px;
    line-height: 1.65;
}

/* ==========================================================================
   THREE APPS
   ========================================================================== */
.wms-apps {
    background: #fff;
}

.wms-app {
    border: 1px solid var(--wms-line);
    border-left: 3px solid var(--wms-red);
    border-radius: 14px;
    padding: 30px 26px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.wms-app:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 17, 17, .08);
}

.wms-app__who {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--wms-muted);
}

.wms-app__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--wms-body);
}

.wms-app__list li:last-child {
    margin-bottom: 0;
}

.wms-app__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--wms-red);
    border-bottom: 2px solid var(--wms-red);
    transform: rotate(-45deg);
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.wms-compare {
    background: var(--wms-soft);
}

.wms-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--wms-line);
    border-radius: 16px;
    background: #fff;
}

.wms-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.wms-table th,
.wms-table td {
    padding: 18px 20px;
    text-align: left;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid var(--wms-line);
}

.wms-table thead th {
    background: var(--wms-ink-2);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}

.wms-table thead th:first-child {
    border-top-left-radius: 15px;
}

.wms-table thead th:last-child {
    border-top-right-radius: 15px;
}

.wms-table tbody th {
    font-weight: 600;
    color: var(--text-black);
    background: #FBFBFB;
    width: 190px;
}

.wms-table tbody td {
    color: var(--wms-body);
}

.wms-table tbody tr:last-child th,
.wms-table tbody tr:last-child td {
    border-bottom: 0;
}

.wms-table tbody tr:hover td,
.wms-table tbody tr:hover th {
    background: var(--wms-red-soft);
}

/* ==========================================================================
   AI & AUTOMATION
   ========================================================================== */
.wms-ai {
    background: var(--wms-ink);
}

.wms-ai-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border-light-white-three);
    border-radius: 14px;
    padding: 26px 24px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.wms-ai-card:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(236, 32, 36, .45);
    transform: translateY(-3px);
}

/* names the actual technique, so the claim stays specific */
.wms-ai-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--wms-red);
    background: rgba(236, 32, 36, .14);
    border: 1px solid rgba(236, 32, 36, .3);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 14px;
}

.wms-ai-card__title {
    line-height: 1.35;
}

.wms-ai-card__text {
    color: var(--text-dull-white-six);
    font-size: 15px;
    line-height: 1.65;
}

/* the honest counterpart block — plain rules, no model needed */
.wms-automation {
    border: 1px solid var(--border-light-white-three);
    border-left: 3px solid var(--wms-red);
    border-radius: 14px;
    padding: 30px 32px;
    background: rgba(255, 255, 255, .03);
}

.wms-automation__lead {
    color: var(--text-dull-white-six);
    font-size: 16px;
    line-height: 1.7;
}

.wms-automation__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 28px;
}

.wms-automation__list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-dull-white-eight);
    font-size: 15px;
    line-height: 1.6;
}

.wms-automation__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--wms-red);
    border-bottom: 2px solid var(--wms-red);
    transform: rotate(-45deg);
}

@media (max-width: 767.98px) {
    .wms-automation {
        padding: 24px 22px;
    }

    .wms-automation__list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   INTEGRATIONS
   ========================================================================== */
.wms-integrations {
    background: #fff;
}

.wms-integration {
    border: 1px solid var(--wms-line);
    border-radius: 14px;
    padding: 24px 22px;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease;
}

.wms-integration:hover {
    border-color: var(--wms-red-line);
    transform: translateY(-3px);
}

.wms-integration__list li {
    font-size: 13px;
    font-weight: 500;
    color: var(--wms-body);
    background: #F9F9F9;
    border: 1px solid var(--wms-line);
    border-radius: 999px;
    padding: 5px 11px;
}

/* ==========================================================================
   COMPLIANCE
   ========================================================================== */
.wms-compliance {
    background: var(--wms-ink-2);
}

.wms-compliance-item {
    border: 1px solid var(--border-light-white-three);
    border-radius: 14px;
    padding: 26px 24px;
    background: rgba(255, 255, 255, .03);
}

.wms-compliance-item p {
    color: var(--text-dull-white-six);
    font-size: 15px;
    line-height: 1.65;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.wms-process {
    background: var(--wms-soft);
}

.wms-step {
    background: #fff;
    border: 1px solid var(--wms-line);
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.wms-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 17, 17, .07);
}

.wms-step__num {
    display: inline-block;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: rgba(236, 32, 36, .32);
    margin-bottom: 12px;
}

/* ==========================================================================
   TECH STACK
   ========================================================================== */
.wms-stack {
    background: #fff;
}

.wms-stack-row {
    border-bottom: 1px solid var(--wms-line);
    padding: 16px 4px;
}

.wms-stack-row__k {
    font-weight: 600;
    color: var(--text-black);
    font-size: 15px;
    min-width: 150px;
}

.wms-stack-row__v {
    color: var(--wms-body);
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   COST DRIVERS + ENGAGEMENT
   ========================================================================== */
.wms-cost {
    background: var(--wms-soft);
}

.wms-cost-item {
    background: #fff;
    border: 1px solid var(--wms-line);
    border-radius: 14px;
    padding: 26px 24px;
}

.wms-engage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.wms-engage__item {
    background: var(--wms-ink-2);
    border-radius: 14px;
    padding: 26px 24px;
    border-top: 3px solid var(--wms-red);
}

.wms-engage__item h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wms-engage__item p {
    color: var(--text-dull-white-six);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767.98px) {
    .wms-engage {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.wms-why {
    background: #fff;
}

.wms-why-item {
    border-radius: 14px;
    padding: 26px 24px;
    background: var(--wms-soft);
    border: 1px solid transparent;
    transition: border-color .2s ease, transform .2s ease;
}

.wms-why-item:hover {
    border-color: var(--wms-red-line);
    transform: translateY(-3px);
}

/* ==========================================================================
   INTERNAL LINKS
   ========================================================================== */
.wms-internal-links {
    background: #fff;
}

/* the card is wrapped in a bare <a>, which would otherwise inherit
   Bootstrap's default link blue and leak into anything not explicitly
   coloured by a .text-color-* utility */
.wms-internal-links a {
    color: var(--text-black);
}

.wms-internal-links .internal-link-box {
    border: 1px solid var(--wms-line);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.wms-internal-links .internal-link-box:hover {
    border-color: var(--wms-red-line);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 17, 17, .07);
}
