/* Public shell and homepage parity components. Source: legacy layout/style/homefe CSS. */

:root {
    --legacy-container-padding: clamp(1.25rem, 2.6vw, 3rem);
    --home-content-max: 1300px;
    --home-content-gutter: clamp(1rem, 2.6vw, 2rem);
    --quick-surface: #fff;
    --quick-ink: #071b62;
    --quick-muted: #657493;
    --quick-blue: #0755d9;
    --quick-orange: #ff8c23;
}
body, button, input, select, textarea { font-family: "Poppins", Arial, Helvetica, sans-serif; }
body { font-size: 15px; font-weight: 400; color: #545454; }
h1, h2, h3, h4, h5, h6 { font-family: "Poppins", Arial, Helvetica, sans-serif; font-weight: 700; }

.home-banner { padding-bottom: clamp(1.25rem, 2.8vw, 2.5rem); }
.home-actions,
.home-section,
.newsletter {
    width: min(calc(100% - (2 * var(--home-content-gutter))), var(--home-content-max));
    max-width: var(--home-content-max);
}
.home-section { padding-right: 0; padding-left: 0; }
.newsletter { margin-right: auto; margin-left: auto; }
.footer-grid {
    width: min(calc(100% - (2 * var(--home-content-gutter))), var(--home-content-max));
    max-width: var(--home-content-max);
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.home-carousel { max-width: 1840px; margin: auto; }
.home-banner-frame { isolation: isolate; }
.home-banner-slide { animation: home-banner-enter .35s ease-out; }
.home-banner-slide[hidden] { display: none; }
.home-banner-slide img { display: block; width: 100%; height: auto; min-height: 250px; object-fit: cover; aspect-ratio: 1366 / 430; }
.banner-arrow { z-index: 1; border: 0; cursor: pointer; }
.banner-dot { border: 0; cursor: pointer; }
.banner-dot:focus-visible, .banner-arrow:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.home-location-field { position: relative; z-index: 1; }
.home-location-field:focus-within { z-index: 2; }
.home-location-field .location-results {
    position: fixed;
    z-index: 100;
    top: var(--location-dropdown-top, -100vh);
    left: var(--location-dropdown-left, -100vw);
    width: var(--location-dropdown-width, auto);
    display: grid;
    max-height: var(--location-dropdown-max-height, 17.5rem);
    margin: 0;
    padding: .2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
    border: 1px solid #dce3ee;
    border-radius: .65rem;
    background: #fff;
    box-shadow: 0 .75rem 1.75rem rgba(20, 47, 99, .16);
}
.home-location-field .location-results:empty { display: none; }
.home-location-field .location-results:not([data-positioned]) { visibility: hidden; }
.home-location-field .location-option {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: .5rem .65rem;
    border: 0;
    border-radius: .4rem;
    appearance: none;
    color: #23395f;
    font: inherit;
    font-size: .875rem;
    line-height: 1.35;
    text-align: left;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
}
.home-location-field .location-option:hover { color: #b85b00; border-color: transparent; outline: 0; background: transparent; }
.home-location-field .location-option:focus-visible { color: #b85b00; outline: 0; text-decoration: underline; background: transparent; }

/* Quick-service cards: a single responsive component with a 1300px content rail. */
.home-actions {
    position: relative;
    z-index: 3;
    display: grid;
    margin: 0 auto;
    padding: 0;
    grid-template-columns: minmax(290px, .86fr) minmax(0, 1.64fr);
    gap: clamp(1rem, 2.2vw, 2rem);
}

.action-card {
    position: relative;
    display: flex;
    min-width: 0;
    /* Let the richer of the two cards define the shared grid height. A forced
       height left an artificial empty panel below the call-to-action. */
    min-height: 0;
    padding: clamp(1.35rem, 2.4vw, 2.25rem);
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(49, 102, 211, .1);
    border-radius: 20px;
    background: var(--quick-surface);
    box-shadow: 0 20px 46px rgba(16, 53, 132, .12);
    isolation: isolate;
}

.action-card::before,
.action-card::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.action-card::before { top: -6.5rem; right: -5.5rem; width: 12rem; height: 12rem; background: rgba(75, 154, 255, .12); }
.action-card::after { right: -3rem; bottom: -6rem; width: 15rem; height: 15rem; border: 2.5rem solid rgba(49, 131, 243, .055); }
.rate-card::before { background: rgba(255, 158, 73, .12); }

.action-card-heading { display: flex; min-height: 84px; margin-bottom: clamp(1rem, 1.8vw, 1.2rem); align-items: center; gap: 1rem; }
.action-card-heading h1,
.action-card-heading h2 { margin: 0; color: var(--quick-ink); font-size: clamp(1rem, 1.9vw, 1.3rem); font-weight: 700; line-height: 1.18; }
.action-card-heading p { margin: .25rem 0 0; color: var(--quick-muted); font-size: clamp(.6rem, 0.9vw, .7rem); line-height: 1.55; }
.action-card-icon { display: grid; width: 4.5rem; height: 4.5rem; flex: 0 0 auto; place-items: center; border-radius: 1.35rem; }
.action-card-icon .nav-icon { width: 2.2rem; height: 2.2rem; }
.tracking-action-icon { color: var(--quick-blue); background: #eaf3ff; }
.rate-action-icon { color: var(--quick-orange); background: #fff3e8; }

.quick-field { min-width: 0; }
.quick-field label { display: flex; margin: 0 0 .55rem; align-items: center; gap: .6rem; color: var(--quick-ink); font-size: .93rem; font-weight: 700; }
.field-icon { display: grid; width: 2.4rem; height: 2.4rem; flex: 0 0 auto; place-items: center; border-radius: .8rem; }
.field-icon .nav-icon { width: 1.35rem; height: 1.35rem; }
.origin-field-icon { color: var(--quick-blue); background: #eaf3ff; }
.destination-field-icon { color: var(--quick-orange); background: #fff3e8; }
.weight-field-icon { color: #49607d; background: #f0f4f9; }
.quick-field-control { display: flex; min-height: 56px; align-items: center; border: 2px solid #e2e8f2; border-radius: 1rem; background: rgba(255, 255, 255, .96); transition: border-color 160ms ease, box-shadow 160ms ease; }
.quick-field-control:focus-within { border-color: #2c7ff0; box-shadow: 0 0 0 4px rgba(44, 127, 240, .13); }
.quick-field-control > .nav-icon { width: 1.85rem; height: 1.85rem; margin-left: 1rem; color: #657493; }
.quick-field-control input,
.action-card .quick-field-control input { min-width: 0; padding: .65rem 1rem; border: 0; border-radius: inherit; outline: 0; color: #1c315f; font: inherit; background: transparent; }
.tracking-field { margin-top: auto; }
.tracking-field .quick-field-control input { padding-left: .8rem; }
.rate-fields { display: grid; margin-top: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(130px, .38fr); gap: clamp(.85rem, 1.4vw, 1.35rem); }
.weight-field .quick-field-control input { text-align: center; }

.action-card > button[type="submit"] {
    display: flex;
    min-height: 45px;
    margin-top: clamp(1.25rem, 2vw, 1.75rem);
    margin-bottom: 0;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    border: 0;
    border-radius: 1rem;
    color: #fff;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    background: linear-gradient(120deg, #0872ec, #053dc3);
    box-shadow: 0 13px 25px rgba(3, 67, 203, .22);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.action-card > button[type="submit"]:hover { background: linear-gradient(120deg, #087dfd, #0736b9); box-shadow: 0 17px 29px rgba(3, 67, 203, .3); transform: translateY(-2px); }
.action-card > button[type="submit"]:focus-visible { outline: 3px solid #ff9e2d; outline-offset: 3px; }
.action-button-arrow { display: grid; width: 1.6rem; height: 1.6rem; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.action-button-arrow::before { width: .4rem; height: .4rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; content: ""; transform: rotate(45deg); }

.home-news-card { overflow: hidden; border-radius: 20px; }
.news-image { border-radius: 20px 20px 0 0; }

.partner-marquee { overflow: hidden; }
.partner-track { width: max-content; min-width: 100%; justify-content: flex-start; animation: home-partner-marquee 40s linear infinite; }
.partner-track:hover { animation-play-state: paused; }
.partner-logo { display: grid; min-width: 115px; min-height: 75px; place-items: center; }

@keyframes home-banner-enter { from { opacity: .45; } to { opacity: 1; } }
@keyframes home-partner-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 700px) {
    .home-banner { padding-bottom: 1rem; }
    .home-actions,
    .home-section,
    .newsletter,
    .footer-grid { width: min(calc(100% - 1.5rem), var(--home-content-max)); }
    .home-actions { grid-template-columns: 1fr; }
    .action-card { min-height: auto; padding: 1.25rem; }
    .action-card-heading { min-height: 70px; margin-bottom: 1.15rem; }
    .action-card-icon { width: 4.1rem; height: 4.1rem; border-radius: 1.1rem; }
    .action-card-icon .nav-icon { width: 1.85rem; height: 1.85rem; }
    .rate-fields { grid-template-columns: 1fr; }
    .quick-field-control { min-height: 54px; }
    .action-card > button[type="submit"] { min-height: 45px; }
    .home-banner-slide img { min-height: 150px; }
    .partner-track { animation-duration: 28s; }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner-slide { animation: none; }
    .partner-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
}
