﻿:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f3f3f5;
    --text: #0f0f10;
    --muted: #434349;
    --primary: #d3122f;
    --primary-deep: #a80e25;
    --accent: #d3122f;
    --dark: #0a0a0b;
    --border: #d8d8dd;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 85% 0%, rgba(211, 18, 47, 0.08) 0, transparent 26%),
        radial-gradient(circle at 10% 5%, rgba(0, 0, 0, 0.04) 0, transparent 30%),
        var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1220px, calc(100% - 1.6rem));
    margin-inline: auto;
}

.narrow {
    width: min(820px, 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 82px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    flex: 0 0 auto;
    min-width: 0;
}

.brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.brand div {
    min-width: 0;
}

.brand strong {
    display: block;
    letter-spacing: 0.08em;
    line-height: 1.05;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.main-nav a {
    font-weight: 700;
    color: var(--muted);
    transition: color 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.nav-cta {
    margin-left: 0.5rem;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.62rem 0.95rem;
    min-height: 42px;
    box-shadow: 0 8px 20px rgba(211, 18, 47, 0.24);
}

.language-switch {
    flex: 0 0 auto;
}

.language-switch {
    display: inline-flex;
    gap: 0.15rem;
    padding: 0.22rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.language-switch button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.32rem 0.48rem;
}

.language-switch button.active {
    background: rgba(207, 19, 47, 0.12);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-size: 1.1rem;
}

.hero {
    padding: 4.5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.home-hero-title {
    max-width: 680px;
    font-size: clamp(1.55rem, 2.35vw, 2.45rem);
    line-height: 1.14;
    font-weight: 900;
}

.home-hero-title span {
    display: block;
}

.home-hero-title span:first-child {
    color: var(--primary);
    font-size: 0.48em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.hero-side {
    display: grid;
    gap: 1rem;
}

.hero-video {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.hero-video video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: contrast(1.06) saturate(0.95);
}

.hero-animation {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.06) saturate(0.95);
}

.hero-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0, 0, 0, 0.54) 14%, rgba(211, 18, 47, 0.33) 92%);
}

.eyebrow {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.15;
    margin: 0 0 0.8rem;
}

h1 {
    font-size: clamp(2rem, 3.3vw, 3.4rem);
    margin-top: 0.75rem;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.lead {
    color: var(--muted);
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.hero-card {
    background: linear-gradient(145deg, #101114, #1a1b20);
    color: #f2f2f5;
    border: 1px solid rgba(211, 18, 47, 0.35);
    padding: 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.kpi-grid article {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 0.8rem;
}

.kpi-grid span,
.stats-band span {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.section {
    padding: 4rem 0;
}

.pt-0 {
    padding-top: 0;
}

.truck-strip {
    padding-top: 0.8rem;
}

.truck-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.facility-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.truck-photo,
.photo-panel {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.photo-panel {
    height: 360px;
}

.truck-photo-focus {
    object-fit: contain;
    object-position: center center;
    background: #f3f6f8;
}

.contact-inline-map {
    overflow: hidden;
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #eef2f6;
}

.contact-inline-map iframe {
    width: 100%;
    min-height: 210px;
    display: block;
    border: 0;
}

.contact-map-card {
    overflow: hidden;
    padding: 0;
}

.contact-map-card iframe {
    width: 100%;
    min-height: 380px;
    display: block;
    border: 0;
}

.contact-line {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    gap: 0.45rem;
    align-items: start;
    margin: 0.35rem 0;
}

.contact-line span {
    color: var(--primary);
    font-weight: 900;
    line-height: 1.4;
}

.contact-info-card {
    border-left: 3px solid var(--primary);
}

.about-photo {
    height: auto;
    max-height: none;
    object-fit: contain;
    background: #fff;
}

.section-head {
    margin-bottom: 1.6rem;
}

.section-head.center {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.card,
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
}

.section-dark {
    background: linear-gradient(150deg, #101113, #17181c);
    color: #f4f4f6;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-dark .eyebrow,
.section-dark .text-link {
    color: #ff4a66;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.checks {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.7rem;
}

.checks li::marker {
    color: var(--primary);
}

.cta-band {
    background: linear-gradient(100deg, #0a0a0b 10%, #4d0714 68%, #b50f29 100%);
    color: #f7f7f8;
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.72rem 1.15rem;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(211, 18, 47, 0.3);
}

.btn-primary:hover {
    background: var(--primary-deep);
}

.btn-outline {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.text-link {
    color: var(--primary);
    font-weight: 700;
}

.page-hero {
    padding: 3.2rem 0 1.8rem;
}

.services-intro {
    padding-bottom: 2.8rem;
}

.services-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
    gap: clamp(1.4rem, 3vw, 3rem);
    align-items: center;
}

.services-copy {
    max-width: 650px;
}

.services-copy h1 {
    margin: 0.55rem 0 1.05rem;
    font-size: clamp(2rem, 3.2vw, 3.65rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.services-lead {
    position: relative;
    display: grid;
    gap: 0.95rem;
    padding-left: 1.1rem;
    border-left: 3px solid var(--primary);
}

.services-lead p {
    margin: 0;
    color: #283344;
    font-size: clamp(1rem, 1.15vw, 1.15rem);
    line-height: 1.72;
}

.page-hero .narrow > h1 + p,
.fleet-hero .narrow > h1 + p,
.about-hero .narrow > h1 + p,
.service-hero .container > h1 + p,
.hero .lead,
.section-head > h2 + p {
    position: relative;
    padding-left: 1.1rem;
    border-left: 3px solid var(--primary);
}

.page-hero .narrow > h1 + p,
.fleet-hero .narrow > h1 + p,
.about-hero .narrow > h1 + p,
.service-hero .container > h1 + p {
    max-width: 780px;
    color: #283344;
    line-height: 1.72;
}

.services-visual {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    background: transparent;
}

.services-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: contrast(1.04) saturate(0.96);
}

.services-visual::after {
    content: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 20, 28, 0.02) 35%, rgba(15, 20, 28, 0.76) 100%);
    pointer-events: none;
}

.services-visual figcaption {
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1;
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    color: #fff;
    background: rgba(10, 13, 18, 0.58);
    backdrop-filter: blur(10px);
}

.services-visual figcaption span {
    color: #ffccd4;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-visual figcaption strong {
    font-size: clamp(1rem, 1.35vw, 1.35rem);
    line-height: 1.25;
}

.fleet-hero {
    text-align: center;
}

.fleet-hero .narrow {
    width: min(1040px, 100%);
}

.fleet-hero h1 {
    max-width: 820px;
    margin-inline: auto;
}

.fleet-hero p {
    max-width: 980px;
    margin-inline: auto;
    line-height: 1.72;
}

.fleet-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.fleet-photo-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
    aspect-ratio: 1.35 / 1;
    min-height: 0;
}

.fleet-photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.45s ease;
}

.fleet-photo-card:hover img {
    transform: scale(1.025);
}

.fleet-photo-tall {
    grid-row: auto;
}

.fleet-photo-tall img {
    object-fit: cover;
    object-position: center center;
    background: transparent;
}

.fleet-photo-wide img {
    object-fit: cover;
    object-position: center center;
}

.fleet-photo-square img {
    object-fit: cover;
    object-position: center center;
    background: transparent;
}

.about-hero {
    text-align: center;
}

.about-hero .narrow {
    width: min(980px, 100%);
}

.about-hero h1 {
    max-width: 900px;
    margin-inline: auto;
    font-size: clamp(1.55rem, 2.35vw, 2.35rem);
    line-height: 1.18;
    font-weight: 900;
}

.about-story {
    max-width: 980px;
    margin: 1.3rem auto 0;
}

.about-story p {
    text-align: left;
    font-size: 1.02rem;
    line-height: 1.72;
    color: #293445;
    margin: 0 0 1rem;
}

.values-list {
    margin: 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.25rem;
}

.values-list li::marker {
    color: var(--primary);
}

.service-hero .container {
    background: linear-gradient(132deg, #0f1013 0%, #191b22 58%, #2b0c13 100%);
    border: 1px solid rgba(211, 18, 47, 0.38);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.3rem, 2.7vw, 2.2rem);
    color: #f3f3f5;
}

.service-hero .eyebrow {
    color: #ff5b74;
}

.service-hero h1 {
    margin-top: 0.6rem;
    margin-bottom: 0.65rem;
}

.service-showcase {
    padding-top: 2.4rem;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 360px) 1fr;
    gap: 1rem;
    align-items: stretch;
}

.service-column {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.service-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid rgba(211, 18, 47, 0.75);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1rem 0.95rem;
}

.service-item-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.service-item h3 {
    margin: 0;
    font-size: 1.06rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(211, 18, 47, 0.35);
    background: linear-gradient(145deg, rgba(211, 18, 47, 0.14), rgba(211, 18, 47, 0.06));
    color: #b10b23;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-points {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.service-points li {
    position: relative;
    padding-left: 1rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.45;
}

.service-points li::before {
    content: '';
    position: absolute;
    top: 0.62rem;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--primary);
}

.service-center {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(211, 18, 47, 0.42);
    box-shadow: var(--shadow);
    background: linear-gradient(178deg, #111318, #090a0d);
    min-height: 100%;
    padding: 0.8rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.service-center::before,
.service-center::after {
    content: '';
    position: absolute;
    top: 4%;
    width: 48%;
    height: 54%;
    background: linear-gradient(180deg, rgba(255, 204, 89, 0.55), rgba(255, 204, 89, 0));
    z-index: 0;
}

.service-center::before {
    left: 4%;
    clip-path: polygon(0 0, 100% 0, 38% 100%);
}

.service-center::after {
    right: 4%;
    clip-path: polygon(0 0, 100% 0, 62% 100%);
}

.service-center-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 710px;
    border-radius: 14px;
    overflow: hidden;
}

.service-center-photo img {
    width: 100%;
    height: 100%;
    min-height: 710px;
    object-fit: cover;
    filter: contrast(1.05) saturate(0.95);
}

.service-center-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.14) 40%, rgba(10, 10, 12, 0.72) 100%);
}

.service-center-label {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 0.74rem;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    white-space: nowrap;
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}

.stats-band article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.form-wrap {
    width: min(760px, 100%);
}

.business-form {
    display: grid;
    gap: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.business-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--muted);
}

.business-form input,
.business-form select,
.business-form textarea {
    width: 100%;
    border: 1px solid #cbccd2;
    border-radius: 10px;
    padding: 0.7rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.form-success {
    background: #e7f7ec;
    border: 1px solid #9fd5ad;
    color: #1d6c34;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-weight: 700;
}

.form-error,
.route-required-note {
    background: #fff3f0;
    border: 1px solid #ffb6a8;
    color: #ad2b16;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-weight: 800;
}

.route-required-note.ready {
    background: #e7f7ec;
    border-color: #9fd5ad;
    color: #1d6c34;
}

.inline-form {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-bottom: 1rem;
}

.client-portal-hero {
    padding: 1.55rem 0 1.05rem;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 45%, rgba(255,255,255,.62) 100%),
        radial-gradient(circle at 78% 50%, rgba(211,18,47,.16), transparent 36%),
        #f4f6f9;
}

.portal-hero-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.35fr);
    gap: 1.45rem;
    align-items: center;
}

.client-portal-hero h1 {
    max-width: 15ch;
    font-size: clamp(2.05rem, 3vw, 3.05rem);
    letter-spacing: 0;
    margin-top: 0.4rem;
    margin-bottom: 0.55rem;
}

.client-portal-hero p:not(.eyebrow) {
    max-width: 56ch;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.45;
}

.client-portal-hero .hero-actions {
    margin-top: 1rem;
    gap: 0.65rem;
}

.portal-hero-truck {
    position: relative;
    min-height: 300px;
    max-height: 390px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .13);
    background: #fff;
}

.portal-hero-truck::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.16), transparent 42%);
    pointer-events: none;
}

.portal-hero-truck img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 390px;
    object-fit: contain;
    object-position: center;
}

.portal-status-panel {
    align-self: end;
    background: linear-gradient(145deg, #101319, #1d222b);
    color: #f5f6f8;
    border: 1px solid rgba(207, 19, 47, 0.34);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.portal-status-panel p {
    margin-bottom: 0;
    color: #d9dde4;
}

.status-dot {
    width: 0.72rem;
    height: 0.72rem;
    display: inline-block;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: #2bd36f;
    box-shadow: 0 0 0 6px rgba(43, 211, 111, 0.16);
}

.portal-map-section {
    padding-top: 0.9rem;
}

.portal-full-container {
    width: min(1880px, calc(100% - 2rem));
    max-width: none;
}

.map-direct-link {
    margin-top: 0.75rem;
}

.portal-map-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #dfe5e9;
}

.portal-map-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.portal-live-shell {
    background: #f3f6f9;
}

.portal-live-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.95fr) minmax(286px, 0.58fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.8rem;
}

.portal-client-workspace {
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.75fr);
}

.portal-side-form,
.portal-side-chat {
    height: auto;
    min-width: 0;
}

.portal-side-form {
    box-shadow: none;
    gap: 0.58rem;
    padding: 0.9rem;
    border-radius: 16px;
}

.portal-side-form h2,
.portal-side-chat h2 {
    font-size: clamp(1.12rem, 1.55vw, 1.65rem);
    line-height: 1.08;
}

.portal-side-form .form-two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
}

.portal-side-form label {
    gap: 0.22rem;
    font-size: 0.84rem;
}

.portal-side-form input,
.portal-side-form textarea {
    border-radius: 9px;
    padding: 0.54rem 0.62rem;
    font-size: 0.86rem;
}

.portal-side-form textarea {
    min-height: 86px;
}

.portal-side-form .eyebrow {
    margin-bottom: 0.2rem;
    font-size: 0.68rem;
}

.portal-side-form .btn {
    min-height: 42px;
    padding: 0.65rem 0.95rem;
}

.portal-side-form .route-required-note,
.portal-side-form .form-success,
.portal-side-form .form-error {
    border-radius: 11px;
    padding: 0.58rem 0.68rem;
    font-size: 0.82rem;
}

.portal-map-center {
    position: relative;
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(560px, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.portal-map-toolbar strong,
.portal-map-toolbar span {
    display: block;
}

.portal-map-toolbar span {
    color: var(--muted);
    font-size: 0.88rem;
}

.portal-map-toolbar-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    padding: 0;
    border: 0;
}

.portal-map-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    min-height: 620px;
}

.truck-osm-map {
    width: 100%;
    height: 100%;
    min-height: 560px;
    display: block;
    z-index: 1;
}

.truck-osm-map.leaflet-container {
    overflow: hidden;
}

.truck-osm-map .leaflet-pane,
.truck-osm-map .leaflet-map-pane,
.truck-osm-map .leaflet-tile-pane,
.truck-osm-map .leaflet-overlay-pane,
.truck-osm-map .leaflet-shadow-pane,
.truck-osm-map .leaflet-marker-pane,
.truck-osm-map .leaflet-tooltip-pane,
.truck-osm-map .leaflet-popup-pane {
    position: absolute;
    top: 0;
    left: 0;
}

.truck-osm-map .leaflet-tile,
.truck-osm-map .leaflet-marker-icon,
.truck-osm-map .leaflet-marker-shadow {
    position: absolute;
    top: 0;
    left: 0;
}

.truck-osm-map .leaflet-top,
.truck-osm-map .leaflet-bottom {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.truck-osm-map .leaflet-top {
    top: 10px;
}

.truck-osm-map .leaflet-left {
    left: 10px;
}

.truck-osm-map .leaflet-right {
    right: 10px;
}

.truck-osm-map .leaflet-bottom {
    bottom: 10px;
}

.truck-osm-map .leaflet-control {
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

.truck-osm-map .leaflet-control-zoom {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 20, 28, 0.12);
}

.truck-osm-map .leaflet-control-zoom a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--text);
    font-weight: 800;
    line-height: 1;
}

.truck-osm-map .leaflet-control-zoom a + a {
    border-top: 1px solid var(--border);
}

.truck-osm-map .leaflet-control-attribution {
    max-width: calc(100vw - 70px);
    border-radius: 8px;
    padding: 0.15rem 0.35rem;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.74rem;
}

.truck-osm-map img,
.truck-osm-map .leaflet-tile {
    max-width: none;
}

.truck-marker {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #cf132f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 20, 28, 0.28);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Space Grotesk', sans-serif;
}

.truck-marker.nearest {
    width: 38px;
    height: 38px;
    background: #101319;
    box-shadow: 0 0 0 6px rgba(207, 19, 47, 0.18), 0 10px 22px rgba(15, 20, 28, 0.3);
}

.stop-marker {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    font-size: .8rem;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .25);
    font-family: 'Space Grotesk', sans-serif;
}

.stop-marker.pickup {
    background: #101319;
}

.stop-marker.delivery {
    background: #cf132f;
}

.stop-marker.customs {
    background: #f59e0b;
}

.stop-marker.waypoint {
    background: #2563eb;
}

.truck-osm-map .marker-cluster {
    border-radius: 999px;
    background: rgba(207, 19, 47, 0.2);
}

.truck-osm-map .marker-cluster div {
    width: 38px;
    height: 38px;
    margin-left: 1px;
    margin-top: 1px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #cf132f;
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 20, 28, 0.28);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
}

.route-panel {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 1rem;
}

.route-panel h3 {
    margin-bottom: 0;
}

.route-estimate-form {
    display: grid;
    gap: 0.75rem;
}

.route-estimate-form label {
    display: grid;
    gap: 0.35rem;
    color: var(--muted);
    font-weight: 700;
}

.route-estimate-form input {
    width: 100%;
    border: 1px solid #cbccd2;
    border-radius: 10px;
    padding: 0.7rem;
    font: inherit;
    color: var(--text);
    background: #fff;
}

.route-results {
    display: grid;
    gap: 0.65rem;
    border-radius: 14px;
    background: var(--surface-soft);
    padding: 0.85rem;
    color: var(--muted);
}

.route-result-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.route-result-card strong {
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
}

.route-result-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.truck-popup {
    min-width: 170px;
}

.truck-popup strong {
    display: block;
    margin-bottom: 0.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.truck-popup span {
    display: block;
    color: #4b5562;
    font-size: 0.88rem;
}

.portal-workspace {
    padding-top: 2.4rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 1.2rem;
    align-items: start;
}

.portal-form h2,
.client-chat h2 {
    margin-bottom: 0;
}

.form-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.client-chat {
    display: grid;
    gap: 0.65rem;
    background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
    border: 1px solid #ffd8df;
    border-radius: 16px;
    padding: 0.9rem;
    box-shadow: 0 14px 34px rgba(207, 19, 47, 0.11);
}

.chat-minimized {
    display: none;
    width: 100%;
    border: 1px solid #d9e0e8;
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    padding: 0.9rem 1rem;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.chat-minimized span:first-child {
    display: grid;
    gap: 0.18rem;
}

.chat-minimized small {
    color: #ff4e1f;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-minimized strong {
    font-size: 1.02rem;
}

.chat-panel-body {
    display: grid;
    gap: 0.65rem;
}

.chat-head {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    align-items: center;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #ffe0e5;
}

.chat-state {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.24rem 0.52rem;
    background: #cf132f;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.chat-thread {
    display: grid;
    gap: 0.48rem;
    padding: 0.65rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ffe0e5;
    min-height: 86px;
    max-height: 142px;
    overflow: auto;
}

.chat-message {
    max-width: 94%;
    margin: 0;
    border-radius: 12px;
    padding: 0.52rem 0.62rem;
    font-size: 0.82rem;
    line-height: 1.35;
}

.chat-message.support {
    justify-self: start;
    background: #fff;
    border: 1px solid #ffd3dc;
}

.chat-message.client {
    justify-self: end;
    background: #cf132f;
    color: #fff;
}

.chat-form {
    display: grid;
    gap: 0.52rem;
}

.chat-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.chat-form label {
    display: grid;
    gap: 0.22rem;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.82rem;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    border: 1px solid #ffd3dc;
    border-radius: 9px;
    padding: 0.52rem 0.62rem;
    font: inherit;
    font-size: 0.84rem;
    color: var(--text);
    background: #fff;
}

.chat-form textarea {
    min-height: 82px;
}

.chat-order-link {
    border: 1px solid #ffc8d2;
    border-radius: 12px;
    background: #fff5f7;
    color: #cf132f !important;
    padding: 0.62rem;
}

.chat-order-link span {
    color: #6f2734;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.3;
}

.chat-order-link input {
    border-color: #cf132f;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-order-link.is-hidden {
    display: none;
}

.chat-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.42rem;
    border: 1px solid #ffd3dc;
    border-radius: 999px;
    background: #fff;
    padding: 0.28rem;
}

.chat-mode-switch label {
    display: block;
    color: #6d7280;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
}

.chat-mode-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chat-mode-switch span {
    display: block;
    border-radius: 999px;
    padding: 0.48rem 0.35rem;
}

.chat-mode-switch input:checked + span {
    background: #cf132f;
    color: #fff;
    box-shadow: 0 8px 20px rgba(207, 19, 47, 0.18);
}

.portal-chat-float-btn {
    position: fixed;
    top: 94px;
    right: 18px;
    z-index: 70;
    display: grid;
    gap: 0.05rem;
    min-width: 108px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #cf132f;
    color: #fff;
    padding: 0.62rem 0.9rem;
    box-shadow: 0 16px 36px rgba(207, 19, 47, 0.28);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.portal-chat-float-btn span {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-chat-float-btn strong {
    font-size: 0.9rem;
    line-height: 1;
}

.portal-hero-chat-open {
    border: 2px solid #fff;
    box-shadow: 0 12px 28px rgba(207, 19, 47, 0.22);
}

.portal-floating-chat {
    position: fixed;
    top: 154px;
    right: 18px;
    z-index: 69;
    width: min(390px, calc(100vw - 28px));
    max-height: calc(100vh - 176px);
    overflow: auto;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.portal-floating-chat.is-collapsed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
}

.portal-side-chat .eyebrow {
    margin-bottom: 0.18rem;
    color: #cf132f;
    font-size: 0.68rem;
}

.portal-side-chat .btn {
    min-height: 38px;
    padding: 0.58rem 0.78rem;
    font-size: 0.84rem;
}

.account-hero {
    background: linear-gradient(110deg, #f8fafc, #eef4fb);
}

.account-section {
    padding-top: 2rem;
}

.account-section .container {
    width: min(1480px, calc(100% - 2rem));
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(460px, 1.18fr);
    gap: 1.05rem;
    align-items: start;
}

.account-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.account-auth-stack {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.account-register-details summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--brand);
    list-style: none;
}

.account-register-details summary::-webkit-details-marker {
    display: none;
}

.account-register-details summary::after {
    content: "+";
    float: right;
}

.account-register-details[open] summary {
    margin-bottom: 1rem;
}

.account-register-details[open] summary::after {
    content: "-";
}

.account-table-card {
    min-width: 0;
    grid-column: 1 / -1;
}

.account-details-card {
    min-width: 0;
    padding: 1rem;
    gap: 0.72rem;
}

.account-details-collapsed {
    padding: 0;
    overflow: hidden;
}

.account-details-collapsed summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.account-details-collapsed summary::-webkit-details-marker {
    display: none;
}

.account-details-collapsed summary > span:last-child {
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 800;
}

.account-details-collapsed form {
    padding: 0 1rem 1rem;
}

.account-details-card .eyebrow {
    margin-bottom: 0.1rem;
}

.account-details-card h2 {
    margin-bottom: 0.2rem;
}

.account-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.58rem;
}

.account-details-grid label {
    gap: 0.22rem;
    font-size: 0.82rem;
}

.account-details-grid input,
.account-details-grid textarea {
    border-radius: 9px;
    min-height: 40px;
    padding: 0.52rem 0.62rem;
    font-size: 0.86rem;
}

.account-details-grid textarea {
    min-height: 78px;
}

.account-details-grid .span-2 {
    grid-column: span 2;
}

.account-details-grid .span-3 {
    grid-column: 1 / -1;
}

.account-summary-card {
    min-height: 100%;
}

.account-summary-card h2,
.account-details-card h2 {
    font-size: clamp(1.28rem, 1.45vw, 1.65rem);
    line-height: 1.06;
}

.account-portal-tools {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
}

.account-tools-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem 0.25rem;
}

.account-chat-code {
    border: 1px solid #ffd0d8;
    border-radius: 999px;
    background: #fff2f4;
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
}

.account-live-workspace {
    grid-template-columns: minmax(315px, 0.58fr) minmax(520px, 1.38fr) minmax(290px, 0.5fr);
    gap: 1rem;
    padding: 1rem;
}

.account-side-chat .chat-thread {
    max-height: 180px;
}

.account-live-workspace .portal-map-center {
    grid-template-rows: clamp(360px, 39vw, 510px) auto;
}

.account-live-workspace .truck-osm-map {
    min-height: 0;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin: 1rem 0;
}

.account-stats span {
    display: block;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    padding: .65rem;
    color: var(--muted);
    font-size: .82rem;
}

.account-stats strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: .2rem;
}

.account-due-list {
    display: grid;
    gap: 0.35rem;
    margin: 0.9rem 0 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(207, 19, 47, 0.18);
    border-radius: 12px;
    background: rgba(207, 19, 47, 0.05);
    font-size: 0.88rem;
}

.account-due-list a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.account-table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: .9rem;
}

.account-table th,
.account-table td {
    padding: .65rem .75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.account-table th {
    background: #eef4fb;
    color: #16385f;
    font-weight: 800;
}

.account-document-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding-left: 1rem;
}

.account-document-list a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.account-document-list span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.multi-stop-group {
    display: grid;
    gap: .65rem;
    margin: .35rem 0 .9rem;
}

.multi-stop-group > span {
    font-weight: 800;
    color: var(--ink);
}

.multi-stop-group > .customs-title {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: baseline;
}

.customs-title strong {
    color: #cf132f;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: #cf132f;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.stop-row-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    align-items: center;
}

.btn-small {
    min-height: 34px;
    padding: .45rem .75rem;
}

.account-close-details {
    margin-top: 1rem;
}

.account-close-details textarea {
    width: 100%;
    margin: .75rem 0;
}

.account-placeholders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin-top: 1rem;
}

.account-placeholders article {
    border: 1px dashed #b6c4d5;
    border-radius: 12px;
    padding: .9rem;
    background: #f8fafc;
}

.account-placeholders span {
    display: block;
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 1100px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.legal h2 {
    margin-top: 1.8rem;
}

.site-footer {
    margin-top: 3rem;
    padding-top: 2.6rem;
    background: #09090a;
    border-top: 3px solid var(--primary);
    color: #d8d8dc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.2rem;
}

.footer-grid h3,
.footer-grid h4 {
    color: #fff;
    margin-bottom: 0.6rem;
}

.footer-grid a {
    display: block;
    margin-bottom: 0.35rem;
    color: #d8d8dc;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    margin-top: 1.2rem;
    padding: 1rem 0;
    font-size: 0.92rem;
    color: #bfc1c8;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1160px) {
    .nav-wrap {
        min-height: 72px;
        gap: .55rem;
    }

    .brand img {
        width: 54px;
        height: 54px;
    }

    .brand strong {
        font-size: .92rem;
    }

    .brand small {
        font-size: .62rem;
    }

    .main-nav {
        gap: .55rem;
    }

    .main-nav a {
        font-size: .9rem;
    }

    .language-switch button {
        padding: .26rem .38rem;
        font-size: .72rem;
    }

    .nav-cta {
        padding-inline: .85rem;
    }

    .service-layout {
        grid-template-columns: 1fr 1fr;
    }

    .service-center {
        grid-column: 1 / -1;
        min-height: 350px;
    }

    .service-center-photo,
    .service-center-photo img {
        min-height: 350px;
        max-height: 390px;
    }
}

@media (max-width: 1240px) {
    .container {
        width: min(100% - 1rem, 1220px);
    }

    .nav-wrap {
        gap: .45rem;
    }

    .main-nav {
        gap: .45rem;
    }

    .main-nav a {
        font-size: .84rem;
    }

    .nav-cta {
        padding: .52rem .72rem;
        font-size: .86rem;
        min-height: 38px;
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .split-grid,
    .footer-grid,
    .cards-3,
    .stats-band,
    .truck-gallery,
    .facility-gallery,
    .services-intro-grid {
        grid-template-columns: 1fr;
    }

    .services-copy {
        max-width: none;
    }

    .services-visual,
    .services-visual img {
        min-height: 300px;
    }

    .fleet-showcase {
        grid-template-columns: 1fr;
    }

    .fleet-photo-tall {
        grid-row: auto;
    }

    .photo-panel,
    .truck-photo {
        height: 220px;
    }

    .inline-form {
        grid-template-columns: 1fr;
    }

    .portal-hero-grid,
    .portal-grid,
    .portal-live-workspace,
    .form-two-cols {
        grid-template-columns: 1fr;
    }

    .client-portal-hero h1 {
        max-width: 16ch;
    }

    .portal-hero-truck {
        min-height: 230px;
    }

    .portal-hero-truck img {
        min-height: 230px;
    }

    .portal-map-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-map-body {
        grid-template-columns: 1fr;
    }

    .portal-map-center {
        grid-template-rows: 500px auto;
    }

    .portal-client-workspace .portal-map-center {
        order: 1;
    }

    .portal-client-workspace .portal-side-form {
        order: 2;
    }

    .portal-side-form .form-two-cols {
        grid-template-columns: 1fr;
    }

    .account-details-grid {
        grid-template-columns: 1fr;
    }

    .account-details-grid .span-2,
    .account-details-grid .span-3 {
        grid-column: auto;
    }

    .truck-osm-map {
        height: 500px;
        min-height: 500px;
    }

    .portal-chat-float-btn {
        top: 82px;
        right: 12px;
        min-width: 86px;
        padding: 0.5rem 0.72rem;
    }

    .portal-chat-float-btn strong {
        font-size: 0.78rem;
    }

    .portal-floating-chat {
        top: 136px;
        right: 10px;
        width: min(360px, calc(100vw - 20px));
        max-height: calc(100vh - 150px);
    }

    .route-panel {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .main-nav,
    .language-switch,
    .nav-cta {
        display: none;
    }

    .main-nav.open {
        display: grid;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.2rem;
        gap: 0.8rem;
        z-index: 40;
    }

    .main-nav.open + .language-switch {
        display: inline-flex;
        position: absolute;
        right: 4.8rem;
        top: 1.3rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .cta-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-center {
        min-height: 280px;
    }

    .service-center-photo,
    .service-center-photo img {
        min-height: 280px;
    }
}
/* Homepage + layout refresh (2026-02-26) */
:root {
    --bg: #f6f7f9;
    --surface-soft: #eef1f4;
    --text: #111418;
    --muted: #4b5562;
    --primary: #cf132f;
    --primary-deep: #9f0c22;
    --accent: #f25d2e;
    --dark: #090b0f;
    --border: #d9dee5;
}

body {
    background:
        radial-gradient(circle at 90% 0%, rgba(242, 93, 46, 0.08) 0, transparent 28%),
        radial-gradient(circle at 6% 8%, rgba(10, 20, 40, 0.07) 0, transparent 30%),
        var(--bg);
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(17, 20, 24, 0.09);
}

.nav-wrap {
    min-height: 84px;
}

.brand {
    gap: 0.75rem;
}

.brand strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand small {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.main-nav {
    gap: 0.35rem;
    padding: 0.28rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

.main-nav a {
    font-size: 0.92rem;
    padding: 0.46rem 0.76rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: rgba(207, 19, 47, 0.1);
}

.hero {
    padding: 4.8rem 0 3.2rem;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.2rem;
}

h1 {
    font-size: clamp(2.1rem, 3.4vw, 3.65rem);
}

.lead {
    max-width: 56ch;
    font-size: 1.05rem;
}

.hero-card {
    background: linear-gradient(150deg, #101319, #1a1f28);
}

.menv4-promo-wrap {
    margin-top: 1.65rem;
}

.menv4-promo {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.35rem;
    overflow: hidden;
    padding: 1.25rem 1.35rem 1.25rem 1.2rem;
    color: #f8fafc;
    background:
        radial-gradient(circle at 84% 50%, rgba(207, 19, 47, 0.22), transparent 28%),
        linear-gradient(112deg, #10151d 0%, #1a202b 58%, #231923 100%);
    border: 1px solid rgba(255, 83, 111, 0.52);
    border-radius: 22px;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.24), 0 0 0 5px rgba(207, 19, 47, 0.055);
}

.menv4-promo-image {
    position: relative;
    display: block;
    min-width: 0;
    height: 176px;
    overflow: hidden;
    background: #101722;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
}

.menv4-promo-image::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(4, 9, 18, 0.56));
    content: '';
    pointer-events: none;
}

.menv4-promo-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    transition: transform 0.35s ease;
}

.menv4-promo-globe {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #020812;
}

.menv4-route-demo {
    display: block;
    width: 100%;
    height: 100%;
}

.promo-globe-grid {
    transform-origin: 50% 50%;
    animation: promo-globe-rotate 18s linear infinite;
}

.promo-route-shadow,
.promo-route-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.promo-route-shadow {
    stroke: rgba(255, 50, 86, 0.36);
    stroke-width: 12;
    filter: url(#promo-route-glow);
}

.promo-route-line {
    stroke: #ff3c61;
    stroke-width: 4;
    stroke-dasharray: 780;
    stroke-dashoffset: 780;
    animation: promo-route-draw 5.8s ease-in-out infinite;
}

.promo-route-point {
    fill: #6df0cf;
    stroke: #061522;
    stroke-width: 3;
}

.promo-route-point-end {
    fill: #ff4566;
}

.promo-truck-marker {
    fill: #fff;
    offset-path: path('M138 98 C177 113 194 134 226 143 S278 177 315 174 S360 147 392 161 S416 184 435 192');
    offset-distance: 0%;
    animation: promo-truck-drive 5.8s ease-in-out infinite;
}

.promo-route-label {
    fill: #d7f8ff;
    font: 800 11px/1 system-ui, sans-serif;
    letter-spacing: 1px;
}

.menv4-promo-globe-caption {
    position: absolute;
    left: 0.7rem;
    top: 0.7rem;
    color: #8de9ff;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes promo-route-draw {
    0%, 8% { stroke-dashoffset: 780; }
    58%, 83% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -780; }
}

@keyframes promo-truck-drive {
    0%, 8% { offset-distance: 0%; opacity: 0; }
    12% { opacity: 1; }
    76% { offset-distance: 100%; opacity: 1; }
    84%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes promo-globe-rotate {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(0.985); }
}

.menv4-promo-globe iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.menv4-promo-route-status {
    position: absolute;
    z-index: 2;
    top: 0.65rem;
    right: 0.65rem;
    max-width: calc(100% - 1.3rem);
    padding: 0.3rem 0.48rem;
    color: #dffbff;
    background: rgba(2, 12, 24, 0.74);
    border: 1px solid rgba(112, 225, 245, 0.32);
    border-radius: 999px;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menv4-promo-live-dot {
    display: inline-block;
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.3rem;
    vertical-align: 0.02em;
    background: #71f2c3;
    border-radius: 50%;
    box-shadow: 0 0 0 0.18rem rgba(113, 242, 195, 0.14);
    animation: menv4-live-pulse 1.55s ease-in-out infinite;
}

@keyframes menv4-live-pulse {
    0%, 100% { opacity: 0.65; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
}

.menv4-promo-image:hover img,
.menv4-promo-image:focus-visible img {
    transform: scale(1.04);
}

.menv4-promo-image-tag {
    position: absolute;
    z-index: 1;
    left: 0.65rem;
    bottom: 0.55rem;
    padding: 0.28rem 0.48rem;
    color: #fff;
    background: rgba(207, 19, 47, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.menv4-promo-copy {
    min-width: 0;
    flex: 1;
}

.menv4-promo-kicker {
    margin: 0 0 0.18rem;
    color: #ff8295;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.menv4-promo-title {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42rem;
    color: #fff;
    font: 700 clamp(1.12rem, 2vw, 1.5rem)/1.2 'Space Grotesk', sans-serif;
    text-decoration: none;
}

.menv4-promo-title > span:first-child {
    color: #ff687f;
}

.menv4-promo-title:hover,
.menv4-promo-title:focus-visible {
    color: #ffd8df;
}

.menv4-promo-arrow {
    color: rgba(255, 255, 255, 0.62);
    font: 600 0.9rem/1 sans-serif;
}

.menv4-promo-copy > p:last-child {
    margin: 0.25rem 0 0;
    color: #c6ccd6;
    font-size: 0.9rem;
    line-height: 1.55;
}

.menv4-promo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.menv4-promo-features li {
    padding: 0.37rem 0.58rem;
    color: #e7ebf2;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.menv4-promo-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.menv4-promo-metrics span {
    display: grid;
    gap: 0.08rem;
    padding: 0.42rem 0.52rem;
    background: rgba(8, 16, 28, 0.36);
    border: 1px solid rgba(142, 227, 244, 0.14);
    border-radius: 10px;
}

.menv4-promo-metrics strong {
    color: #fff;
    font-size: 0.72rem;
}

.menv4-promo-metrics small {
    color: #9ca9ba;
    font-size: 0.62rem;
}

.menv4-promo-cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 46px;
    padding: 0.72rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #e92545, #bd102f);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(207, 19, 47, 0.25);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.menv4-promo-cta:hover,
.menv4-promo-cta:focus-visible {
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 12px 26px rgba(207, 19, 47, 0.34);
    transform: translateY(-2px);
}

.menv4-promo-cta span {
    font-size: 1.15rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .menv4-promo {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 0.9rem;
        border-radius: 18px;
    }

    .menv4-promo-image {
        grid-row: auto;
        height: clamp(145px, 44vw, 205px);
        border-radius: 13px;
    }

    .menv4-promo-copy {
        align-self: auto;
    }

    .menv4-promo-title {
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 1.02rem;
    }

    .menv4-promo-copy > p:last-child {
        display: block;
        font-size: 0.86rem;
    }

    .menv4-promo-features {
        gap: 0.38rem;
        margin-top: 0.65rem;
    }

    .menv4-promo-features li {
        font-size: 0.66rem;
    }

    .menv4-promo-metrics {
        gap: 0.3rem;
    }

    .menv4-promo-metrics span {
        padding: 0.35rem;
    }

    .menv4-promo-cta {
        grid-column: auto;
        align-self: auto;
        justify-self: stretch;
        min-height: 40px;
        padding: 0.55rem 0.8rem;
        font-size: 0.82rem;
    }
}

.hero-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.hero-list li {
    position: relative;
    padding-left: 1.1rem;
}

.hero-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #ff5f7f;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.hero-stats article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.8rem 0.7rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.hero-stats span {
    font-size: 1.3rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-stats p {
    margin: 0;
    font-size: 0.84rem;
}

.card h3 {
    margin-bottom: 0.55rem;
}

.cta-band {
    background: linear-gradient(100deg, #0b1017 10%, #3b1220 62%, #c71a37 100%);
}

.site-footer {
    background: #080a0d;
    border-top: 3px solid #bf1731;
}

.footer-brand p {
    max-width: 42ch;
}

.footer-chips {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.footer-chips span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: #eef0f5;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.footer-bottom a {
    color: #d5d7de;
}

@media (max-width: 960px) {
    .main-nav.open {
        top: 84px;
        border-radius: 0;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Header stability: logo, menu, language and CTA in a non-overlapping row. */
.site-header .container.nav-wrap {
    width: min(1840px, calc(100% - 1rem));
}

.site-header .nav-wrap {
    min-height: 0;
    gap: 0.7rem;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding-block: 0.18rem;
}

.site-header .brand {
    flex: 0 0 clamp(640px, 34vw, 760px);
    max-width: clamp(640px, 34vw, 760px);
    gap: 0.55rem;
    overflow: visible;
}

.site-header .brand img {
    width: clamp(640px, 34vw, 760px);
    height: auto;
    max-height: none;
    flex: 0 0 clamp(640px, 34vw, 760px);
    object-fit: contain;
}

.site-header .brand strong {
    font-size: 1.02rem;
    line-height: 1.02;
}

.site-header .brand small {
    font-size: 0.66rem;
    line-height: 1.08;
}

.site-header .main-nav {
    flex: 0 0 auto;
    min-width: 0;
    justify-content: center;
    gap: 0.05rem;
    padding: 0.24rem;
    margin-left: 0;
    border-radius: 999px;
}

.site-header .main-nav a {
    font-size: clamp(0.7rem, 0.68vw, 0.84rem);
    padding: 0.34rem clamp(0.28rem, 0.36vw, 0.54rem);
}

.site-header .language-switch {
    flex: 0 0 auto;
}

.site-header .nav-cta {
    margin-left: 0;
    padding: 0.6rem 0.9rem;
    min-height: 40px;
    font-size: clamp(0.76rem, 0.72vw, 0.9rem);
}

@media (max-width: 1840px) {
    .site-header .brand {
        flex-basis: 600px;
        max-width: 600px;
    }

    .site-header .brand img {
        width: 600px;
        max-height: none;
        flex-basis: 600px;
    }

    .site-header .main-nav a {
        font-size: 0.68rem;
        padding: 0.28rem 0.26rem;
    }

    .site-header .nav-cta {
        padding-inline: 0.7rem;
        font-size: 0.76rem;
    }
}

@media (max-width: 1700px) {
    .site-header .nav-wrap {
        flex-wrap: wrap;
        justify-content: center;
        padding-block: 0.18rem 0.55rem;
        row-gap: 0.35rem;
    }

    .site-header .brand {
        flex-basis: 100%;
        max-width: 100%;
        justify-content: center;
        order: 1;
        width: 100%;
    }

    .site-header .brand img {
        width: min(760px, 92vw);
        max-height: none;
        flex-basis: min(760px, 92vw);
    }

    .site-header .main-nav {
        order: 2;
        flex: 0 0 auto;
    }

    .site-header .main-nav a {
        font-size: 0.78rem;
        padding: 0.38rem 0.52rem;
    }

    .site-header .language-switch {
        order: 3;
    }

    .site-header .nav-cta {
        order: 4;
    }
}

@media (max-width: 960px) {
    .site-header .brand {
        flex-basis: min(620px, 92vw);
        max-width: min(620px, 92vw);
        margin-inline: auto;
    }

    .site-header .brand img {
        width: min(620px, 92vw);
        max-height: none;
        flex-basis: min(620px, 92vw);
    }

    .site-header .main-nav.open {
        top: 118px;
    }
}

@media (max-width: 520px) {
    .site-header .brand {
        flex-basis: min(390px, 88vw);
        max-width: min(390px, 88vw);
    }

    .site-header .brand img {
        width: min(430px, 92vw);
        max-height: none;
        flex-basis: min(430px, 92vw);
    }
}

@media (max-width: 960px) {
    .site-header .container.nav-wrap {
        width: calc(100% - 1rem);
    }

    .site-header .nav-wrap {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.55rem;
        min-height: 72px;
        padding-block: 0.35rem;
    }

    .site-header .brand {
        order: 0;
        flex: 0 1 auto;
        width: auto;
        max-width: calc(100% - 3.5rem);
        margin: 0;
        justify-content: flex-start;
    }

    .site-header .brand img {
        width: min(270px, calc(100vw - 92px));
        height: auto;
        max-height: 66px;
        flex: 0 1 auto;
        object-fit: contain;
    }

    .site-header .main-nav {
        display: none;
    }

    .site-header .main-nav.open {
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0.1rem;
        right: 0.1rem;
        z-index: 200;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 0.32rem;
        max-height: calc(100svh - 112px);
        overflow-y: auto;
        padding: 3.3rem 0.65rem 0.65rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(17, 20, 24, 0.1);
        border-radius: 16px;
        box-shadow: 0 20px 48px rgba(15, 23, 42, 0.2);
        backdrop-filter: blur(14px);
    }

    .site-header .main-nav a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0.65rem 0.75rem;
        color: #252b34;
        background: #f4f6f8;
        border: 1px solid transparent;
        border-radius: 10px;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .site-header .main-nav a:hover,
    .site-header .main-nav a:focus-visible,
    .site-header .main-nav a.active {
        color: var(--primary);
        background: #fff1f3;
        border-color: rgba(207, 19, 47, 0.16);
    }

    .site-header .language-switch {
        display: none;
    }

    .site-header .main-nav.open + .language-switch {
        position: absolute;
        top: calc(100% + 0.72rem);
        left: 1rem;
        right: auto;
        z-index: 201;
        display: inline-flex;
        gap: 0.22rem;
        padding: 0.22rem;
        background: #eef1f4;
        border: 1px solid rgba(17, 20, 24, 0.08);
        border-radius: 999px;
    }

    .site-header .language-switch button {
        min-width: 38px;
        min-height: 34px;
        padding: 0.35rem 0.55rem;
        border-radius: 999px;
        font-size: 0.74rem;
        font-weight: 800;
    }

    .site-header .nav-cta {
        display: none;
    }

    .site-header .menu-toggle {
        display: grid;
        order: 5;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        place-items: center;
        margin-left: auto;
        padding: 0;
        color: #202630;
        background: #fff;
        border: 1px solid rgba(17, 20, 24, 0.13);
        border-radius: 13px;
        box-shadow: 0 5px 15px rgba(15, 23, 42, 0.08);
        font-size: 1.2rem;
    }

    .menv4-promo-wrap {
        margin-top: 1.2rem;
    }
}

.driver-shell {
    min-height: calc(100vh - 76px);
    padding: 1.6rem 0 2.4rem;
    background: #111923;
    color: #f8fafc;
    overflow-x: hidden;
}

.driver-shell .container {
    width: min(980px, calc(100% - 1.6rem));
}

.driver-top {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.driver-top h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.08;
}

.driver-top p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: #cbd5e1;
}

.driver-filter {
    display: flex;
    gap: 0.65rem;
    max-width: 520px;
}

.driver-filter input,
.driver-card textarea,
.driver-upload-row select,
.driver-upload-row input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #0b1220;
    color: #f8fafc;
    padding: 0.8rem 0.9rem;
    font: inherit;
}

.driver-filter button,
.driver-actions-grid button,
.driver-upload-row button {
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    padding: 0.8rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.driver-layout {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.driver-panel,
.driver-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.driver-panel {
    padding: 0.9rem;
}

.driver-panel-head,
.driver-current-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.driver-panel-head h2,
.driver-current h2 {
    margin: 0;
    font-size: 1.1rem;
}

.driver-panel-head span {
    color: #94a3b8;
    font-size: 0.86rem;
}

.driver-trip-items {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
}

.driver-trip-item {
    display: grid;
    gap: 0.28rem;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: #101827;
    color: #f8fafc;
    padding: 0.8rem;
    text-align: left;
    cursor: pointer;
}

.driver-trip-item.active {
    border-color: #38bdf8;
    background: #0b2944;
}

.driver-trip-item strong {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.driver-trip-item small,
.driver-trip-item em,
.driver-muted {
    color: #94a3b8;
    font-style: normal;
}

.driver-workspace {
    display: grid;
    gap: 1rem;
}

.driver-card {
    padding: 0.9rem;
}

.driver-map {
    width: 100%;
    min-height: 360px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    overflow: hidden;
    background: #dbeafe;
}

.driver-status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #334155;
    color: #f8fafc;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 800;
}

.driver-status-pill[data-status="descarcat"] {
    background: #15803d;
}

.driver-status-pill[data-status="problema"] {
    background: #c2410c;
}

.driver-trip-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 0;
}

.driver-card textarea {
    min-height: 78px;
    resize: vertical;
}

.driver-trip-details div {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding-top: 0.5rem;
}

.driver-trip-details dt {
    color: #94a3b8;
    font-size: 0.78rem;
}

.driver-trip-details dd {
    margin: 0.15rem 0 0;
    font-weight: 800;
}

.driver-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.driver-actions-grid .driver-success {
    background: #16a34a;
}

.driver-actions-grid .driver-warning {
    background: #ea580c;
}

.driver-upload-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 120px;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.driver-events {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.driver-event {
    border-left: 3px solid #38bdf8;
    background: rgba(15, 23, 42, 0.86);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}

.driver-event span {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
}

.driver-event p {
    margin: 0.35rem 0 0;
}

.driver-map-pin {
    border-radius: 999px;
    background: #2563eb;
    border: 3px solid #fff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.28);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.driver-map-pin.delivery {
    background: #16a34a;
}

.driver-truck-pin {
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f59e0b;
    border: 3px solid #fff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.3);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .driver-layout,
    .driver-trip-details,
    .driver-upload-row,
    .driver-actions-grid {
        grid-template-columns: 1fr;
    }

    .driver-filter {
        max-width: none;
    }

    .driver-map {
        min-height: 340px;
    }
}

/* Final portal layout polish: a tighter hero and a more useful globe viewport. */
.client-portal-hero { padding: clamp(2rem, 4vw, 3.8rem) 0 clamp(1.4rem, 2.8vw, 2.6rem); }
.portal-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: clamp(1.5rem, 4vw, 4.5rem); max-width: 1160px; margin-inline: auto; }
.client-portal-hero h1 { max-width: 17ch; font-size: clamp(2rem, 3.45vw, 3.65rem); line-height: .99; margin-bottom: .7rem; }
.client-portal-hero p:not(.eyebrow) { max-width: 46rem; font-size: .98rem; }
.portal-hero-truck { min-height: clamp(230px, 22vw, 340px); max-height: 340px; border-radius: 24px; }
.portal-hero-truck img { min-height: 0; max-height: none; height: 100%; object-fit: contain; }
.portal-map-center { grid-template-rows: clamp(450px, 46vw, 640px) auto; }
.portal-map-center > .truck-osm-map { height: 100% !important; min-height: 0 !important; }

@media (max-width: 960px) {
    .portal-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr); gap: 1.5rem; }
    .portal-map-center { grid-template-rows: clamp(380px, 64vw, 520px) auto; }
}

@media (max-width: 760px) {
    .client-portal-hero { padding-top: 1.5rem; }
    .portal-hero-grid { grid-template-columns: 1fr; gap: 1rem; }
    .client-portal-hero h1 { max-width: 18ch; font-size: clamp(2rem, 9vw, 3rem); }
    .portal-hero-truck { min-height: 190px; max-height: 240px; }
    .portal-map-center { grid-template-rows: clamp(320px, 78vw, 460px) auto; }
    .eye-map-tools { width: min(340px, calc(100% - 1rem)); top: 3.25rem; left: .5rem; max-height: calc(100% - 4rem); }
}

/* Keep the final portal sizing rules after the legacy responsive rules above. */
.client-portal-hero { padding: clamp(1rem, 2vw, 1.7rem) 0 clamp(.8rem, 1.6vw, 1.35rem); }
.portal-hero-grid { grid-template-columns: minmax(330px, .78fr) minmax(480px, 1.22fr); gap: clamp(1.2rem, 3vw, 3.4rem); max-width: 1220px; margin-inline: auto; }
.client-portal-hero h1 { max-width: 16ch; font-size: clamp(1.85rem, 2.8vw, 3rem); line-height: 1; margin-bottom: .55rem; }
.client-portal-hero p:not(.eyebrow) { max-width: 46rem; font-size: .9rem; line-height: 1.35; }
.client-portal-hero .hero-actions { margin-top: .7rem; gap: .45rem; }
.portal-hero-truck { min-height: clamp(180px, 17vw, 260px); max-height: 260px; border-radius: 20px; }
.portal-hero-truck img { min-height: 0; max-height: none; height: 100%; object-fit: contain; }
.portal-client-workspace { grid-template-columns: minmax(280px, .6fr) minmax(0, 2fr); }
.portal-map-center { grid-template-rows: clamp(470px, 50vw, 680px) auto; }
.portal-map-center > .truck-osm-map { height: 100% !important; min-height: 0 !important; }
@media (max-width: 960px) {
    .portal-hero-grid { grid-template-columns: minmax(300px, .8fr) minmax(390px, 1.2fr); gap: 1.25rem; }
    .portal-map-center { grid-template-rows: clamp(400px, 68vw, 560px) auto; }
}
@media (max-width: 760px) {
    .client-portal-hero { padding-top: 1.5rem; }
    .portal-hero-grid { grid-template-columns: 1fr; gap: 1rem; }
    .client-portal-hero h1 { max-width: 18ch; font-size: clamp(2rem, 9vw, 3rem); }
    .portal-hero-truck { min-height: 175px; max-height: 220px; }
    .portal-map-center { grid-template-rows: clamp(340px, 82vw, 480px) auto; }
    .eye-map-tools { width: min(340px, calc(100% - 1rem)); top: 3.25rem; left: .5rem; max-height: calc(100% - 4rem); bottom: auto; }
}

/* Portal planner: keep route inputs and their live estimate together below the globe. */
.portal-map-center {
    grid-template-rows: clamp(360px, 39vw, 510px) auto;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(20, 35, 56, .08);
}

.portal-map-center > .truck-osm-map {
    height: 100%;
    min-height: 0;
}

.eye-map-status {
    position: absolute;
    z-index: 3;
    top: .75rem;
    left: .75rem;
    max-width: min(420px, calc(100% - 1.5rem));
    padding: .45rem .7rem;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(9, 18, 32, .82);
    color: #fff;
    box-shadow: 0 5px 18px rgba(0,0,0,.22);
    font-size: .72rem;
    line-height: 1.3;
    pointer-events: none;
}
.eye-map-status.is-connected { background: rgba(9, 46, 40, .86); }

.eye-map-tools {
    position: absolute;
    z-index: 4;
    top: 3.6rem;
    left: .75rem;
    display: grid;
    gap: .55rem;
    width: min(310px, calc(100% - 1.5rem));
    max-height: calc(100% - 4.5rem);
    overflow: auto;
    padding: .75rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    background: rgba(8, 18, 31, .9);
    color: #f8fafc;
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
}
.eye-map-tools-heading, .eye-map-tool-row, .eye-map-layer-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.eye-globe-sdk-controls { display: flex; flex-wrap: wrap; gap: .4rem; }
.eye-globe-sdk-controls button, .eye-globe-sdk-controls select { min-height: 32px; padding: .34rem .55rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: .7rem; }
.eye-globe-sdk-controls option { color: #111827; }
.eye-map-tools-heading { justify-content: space-between; font-size: .8rem; }
.eye-map-tools-heading span { display: grid; gap: .12rem; }
.eye-map-tools-heading small { color: #9fb4c8; font-size: .62rem; font-weight: 500; }
.eye-map-heading-actions { display: flex; align-items: center; gap: .35rem; }
.eye-map-collapse { width: 30px; min-width: 30px; padding-inline: 0 !important; font-size: 1.1rem !important; line-height: 1; }
.eye-map-tool-content { display: grid; gap: .55rem; }
.eye-map-tools.is-collapsed { width: auto; max-width: calc(100% - 1.5rem); }
.eye-map-tools.is-collapsed .eye-map-tool-content { display: none; }
.eye-map-tools.is-collapsed .eye-map-tools-heading { gap: .65rem; }
.eye-map-tools button:disabled, .eye-map-tools select:disabled { cursor: not-allowed; opacity: .48; }
.eye-map-tools button, .eye-map-tools select {
    min-height: 34px;
    padding: .38rem .58rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #fff;
    font: inherit;
    font-size: .72rem;
    cursor: pointer;
}
.eye-map-tools button:hover, .eye-map-tools button[aria-pressed="true"] { border-color: #fb7185; background: rgba(225,29,72,.82); }
.eye-map-tools button:disabled { cursor: not-allowed; opacity: .45; }
.eye-map-tools select { max-width: 100%; }
.eye-map-tools select option { color: #111827; }
.eye-map-feature-details { padding: .55rem .65rem; border-radius: 10px; background: rgba(255,255,255,.08); color: #dbeafe; font-size: .7rem; line-height: 1.45; overflow-wrap: anywhere; }
.menv4-map-actions { display:flex; justify-content:flex-end; align-items:center; gap:.4rem; padding:.35rem .55rem .5rem; }
.menv4-ai-open, .menv4-route-reset { position:relative; z-index:9; border:1px solid #f04a69; border-radius:999px; padding:.45rem .7rem; background:linear-gradient(135deg,#d9163f,#ef3158); color:#fff; font-size:.72rem; font-weight:800; cursor:pointer; box-shadow:0 8px 18px rgba(0,0,0,.25); }
.menv4-route-reset { border-color:#55718a; background:#213247; }
.menv4-route-copilot { position:absolute; top:4.5rem; right:1rem; z-index:12; width:min(520px,calc(100% - 2rem)); min-height:235px; margin:0; padding:1rem; border:1px solid rgba(255,78,112,.9); border-radius:24px 10px 24px 10px; background:linear-gradient(90deg,rgba(7,18,32,.99) 0%,rgba(10,23,40,.94) 55%,rgba(10,23,40,.35) 100%),url('/static/img/portal-truck.jpg') right center/46% auto no-repeat,#0a1728; color:#edf5ff; box-shadow:0 20px 48px rgba(0,0,0,.58), inset 0 0 0 1px rgba(255,255,255,.04); }
.menv4-route-copilot { width:min(470px,calc(100% - 2rem)); min-height:0; padding:1rem 1.05rem .85rem; border-radius:22px 22px 10px 22px; background:linear-gradient(90deg,rgba(5,15,29,.98) 0%,rgba(7,20,36,.94) 48%,rgba(7,20,36,.72) 100%),url('/static/img/menv4-transmen-robot-bg.png') right center/cover no-repeat,#071426; box-shadow:0 18px 42px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.06); }
.menv4-route-copilot[hidden] { display:none; }
.menv4-route-copilot-head-actions { display:flex; align-items:center; gap:.4rem; }
.menv4-route-copilot-head-actions > button { width:30px; height:30px; padding:0; border-radius:50%; background:#29384b; font-size:1.2rem; }
.menv4-route-copilot-head { display:flex; align-items:center; justify-content:space-between; gap:.7rem; }
.menv4-route-copilot h3 { margin:.12rem 0 0; font-size:1.12rem; letter-spacing:-.02em; }
.menv4-route-copilot .eyebrow { color:#ff6680; margin:0; }
.menv4-route-copilot select { border:1px solid #4c6078; border-radius:9px; background:#172438; color:#fff; padding:.42rem .55rem; font-weight:800; }
.menv4-route-copilot p { margin:.65rem 0; color:#bdcde0; font-size:.9rem; line-height:1.5; }
.menv4-route-copilot-input { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:.5rem; align-items:end; }
.menv4-route-copilot textarea { width:100%; min-width:0; min-height:76px; resize:vertical; border:1px solid #4c6078; border-radius:12px; background:#0c1829; color:#fff; padding:.7rem; font:inherit; font-size:.95rem; }
.menv4-route-copilot button { border:0; border-radius:10px; padding:.55rem .7rem; background:#e11d48; color:#fff; font-weight:800; cursor:pointer; }
.menv4-route-copilot button:first-of-type { background:#174e68; }
.menv4-route-copilot-status { min-height:1.1rem; margin-top:.45rem; color:#a8e7c0; font-size:.78rem; }
@media(max-width:620px){ .menv4-route-copilot-input{grid-template-columns:1fr auto}.menv4-route-copilot-input textarea{grid-column:1/-1}.menv4-route-copilot-input button:last-child{grid-column:1/-1} }
@media(max-width:620px){ .menv4-route-copilot{top:3.65rem;right:.45rem;width:calc(100% - .9rem);padding:.68rem .72rem .62rem;border-radius:17px 17px 8px 17px;background-position:right center}.menv4-route-copilot p{font-size:.72rem;margin:.32rem 0}.menv4-route-copilot textarea{min-height:54px;font-size:.8rem;padding:.55rem}.menv4-route-copilot h3{font-size:.94rem}.menv4-route-copilot .eyebrow{font-size:.66rem}.menv4-map-actions{justify-content:flex-start}.menv4-ai-open,.menv4-route-reset{font-size:.65rem;padding:.38rem .55rem}.eye-globe-map{min-height:520px!important}}
.menv4-route-copilot { background-image: linear-gradient(90deg,rgba(5,15,29,.98) 0%,rgba(7,20,36,.94) 48%,rgba(7,20,36,.72) 100%), url('/static/img/menv4-transmen-robot-bg.png?v=20261017'); background-size: cover; background-position: center; }
@media(max-width:620px){ .client-portal-hero{padding:.8rem 0 .65rem}.portal-hero-grid{gap:.65rem}.client-portal-hero h1{font-size:clamp(1.75rem,8.5vw,2.35rem);line-height:1.02;margin:.25rem 0 .55rem}.client-portal-hero p:not(.eyebrow){font-size:.9rem;line-height:1.3;margin:.35rem 0}.client-portal-hero .hero-actions{gap:.35rem;margin-top:.5rem}.client-portal-hero .hero-actions .btn{min-height:38px;padding:.55rem .8rem;font-size:.82rem}.portal-hero-truck{min-height:150px;max-height:170px;border-radius:16px}.portal-hero-truck img{object-fit:contain}.portal-chat-float-btn{right:.65rem;bottom:.65rem;transform:scale(.82);transform-origin:bottom right}}
.eye-map-feature-details.has-feature { border-left: 3px solid #fb7185; }
.eye-map-permission-note { margin: 0; padding: .45rem .6rem; border-radius: 9px; background: rgba(255,255,255,.06); color: #a9bdd0; font-size: .66rem; line-height: 1.35; }
.eye-map-layer-button.is-configured { border-color: rgba(251,113,133,.55); }
.eye-feature-modal[hidden] { display: none; }
.eye-feature-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(2, 6, 23, .42); }
.eye-feature-modal-card { width: min(360px, 100%); max-height: 80%; overflow: auto; padding: .9rem; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; background: #0b1728; color: #e5eef8; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.eye-feature-modal-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .65rem; }
.eye-feature-modal-head button { width: 30px; min-height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; cursor: pointer; }
.eye-feature-modal-card p { margin: .4rem 0; color: #c8d7e8; font-size: .78rem; line-height: 1.4; overflow-wrap: anywhere; }
.eye-feature-feed { margin: .65rem 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: #020617; }
.eye-feature-feed img, .eye-feature-feed video { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.eye-feature-feed-link { display: inline-block; margin: .25rem 0 .45rem; color: #7dd3fc; font-size: .72rem; text-decoration: underline; }
.eye-feed-unavailable { margin: .45rem 0; padding: .55rem .65rem; border-radius: 8px; color: #fed7aa; background: rgba(154, 52, 18, .28); font-size: .75rem; line-height: 1.4; }
.portal-install-banner { position: fixed; left: 50%; bottom: 1rem; z-index: 80; transform: translateX(-50%); width: min(560px, calc(100% - 2rem)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid rgba(207,19,47,.25); border-radius: 16px; background: rgba(255,255,255,.97); box-shadow: 0 14px 40px rgba(15,23,42,.18); }
.portal-install-banner[hidden] { display: none; }
.portal-install-banner strong, .portal-install-banner span { display:block; }
.portal-install-banner strong { color:#111827; font-size:.92rem; }
.portal-install-banner span { margin-top:.2rem; color:#64748b; font-size:.78rem; line-height:1.35; }
.portal-install-actions { display:flex; align-items:center; gap:.45rem; flex:0 0 auto; }
.portal-install-dismiss { width:30px; height:30px; border:0; border-radius:50%; background:#eef2f7; color:#475569; font-size:1.2rem; cursor:pointer; }
@media (max-width:620px) { .portal-install-banner { bottom:.75rem; align-items:flex-start; padding:.8rem; } .portal-install-actions { flex-direction:column; } .portal-install-actions .btn { width:auto; min-width:94px; } }
.eye-map-brand { position:absolute; z-index:3; top:.75rem; right:.75rem; padding:.42rem .68rem; border:1px solid rgba(255,255,255,.24); border-radius:999px; background:rgba(8,18,31,.78); color:#fff; font-size:.72rem; font-weight:800; letter-spacing:.02em; pointer-events:none; box-shadow:0 5px 18px rgba(0,0,0,.2); }
.eye-map-brand small { display:block; color:#fb7185; font-size:.58rem; font-weight:600; text-align:right; }

.route-panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    grid-template-rows: auto auto 1fr;
    align-items: start;
    gap: .55rem 1rem;
    padding: 1rem 1.1rem;
    border-top: 1px solid #e4e9f0;
}

.route-panel > .eyebrow,
.route-panel > h3,
.route-panel > .route-estimate-form { grid-column: 1; }
.route-panel > .route-form-toggle { display: none; }
.route-panel.has-estimate > .route-form-toggle { display: inline-flex; justify-self: start; }
.route-panel.has-estimate:not(.planner-expanded) > .route-estimate-form { display: none; }
.route-panel.has-estimate:not(.planner-expanded) { grid-template-columns: 1fr; }
.route-panel.has-estimate:not(.planner-expanded) > .route-results { grid-column: 1; grid-row: auto; }
.route-panel > .eyebrow { margin: 0; }
.route-panel > h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.route-estimate-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}
.route-estimate-form .multi-stop-group {
    min-width: 0;
    padding: .7rem;
    border: 1px solid #e6eaf0;
    border-radius: 12px;
    background: #fbfcfe;
}
.route-estimate-form .multi-stop-group > span {
    display: block;
    margin-bottom: .4rem;
    color: #263449;
    font-size: .82rem;
    font-weight: 800;
}
.route-estimate-form .customs-title strong {
    display: block;
    margin-top: .25rem;
    color: #c9273e;
    font-size: .69rem;
    line-height: 1.35;
}
.route-estimate-form label { font-size: .78rem; }
.route-estimate-form input { padding: .58rem .65rem; font-size: .88rem; }
.route-estimate-form .btn { width: 100%; min-height: 36px; padding: .4rem .6rem; font-size: .78rem; }
.route-estimate-form > .btn-primary { grid-column: 1 / -1; }
.route-panel > .route-results {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: stretch;
    align-content: start;
    margin: 0;
    min-height: 100%;
    border: 1px solid #e4e9f0;
    background: linear-gradient(145deg, #f7f9fc, #fff);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    padding: .65rem;
}
.route-result-card { padding: .55rem .6rem; gap: .15rem; }
.route-result-card span { font-size: .76rem; line-height: 1.25; }
.route-result-card strong { font-size: .95rem; }
.route-eye-breakdown { grid-column: 1 / -1; }
.route-breakdown-totals, .route-breakdown-list { display: grid; gap: .18rem; }
.route-breakdown-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .25rem; }
.route-breakdown-totals strong { padding: .35rem .45rem; border-radius: 7px; background: #f4f7fb; font-size: .78rem; }
.route-breakdown-list { margin-top: .3rem; }
.route-breakdown-list em { color: var(--text); font-size: .7rem; font-style: normal; font-weight: 800; }
.route-breakdown-list span, .route-eye-breakdown small { color: var(--muted); font-size: .68rem; line-height: 1.3; }
.route-special-list { border-top: 1px solid #e5e9ef; padding-top: .3rem; }

@media (max-width: 1100px) {
    .route-panel { grid-template-columns: minmax(0, 1fr); }
    .route-panel > .eyebrow,
    .route-panel > h3,
    .route-panel > .route-estimate-form,
    .route-panel > .route-results { grid-column: 1; }
    .route-panel > .route-results { grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .portal-map-center { grid-template-rows: clamp(320px, 58vw, 440px) auto; }
    .portal-map-center > .truck-osm-map { height: 100%; min-height: 0; }
}

@media (max-width: 620px) {
    .route-estimate-form { grid-template-columns: 1fr; }
    .route-estimate-form > .btn-primary { grid-column: 1; }
    .route-panel { padding: .85rem; }
}

@media (max-width: 760px) {
    .portal-map-center { grid-template-rows: clamp(245px, 64vw, 340px) auto; }
    .eye-map-tools { top: auto; bottom: .6rem; left: .6rem; width: min(290px, calc(100% - 1.2rem)); max-height: 47%; gap: .35rem; padding: .55rem; }
    .eye-map-tools-heading { font-size: .72rem; }
    .eye-map-tools button, .eye-map-tools select { min-height: 30px; padding: .28rem .48rem; font-size: .68rem; }
    .eye-map-feature-details { font-size: .65rem; }
    .route-panel > .route-results { min-height: 0; }
    .route-panel > .route-results { grid-template-columns: 1fr; }
    .route-result-card strong { font-size: 1rem; }
    .route-eye-result { border-color: rgba(225, 29, 72, .28); }
}

/* Last word for the portal viewport: these rules intentionally come after all legacy media queries. */
.portal-map-center { grid-template-rows: clamp(560px, 52vw, 760px) auto; }
.portal-map-center > .truck-osm-map { height: 100% !important; min-height: 0 !important; }
@media (max-width: 1100px) {
    .portal-hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
}
@media (max-width: 760px) {
    .portal-map-center { grid-template-rows: clamp(420px, 100vw, 600px) auto; }
}

/* Animated truck showcase: fixed box sizing keeps the complete source image visible. */
.portal-hero-truck {
    min-height: 0;
    max-height: none;
    aspect-ratio: 2.05 / 1;
    display: grid;
    place-items: center;
    isolation: isolate;
    background: #68727b url('/static/img/portal-road-bg.jpg') center / cover no-repeat;
}
.portal-hero-truck::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 56%;
    height: 34%;
    left: 18%;
    bottom: 7%;
    border-radius: 50%;
    background: rgba(15, 23, 42, .16);
    filter: blur(22px);
    transform: scaleX(1.1);
    animation: portalTruckShadow 9s linear infinite;
}
.portal-hero-truck img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 74%;
    height: 84%;
    min-height: 0;
    max-height: none;
    bottom: 9%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    animation: portalTruckDrive 9s linear infinite;
    will-change: transform;
}
.portal-truck-road {
    position: absolute;
    z-index: 0;
    left: 4%;
    right: 4%;
    bottom: 8%;
    height: 2px;
    overflow: hidden;
    background: repeating-linear-gradient(90deg, rgba(15,23,42,.42) 0 34px, transparent 34px 62px);
    opacity: .38;
    animation: portalRoadMove 1.1s linear infinite;
}
.portal-truck-road::after {
    content: '';
    position: absolute;
    inset: -8px 0;
    background: linear-gradient(90deg, transparent, rgba(225,29,72,.5), transparent);
    filter: blur(7px);
    animation: portalRoadGlow 2.8s ease-in-out infinite;
}
.portal-hero-truck::after {
    z-index: 2;
    background: linear-gradient(112deg, transparent 35%, rgba(255,255,255,.55) 48%, transparent 61%);
    background-size: 220% 100%;
    animation: portalTruckShine 7s ease-in-out infinite;
}
.portal-hero-truck:hover img { animation-play-state: paused; transform: scale(1.018); }
@keyframes portalTruckDrive {
    0% { transform: translate3d(-118%, 3px, 0) scale(.98); }
    8% { transform: translate3d(-78%, 0, 0) scale(1); }
    88% { transform: translate3d(78%, -2px, 0) scale(1.01); }
    100% { transform: translate3d(118%, 3px, 0) scale(.98); }
}
@keyframes portalTruckShadow {
    0%, 100% { opacity: .1; transform: translateX(-70%) scaleX(.82); }
    50% { opacity: .28; transform: translateX(0) scaleX(1.08); }
    100% { opacity: .1; transform: translateX(70%) scaleX(.82); }
}
@keyframes portalTruckShine {
    0%, 64%, 100% { background-position: 150% 0; opacity: .18; }
    78% { background-position: -40% 0; opacity: .72; }
}
@keyframes portalRoadMove { to { background-position: -62px 0; } }
@keyframes portalRoadGlow { 0%, 100% { transform: translateX(-60%); opacity: .1; } 50% { transform: translateX(60%); opacity: .65; } }
@media (max-width: 760px) {
    .portal-hero-truck { aspect-ratio: 1.7 / 1; }
    .portal-hero-truck img { width: 86%; height: 82%; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-hero-truck img, .portal-hero-truck::before, .portal-hero-truck::after, .portal-truck-road, .portal-truck-road::after { animation: none; }
}

/* Use the same real driving footage as the homepage; no fake image sliding. */
.portal-hero-truck { background: #111827; }
.portal-hero-truck::before, .portal-hero-truck::after, .portal-truck-road { display: none; }
.portal-hero-truck img { display: none; }
.portal-hero-truck video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mobile portal: never keep the booking form beside the globe. */
@media (max-width: 760px) {
    html, body { overflow-x: hidden; }
    .portal-client-workspace {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        max-width: 100%;
        padding: .55rem;
    }
    .portal-client-workspace .portal-map-center,
    .portal-client-workspace .portal-side-form {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    .portal-client-workspace .portal-map-center { order: 1; grid-template-rows: clamp(390px, 105vw, 560px) auto; }
    .portal-client-workspace .portal-side-form { order: 2; }
    .eye-map-tools {
        top: .65rem;
        bottom: auto;
        left: .65rem;
        width: min(300px, calc(100% - 1.3rem));
        max-height: calc(100% - 1.3rem);
        overflow-y: auto;
    }
    .eye-map-tools .eye-map-layer-buttons { gap: .3rem; }
    .eye-map-tools button, .eye-map-tools select { font-size: .68rem; }
    .portal-chat-float-btn { top: auto; right: 12px; bottom: 78px; min-width: 92px; padding: .48rem .68rem; }
    .portal-floating-chat { top: auto; right: 10px; bottom: 132px; max-height: calc(100vh - 150px); }
}

.portal-hero-copy h1 span { color: var(--primary); white-space: nowrap; }
.portal-hero-copy { max-width: 35rem; }
.fleet-showcase, .truck-gallery { align-items: start; }
.truck-gallery { grid-template-columns: 1.333333fr 1.556196fr .75fr; }
.fleet-showcase { grid-template-columns: .595657fr 1.333333fr .641602fr; }
.fleet-showcase .fleet-photo-card { aspect-ratio: auto; height: auto; background: transparent; overflow: visible; }
.fleet-showcase .fleet-photo-card img, .truck-gallery .truck-photo {
    width: 100%; height: auto; display: block; object-fit: contain; object-position: center;
    background: transparent; border: 0; border-radius: 12px; box-shadow: none; transform: none;
}
.menv4-promo-detail { color: #c6ccd6; font-size: .85rem; line-height: 1.65; margin: .65rem 0; }
.menv4-promo-detail strong { color: #fff; }
.menv4-promo { grid-template-columns: minmax(300px, 40%) minmax(0, 1fr); gap: .8rem 1.1rem; padding: 1rem; }
.menv4-promo-image { height: 290px; grid-row: span 2; }
.menv4-promo-copy > p { margin-block: .45rem; font-size: .85rem; line-height: 1.5; }
.menv4-promo-metrics { display: none; }
.home-hero .hero-video { width: 92%; justify-self: center; margin-inline: auto; }
.hero-route-scene { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; transition: opacity 1.8s ease; background: #030b16; }
.hero-video.show-route .hero-route-scene { opacity: 1; }
#hero-route-globe { position: absolute; inset: 0; overflow: hidden; }
#hero-route-globe canvas { display: block; width: 100%; height: 100%; }
#hero-route-status { position: absolute; top: 14px; right: 14px; padding: 5px 9px; border-radius: 20px; background: #03101edb; color: #c8f4ff; font: 600 10px system-ui; }
.hero-route-brand { position: absolute; left: 14px; bottom: 10px; color: white; font: 800 14px system-ui; letter-spacing: 1px; }
.hero-route-brand small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .2px; }
@media(prefers-reduced-motion: reduce) { .hero-route-scene { display: none; } }
.eye-demo-hud { position: absolute; bottom: 43px; left: 12px; right: 12px; padding: 7px 10px; border: 1px solid #366079; border-radius: 8px; background: #03101edb; color: #d1edff; font: 600 10px/1.5 system-ui; pointer-events: none; }
.eye-demo-truck { position: absolute; width: 24px; height: 15px; background: #fff; border: 2px solid #092233; border-radius: 3px; transform: translate(-50%, -50%); box-shadow: 0 0 12px #5ee9ff; pointer-events: none; }
.eye-demo-truck::after { content: ''; position: absolute; right: -7px; top: 2px; width: 6px; height: 9px; background: #e51b46; border-radius: 2px; }
.menv4-promo-cta { justify-self: start; }
#eye-promo-local { background: #030b16; }
#eye-promo-local .menv4-route-demo, #eye-promo-local .menv4-promo-globe-caption { display: none; }
#eye-promo-local canvas { display: block; width: 100%; height: 100%; }
.eye-demo-city { position: absolute; transform: translate(-50%, -160%); color: #fff; font: 700 10px system-ui; text-shadow: 0 1px 4px #000; pointer-events: none; }
@media (max-width: 700px) {
    .menv4-promo { grid-template-columns: 1fr; }
    .menv4-promo-image { height: 270px; grid-row: auto; }
    .fleet-showcase, .truck-gallery { grid-template-columns: 1fr; gap: 1rem; }
    .fleet-showcase .fleet-photo-card, .fleet-showcase .fleet-photo-card img, .truck-gallery .truck-photo { height: auto; }
}
.portal-hero-copy h1 { max-width: 20ch; font-size: clamp(1.85rem, 2.55vw, 2.75rem); line-height: 1.03; }
