:root {
    --primary-color: #FFCC00;
    /* DHL Yellow */
    --primary-hover: #e6b800;
    --accent-red: #D40511;
    /* DHL Red */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #ffffff;
    --text-dim: #cccccc;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent overflow on mobile */
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: rgba(18, 18, 18, 0.98);
    padding: 20px 0;
    position: -webkit-sticky;
    /* Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    /* Ensure header is always above content */
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-list a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: auto;
    min-height: 80vh;
    background-color: var(--bg-dark);
    background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('https://placehold.co/1920x1080/1a1a1a/333333?text=Professional+Logistics');
    background-image: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('https://placehold.co/1920x1080/1a1a1a/333333?text=Professional+Logistics');
    background-size: cover;
    background-position: center;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 60px 0;
}

/* DHL Partner Logo in hero — responsive, preserves aspect ratio */
.hero-partner-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 24px;
    /* Slight drop shadow so it's visible on dark background */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    /* Preserve original image proportions */
    object-fit: contain;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--text-dim);
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* Prevent Safari from adding weird default styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: #000;
}

/* Features Bar — DHL Flag Style */
.features-bar {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    width: 100%;
    overflow: hidden;
}

.feature-zone {
    -webkit-flex: 1;
    flex: 1;
    padding: 22px 20px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}

.feature-zone--yellow {
    background-color: var(--primary-color);
    color: #000;
}

.feature-zone--red {
    background-color: var(--accent-red);
    color: #fff;
}

.feature-item {
    font-weight: 800;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Services */
.services-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.service-card:hover {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
    border-top-color: var(--primary-color);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-dim);
}

/* Locations */
.locations {
    background-color: #0a0a0a;
}

.locations-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
}

.location-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.location-card address {
    font-style: normal;
    color: var(--text-dim);
    margin-bottom: 15px;
    display: block;
    line-height: 1.5;
}

.location-card .phone a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 15px;
}

.hours {
    font-size: 0.9rem;
    color: var(--text-dim);
    border-top: 1px solid #333;
    padding-top: 15px;
}

.hours p span {
    color: var(--text-light);
    font-weight: 600;
    width: 40px;
    display: inline-block;
}

/* CTA & Footer */
.cta {
    text-align: center;
    background: linear-gradient(to right, #1a1a1a, #2a2a2a);
}

.cta h2 {
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--text-dim);
}

.footer {
    background-color: #000;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

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

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

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-legal {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #222;
    padding-top: 20px;
}

/* About Section */
.about {
    background-color: #fff;
    color: #000;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

/* Advantage Section */
.advantage {
    background-color: #f4f4f4;
    color: #000;
}

.advantage-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    -webkit-box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.advantage-item i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.advantage-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.advantage-item p {
    color: #666;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    background-color: var(--bg-card);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
}

.faq-question {
    width: 100%;
    background: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    padding: 20px;
    text-align: left;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.4s ease-out;
    transition: max-height 0.4s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-dim);
}

.faq-answer.active {
    max-height: 500px;
    /* Arbitrary large height */
}

/* Contact Section */
.contact {
    background-color: #fff;
    color: #000;
}

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

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #444;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-form-container {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container h2 {
    margin-bottom: 15px;
}

.contact-form-container p {
    margin-bottom: 25px;
    color: #666;
    font-size: 0.9rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    /* Safari: normalize input appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    /* Prevent iOS zoom on focus (min 16px font) */
    font-size: max(1rem, 16px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.2);
}

/* Photo Upload Instructions */
.upload-instructions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 12px;
    background-color: #fffbea;
    border: 1px solid #f0d800;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.upload-instructions i {
    color: #c8a800;
    font-size: 1.3rem;
    margin-top: 2px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.upload-instructions p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

/* File Input */
.file-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background-color: #fafafa;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    -webkit-transition: border-color 0.3s ease;
    transition: border-color 0.3s ease;
}

.file-input:hover,
.file-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* File Preview Thumbnails */
.file-preview {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.file-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    -webkit-transition: border-color 0.2s ease;
    transition: border-color 0.2s ease;
}

.file-preview img:hover {
    border-color: var(--primary-color);
}

/* Quote Disclaimer */
.quote-disclaimer {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    gap: 12px;
    background-color: #f0f4ff;
    border-left: 4px solid #6b8cda;
    border-radius: 0 6px 6px 0;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #444;
    line-height: 1.5;
}

.quote-disclaimer i {
    color: #6b8cda;
    font-size: 1.2rem;
    margin-top: 2px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.quote-disclaimer p {
    margin: 0;
    color: #444;
    font-size: 0.875rem;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        -webkit-flex-direction: column;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #333;
        /* Ensure full-width dropdown */
        width: 100%;
    }

    .nav-list.active {
        display: -webkit-flex;
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-partner-logo {
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Fix hero buttons: don't make them full-width, just stack them */
    .hero-buttons {
        display: -webkit-flex;
        display: flex;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: flex-start;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .contact-wrapper {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Prevent horizontal overflow on mobile */
    .hero,
    .section,
    .footer {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Tablet adjustments */
@media (max-width: 900px) and (min-width: 769px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Safari-specific: fix sticky positioning in some Safari versions */
@supports (-webkit-overflow-scrolling: touch) {
    .header {
        position: -webkit-sticky;
        position: sticky;
    }
}