
/* ========================================
   SECTION 1: WEBSITE COLORS
======================================== */

:root {
    --navy: #10283f;
    --blue: #12658a;
    --pale: #edf5f8;
    --ink: #1b2d3b;
    --muted: #526777;
}

/* ========================================
   SECTION 2: GLOBAL WEBSITE SETTINGS
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #f5b544;
    outline-offset: 3px;
}

/* ========================================
   SECTION 3: WEBSITE CONTAINER
======================================== */

.container {
    width: min(1120px, 92%);
    margin-inline: auto;
}

/* ========================================
   SECTION 4: ACCESSIBILITY
======================================== */

.skip {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 100;
}

.skip:focus {
    left: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
}

/* ========================================
   SECTION 5: WEBSITE HEADER
======================================== */

.site-header {
    background: white;
    box-shadow: 0 2px 12px #10283f12;
    position: relative;
    z-index: 10;
}

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

/* ========================================
   SECTION 6: COMPANY LOGO / BRAND
======================================== */

.brand {
    text-decoration: none;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    letter-spacing: 0.18em;
    color: var(--blue);
    font-size: 0.63rem;
    margin-top: 5px;
}

/* ========================================
   SECTION 7: DESKTOP NAVIGATION
======================================== */

.nav {
    display: flex;
    align-items: center;
    gap: 23px;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.nav a:hover {
    color: var(--blue);
}

/* ========================================
   SECTION 8: WEBSITE BUTTONS
======================================== */

.btn {
    display: inline-block;
    background: var(--blue);
    color: white !important;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #0a4e70;
}

.btn-outline {
    background: transparent;
    border: 1px solid #b3d5e4;
}

/* ========================================
   SECTION 9: MOBILE MENU BUTTON
======================================== */

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #b8c9d2;
    border-radius: 5px;
    padding: 9px 12px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ========================================
   SECTION 10: HOMEPAGE HERO
   LIGHT BLUE TRUCK BACKGROUND
======================================== */

.hero {
    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(206, 229, 243, 0.93) 0%,
            rgba(206, 229, 243, 0.82) 45%,
            rgba(206, 229, 243, 0.50) 100%
        ),
        url("../images/truck-side.png");

    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;

    color: #123653;
    padding: 95px 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Small heading above main title */

.eyebrow,
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #24749a;
}

/* Main homepage heading */

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    max-width: 850px;
    line-height: 1.12;
    margin: 18px 0;
    color: #123653;
}

/* Homepage description */

.hero p {
    max-width: 700px;
    color: #34566d;
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Homepage quote button */

.hero .btn {
    background: #16769e;
    color: white;
}

.hero .btn:hover {
    background: #105a7b;
}

/* ========================================
   SECTION 11: HERO ACTION BUTTONS
======================================== */

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ========================================
   SECTION 12: COMPANY STATISTICS
======================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 720px;
}

.stat {
    border-top: 1px solid #8eafc1;
    padding-top: 15px;
}

.stat strong {
    font-size: 2rem;
    display: block;
    color: var(--navy);
}

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

/* ========================================
   SECTION 13: GENERAL PAGE SECTIONS
   FIXED SPACING THROUGHOUT WEBSITE
======================================== */

section {
    padding: 42px 0;
}

/* Reduce excessive gaps between sections */

section + section {
    margin-top: 0;
}

/* Consistent heading styles */

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 16px;
}

h3 {
    line-height: 1.3;
    color: var(--ink);
}

/* Prevent unusually large heading gaps */

section h2:first-child,
section h3:first-child {
    margin-top: 0;
}

/* Standard paragraph spacing */

p {
    margin-top: 0;
    margin-bottom: 16px;
}

/* Introductory text */

.intro {
    max-width: 720px;
    color: var(--muted);
    margin-bottom: 25px;
}

/* Lists */

section ul,
section ol {
    margin-top: 12px;
    margin-bottom: 20px;
    padding-left: 28px;
}

/* ========================================
   SECTION 14: SERVICE CARDS
======================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    padding: 27px;
    border: 1px solid #dce7ed;
    border-radius: 9px;
    background: white;
    box-shadow: 0 4px 16px #10283f09;
}

.card h3 {
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 14px;
}

.card p {
    color: var(--muted);
    margin-bottom: 0;
}

/* ========================================
   SECTION 15: BACKGROUND COLORS
======================================== */

.soft {
    background: var(--pale);
}

/* ========================================
   SECTION 16: SPLIT CONTENT LAYOUT
======================================== */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ========================================
   SECTION 17: FEATURE HIGHLIGHT
======================================== */

.feature {
    padding: 35px;
    border-radius: 10px;
    background: #d7e8f0;
    border-left: 6px solid var(--blue);
}

.feature h3 {
    margin-top: 0;
}

/* ========================================
   SECTION 18: CALL TO ACTION
======================================== */

.cta {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 55px 0;
}

.cta h2 {
    color: white;
}

.cta p {
    color: #d3e5ef;
}

/* ========================================
   SECTION 19: WEBSITE FOOTER
======================================== */

.site-footer {
    background: #0b1e30;
    color: #d6e3ea;
    padding: 32px 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-inner a {
    color: white;
}

/* ========================================
   SECTION 20: INNER PAGE BANNERS
======================================== */

.page-hero {
    background: var(--navy);
    color: white;
    padding: 55px 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.7rem);
    color: white;
}

.page-hero p {
    max-width: 690px;
    color: #d7e5ef;
    margin-top: 14px;
    margin-bottom: 0;
}

/* ========================================
   SECTION 21: INNER PAGE CONTENT
======================================== */

.content {
    max-width: 800px;
}

/* Paragraphs on informational pages */

.content p {
    color: var(--muted);
    margin-bottom: 16px;
}

/* Headings on informational pages */

.content h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.content h3 {
    margin-top: 22px;
    margin-bottom: 12px;
}

/* Reduce spacing between informational sections */

.content section {
    padding: 30px 0;
}

/* Avoid unnecessary extra space at page edges */

.content section:first-child {
    padding-top: 30px;
}

.content section:last-child {
    padding-bottom: 35px;
}

/* ========================================
   SECTION 22: SCROLL REVEAL ANIMATIONS
======================================== */

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

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ========================================
   SECTION 23: RESPONSIVE IMAGES
======================================== */

img {
    max-width: 100%;
    height: auto;
}

/* Optional images within fleet sections */

.fleet-photo {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    margin: 22px 0;
    object-fit: cover;
}

/* Optional homepage image block */

.homepage-truck img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
}

/* ========================================
   SECTION 24: MOBILE / TABLET RESPONSIVE
======================================== */

@media (max-width: 820px) {

    /* Mobile navigation button */

    .menu-toggle {
        display: block;
    }

    /* Mobile dropdown navigation */

    .nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: white;
        padding: 18px 4%;
        box-shadow: 0 12px 20px #10283f20;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 12px 5px;
        border-bottom: 1px solid #e6edf1;
    }

    /* Homepage hero */

    .hero {
        padding: 70px 0;
        background-position: 60% center;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 7vw, 3.2rem);
    }

    .hero p {
        font-size: 1rem;
    }

    /* Stack cards and split layouts */

    .cards,
    .split {
        grid-template-columns: 1fr;
    }

    .split {
        gap: 25px;
    }

    /* Company statistics */

    .stats {
        gap: 10px;
        margin-top: 30px;
    }

    .stat strong {
        font-size: 1.6rem;
    }

    /* General section spacing */

    section {
        padding: 35px 0;
    }

    .content section {
        padding: 25px 0;
    }

    /* Inner page banners */

    .page-hero {
        padding: 45px 0;
    }

    /* CTA */

    .cta {
        padding: 45px 0;
    }

    /* Feature boxes */

    .feature {
        padding: 25px;
    }
}

/* ========================================
   SECTION 25: SMALL PHONE SCREENS
======================================== */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .hero {
        padding: 60px 0;

        background:
            linear-gradient(
                90deg,
                rgba(206, 229, 243, 0.96) 0%,
                rgba(206, 229, 243, 0.86) 100%
            ),
            url("../images/truck-side.png");

        background-size: cover;
        background-position: 60% center;
    }

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

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat strong {
        font-size: 1.4rem;
    }

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

    .card {
        padding: 22px;
    }

    .footer-inner {
        flex-direction: column;
    }
}

/* ========================================
   SECTION 26: REDUCED MOTION ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn {
        transition: none;
    }

} /* END OF REDUCED MOTION MEDIA QUERY */


/* ======================================== */
/* FLEET & SAFETY PAGE ONLY                 */
/* COMPACT SECTION SPACING                  */
/* ======================================== */

body.fleet-page main section {
    padding-top: 35px;
    padding-bottom: 35px;
}

    /* Reduce space between section headings and text */

    body.fleet-page main section h2 {
        margin-top: 0;
        margin-bottom: 16px;
    }

    /* Make paragraphs more compact */

    body.fleet-page main section p {
        margin-top: 0;
        margin-bottom: 14px;
        line-height: 1.6;
    }

    /* Reduce space around subheadings */

    body.fleet-page main section h3 {
        margin-top: 22px;
        margin-bottom: 12px;
    }

    /* Tighter bullet lists */

    body.fleet-page main section ul {
        margin-top: 8px;
        margin-bottom: 16px;
        line-height: 1.6;
    }

    /* Keep final section closer to footer */

    body.fleet-page main section:last-child {
        padding-bottom: 35px;
    }

    /* Mobile spacing */

    @media (max-width: 768px) {
        body.fleet-page main section {
            padding-top: 28px;
            padding-bottom: 28px;
        }
    }


    /* ======================================== */
    /* DRIVER APPLICATION FORM                  */
    /* ======================================== */

    .application-form {
        max-width: 900px;
        margin: 0 auto;
    }

    .application-form fieldset {
        border: 1px solid #d7dce2;
        border-radius: 8px;
        padding: 28px;
        margin: 0 0 30px;
        min-width: 0;
    }

    .application-form legend {
        font-size: 1.2rem;
        font-weight: 700;
        padding: 0 10px;
    }

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

    .application-form .form-field {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .application-form .form-field label {
        font-weight: 600;
    }

    .application-form input:not([type="checkbox"]),
    .application-form select,
    .application-form textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 14px;
        border: 1px solid #cbd3dc;
        border-radius: 6px;
        background: #fff;
        color: #1f2937;
        font: inherit;
    }

    .application-form input:focus,
    .application-form select:focus,
    .application-form textarea:focus {
        outline: 2px solid #3566a8;
        outline-offset: 2px;
    }

    .application-form textarea {
        resize: vertical;
    }

    .application-form .form-field small {
        color: #64748b;
        line-height: 1.5;
    }

    .application-form .form-checkbox {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin: 18px 0;
    }

    .application-form .form-checkbox input {
        margin-top: 5px;
        flex-shrink: 0;
    }

    .application-form .application-actions {
        padding: 20px 0;
    }

    .application-form button:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

    /* ======================================== */
    /* MOBILE APPLICATION LAYOUT                */
    /* ======================================== */

    @media (max-width: 650px) {

        .application-form .form-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .application-form fieldset {
            padding: 20px 16px;
        }

        .application-form legend {
            font-size: 1.05rem;
        }

    }


    
/* ======================================== */
/* CAREERS - EXPANDABLE JOB LISTINGS        */
/* ======================================== */

.careers-page .career-job-card {
    margin: 28px 0;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover and expanded states */

.careers-page .career-job-card:hover {
    border-color: #8ba8ca;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.careers-page .career-job-card[open] {
    border-color: #8ba8ca;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}


/* ======================================== */
/* COLLAPSED JOB PREVIEW                    */
/* ======================================== */

.careers-page .career-job-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    cursor: pointer;
    list-style: none;
    background: #ffffff;
    transition: background-color 0.2s ease;
}

/* Remove native browser arrow */

.careers-page .career-job-summary::-webkit-details-marker {
    display: none;
}

.careers-page .career-job-summary::marker {
    content: "";
}

/* Hover background */

.careers-page .career-job-summary:hover {
    background: #f5f8fc;
}

/* Keyboard accessibility */

.careers-page .career-job-summary:focus-visible {
    outline: 3px solid #3566a8;
    outline-offset: -3px;
}

/* Job preview content */

.careers-page .career-job-summary-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

/* Job title */

.careers-page .career-job-title {
    display: block;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: #1f2937;
}

/* Location and employment type */

.careers-page .career-job-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

/* Annual pay */

.careers-page .career-job-pay {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
}

/* Qualification tags */

.careers-page .career-job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.careers-page .career-job-tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    background: #eef3f9;
    color: #365575;
    font-size: 0.82rem;
    font-weight: 600;
}


/* ======================================== */
/* EXPAND / COLLAPSE INDICATOR              */
/* ======================================== */

.careers-page .career-job-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #365575;
    font-weight: 600;
}

.careers-page .career-toggle-label {
    font-size: 0.9rem;
    white-space: nowrap;
}

.careers-page .career-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d7dce2;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
}

/* Show minus icon when expanded */

.careers-page .career-job-card[open] .career-toggle-icon {
    font-size: 0;
}

.careers-page .career-job-card[open] .career-toggle-icon::after {
    content: "−";
    font-size: 1.4rem;
}

/* Change label to Hide Details */

.careers-page .career-job-card[open] .career-toggle-label {
    font-size: 0;
}

.careers-page .career-job-card[open] .career-toggle-label::after {
    content: "Hide Details";
    font-size: 0.9rem;
}


/* ======================================== */
/* EXPANDED JOB DESCRIPTION                 */
/* ======================================== */

.careers-page .career-job-details {
    padding: 12px 28px 30px;
    border-top: 1px solid #e5e9ef;
    background: #ffffff;
}

.careers-page .career-job-details h3 {
    margin-top: 28px;
    margin-bottom: 14px;
    color: var(--navy);
}

.careers-page .career-job-details p {
    line-height: 1.7;
}

.careers-page .career-job-details ul {
    padding-left: 24px;
}

.careers-page .career-job-details li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Apply Now button spacing */

.careers-page .career-apply-action {
    margin: 26px 0;
}


/* ======================================== */
/* MOBILE CAREERS LAYOUT                    */
/* ======================================== */

@media (max-width: 650px) {

    .careers-page .career-job-summary {
        padding: 20px 18px;
        gap: 12px;
        align-items: flex-start;
    }

    .careers-page .career-job-title {
        font-size: 1.08rem;
    }

    .careers-page .career-job-meta {
        font-size: 0.88rem;
    }

    .careers-page .career-job-pay {
        font-size: 0.95rem;
    }

    .careers-page .career-job-tags {
        gap: 6px;
    }

    .careers-page .career-job-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .careers-page .career-job-toggle {
        gap: 0;
    }

    .careers-page .career-toggle-label {
        display: none;
    }

    .careers-page .career-toggle-icon {
        width: 28px;
        height: 28px;
    }

    .careers-page .career-job-details {
        padding: 10px 18px 24px;
    }

}

/* ======================================== */
/* END OF CAREERS STYLES                    */
/* ======================================== */