/* 
   Eslashing - Esalco Replica Theme 
   Premium Logistics Design
*/

:root {
    --primary-blue: #0B60A9;
    /* Esalco Primary Blue */
    --dark-blue: #084274;
    /* Esalco Dark Blue / Footer */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f4f6f9;
    --border-color: #e1e4e8;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Montserrat', sans-serif;
    /* Single font family as per Esalco */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    /* Bold corporate look */
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-blue);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left span {
    margin-right: 20px;
}

.top-right a {
    margin-left: 15px;
    color: var(--white);
}

/* Header & Navigation */
header {
    width: 100%;
    position: fixed;
    top: 50px;
    /* Space for top-bar */
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
    /* Start transparent */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sticky State */
body.scrolled header {
    background-color: var(--white);
    top: 0;
    box-shadow: var(--shadow);
    padding: 0;
}

body.scrolled .top-bar {
    display: none;
    /* Hide top bar on scroll for clean look */
}

/* Nav Styling */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

body.scrolled nav {
    height: 70px;
    /* Shrink on scroll */
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    /* White on transparent */
}

.logo span {
    color: var(--primary-blue);
    background: #fff;
    padding: 0 5px;
}

body.scrolled .logo a {
    color: var(--dark-blue);
}

body.scrolled .logo span {
    color: var(--white);
    background: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

body.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-form {
    background: rgba(11, 96, 169, 0.9);
    /* Primary Blue transparent */
    padding: 2.5rem;
    border-radius: 4px;
    width: 400px;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.hero-form input,
.hero-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

.hero-form .btn-submit {
    width: 100%;
    background-color: var(--dark-blue);
    color: white;
    padding: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.hero-text {
    color: var(--white);
    max-width: 600px;
    text-align: right;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Features / Services */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-card {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--primary-blue);
    padding: 8px 20px;
    display: inline-block;
}

.btn-card:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

/* Stats Section */
.stats {
    background-color: var(--primary-blue);
    padding: 4rem 0;
    color: var(--white);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding-top: 5rem;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    background-color: #052c4f;
    /* Even darker blue */
    padding: 1.5rem 0;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
}

body.scrolled .burger div {
    background-color: var(--dark-blue);
}

@media screen and (max-width: 968px) {
    .hero .container {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-form {
        width: 100%;
        max-width: 400px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: var(--dark-blue);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        padding-top: 6rem;
        z-index: 1001;
        /* Above top bar */
    }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .burger {
        display: block;
        z-index: 1002;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .top-bar {
        display: none;
    }

    /* Hide top bar on mobile */
    header {
        top: 0;
    }
}