/* ========================================
   Peak Express - Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font-family: inherit;
    cursor: pointer;
}

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

/* Utility Classes */
.d-none {
    display: none !important;
}

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

/* For mobile compatibility */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 32px !important;
    }
    
    .hero-content {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
    }
    
    .feature-bar {
        grid-template-columns: 1fr !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   Peak Express - Front Page Styles
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #0f2744; }
.page-wrapper { width: 853px; margin: 0 auto; background: white; position: relative; }
.page-wrapper img { width: 100%; height: auto; display: block; }

/* Hero Section */
.hero-section {
    position: relative;
    width: 853px;
    height: 450px;
    overflow: visible;
}
.hero-bg {
    position: relative;
    width: 100%;
    display: block;
    z-index: 1;
}
.hero-logo {
    position: absolute;
    top: 5px;
    left: 50px;
    z-index: 99;
}
.hero-logo img {
    height: 90px;
    width: auto;
    max-width: none;
    border-radius: 12px;
}
.hero-contact {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 99;
}
.hero-phone {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-lang {
    display: flex;
    gap: 10px;
}
.hero-lang span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}
.hero-lang span:hover {
    color: white;
}
.hero-lang span.active {
    color: white;
    font-weight: 600;
}
.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}
.hero-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 4px 4px 4px 12px;
    width: fit-content;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 14px;
}
.search-input {
    border: none;
    outline: none;
    font-size: 13px;
    color: #1f2937;
    width: 200px;
    background: transparent;
}
.search-input::placeholder {
    color: #9ca3af;
}
.search-btn {
    background: #E65100;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.search-btn:hover {
    background: #FF6600;
}
.hero-buttons {
    display: flex;
    gap: 10px;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.hero-btn-primary {
    background: white;
    color: #1A2B56;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero-btn-primary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}
.hero-btn-primary::before {
    content: '📍';
    font-size: 14px;
}
.hero-btn-secondary {
    background: #E65100;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(230,81,0,0.4);
}
.hero-btn-secondary:hover {
    background: #FF6600;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230,81,0,0.5);
}
.hero-btn-secondary::before {
    content: '💰';
    font-size: 14px;
}

/* Features Bar */
.features-bar {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 100;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.feature-icon {
    font-size: 32px;
}
.feature-icon-img {
    height: 30px !important;
    width: auto !important;
}
.feature-text {
    display: flex;
    flex-direction: column;
}
.feature-title {
    font-size: 14px;
    font-weight: 700;
    color: #1A2B56;
    white-space: nowrap;
}
.feature-desc {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
}
.feature-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
    margin: 0 20px;
}

/* Feature Bar - Coverage Area */
.feature-bar {
    position: relative;
    width: 853px;
    margin: 0 auto;
    height: auto;
}
.feature-bar-bg {
    width: 100%;
    height: auto;
    display: block;
}
.feature-bar-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.coverage-title {
    font-size: 36px;
    font-weight: 800;
    color: #1A2B56;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}
.coverage-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}
.state-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.state-tag {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #1A2B56;
    display: flex;
    align-items: center;
    gap: 6px;
}
.state-tag .dot {
    width: 6px;
    height: 6px;
    background: #F59E0B;
    border-radius: 50%;
}
.state-tag.more {
    color: #6B7280;
}
.coverage-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1A2B56;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(26, 43, 86, 0.3);
}
.coverage-button::after {
    content: '→';
    font-size: 16px;
}

/* Services Section */
.services-section {
    width: 853px;
    margin: 0 auto;
    background: url('/front/static/reference/services_bg_clean.png') center/cover no-repeat;
    padding: 50px 40px;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255,255,255,0.85);
    padding: 15px 20px;
    border-radius: 12px;
}
.service-item img {
    width: 70px;
    height: 60px;
    object-fit: contain;
}
.service-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.service-text p {
    font-size: 14px;
    color: #333333;
    line-height: 1.7;
}
.service-text .bullet {
    color: #f59e0b;
    margin-right: 8px;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 8px;
}
.section-header p {
    font-size: 16px;
    color: #6b7280;
}
.copyright-bar {
    width: 853px;
    margin: 0 auto;
    background: #0a1929;
    padding: 24px 40px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-align: center;
}

/* Results sections */
#resultsSection,
#loadingSection,
#errorSection {
    display: block;
}

/* Hidden class for front sections */
.hidden {
    display: none !important;
}

/* Timeline */
.timeline-item { display: flex; gap: 12px; margin-bottom: 16px; position: relative; }
.timeline-marker { width: 12px; height: 12px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; margin-top: 4px; }
.timeline-item.current .timeline-marker { background: #E65100; box-shadow: 0 0 0 4px rgba(230,81,0,0.2); }
.timeline-item.completed .timeline-marker { background: #22c55e; }
.timeline-content { flex: 1; }
.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.timeline-title { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.timeline-time { font-size: 12px; color: #888; }
.timeline-location { font-size: 12px; color: #666; margin-bottom: 4px; }
.stage-tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 12px; background: #f3f4f6; color: #666; }
.stage-tag.stage-delivery { background: #dbeafe; color: #1d4ed8; }
.stage-tag.stage-transit { background: #fef3c7; color: #d97706; }
.package-item { background: #f9fafb; border-radius: 8px; padding: 12px; text-align: center; }
.package-icon { font-size: 24px; margin-bottom: 6px; }
.package-value { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.package-label { font-size: 11px; color: #888; margin-top: 2px; }
