/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* Blocks horizontal scroll */
}

body {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
    color: #ff6600;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/truckpic1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    /* Vertically centers the content */
    justify-content: flex-start;
    /* Keeps the content left-aligned */
    padding: 0 clamp(20px, 5%, 50px);
    /* Adds responsive padding */
    color: white;
    text-align: left;
    /* Keep text left-aligned */
    margin-top: 0;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    max-width: 100%;
    width: 80%;
    /* Ensures content doesn't stretch too wide */
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    /* Responsive font size */
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.3rem;
    margin-top: 10px;
    background: #f8b400;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    color: black;
}

/* Mobile Adjustments */
/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/truckpic1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    /* Vertically centers the content */
    justify-content: flex-start;
    /* Keeps the content left-aligned */
    padding: 0 clamp(20px, 5%, 50px);
    /* Adds responsive padding */
    color: white;
    text-align: left;
    /* Keep text left-aligned */
    margin-top: 0;
}

.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    max-width: 100%;
    width: 40%;

}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    /* Responsive font size */
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.3rem;
    margin-top: 10px;
    background: #f8b400;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    color: black;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        justify-content: flex-start;
        /* Keep the content left-aligned */
        padding: 0 20px;
        /* Adjust padding for mobile */
    }

    .hero-content {
        padding: 30px;
        width: 90%;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* ----Trucks-----*/
.trucks {
    width: 90%;
    margin: auto;
    text-align: center;
    padding-top: 30px;
}

.trucks .row {
    display: flex;
    justify-content: center;
    /* Aligns items in the center */
    gap: 20px;
    /* Adds space between columns */
    padding-top: 40px;
}


.trucks-col {
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 0.8%;
    text-align: left;
}

.trucks-col img {
    width: 100%;
    height: 250px;
    /* Makes all images same height */
    object-fit: cover;
    /* Crops to fill space without stretching */
    border-radius: 8px;
    /* Keeps your rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    /* Your existing shadow */
}

@media screen and (max-width: 768px) {
    .trucks .row {
        flex-direction: column;
        align-items: stretch;
        /* Let columns stretch full width */
    }

    .trucks-col {
        flex-basis: 100%;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
        /* add spacing between items */
    }

    .trucks-col img {
        height: auto;
        /* Allow image height to adjust naturally */
    }
}



/* ----testimonials----- */
.testimonials {
    width: 80;
    margin: auto;
    padding-top: 5%;
    text-align: center;
    padding-left: 5%;
    padding-right: 5%;
}

.testimonial-col {
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
}


.testimonial-col img {
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}

.row {
    display: flex;
    justify-content: space-between;
    /* Optional: adds space between columns */
    flex-wrap: wrap;
    /* Ensures responsiveness */
}

.testimonial-col p {
    padding: 0;
}

.testimonial-col h3 {
    margin-top: 15px;
    text-align: left;
}

.testimonial-col .fa-star {
    color: #f44336;
}

.testimonial-col .fa-star-half-stroke {
    color: #f44336;
}

.sized-box {
    height: 25px;
}


.footer {
    background-color: #111;
    color: #eee;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 15px 0;
    color: #ccc;
}

.footer-contact {
    margin: 15px 0;
    font-weight: bold;
}

.footer-copy {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #888;
}

@media screen and (max-width: 768px) {
    .testimonials .row {
        flex-direction: column;
        align-items: center;
    }

    .testimonial-col {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-col img {
        margin: 0 0 15px 0;
    }

    .testimonial-col h3 {
        text-align: center;
    }
}



/* Dispatch Services Section */
.dispatch-services {
    padding: 50px 0;
    padding-left: 40px;
    padding-right: 40px;
    background-color: #ffffff;
}

.services-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.services-image,
.services-text {
    flex: 1;
    min-width: 300px;
}

.services-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgb(0, 0, 0);
}

.services-text h2 {
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
    font-size: 28px;
}

.services-text h3 {

    color: #000000;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.services-text p {
    margin-bottom: 15px;
    color: #000000;
    line-height: 1.7;
}






/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    nav {
        padding-right: 20px;
    }

    nav ul {
        gap: 12px;
    }

    .hero {
        justify-content: center;
        /* Center on mobile */
        padding: 0 20px;
    }

    .hero-content {
        padding: 30px;
    }

    .hero h1 {
        font-size: 1rem;
    }



}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #000;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
}