﻿: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-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: 1px solid var(--border);
    border-radius: 18px;
    background: #0f141c;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.fleet-photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    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-position: center center;
}

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

.fleet-photo-square img {
    object-position: center center;
}

.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 {
    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;
}

.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: minmax(470px, 1fr) auto;
}

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

.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);
}

.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);
    }
}

.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;
    }
}
