        :root {
            --red: #b7190c;
            --red-dark: #b7190c;
            --blue: #1515eb;
            --blue-dark: #1515eb;
            --ink: #121722;
            --slate: #525b69;
            --light: #f5f7fa;
            --white: #ffffff;
            --border: #dfe4ea;
            --line: #dfe4ea;
            --muted: #525b69;
            --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
            --radius: 16px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            scroll-padding-top: 105px;
        }

        body {
            color: var(--ink);
            background: var(--white);
            font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.65;
            overflow-x: hidden;
        }

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

        a {
            color: inherit;
        }

        button,
        input,
        select,
        textarea {
            font: inherit;
        }

        .container {
            width: min(1180px, 92%);
            margin: 0 auto;
        }

        .topbar {
            background: var(--blue-dark);
            color: var(--white);
            font-size: 0.9rem;
        }

        .topbar-inner {
            min-height: 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .topbar a {
            text-decoration: none;
        }

        .topbar a:hover {
            text-decoration: underline;
        }

        .topbar-contact {
            display: flex;
            gap: 1.25rem;
            flex-wrap: wrap;
        }

        .topbar i {
            color: #fff;
            margin-right: 0.35rem;
        }

        header {
            background: rgba(255, 255, 255, 0.98);
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 5px 24px rgba(15, 23, 42, 0.09);
            border-bottom: 4px solid var(--blue);
        }

        .header-inner {
            min-height: 92px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 2rem;
        }

        .brand {
            width: 292px;
            flex: 0 0 auto;
        }

        .brand img {
            width: 100%;
            height: 82px;
            object-fit: contain;
            object-position: left center;
        }

        nav ul {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            list-style: none;
        }

        nav a {
            color: var(--ink);
            font-weight: 700;
            text-decoration: none;
            font-size: 0.95rem;
            position: relative;
        }

        nav a:not(.nav-apply)::after {
            content: "";
            position: absolute;
            left: 0;
            right: 100%;
            bottom: -7px;
            height: 3px;
            background: var(--red);
            transition: right 0.25s ease;
        }

        nav a:not(.nav-apply):hover::after,
        nav a:not(.nav-apply):focus-visible::after {
            right: 0;
        }

        .nav-apply {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.7rem 1rem;
            border-radius: 7px;
            background: var(--red);
            color: var(--white);
            box-shadow: 0 8px 18px rgba(183, 25, 12, 0.22);
        }

        .nav-apply:hover {
            background: var(--red-dark);
        }

        .menu-toggle {
            display: none;
            width: 46px;
            height: 46px;
            border: 0;
            border-radius: 8px;
            background: var(--blue-dark);
            color: var(--white);
            cursor: pointer;
            font-size: 1.25rem;
        }

        .hero {
            min-height: 500px;
            display: grid;
            align-items: center;
            color: var(--white);
            position: relative;
            isolation: isolate;
            background:
                linear-gradient(90deg, rgba(10, 15, 30, 0.93) 0%, rgba(10, 15, 30, 0.72) 54%, rgba(10, 15, 30, 0.35) 100%),
                url("assets/truckheader.png") center/cover no-repeat;
        }

        .hero::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 7px;
            background: var(--blue);
            z-index: -1;
        }

        .hero-content {
            max-width: 760px;
            padding: 4.5rem 0;
        }

        .stats-strip {
    position: relative;
    z-index: 5;
    margin-top: -55px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stat {
    padding: 1.6rem 1.2rem;
    text-align: center;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    color: var(--red);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 1.25rem;
            font-size: 0.86rem;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .eyebrow::before {
            content: "";
            width: 45px;
            height: 4px;
            background: var(--red);
        }

        .hero h1 {
            font-size: clamp(2.7rem, 6vw, 5.25rem);
            line-height: 1.04;
            letter-spacing: -0.045em;
            margin-bottom: 1.35rem;
        }

        .hero h1 span {
            color: #ffb5ad;
        }

        .hero p {
            max-width: 680px;
            font-size: clamp(1.05rem, 2vw, 1.3rem);
            color: rgba(255, 255, 255, 0.88);
            margin-bottom: 2rem;
        }

        .button-row {
            display: flex;
            gap: 0.85rem;
            flex-wrap: wrap;
        }

        .btn {
            min-height: 50px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.55rem;
            padding: 0.75rem 1.25rem;
            border-radius: 7px;
            font-weight: 800;
            text-decoration: none;
            border: 2px solid transparent;
            transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
            cursor: pointer;
        }

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

        .btn-primary {
            background: var(--red);
            color: var(--white);
        }

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

        .btn-outline {
            border-color: rgba(255, 255, 255, 0.8);
            color: var(--white);
            background: rgba(255, 255, 255, 0.05);
        }

        .btn-outline:hover {
            background: var(--white);
            color: var(--ink);
        }

        .trust-bar {
            background: var(--white);
            border-bottom: 1px solid var(--border);
        }

        .trust-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
        }

        .trust-item {
            padding: 1.7rem 1.2rem;
            text-align: center;
            border-right: 1px solid var(--border);
        }

        .trust-item:last-child {
            border-right: 0;
        }

        .trust-number {
            color: var(--red);
            font-size: 1.9rem;
            font-weight: 900;
            line-height: 1.1;
        }

        .trust-label {
            color: var(--slate);
            font-size: 0.9rem;
            margin-top: 0.35rem;
            font-weight: 600;
        }

        section {
            padding: 6rem 0;
        }

        .section-heading {
            max-width: 760px;
            margin: 0 auto 3.2rem;
            text-align: center;
        }

        .section-heading .eyebrow {
            color: var(--blue-dark);
            justify-content: center;
        }

        .section-heading h2 {
            font-size: clamp(2rem, 4vw, 3.2rem);
            line-height: 1.15;
            letter-spacing: -0.035em;
            color: var(--ink);
            margin-bottom: 1rem;
        }

        .section-heading p {
            color: var(--slate);
            font-size: 1.08rem;
        }

        .split {
            display: grid;
            grid-template-columns: 1.02fr 0.98fr;
            gap: 4rem;
            align-items: center;
        }

        .split-copy h2 {
            font-size: clamp(2rem, 4vw, 3.15rem);
            line-height: 1.15;
            letter-spacing: -0.035em;
            margin-bottom: 1.25rem;
        }

        .split-copy p {
            color: var(--slate);
            margin-bottom: 1rem;
            font-size: 1.04rem;
        }

        .split-copy strong {
            color: var(--ink);
        }

        .photo-frame {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            min-height: 450px;
            box-shadow: var(--shadow);
            background: var(--light);
        }

        .photo-frame img {
            width: 100%;
            height: 100%;
            min-height: 450px;
            object-fit: cover;
        }

        .photo-badge {
            position: absolute;
            left: 1.2rem;
            bottom: 1.2rem;
            max-width: 290px;
            padding: 1rem 1.15rem;
            background: rgba(16, 16, 111, 0.94);
            color: var(--white);
            border-left: 5px solid var(--red);
            border-radius: 8px;
            font-weight: 800;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
        }

        .services {
            background: var(--light);
        }

        .card-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.35rem;
        }

        .card {
            background: var(--white);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.8rem;
            box-shadow: 0 9px 28px rgba(15, 23, 42, 0.06);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 5px;
            background: var(--blue);
        }

        .card:hover {
            transform: translateY(-7px);
            box-shadow: var(--shadow);
        }

        .card-icon {
            width: 58px;
            height: 58px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            color: var(--white);
            background: linear-gradient(135deg, var(--red), var(--red-dark));
            font-size: 1.45rem;
            margin-bottom: 1.2rem;
        }

        .card h3 {
            font-size: 1.2rem;
            margin-bottom: 0.6rem;
        }

        .card p {
            color: var(--slate);
            font-size: 0.96rem;
        }

        .facilities {
            background:
                linear-gradient(rgba(12, 16, 35, 0.88), rgba(12, 16, 35, 0.9)),
                url("https://images.unsplash.com/photo-1586191582056-39a60c1a93d6?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
            color: var(--white);
        }

        .facilities .section-heading h2,
        .facilities .section-heading p,
        .facilities .section-heading .eyebrow {
            color: var(--white);
        }

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

        .facility-item {
            padding: 1.7rem;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.22);
            backdrop-filter: blur(6px);
        }

        .facility-item i {
            color: #ffb5ad;
            font-size: 1.8rem;
            margin-bottom: 0.8rem;
        }

        .facility-item h3 {
            margin-bottom: 0.45rem;
        }

        .facility-item p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.94rem;
        }

        .careers {
            background: var(--white);
        }

        .career-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.25rem;
            margin-bottom: 2rem;
        }

        .career-card {
            padding: 1.8rem;
            border-radius: var(--radius);
            color: var(--white);
            background: linear-gradient(145deg, var(--blue-dark), #1b237c);
            box-shadow: var(--shadow);
        }

        .career-card:nth-child(2) {
            background: linear-gradient(145deg, var(--red), var(--red-dark));
        }

        .career-card h3 {
            font-size: 1.35rem;
            margin-bottom: 0.65rem;
        }

        .career-card p {
            color: rgba(255, 255, 255, 0.83);
        }

        .career-columns {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .list-panel {
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.8rem;
            background: var(--light);
        }

        .list-panel h3 {
            margin-bottom: 1rem;
            color: var(--blue-dark);
        }

        .check-list {
            list-style: none;
            display: grid;
            gap: 0.72rem;
        }

        .check-list li {
            display: flex;
            gap: 0.7rem;
            align-items: flex-start;
            color: var(--slate);
        }

        .check-list i {
            color: var(--red);
            margin-top: 0.3rem;
        }

        .apply-section {
            background: var(--light);
        }

        .application-shell {
            background: var(--white);
            border-radius: 22px;
            box-shadow: var(--shadow);
            border: 1px solid var(--border);
            overflow: hidden;
        }

        .application-intro {
            display: grid;
            grid-template-columns: 0.78fr 1.22fr;
            background: var(--blue-dark);
            color: var(--white);
        }

        .application-intro-copy {
            padding: 2.3rem;
        }

        .application-intro-copy h3 {
            font-size: 1.8rem;
            margin-bottom: 0.8rem;
        }

        .application-intro-copy p {
            color: rgba(255, 255, 255, 0.82);
            margin-bottom: 1rem;
        }

        .application-intro-copy ul {
            list-style: none;
            display: grid;
            gap: 0.65rem;
        }

        .application-intro-copy li {
            display: flex;
            gap: 0.55rem;
            align-items: flex-start;
        }

        .application-intro-copy i {
            color: #ffb5ad;
            margin-top: 0.25rem;
        }

        .application-image {
            min-height: 330px;
            background:
                linear-gradient(90deg, rgba(16, 16, 111, 0.75), rgba(16, 16, 111, 0.1)),
                url("assets/appheader.png?auto=format&fit=crop&w=1500&q=85") center/cover no-repeat;
        }

        .application-form {
            padding: 2.4rem;
        }

        .form-alert {
            padding: 1rem 1.15rem;
            border-radius: 9px;
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .form-alert.success {
            background: #eaf7ee;
            color: #176536;
            border: 1px solid #bfe2c9;
        }

        .form-alert.error {
            background: #fff0ee;
            color: #8c1d13;
            border: 1px solid #f0c0ba;
        }

        .form-section {
            border: 0;
            padding: 0;
            margin: 0 0 2rem;
        }

        .form-section legend {
            width: 100%;
            font-size: 1.2rem;
            font-weight: 900;
            color: var(--blue-dark);
            padding-bottom: 0.7rem;
            margin-bottom: 1rem;
            border-bottom: 2px solid var(--border);
        }

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

        .form-group {
            display: grid;
            gap: 0.38rem;
        }

        .form-group.full {
            grid-column: 1 / -1;
        }

        label {
            font-weight: 750;
            color: var(--ink);
            font-size: 0.93rem;
        }

        .required {
            color: var(--red);
        }

        input,
        select,
        textarea {
            width: 100%;
            border: 1px solid #cbd2dc;
            border-radius: 8px;
            padding: 0.78rem 0.88rem;
            color: var(--ink);
            background: var(--white);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--blue);
            box-shadow: 0 0 0 4px rgba(21, 21, 235, 0.1);
        }

        textarea {
            min-height: 110px;
            resize: vertical;
        }

        .choice-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.7rem 1.2rem;
        }

        .choice {
            display: inline-flex;
            align-items: center;
            gap: 0.42rem;
            font-weight: 600;
            color: var(--slate);
        }

        .choice input {
            width: auto;
            accent-color: var(--red);
        }

        .form-note {
            color: var(--slate);
            font-size: 0.88rem;
        }

        .certification {
            padding: 1.2rem;
            border-radius: 10px;
            background: var(--light);
            border-left: 5px solid var(--red);
            margin-bottom: 1.2rem;
        }

        .certification p {
            color: var(--slate);
            font-size: 0.9rem;
            margin-bottom: 0.8rem;
        }

        .submit-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .submit-row .btn {
            border: 0;
        }

        .privacy-note {
            color: var(--slate);
            font-size: 0.86rem;
            max-width: 650px;
        }

        .contact {
            background: var(--white);
        }

        .contact-layout {
            display: grid;
            grid-template-columns: 0.85fr 1.15fr;
            gap: 1.5rem;
        }

        .contact-main,
        .department-grid {
            border-radius: var(--radius);
        }

        .contact-main {
            background: linear-gradient(145deg, var(--red), var(--red-dark));
            color: var(--white);
            padding: 2rem;
        }

        .contact-main h3 {
            font-size: 1.65rem;
            margin-bottom: 1rem;
        }

        .contact-main address {
            font-style: normal;
            margin-bottom: 1.1rem;
            color: rgba(255, 255, 255, 0.88);
        }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            margin: 0.65rem 0;
            font-weight: 800;
            text-decoration: none;
        }

        .contact-link:hover {
            text-decoration: underline;
        }

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

        .department-card {
            border: 1px solid var(--border);
            padding: 1.3rem;
            border-radius: 12px;
            background: var(--light);
        }

        .department-card h3 {
            color: var(--blue-dark);
            font-size: 1.05rem;
            margin-bottom: 0.65rem;
        }
        
        .department-card i {
    color: #000;
}

        .person {
            margin-bottom: 0.65rem;
            color: var(--slate);
            font-size: 0.91rem;
        }

        .person:last-child {
            margin-bottom: 0;
        }

        .person strong {
            display: block;
            color: var(--ink);
        }

        .person a {
            color: var(--blue-dark);
            text-decoration: none;
            overflow-wrap: anywhere;
        }

        .person a:hover {
            text-decoration: underline;
        }

        footer {
            color: var(--white);
            background: var(--ink);
            border-top: 7px solid var(--blue);
            padding: 2.2rem 0;
        }

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

        .footer-brand {
            font-size: 1.2rem;
            font-weight: 900;
        }

        .footer-brand span {
            color: #ffb5ad;
        }

        .footer-copy {
            text-align: right;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.88rem;
        }

        .back-to-top {
            position: fixed;
            right: 1.2rem;
            bottom: 1.2rem;
            width: 46px;
            height: 46px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: var(--red);
            color: var(--white);
            text-decoration: none;
            box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
            opacity: 0;
            pointer-events: none;
            transform: translateY(8px);
            transition: 0.2s ease;
            z-index: 900;
        }

        .back-to-top.visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .visually-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        @media (max-width: 1040px) {
            .brand {
                width: 245px;
            }

            nav ul {
                gap: 0.85rem;
            }

            nav a {
                font-size: 0.88rem;
            }

            .card-grid,
            .facility-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 860px) {
            .topbar-inner {
                padding: 0.45rem 0;
                flex-direction: column;
                justify-content: center;
                gap: 0.15rem;
                text-align: center;
            }

            .topbar-contact {
                justify-content: center;
                gap: 0.8rem;
            }

            .header-inner {
                min-height: 84px;
            }

            .brand {
                width: 228px;
            }

            .brand img {
                height: 73px;
            }

            .menu-toggle {
                display: inline-grid;
                place-items: center;
            }

            nav {
                position: absolute;
                left: 0;
                right: 0;
                top: 100%;
                background: var(--white);
                border-top: 1px solid var(--border);
                box-shadow: 0 15px 24px rgba(15, 23, 42, 0.12);
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.28s ease;
            }

            nav.open {
                max-height: 520px;
            }

            nav ul {
                align-items: stretch;
                flex-direction: column;
                gap: 0;
                padding: 0.65rem 4%;
            }

            nav li {
                border-bottom: 1px solid var(--border);
            }

            nav li:last-child {
                border-bottom: 0;
                padding: 0.7rem 0 0.2rem;
            }

            nav a:not(.nav-apply) {
                display: block;
                padding: 0.8rem 0;
            }

            nav a::after {
                display: none;
            }

            .hero {
                min-height:500px;
                background-position: 62% center;
            }

            .trust-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .trust-item:nth-child(2) {
                border-right: 0;
            }

            .trust-item:nth-child(-n+2) {
                border-bottom: 1px solid var(--border);
            }

            .split,
            .contact-layout,
            .application-intro {
                grid-template-columns: 1fr;
            }

            .split {
                gap: 2rem;
            }

            .photo-frame,
            .photo-frame img {
                min-height: 380px;
            }

            .career-tabs {
                grid-template-columns: 1fr;
            }

            .application-image {
                min-height: 260px;
                order: -1;
            }
        }

        @media (max-width: 650px) {
            html {
                scroll-padding-top: 90px;
            }

            .topbar {
                font-size: 0.8rem;
            }

            .topbar-contact {
                display: none;
            }

            .brand {
                width: 205px;
            }

            .brand img {
                height: 68px;
            }

            .hero {
                min-height: 500px;
                background-position: 68% center;
            }

            .hero-content {
                padding: 4.5rem 0;
            }

            section {
                padding: 4.5rem 0;
            }

            .trust-number {
                font-size: 1.55rem;
            }

            .card-grid,
            .facility-grid,
            .career-columns,
            .department-grid,
            .form-grid {
                grid-template-columns: 1fr;
            }

            .form-group.full {
                grid-column: auto;
            }

            .application-form,
            .application-intro-copy {
                padding: 1.4rem;
            }

            .submit-row {
                align-items: stretch;
            }

            .submit-row .btn {
                width: 100%;
            }

            .footer-inner {
                flex-direction: column;
                text-align: center;
            }

            .footer-copy {
                text-align: center;
            }
        }


/* =========================================================
   Mobile optimization layer
   Keeps the desktop design intact while strengthening phone
   and tablet layout, touch behavior, accessibility, and speed.
   ========================================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: clip;
}

[hidden] {
    display: none !important;
}

.container,
.header-inner,
.topbar-inner,
.split > *,
.card-grid > *,
.facility-grid > *,
.career-tabs > *,
.career-columns > *,
.contact-layout > *,
.department-grid > *,
.application-intro > *,
.form-grid > * {
    min-width: 0;
}

.brand picture,
.photo-frame picture {
    display: block;
    width: 100%;
}

.photo-frame picture {
    height: 100%;
}

img {
    height: auto;
}

.brand img {
    height: 82px;
}

.hero {
    padding: 0;
    background-image:
        linear-gradient(90deg, rgba(10, 15, 30, 0.93) 0%, rgba(10, 15, 30, 0.72) 54%, rgba(10, 15, 30, 0.35) 100%),
        image-set(
            url("assets/truckheader.webp") type("image/webp"),
            url("assets/truckheader.png") type("image/png")
        );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.application-image {
    background-image:
        linear-gradient(90deg, rgba(16, 16, 111, 0.75), rgba(16, 16, 111, 0.1)),
        image-set(
            url("assets/appheader.webp") type("image/webp"),
            url("assets/appheader.png") type("image/png")
        );
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

button,
a,
label,
input,
select,
textarea {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

button,
.btn,
nav a,
.contact-link,
.resource-link,
.choice,
.back-to-top {
    touch-action: manipulation;
}

.btn {
    max-width: 100%;
    text-align: center;
}

.menu-toggle:focus-visible,
.btn:focus-visible,
nav a:focus-visible,
.contact-link:focus-visible,
.resource-link:focus-visible,
.back-to-top:focus-visible,
.email-rot18:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

input:not([type="radio"]):not([type="checkbox"]),
select {
    min-height: 48px;
}

input,
select,
textarea {
    font-size: 16px;
}

.choice {
    min-height: 44px;
    padding: 0.3rem 0.15rem;
    cursor: pointer;
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    flex: 0 0 1.25rem;
}

.comments-group {
    margin-bottom: 1.2rem;
}

.directions-btn {
    margin-top: 1rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    text-decoration: none;
}

.resource-link:hover,
.resource-link:focus-visible {
    text-decoration: underline;
}

.back-to-top {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
}

@media (max-width: 860px) {
    html {
        scroll-padding-top: 92px;
    }

    body.menu-open {
        overflow: hidden;
    }

    .header-inner {
        gap: 1rem;
    }

    .menu-toggle {
        min-width: 46px;
        flex: 0 0 46px;
    }

    nav {
        max-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            max-height 0.28s ease,
            opacity 0.2s ease,
            visibility 0s linear 0.28s;
    }

    nav.open {
        max-height: calc(100dvh - 84px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
            max-height 0.28s ease,
            opacity 0.2s ease,
            visibility 0s linear 0s;
    }

    nav ul {
        padding: 0.5rem max(4%, env(safe-area-inset-right)) max(0.85rem, env(safe-area-inset-bottom)) max(4%, env(safe-area-inset-left));
    }

    nav a:not(.nav-apply) {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 0.75rem 0.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .stat:nth-child(2n) {
        border-right: 0;
    }

    .stat:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .photo-frame picture,
    .photo-frame img {
        min-height: 380px;
    }

    .contact-main {
        order: -1;
    }
}

@media (max-width: 650px) {
    html {
        scroll-padding-top: 82px;
    }

    .container {
        width: min(100% - 2rem, 1180px);
    }

    .topbar-inner {
        min-height: 44px;
        padding: 0.35rem 0;
    }

    .topbar-contact {
        display: flex;
        justify-content: center;
    }

    .topbar-contact a {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        padding: 0.15rem 0.35rem;
        font-weight: 700;
    }

    .header-inner {
        min-height: 76px;
        gap: 0.75rem;
    }

    .brand {
        width: min(190px, calc(100% - 60px));
    }

    .brand img {
        height: 62px;
    }

    nav.open {
        max-height: calc(100dvh - 76px);
    }

    .hero {
        min-height: 500px;
        background-image:
            linear-gradient(90deg, rgba(10, 15, 30, 0.92) 0%, rgba(10, 15, 30, 0.80) 62%, rgba(10, 15, 30, 0.62) 100%),
            image-set(
                url("assets/truckheader-mobile.webp") type("image/webp"),
                url("assets/truckheader.png") type("image/png")
            );
        background-position: center center;
    }

    .hero-content {
        max-width: 100%;
        padding: 3.5rem 0 4.25rem;
    }

    .hero h1 {
        font-size: clamp(2.05rem, 10.2vw, 2.85rem);
        line-height: 1.06;
        letter-spacing: -0.035em;
        margin-bottom: 1rem;
        overflow-wrap: break-word;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }

    .button-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .button-row .btn {
        width: 100%;
        min-height: 52px;
    }

    .stats-strip {
        margin-top: -34px;
    }

    .stats-grid {
        border-radius: 12px;
    }

    .stat {
        padding: 1.2rem 0.75rem;
    }

    .stat strong {
        font-size: clamp(1.45rem, 6vw, 1.85rem);
    }

    .stat span {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    section {
        padding: 3.75rem 0;
    }

    .section-heading {
        margin-bottom: 2.1rem;
    }

    .section-heading h2,
    .split-copy h2 {
        font-size: clamp(1.8rem, 8.2vw, 2.3rem);
        letter-spacing: -0.025em;
    }

    .section-heading p,
    .split-copy p {
        font-size: 1rem;
    }

    .eyebrow {
        font-size: 0.78rem;
        letter-spacing: 0.09em;
        margin-bottom: 0.9rem;
    }

    .eyebrow::before {
        width: 32px;
    }

    .split {
        gap: 1.6rem;
    }

    .split-copy .btn {
        width: 100%;
        margin-top: 0.25rem;
    }

    .photo-frame,
    .photo-frame picture,
    .photo-frame img {
        min-height: 275px;
    }

    .photo-badge {
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.85rem;
        max-width: none;
        padding: 0.85rem 0.95rem;
        font-size: 0.9rem;
    }

    .card,
    .facility-item,
    .career-card,
    .list-panel,
    .department-card {
        padding: 1.35rem;
    }

    .card-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 1rem;
    }

    .career-tabs,
    .career-columns {
        gap: 1rem;
    }

    .application-shell {
        border-radius: 14px;
    }

    .application-image {
        min-height: 220px;
        background-image:
            linear-gradient(90deg, rgba(16, 16, 111, 0.68), rgba(16, 16, 111, 0.08)),
            image-set(
                url("assets/appheader-mobile.webp") type("image/webp"),
                url("assets/appheader.png") type("image/png")
            );
        background-position: center center;
    }

    .application-form,
    .application-intro-copy {
        padding: 1.2rem;
    }

    .application-intro-copy h3 {
        font-size: 1.55rem;
    }

    .application-intro-copy p,
    .application-intro-copy li {
        font-size: 0.96rem;
    }

    .form-section {
        margin-bottom: 1.65rem;
    }

    .form-section legend {
        font-size: 1.08rem;
        line-height: 1.35;
    }

    .form-grid {
        gap: 0.9rem;
    }

    label {
        font-size: 0.95rem;
    }

    input,
    select,
    textarea {
        padding: 0.78rem 0.8rem;
        border-radius: 7px;
    }

    textarea {
        min-height: 125px;
    }

    .choice-row {
        gap: 0.25rem 0.85rem;
    }

    .certification {
        padding: 1rem;
    }

    .submit-row {
        gap: 1.1rem;
    }

    .privacy-note {
        max-width: none;
        line-height: 1.5;
    }

    .contact-main {
        padding: 1.4rem;
    }

    .contact-main h3 {
        font-size: 1.4rem;
    }

    .contact-link {
        min-height: 44px;
        margin: 0.35rem 0;
        overflow-wrap: anywhere;
    }

    .directions-btn {
        width: 100%;
    }

    .resource-link {
        width: 100%;
    }

    footer {
        padding-bottom: max(2.2rem, env(safe-area-inset-bottom));
    }

    .footer-inner {
        gap: 0.8rem;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .topbar-message {
        display: none;
    }

    .topbar-inner {
        flex-direction: row;
    }

    .topbar-contact {
        width: 100%;
    }

    .hero {
        min-height: 480px;
    }

    .hero-content {
        padding-top: 3rem;
    }

    .application-intro-copy,
    .application-form {
        padding: 1rem;
    }

    .application-image {
        min-height: 195px;
    }

    .certification {
        border-left-width: 4px;
    }

    .department-card h3 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .container {
        width: calc(100% - 1.5rem);
    }

    .brand {
        width: min(172px, calc(100% - 58px));
    }

    .brand img {
        height: 56px;
    }

    .header-inner {
        min-height: 70px;
    }

    nav.open {
        max-height: calc(100dvh - 70px);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .stat {
        padding-inline: 0.55rem;
    }

    .stat span {
        font-size: 0.78rem;
    }

    .application-intro-copy,
    .application-form,
    .contact-main,
    .card,
    .facility-item,
    .career-card,
    .list-panel,
    .department-card {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Final mobile touch/performance refinements */
@media (max-width: 860px) {
    .person a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0.2rem 0;
    }

    .facilities {
        background-image:
            linear-gradient(rgba(12, 16, 35, 0.88), rgba(12, 16, 35, 0.9)),
            url("https://images.unsplash.com/photo-1586191582056-39a60c1a93d6?auto=format&fit=crop&w=1200&q=75");
    }
}

@media (max-width: 650px) {
    .topbar-contact a {
        min-height: 44px;
    }

    .facility-item {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 480px) {
    .facilities {
        background-image:
            linear-gradient(rgba(12, 16, 35, 0.88), rgba(12, 16, 35, 0.9)),
            url("https://images.unsplash.com/photo-1586191582056-39a60c1a93d6?auto=format&fit=crop&w=800&q=72");
    }
}
