/* ========================================
   EXPRESSBOX CORPORATE LOGISTICS DESIGN
   Professional style inspired by DHL/FedEx
   ======================================== */

/* CSS Variables - Corporate Theme */
:root {
    /* Brand Colors - From Logo */
    --primary-black: #000000;
    --brand-red: #CC233C;
    --brand-red-dark: #a01c2e;

    /* Corporate Grays */
    --gray-900: #1a1a1a;
    --gray-800: #2d2d2d;
    --gray-700: #404040;
    --gray-600: #666666;
    --gray-500: #808080;
    --gray-400: #999999;
    --gray-300: #cccccc;
    --gray-200: #e6e6e6;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    /* Semantic Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-inverse: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #1a1a1a;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* Borders & Shadows */
    --border-radius: 2px;
    --border-radius-lg: 4px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   NAVIGATION - Corporate Style
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo img {
    height: 45px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    transition: color 0.2s;
    letter-spacing: 0.3px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--brand-red);
}

.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Utility Bar Above Main Nav */
.utility-bar {
    background: var(--gray-900);
    color: var(--white);
    font-size: 13px;
    padding: var(--spacing-xs) 0;
}

.utility-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-links {
    display: flex;
    gap: var(--spacing-md);
}

.utility-links a {
    color: var(--white);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.utility-links a:hover {
    opacity: 1;
}

/* ========================================
   HERO SECTION - Full Width with Overlay
   ======================================== */

.hero-corporate {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow: hidden;
    margin-top: 80px;
}

/* Background Image Overlay */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

/* Fallback pattern */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, rgba(0,0,0,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.05) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-md);
    color: var(--white);
}

.hero-content h1 {
    font-size: 56px;
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
}

.hero-content p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    opacity: 0.95;
}

/* Hero Quick Actions */
.hero-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-2xl);
    max-width: 900px;
}

.quick-action-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s;
}

.quick-action-card:hover {
    transform: translateY(-4px);
}

.quick-action-card h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
}

.quick-action-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   BUTTONS - Corporate Style
   ======================================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    text-align: center;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.3px;
}

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

.btn-primary:hover {
    background: var(--brand-red-dark);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

.btn-outline:hover {
    background: var(--brand-red);
    color: var(--white);
}

/* ========================================
   SECTIONS - Corporate Layout
   ======================================== */

.section {
    padding: var(--spacing-3xl) var(--spacing-md);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--white);
}

.section-gray {
    background: var(--gray-100);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   SERVICE CARDS - Professional Layout
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-image {
    height: 200px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    position: relative;
    overflow: hidden;
}

/* Image placeholder pattern */
.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.03) 25%, transparent 25%);
    background-size: 30px 30px;
}

.service-content {
    padding: var(--spacing-lg);
}

.service-content h3 {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.service-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.service-link {
    color: var(--brand-red);
    font-weight: var(--font-weight-semibold);
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 10px;
}

/* ========================================
   FEATURE ROWS - Alternating Image/Text
   ======================================== */

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    margin-bottom: var(--spacing-3xl);
}

.feature-row:nth-child(even) {
    direction: rtl;
}

.feature-row:nth-child(even) > * {
    direction: ltr;
}

.feature-image {
    height: 400px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.03) 25%, transparent 25%);
    background-size: 30px 30px;
}

.feature-content h3 {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.feature-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.feature-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.feature-list li {
    padding: var(--spacing-xs) 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-red);
    font-weight: var(--font-weight-bold);
}

/* ========================================
   STATS BAND
   ======================================== */

.stats-band {
    background: var(--brand-red);
    color: var(--white);
    padding: var(--spacing-2xl) var(--spacing-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 16px;
    opacity: 0.95;
    font-weight: var(--font-weight-medium);
}

/* ========================================
   CTA SECTIONS
   ======================================== */

.cta-section {
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-md);
}

.cta-section h2 {
    font-size: 42px;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    font-size: 18px;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   FOOTER - Corporate Style
   ======================================== */

footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-2xl) var(--spacing-md) var(--spacing-md);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   MOBILE HAMBURGER MENU
   ======================================== */

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   RESPONSIVE - Mobile Optimization
   ======================================== */

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .utility-bar {
        display: none;
    }

    .hero-corporate {
        margin-top: 80px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .feature-row:nth-child(even) {
        direction: ltr;
    }

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

    .section-header h2 {
        font-size: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 32px;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}
