/**
 * SWIFTSHIP - Frontend Stylesheet
 * SwiftHost Agency - Commercial Shipping System
 */

:root {
    --primary: #0052CC;
    --primary-dark: #0047B3;
    --secondary: #FF6B00;
    --accent: #00C853;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
    --info: #17a2b8;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

a:hover {
    color: var(--primary-dark);
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
}

.nav-mobile a {
    padding: 10px 0;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* Tracking Widget */
.tracking-widget {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.tracking-form {
    display: flex;
    gap: 10px;
}

.tracking-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.tracking-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background: var(--gray-light);
    color: var(--dark);
}

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

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--gray);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.service-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background: var(--white);
}

.calculator-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.cost-result {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    margin-top: 25px;
    display: none;
}

.cost-result.show {
    display: block;
}

.cost-result h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.cost-breakdown {
    margin-bottom: 20px;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--gray-light);
}

.cost-row.total {
    border-bottom: none;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--primary);
}

/* Tracking Results */
.tracking-results {
    padding: 60px 0;
}

.tracking-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tracking-header {
    background: var(--primary);
    color: var(--white);
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-header h2 {
    font-size: 28px;
}

.status-badge {
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.status-pending { background: var(--warning); color: var(--dark); }
.status-picked_up { background: var(--info); color: var(--white); }
.status-in_transit { background: var(--primary); color: var(--white); }
.status-out_for_delivery { background: var(--secondary); color: var(--white); }
.status-delivered { background: var(--accent); color: var(--white); }

.tracking-body {
    padding: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.info-box {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
}

.info-box h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.info-box p {
    margin-bottom: 8px;
}

.info-box .label {
    font-weight: 600;
    color: var(--gray);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--gray-light);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.timeline-item.completed::before {
    background: var(--accent);
}

.timeline-item.current::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,82,204,0.2);
}

.timeline-content h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-content .location {
    color: var(--gray);
    font-size: 14px;
}

.timeline-content .time {
    color: var(--gray);
    font-size: 12px;
    margin-top: 5px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    opacity: 0.9;
    font-size: 18px;
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 16px;
}

.about-image {
    background: var(--light);
    height: 400px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image i {
    font-size: 100px;
    color: var(--primary);
    opacity: 0.3;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item i {
    font-size: 20px;
    color: var(--primary);
    margin-top: 3px;
}

.contact-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-brand p {
    opacity: 0.8;
    margin-bottom: 20px;
}

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

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .tracking-form {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
