/* --- Variables & Reset --- */
:root {
    --primary-blue: #004aad;
    --primary-green: #7ab800;
    --bg-light-blue: #f0f8ff;
    --bg-light-green: #f9fcf5;
    --bg-gray: #f5f5f5;
    --dark-text: #2c3e50;
    --light-text: #666;
    --white: #ffffff;
    --shadow: 0 15px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-tag {
    color: var(--primary-green);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
}

.subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* --- Buttons --- */
.btn-main,
.btn-outline {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-main {
    background: var(--primary-green);
    color: var(--white);
    border: 2px solid var(--primary-green);
    box-shadow: 0 5px 15px rgba(122, 184, 0, 0.3);
}

.btn-main:hover {
    background: #ffffff;
    color: var(--primary-green);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary-blue);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-green);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
}

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

.nav-link {
    font-weight: 600;
    color: var(--dark-text);
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

.nav-link:hover { color: var(--primary-green); }
.nav-link:hover::after { width: 100%; }

.btn-contact {
    background: var(--primary-blue);
    color: white !important;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-contact:hover {
    background: var(--primary-green);
    color: white !important;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    margin-left: auto;
}

.bar {
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    background: linear-gradient(130deg, #004aad 0%, #0b72d1 40%, #f5f9ff 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    color: #ffffff;
    max-width: 520px;
    opacity: 0;
    animation: fadeInZoom 1.5s forwards;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(122, 184, 0, 0.9);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: 3.4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.35);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.hero-btns { display: flex; flex-wrap: wrap; }

.hero-truck {
    flex: 1;
    min-width: 260px;
    display: flex;
    justify-content: flex-end;
}

.hero-truck img {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.35));
    border-radius: 18px;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--primary-blue);
    color: white;
    padding: 60px 0;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item { text-align: center; }

.stat-item h2 {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    background: #ffffff;
}

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

.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-green);
    margin: 20px 0;
}

.feature-list { margin-top: 30px; }

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark-text);
}

.feature-list i {
    color: var(--primary-green);
    margin-right: 15px;
    font-size: 1.2rem;
}

.rounded-shadow {
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--primary-blue);
    transition: var(--transition);
}

.rounded-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0px var(--primary-green);
}

/* --- Services Section --- */
.services-section {
    padding: 80px 0;
    background: var(--bg-light-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--primary-green);
}

.icon-box {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-text);
}

/* --- Products Section --- */
.products-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.product-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover { transform: translateY(-15px); }

.card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Special Styling for Wholesale Cutout Truck */
.wholesale-container {
    background: linear-gradient(to bottom, #eef3fb, #d9e4f5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wholesale-img {
    width: 90% !important;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
}

.product-card:hover .wholesale-img {
    transform: scale(1.05) !important;
}

/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 173, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .card-overlay { opacity: 1; }

.card-overlay i {
    color: #ffffff;
    font-size: 3rem;
    transform: scale(0);
    transition: 0.4s;
}

.product-card:hover .card-overlay i { transform: scale(1); }

.card-info {
    padding: 30px;
    text-align: center;
}

.card-info h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* --- Fleet Parallax --- */
.fleet-parallax {
    background: url('images/wearhouse_fr.jpeg')
                center center / cover fixed;
    padding: 140px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

.parallax-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.parallax-content p {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light-green);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    border-left: 5px solid var(--primary-green);
}

.info-card:hover { transform: translateX(10px); }

@media (hover: hover) and (pointer: fine) {
    .info-card:hover {
        transform: translateX(10px);
    }
}


.info-card i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.info-card h4 {
    margin-bottom: 5px;
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.contact-form {
    flex: 1.5;
    min-width: 300px;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    background: transparent;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    transition: 0.3s;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:valid,
.form-group textarea:valid {
    border-bottom-color: var(--primary-green);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-green);
}

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px;
    border-top: 5px solid var(--primary-blue);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo h2 {
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 2rem;
}

.footer-logo span {
    color: var(--primary-green);
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.socials a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #333;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: var(--transition);
    font-size: 1.2rem;
}

.socials a:hover {
    background: var(--primary-green);
    transform: rotate(360deg);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* --- Back to top button --- */
#backToTop {
    position: fixed;
    bottom: 22px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    outline: none;
    background: var(--primary-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1100;
    transition: var(--transition);
}

#backToTop i {
    font-size: 1.1rem;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* --- Animations --- */
@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.reveal-left,
.reveal-right,
.reveal-bottom {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-bottom { transform: translateY(50px); }

.active-reveal {
    opacity: 1;
    transform: translate(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero {
        padding-top: 110px;
    }

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

@media (max-width: 768px) {
    .navbar {
        height: 72px;
        padding: 0 6px;
    }

    /* center logo on mobile and keep burger on right */
    .nav-inner {
        justify-content: center;
        position: relative;
    }

    .logo {
        margin: 0 auto;
    }

    .logo img {
        height: 50px;
    }

    .menu-toggle {
        display: block;
        margin-left: 0;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: #ffffff;
        padding: 40px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: 0.4s;
        gap: 18px;
        text-align: center;
    }

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

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

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

    .hero-btns {
        justify-content: center;
    }

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

    /* keep the blue shadow fully on screen on mobile */
    .image-col {
        display: flex;
        justify-content: center;
    }

    .rounded-shadow {
        box-shadow: 0 18px 0 var(--primary-blue);
        margin: 0 auto;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .fleet-parallax {
        background-attachment: scroll;
        padding: 110px 0;
    }
}
