/* ==========================================================================
   CSS Variables & Reset (Industrial/Logistics Theme)
   ========================================================================== */
:root {
    --primary: #FF6B00;      /* Safety/Speed Orange */
    --primary-hover: #e65c00;
    --secondary: #0A2540;    /* Deep Navy Blue */
    --secondary-hover: #0d3256;
    --bg-light: #f4f7f9;     /* Very Light Gray/Blue */
    --bg-white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    
    --font-sys: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sys);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    color: var(--secondary);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
}

h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: var(--spacing-md); color: var(--text-muted); }

.container {
    width: 100%;
    padding: 0 var(--spacing-lg);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(255, 107, 0, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--secondary);
}

.btn-block {
    width: 100%;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

/* ==========================================================================
   Preview Banner
   ========================================================================== */
.preview-banner {
    background-color: var(--secondary);
    color: var(--bg-white);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.navbar {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 32px;
    z-index: 999;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo svg {
    color: var(--primary);
}

.nav-links, .nav-cta {
    display: none;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Menu Active */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 1px solid var(--border);
    gap: 1rem;
}

.nav-links.active a {
    color: var(--secondary);
    font-weight: 600;
    padding: 0.5rem 0;
}

.nav-links.active a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
    padding: var(--spacing-xl) 0;
}

/* Hero */
.hero {
    position: relative;
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.7) 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
    padding: var(--spacing-xl) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hero-content h1 {
    color: var(--bg-white);
    font-size: 2.5rem;
}

.hero-content p {
    color: #e2e8f0;
    font-size: 1.1rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: var(--spacing-md);
}

/* Tracking Widget */
.tracking-widget {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    border-top: 4px solid var(--primary);
}

.tracking-widget h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.tracking-form {
    display: flex;
    gap: 0.5rem;
}

.tracking-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sys);
    outline: none;
    transition: var(--transition);
}

.tracking-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.tracking-form .btn {
    padding: 0.75rem 1rem;
}

/* About */
.about {
    background-color: var(--bg-light);
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

.feature-list svg {
    color: var(--primary);
}

/* Services */
.service-card {
    text-align: left;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(10, 37, 64, 0.05);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--secondary);
    color: var(--bg-white);
}

/* Pricing / Solutions */
.pricing {
    background-color: var(--secondary);
    color: var(--bg-white);
}

.pricing .section-header h2 {
    color: var(--bg-white);
}

.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
    color: var(--text-main);
}

.pricing-card.highlighted {
    border: 2px solid var(--primary);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--bg-white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-desc {
    font-size: 0.875rem;
    min-height: 40px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin: var(--spacing-md) 0;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-card ul {
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.pricing-card li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.75rem;
}

.pricing-card li:last-child {
    border-bottom: none;
}

/* Custom button states for dark section cards */
.pricing-card .btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
}

.pricing-card .btn-outline:hover {
    background: var(--secondary);
    color: var(--bg-white);
}

/* Testimonials */
.testimonials {
    background-color: var(--bg-light);
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.slide {
    display: none;
    animation: fadeEffect 0.5s;
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.slide.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-main);
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.6;
}

.slide h4 {
    color: var(--secondary);
    margin: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: var(--spacing-md);
}

.slider-controls button {
    background: var(--bg-white);
    border: 1px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: var(--transition);
}

.slider-controls button:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

.info-item svg {
    color: var(--primary);
}

.contact-form {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--secondary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sys);
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.error-msg {
    color: var(--danger);
    font-size: 0.875rem;
    display: none;
    margin-top: 0.25rem;
}

.form-group.error input {
    border-color: var(--danger);
}

.form-group.error .error-msg {
    display: block;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: #94a3b8;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand .logo {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-links h3 {
    color: var(--bg-white);
    margin-bottom: 1.25rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--bg-white);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-weight: 500;
    border-left: 4px solid var(--success);
}

.toast.show {
    bottom: 20px;
}

/* Scroll to Top */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--bg-white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

#scrollTop.visible {
    opacity: 1;
    visibility: visible;
}

#scrollTop:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* Scroll Reveal Initial State */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease-out;
}

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

/* ==========================================================================
   Media Queries (Mobile First approach)
   ========================================================================== */

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.highlighted {
        transform: scale(1.05);
        z-index: 2;
    }
    
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .hero-content h1 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-links a {
        color: var(--text-main);
        font-weight: 600;
    }

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

    .nav-cta {
        display: inline-flex;
    }

    .hero-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero-content {
        flex: 1;
        max-width: 50%;
    }
    
    .tracking-widget {
        flex: 0 0 400px;
        margin-top: 0;
    }

    .about-container, .contact-container {
        flex-direction: row;
        align-items: center;
    }
    
    .about-image, .about-content, .contact-info, .contact-form {
        flex: 1;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Outline button specific for dark hero background on large screens */
    .hero-buttons .btn-outline {
        border-color: var(--primary);
        color: var(--bg-white);
        background: rgba(255, 107, 0, 0.1);
    }
    .hero-buttons .btn-outline:hover {
        background: var(--primary);
        color: var(--bg-white);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-content h1 { font-size: 4rem; }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}
