/* ======================================================
   EW Services FOOTER
   4-column footer + copyright bar ported from the
   "Melanie Movers" template. Light theme (off-white),
   keeping Voyago's orange accent.
   Loaded on index.html only, after css/style.css.
   NOTE: link labels, company info, MC/DOT numbers and the
   "Developed by" credit are placeholder text carried over
   from the source template — edit before launch.
====================================================== */

.ew-footer {
    /* light palette (matches the .section-light bands) */
    --color-primary: #171a1c;
    --text-color-1: #565c61;
    --color-bg-1: #f4f5f5;
    --color-bg-2: #ecedee;
    --color-border: rgba(23, 26, 28, 0.14);

    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    font-family: var(--font-1);
    color: #565c61;
}

.ew-footer .container {
    max-width: 1320px;
}

.ew-footer__wrap {
    padding-top: 140px;
    padding-bottom: 128px;
}

@media (max-width: 991px) {
    .ew-footer__wrap {
        padding-top: 90px;
        padding-bottom: 70px;
    }
}

@media (max-width: 767px) {
    .ew-footer__wrap {
        padding-top: 76px;
        padding-bottom: 48px;
    }
}

/* ---------- widget 1: logo / badge / hours ---------- */
.ew-footer__logo {
    display: inline-block;
}

.ew-footer__logo img {
    max-height: 96px;
    width: auto;
    margin-bottom: 30px;
}

.ew-fmcsa {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(234, 92, 42, 0.08);
    border: 1px solid rgba(234, 92, 42, 0.32);
}

.ew-fmcsa__logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.ew-fmcsa__text {
    display: flex;
    flex-direction: column;
}

.ew-fmcsa__title {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 13px;
}

.ew-fmcsa__numbers {
    font-size: 12px;
    color: var(--text-color-1);
    white-space: nowrap;
}

.ew-footer__hours {
    margin: 20px 0 0;
    font-size: 15px;
    color: var(--text-color-1);
}

.ew-footer__hours b {
    color: var(--color-primary);
}

/* ---------- link widgets ---------- */
.ew-footer__header {
    font-family: var(--font-1);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.ew-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ew-footer__list li {
    font-size: 16px;
}

.ew-footer__list li:not(:last-child) {
    margin-bottom: 15px;
}

.ew-footer__list li a {
    color: var(--text-color-1);
    transition: color 0.3s ease;
}

.ew-footer__list li a:hover {
    color: var(--color-main);
}

.ew-footer__widget--icon .ew-footer__list li a {
    position: relative;
    padding-left: 20px;
}

.ew-footer__widget--icon .ew-footer__list li a::before {
    content: "\00bb";
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    color: var(--color-main);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-52%);
}

/* ---------- widget 4: contact + social ---------- */
.ew-footer__contact {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.ew-footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-color-1);
}

.ew-footer__contact li i {
    color: var(--color-main);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ew-footer__contact li a {
    color: var(--text-color-1);
    transition: color 0.3s ease;
}

.ew-footer__contact li a:hover {
    color: var(--color-main);
}

.ew-footer__social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.ew-footer__social li a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ew-footer__social li a:hover {
    background-color: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
}

/* ---------- copyright bar ---------- */
.ew-footer__bottom {
    position: relative;
    background-color: var(--color-bg-1);
    border-top: 1px solid var(--color-border);
}

.ew-footer__truck {
    position: absolute;
    top: 0;
    right: 30px;
    width: 380px;
    height: 66px;
    transform: translateY(-50%);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    animation: ew-truck-run 28s linear infinite;
    pointer-events: none;
}

@keyframes ew-truck-run {
    0%   { right: -400px; }
    100% { right: 100%; }
}

/* smaller / quicker run for narrow screens */
@keyframes ew-truck-run-sm {
    0%   { right: -210px; }
    100% { right: 100%; }
}

.ew-footer__copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    flex-wrap: wrap;
    padding: 52px 0 44px;
}

.ew-footer__copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color-1);
}

.ew-footer__copy a {
    color: var(--color-main);
}

.ew-footer__copylist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.ew-footer__copylist li a {
    font-size: 15px;
    color: var(--text-color-1);
    transition: color 0.3s ease;
}

.ew-footer__copylist li a:hover {
    color: var(--color-main);
}

@media (max-width: 991px) {
    .ew-footer__widget {
        margin-bottom: 44px;
    }
}

/* ======================================================
   MOBILE FOOTER  (<= 767px)  — fully centered, generous
   spacing, readable type. Selectors target the actual text
   elements (a / p / span / li) so the template's global
   "@media (max-width:992px){ a,p{font-size:12-14px} }" rule
   cannot shrink them.
====================================================== */
@media (max-width: 767px) {
    /* keep the moving truck on phones too, just smaller + quicker */
    .ew-footer__truck {
        display: block;
        width: 188px;
        height: 34px;
        animation: ew-truck-run-sm 16s linear infinite;
    }

    .ew-footer__wrap {
        padding-top: 56px;
        padding-bottom: 8px;
        text-align: center;
    }

    /* each column becomes a centered, evenly-spaced block with a
       hairline divider between them */
    .ew-footer__wrap > [class*="col-"] {
        padding-bottom: 30px;
        margin-bottom: 30px;
        border-bottom: 1px solid var(--color-border);
    }

    .ew-footer__wrap > [class*="col-"]:last-child {
        border-bottom: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .ew-footer__widget {
        margin-bottom: 0;
    }

    /* ---- widget 1: logo / badge / hours ---- */
    .ew-footer__logo {
        display: block;
        margin-bottom: 6px;
    }

    .ew-footer__logo img {
        max-height: 92px;
        margin-bottom: 22px;
    }

    .ew-fmcsa {
        margin: 0 auto;
        max-width: 300px;
        justify-content: center;
    }

    .ew-fmcsa__title {
        font-size: 15px;
    }

    .ew-fmcsa__numbers {
        font-size: 13.5px;
        white-space: normal;
    }

    .ew-footer__hours {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.7;
    }

    /* ---- headers ---- */
    .ew-footer__header {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* ---- link lists: centered block, left-aligned rows ---- */
    .ew-footer__list {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .ew-footer__list li:not(:last-child) {
        margin-bottom: 13px;
    }

    .ew-footer__list li a {
        font-size: 16px;
        line-height: 1.4;
    }

    .ew-footer__widget--icon .ew-footer__list li a {
        padding-left: 18px;
    }

    /* ---- contact list ---- */
    .ew-footer__contact {
        display: inline-block;
        margin: 0 auto;
        text-align: left;
    }

    .ew-footer__contact li {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 14px;
        align-items: flex-start;
        gap: 11px;
    }

    .ew-footer__contact li a {
        font-size: 16px;
    }

    .ew-footer__contact li i {
        margin-top: 3px;
    }

    /* ---- copyright bar ---- */
    .ew-footer__bottom .container {
        padding-left: 22px;
        padding-right: 22px;
    }

    .ew-footer__copy {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 30px 0 30px;
    }

    .ew-footer__copy p {
        font-size: 14px;
        line-height: 1.8;
    }

    .ew-footer__copylist {
        justify-content: center;
        gap: 10px 22px;
    }

    .ew-footer__copylist li a {
        font-size: 15px;
    }
}
