/* Elegant black palette: neutral graphite lets the red and white lead the brand. */
:root {
    --navy: #0c0d0f;
    --navy-2: #1b1e21;
    --ui-navy: #191b1e;
    --ui-navy-deep: #08090a;
    --ui-blue: #3c4248;
}

.top-utility { background: #08090a; }
.site-footer { background: linear-gradient(120deg, #08090a, #1b1e21); }
.location-section,
.location-layout,
.tracking-hub-hero,
.tracking-checklist,
.tracking-help-cta { background: #0e1012; }
.portal-window-topbar { background: linear-gradient(105deg, #090a0b 0%, #1d2023 100%); }
.integration-banner::before { background: linear-gradient(90deg, rgba(8,9,10,.97), rgba(24,27,30,.87) 48%, rgba(24,27,30,.52)); }
.faq-aside { background: linear-gradient(145deg, #1c1f22, #0c0d0f); }
.corporate-page-hero {
    background-color: #0c0d0f;
    background-image: linear-gradient(90deg, rgba(8,9,10,.97), rgba(18,20,22,.78) 52%, rgba(18,20,22,.24)), url('../img/transportiz-corporate-port.webp');
}
.services-page-hero,
.contact-page-hero { background-image: linear-gradient(90deg, rgba(8,9,10,.97), rgba(18,20,22,.78) 52%, rgba(18,20,22,.24)), url('../img/transportiz-corporate-warehouse.webp'); }
.page-cta { background: linear-gradient(105deg, #090a0b, #222529); }
.tool-card-dark { background: linear-gradient(145deg, #0b0c0d, #202326); }
.legal-header { background: #0c0d0f; }
.account-hero,
.account-profile-hero { background: linear-gradient(115deg, #0a0b0c, #222529); }
.account-auth-visual { background: #0a0b0c; }
.account-auth-visual::after { background: linear-gradient(90deg, rgba(8,9,10,.98) 0%, rgba(14,16,18,.90) 58%, rgba(20,22,24,.38) 100%); }
.account-auth-services { background: rgba(10,11,12,.82); }

/* Locker: a focused black access surface with the original image banner. */
.locker-portal-page .locker-integration-banner {
    min-height: 238px;
    background-color: #090a0b;
    background-image:
        linear-gradient(90deg, rgba(8,9,10,.96), rgba(18,20,22,.78) 54%, rgba(18,20,22,.28)),
        url('../img/transportiz-corporate-warehouse.webp');
    background-position: center 57%;
    background-size: cover;
}
.locker-portal-page .locker-integration-banner::before {
    background: linear-gradient(90deg, rgba(8,9,10,.42), rgba(8,9,10,.12) 62%, transparent);
}
.locker-portal-page .integration-banner-inner { padding-top: 23px; padding-bottom: 35px; }
.locker-portal-page .integration-banner .page-breadcrumb { margin-bottom: 15px; color: #c8ccd0; }
.locker-banner-layout .integration-banner-icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    color: #fff;
    border-color: rgba(255,255,255,.28);
    border-radius: 12px;
    background: #df0715;
    box-shadow: 0 12px 22px rgba(0,0,0,.26);
}
.locker-banner-layout .integration-banner-copy { max-width: 790px; }
.locker-banner-layout .integration-banner-copy h1 { font-size: clamp(2.25rem, 3.1vw, 3.25rem); }
.locker-banner-layout .integration-banner-copy > div > p:last-of-type { max-width: 630px; color: #d4d8dc; }
.locker-banner-points { gap: 14px; }
.locker-banner-points span { color: #f2f3f4; }

/* Calculator banner follows the same compact header scale as the locker. */
.calculator-integration-banner { min-height: 238px; }
.calculator-integration-banner .integration-banner-inner { padding-top: 23px; padding-bottom: 35px; }
.calculator-integration-banner .page-breadcrumb { margin-bottom: 15px; }
.calculator-integration-banner .integration-banner-copy h1 { font-size: clamp(2.25rem, 3.1vw, 3.25rem); }

.locker-portal-page .integration-stage { margin-top: -18px; }
.locker-control-panel {
    overflow: hidden;
    border: 1px solid #d9e0e5;
    border-top: 4px solid #df0715;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(8,9,10,.14);
}
.locker-control-heading {
    min-height: 82px;
    padding: 17px 24px;
    border-bottom-color: #e1e6ea;
    background: #fff;
}
.locker-control-kicker { color: #d40714; }
.locker-control-heading .locker-control-title-icon { color: #d40714; border-color: #f2c7cb; background: #fff5f5; }
.locker-control-heading h2 { color: #111315; }
.locker-control-heading p { color: #68747d; }
.locker-control-provider {
    gap: 9px;
    padding: 9px 12px;
    color: #111315;
    border: 1px solid #dde4e8;
    border-radius: 8px;
    background: #f8fafb;
}
.locker-control-provider strong { color: #202326; }
.locker-single-flow--simple { gap: 18px; padding: 15px 24px; background: #f5f7f8; }
.locker-single-flow--simple .locker-switcher { padding: 4px; border-color: #d4dde3; border-radius: 8px; background: #fff; }
.locker-switcher a { min-height: 46px; color: #586570; border-radius: 5px; }
.locker-switcher a.active { color: #fff; border-color: #101214; background: #101214; box-shadow: none; }
.locker-single-flow--simple .integration-external { min-height: 46px; color: #d40714; border-color: #df0715; background: #fff; }
.locker-single-flow--simple .integration-external:hover { color: #fff; background: #df0715; }

@media (min-width: 1061px) {
    .locker-control-panel {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 13px 22px;
    }
    .locker-control-heading {
        flex: 0 0 385px;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }
    .locker-control-heading p { margin-bottom: 0; }
    .locker-control-provider { flex: 0 0 auto; }
    .locker-single-flow--simple {
        flex: 1 1 auto;
        min-height: 0;
        grid-template-columns: minmax(360px, 1fr) auto;
        gap: 14px;
        padding: 0;
        background: transparent;
    }
    .locker-single-flow--simple .integration-external { min-width: 171px; }
}

/* External tools are work areas: square edges and a full, stable viewport. */
.integration-canvas.portal-window,
.tracking-portal-page .integration-canvas,
.portal-frame-viewport,
.portal-provider-frame,
.tracking-portal-page .integration-canvas .integration-frame {
    max-width: 100%;
    border-radius: 0 !important;
}
.portal-frame-viewport { overflow: hidden; }
.portal-provider-frame { width: 100%; min-width: 0; }
.tracking-portal-page .portal-window { --portal-min-height: 720px; }

@media (max-width: 760px) {
    .tracking-portal-page .portal-window { --portal-min-height: 620px; }
}

/* Final responsive layer: richer mobile hierarchy without changing page content. */
@media (max-width: 760px) {
    body:not(.integration-body) { background: #f4f7f9; }
    body:not(.integration-body) main { background: #fff; }

    .reference-section,
    .section { padding-block: 64px; }

    .section-heading { margin-bottom: 30px; }
    .section-heading h2,
    .reference-heading h2,
    .tracking-section-heading h2 { font-size: clamp(1.95rem, 9vw, 2.55rem); line-height: 1.06; }
    .section-heading p:not(.eyebrow) { font-size: .92rem; line-height: 1.65; }

    /* Home: establish a strong hero and a clear sequence of service cards. */
    .recovered-home-page .reference-hero { min-height: 630px; }
    .recovered-home-page .reference-hero-inner { min-height: 630px; padding-bottom: 62px; }
    .recovered-home-page .hero-proof { gap: 7px; margin-top: 20px; }
    .recovered-home-page .hero-proof span { flex: 1 1 45%; justify-content: center; min-height: 38px; padding: 8px; text-align: center; }
    .recovered-home-page .hero-actions { display: grid; gap: 10px; margin-top: 23px; }
    .recovered-home-page .hero-actions .btn { width: 100%; justify-content: center; }
    .recovered-home-page .hero-dock { padding-bottom: 36px; }
    .recovered-home-page .hero-dock-grid { overflow: hidden; border: 1px solid #dbe4ea; background: #fff; box-shadow: 0 18px 38px rgba(5, 37, 60, .12); }
    .recovered-home-page .dock-service { position: relative; padding: 24px 20px 23px; }
    .recovered-home-page .dock-service::before { position: absolute; top: 0; left: 20px; width: 42px; height: 3px; content: ""; background: var(--ui-red); }
    .recovered-home-page .reference-service-card { border: 1px solid #dce5eb; box-shadow: 0 12px 28px rgba(5, 37, 60, .08); }
    .recovered-home-page .reference-service-card > div:last-child { padding: 23px 20px 24px; }
    .recovered-home-page .reference-service-card a { display: flex; min-height: 43px; align-items: center; justify-content: center; }

    /* Corporate pages: a calmer, more scannable reading flow. */
    .corporate-page-hero { min-height: 390px; }
    .corporate-page-hero-inner { padding-top: 48px; padding-bottom: 54px; }
    .corporate-page-hero-inner h1 { font-size: clamp(2.35rem, 11vw, 3.3rem); line-height: 1.02; }
    .corporate-page-hero-inner > p:not(.eyebrow,.page-breadcrumb) { font-size: .92rem; line-height: 1.65; }
    .subpage-anchor-nav { top: 70px; box-shadow: 0 7px 18px rgba(5, 37, 60, .08); }
    .subpage-anchor-nav .container { padding-inline: 10px; }
    .subpage-anchor-nav a { min-height: 48px; display: inline-flex; align-items: center; padding: 0 13px; font-size: .72rem; white-space: nowrap; }

    .contact-info-cards { grid-template-columns: 1fr; gap: 10px; }
    .contact-info-cards > * { min-height: 76px; padding: 14px; border-radius: 10px; box-shadow: 0 7px 18px rgba(5, 37, 60, .05); }
    .contact-page-form { padding: 22px 17px; }
    .faq-aside { padding: 27px 22px; border-radius: 12px; }
    .faq-accordion { padding: 0 17px; border-radius: 12px; }
    .faq-accordion summary { min-height: 62px; padding-block: 18px; }

    /* Tracking gets touch-friendly destination cards instead of plain rows. */
    .tracking-destination-list { display: grid; gap: 11px; border: 0; }
    .tracking-destination-link { min-height: 102px; padding: 15px 14px; border: 1px solid #dbe5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 20px rgba(5, 37, 60, .06); }
    .tracking-destination-link:active { border-color: var(--ui-red); background: #fff8f8; }
    .tracking-destination-action { width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #fff0f1; }
    .tracking-guide-step { gap: 14px; padding: 20px 4px; }
    .tracking-checklist { border-radius: 12px; box-shadow: 0 16px 32px rgba(5, 29, 48, .16); }
    .tracking-data-grid { border: 0; }
    .tracking-data-item { margin-bottom: 10px; padding: 23px 18px; border: 1px solid #dce5eb; border-radius: 11px; box-shadow: 0 7px 18px rgba(5, 37, 60, .05); }
    .tracking-data-item:last-child { margin-bottom: 0; }

    .locker-portal-page .locker-integration-banner { min-height: 300px; }
    .locker-portal-page .integration-banner-inner { padding-top: 20px; padding-bottom: 33px; }
    .locker-banner-layout .integration-banner-copy h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
    .locker-banner-points { gap: 8px 13px; }
    .locker-control-panel { border-radius: 10px; }
    .locker-control-heading { min-height: 0; padding: 15px 14px; }
    .locker-control-provider { width: 100%; justify-content: flex-start; }
    .locker-single-flow--simple { gap: 12px; padding: 13px 14px 15px; }
    .locker-single-flow--simple .integration-external { width: 100%; }
    .calculator-integration-banner { min-height: 300px; }
    .calculator-integration-banner .integration-banner-inner { padding-top: 20px; padding-bottom: 33px; }
    .calculator-integration-banner .integration-banner-copy h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
}

@media (min-width: 761px) and (max-width: 1020px) {
    .reference-section { padding-block: 78px; }
    .corporate-page-hero-inner { padding-right: 44px; }
    .tracking-destination-link { grid-template-columns: 70px minmax(0, 1fr) 110px; }
    .tracking-destination-provider { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .tracking-destination-link,
    .reference-service-card { transition: none; }
}

/* Official logo: retain the supplied artwork without inherited text-logo rules. */
.header-logo { width: 218px; }
.header-logo img,
.auth-mobile-logo img { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .34)); }
.header-logo,
.footer-logo,
.account-auth-brand,
.auth-mobile-logo,
.account-form-brand,
.admin-login-logo,
.admin-sidebar-logo { background: linear-gradient(to bottom, #fff 0 65%, #111315 65% 100%); }
.footer-logo { width: 205px; padding: 10px 12px; border-radius: 3px; }
.account-auth-brand { display: block; height: auto !important; min-height: 0 !important; }
.account-auth-visual .image-logo img { position: static !important; inset: auto !important; width: 100% !important; height: auto !important; max-width: none; object-fit: contain !important; }

/* The customer access header is always light on phones and compact tablets. */
@media (max-width: 1050px) {
    .account-auth-visual {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible;
        padding: 24px 22px 16px;
        background: #fff !important;
    }
    .account-auth-visual > picture,
    .account-auth-visual::after,
    .account-auth-visual-copy,
    .account-auth-services,
    .account-auth-brand { display: none !important; }
    .auth-mobile-logo {
        display: block !important;
        position: static !important;
        width: 210px !important;
        height: auto !important;
        margin: 0 auto;
        padding: 0;
    }
    .auth-mobile-logo img { position: static !important; width: 100% !important; height: auto !important; }
    .account-auth-shell > .account-auth-card { border-top: 1px solid #e2e8ec; }
}

@media (max-width: 760px) {
    .header-logo { width: 190px; }
    .footer-logo { width: 195px; }
}

/* High-contrast logo treatment: no cards or decorative backplates. */
.image-logo,
.header-logo,
.footer-logo,
.account-auth-brand,
.auth-mobile-logo,
.account-form-brand { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }

/* The form mark stays prominent on desktop while mobile uses the compact header mark. */
@media (min-width: 901px) {
    .account-auth-shell > .account-auth-card { align-items: center; }
    .account-form-brand { display: block !important; width: 260px !important; margin: 0 auto 24px !important; }
}

@media (max-width: 900px) {
    .header-logo { width: 160px; }
    .account-auth-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 18px 20px 14px !important;
    }
    .auth-mobile-logo {
        display: block !important;
        width: min(76vw, 280px) !important;
        margin: 0 auto !important;
        line-height: 0;
    }
    .auth-mobile-logo img {
        display: block;
        width: 100% !important;
        height: auto !important;
        filter: none;
        object-fit: contain;
    }
}

/* The official mark already identifies the access screen; the generic user glyph
   only adds visual noise above both forms. */
.account-auth-card .account-auth-user-icon { display: none !important; }

@media (max-width: 900px) {
    .account-auth-visual {
        padding-top: 30px !important;
        padding-bottom: 18px !important;
    }
    .auth-mobile-logo { align-self: center; }
}

/* Keep the brand precisely centered above the desktop form as well. */
@media (min-width: 901px) {
    .account-form-brand {
        display: block !important;
        width: min(100%, 280px) !important;
        margin: 0 auto 24px !important;
        line-height: 0;
    }
    .account-form-brand img {
        display: block;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
}
