:root {
    --primary: #f5a623;
    --primary-dark: #e08f10;
    --dark: #0a0a0a;
    --accent-grey: #6b7280;
    --light-bg: #f8f8f8;
    --text-color: #222222;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    background: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 45px; }

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name {
    color: var(--dark);
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1;
}

.company-tag {
    color: var(--accent-grey);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.nav-menu { display: flex; gap: 2rem; }
.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active { color: var(--primary-dark); }

.nav-actions { display: flex; align-items: center; }

.lang-switcher {
    display: flex;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.lang-btn {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: var(--dark);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary.small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: #fff;
}

.full-width { width: 100%; }

/* HERO */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 80px; 
    background: var(--light-bg);
}

.highlight {
    color: var(--primary-dark);
    transition: opacity 0.5s ease-in-out; /* Smoothly fades the slogan in and out */
    display: inline-block; /* Ensures the opacity transition works correctly */
}

.hero-left {
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-right { position: relative; overflow: hidden; }
.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.highlight { color: var(--primary-dark); }

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #555;
}

.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; }

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 2px solid #ddd;
    padding-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.stat-label {
    font-weight: 600;
    color: var(--accent-grey);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* SECTIONS */
.section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.bg-light { background-color: var(--light-bg); max-width: 100%; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.title-underline {
    height: 4px;
    width: 60px;
    background: var(--primary);
    margin: 15px auto;
}
.title-underline.left { margin: 15px 0; }

.services-grid, .fleet-grid, .careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card, .fleet-card, .career-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid transparent;
}

.service-card:hover, .fleet-card:hover, .career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3, .fleet-info h3, .career-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.fleet-card { padding: 0; overflow: hidden; }
.fleet-img { width: 100%; height: 220px; object-fit: cover; }
.fleet-info { padding: 1.5rem; }

/* ABOUT & CONTACT */
.about-grid, .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-truck { width: 100%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.values { display: flex; gap: 2rem; margin: 2rem 0; }
.value-item { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.value-item i { color: var(--primary-dark); font-size: 1.5rem; }

.contact-item { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item i { color: var(--primary); font-size: 2rem; background: var(--dark); padding: 15px; border-radius: 4px; }

/* FORMS */
.form-group { margin-bottom: 1.5rem; }
input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

/* FOOTER */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 2rem 5%;
    text-align: center;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header { text-align: center; margin-bottom: 1.5rem; }
.modal-header i { font-size: 3rem; color: var(--primary); margin-bottom: 0.5rem; }
.modal-header h2 { font-weight: 800; color: var(--dark); }

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    z-index: 2001;
}
.close:hover { color: var(--dark); }

.tracking-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
}
.hidden { display: none; }

/* SMOOTH VIEWS (FADE IN) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
    .nav-actions {
        gap: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 80px;
    }
    
    .hero-right {
        display: none; /* Removes the truck image on mobile */
    }

    .section {
        padding: 40px 5%; 
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .hero-left {
        padding: 40px 5%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-cta, .hero-stats {
        justify-content: center;
        flex-wrap: wrap; /* Prevent clipping */
    }

    .hero-stats {
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        overflow: hidden; /* Prevents horizontal scroll */
    }

    .values {
        flex-direction: column; /* Stack values vertically to prevent clipping */
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .about-truck {
        max-width: 100%;
        height: auto;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto; /* Allow scrolling if content is tall */
    }

    .modal-header i {
        font-size: 2.2rem;
    }

    /* Navigation Menu */
    .desk-only {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: 0.4s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-primary, 
    .hero-cta .btn-secondary {
        width: 100%;
    }

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

    /* Ensure the logo doesn't push the language/burger off screen */
    .company-name {
        font-size: 1.1rem;
    }
    .company-tag {
        font-size: 0.75rem;
    }
}

.lang-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #eee;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.lang-dropdown:hover {
    border-color: var(--primary);
}

.page-hero {
    background: var(--dark);
    padding: 140px 5% 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg, transparent, transparent 40px,
        rgba(245,166,35,0.03) 40px, rgba(245,166,35,0.03) 80px
    );
}

.page-hero h1 { font-size: 3.5rem; font-weight: 800; color: #fff; margin-bottom: 1rem; position: relative; }
.page-hero p { font-size: 1.2rem; color: #aaa; max-width: 600px; margin: 0 auto; position: relative; }
.page-hero .highlight { color: var(--primary); }

/* STORY SECTION */
.story-section { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-content h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 1.5rem; }
.story-content p { color: #555; line-height: 1.8; margin-bottom: 1.5rem; }
.story-image img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* TIMELINE */
.timeline-section { background: var(--light-bg); padding: 80px 5%; }
.timeline-container { max-width: 1000px; margin: 4rem auto 0; position: relative; }
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item { margin-bottom: 3rem; position: relative; width: 50%; padding: 0 40px; }
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }
.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -10px; }
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-date { font-weight: 800; color: var(--primary); font-size: 1.5rem; margin-bottom: 0.5rem; }
.timeline-text h4 { color: var(--dark); font-weight: 700; margin-bottom: 0.5rem; }

@media (max-width: 992px) {
    .story-grid { grid-template-columns: 1fr; }
    .timeline-container::before { left: 20px; }
    .timeline-item { width: 100%; text-align: left !important; padding-left: 50px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-dot { left: 10px !important; }
    .page-hero h1 { font-size: 2.2rem; }
}

@media (max-width: 992px) {
    .track-btn {
        padding: 10px 15px;
    }

    .track-btn span {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }
}

@media (max-width: 400px) {
    .company-name {
        font-size: 1rem;
    }
    .company-tag {
        display: none;
    }
}

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

@media (max-width: 992px) {
    .nav-container {
        padding: 0.8rem 3%;
    }

    .nav-container {
        display: flex;
        justify-content: space-between; 
    }

    .nav-actions {
        gap: 10px;
    }

    .mobile-menu-btn {
        margin: 0 10px;
    }
}

/* Not all CSS is here because naming conventions make html files conflict */
/* The rest of the CSS is in the HTML files themselves as style tags in head */

/* COOKIE BANNER */
#cookie-banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

.banner-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* MOBILE COOKIE BANNER */
@media (max-width: 768px) {
    #cookie-banner-container {
        padding: 15px;
    }
    .banner-flex {
        flex-direction: column;
        text-align: center;
    }
    .banner-flex span {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    .banner-flex button {
        width: 100%;
        padding: 12px !important;
    }
}