/* CSS RESET & SMOOTH SCROLL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    color: #333;
}

.content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 20px;
    max-width: 800px;
    /* Pushes the text down into the lower half of the screen */
    margin-top: 20vh; 
}

/* MOBILE ADJUSTMENT: Prevents the text from hitting the partner badge on small screens */
@media (max-width: 768px) {
    .content {
        margin-top: 5vh; 
    }
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 999;
    background: transparent;
}

.nav-logo {
    max-height: 40px; /* Scaled down slightly so the wider logo fits better */
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px; /* Reduced gap from 30px to save space */
    align-items: center;
}

/* Added 'span' here to target the EN/中文 text too */
.nav-links a, .nav-links span {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem; /* Made font slightly smaller */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    white-space: nowrap; /* THIS IS THE MAGIC FIX: Stops words from breaking onto two lines */
}

.nav-links a:hover {
    color: #ff6b00; 
}

/* Highlight the Contact button in the nav */
.nav-links .nav-cta {
    background-color: #ff6b00;
    padding: 10px 18px; /* Slightly tighter padding */
    border-radius: 4px;
    white-space: nowrap;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('assets/images/hero-bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 20px;
    max-width: 800px;
}

h1 {
    font-size: 4rem; /* Made slightly larger to act as the main focal point */
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff6b00; 
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.contact-btn:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
}

/* --- PARTNER BADGE --- */
.partner-badge {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.partner-text {
    color: #333; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    text-align: right; line-height: 1.2;
}

.partner-logo {
    height: 45px; width: auto;
}

/* --- QUOTE FORM SECTION --- */
.quote-section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem; color: #111; margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto;
}

.warning-box {
    background-color: #fff3cd; color: #856404;
    padding: 15px; border-left: 5px solid #ffeeba;
    margin-bottom: 30px; border-radius: 4px; font-weight: 500;
}

.quote-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: span 2;
}

label {
    font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; color: #444;
}

.hint {
    font-size: 0.8rem; color: #777; font-weight: normal; margin-left: 5px;
}

input[type="text"], input[type="email"], input[type="date"], select, textarea, input[type="file"] {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none; border-color: #ff6b00;
}

textarea { resize: vertical; min-height: 100px; }

.file-upload-box {
    border: 2px dashed #ccc;
    padding: 20px; text-align: center; background: #fafafa; border-radius: 4px;
}

.submit-btn {
    background-color: #ff6b00; color: #fff; border: none;
    padding: 18px; font-size: 1.2rem; font-weight: bold; text-transform: uppercase;
    border-radius: 4px; cursor: pointer; transition: 0.3s; width: 100%;
    margin-top: 20px;
}

.submit-btn:hover { background-color: #e65c00; }

.footer {
    background: #111; color: #888; text-align: center; padding: 30px 20px; font-size: 0.9rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    /* Stack navigation neatly on smaller screens */
    .navbar {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .quote-form { grid-template-columns: 1fr; padding: 25px; }
    .full-width { grid-column: span 1; }
    
    .partner-badge {
        bottom: 20px; right: 50%; transform: translateX(50%);
        width: 85%; justify-content: center;
    }
}
/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* This stops the zooming image from spilling over the page */
    background-color: #111; /* Fallback color */
}

/* --- ANIMATED SLIDESHOW (KEN BURNS EFFECT) --- */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #111; /* Prevents any flash of white between slides */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    
    /* HARDWARE ACCELERATION (Fixes the zoom snap bug) */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    
    /* 'linear' keeps the zoom smooth and continuous */
    animation: fadeZoom 18s linear infinite; 
}

/* Stagger the start times (3 slides = 18s total, 6s each) */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }

/* Perfected Math for 3 slides */
@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    11.11% { /* Fades in smoothly over 2 seconds */
        opacity: 1;
    }
    33.33% { /* Stays fully visible until 6 seconds */
        opacity: 1;
    }
    44.44% { /* Fades out smoothly into the next image */
        opacity: 0;
    }
    100% { 
        /* Keeps zooming slightly while invisible so it never snaps abruptly */
        opacity: 0;
        transform: scale(1.15); 
    }
}
/* --- CONTACT DETAILS SECTION --- */
.contact-section {
    padding: 60px 20px 80px;
    background-color: #eaeef1; /* Slightly darker grey to separate it from the form */
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    color: #ff6b00; /* Cargo Orange */
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card p, .contact-card a {
    color: #555;
    text-decoration: none;
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 500;
}

.contact-card a:hover {
    color: #ff6b00;
}
/* --- MINI HERO FOR SUBPAGES --- */
.mini-hero {
    position: relative;
    height: 45vh; /* Takes up just under half the screen */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('assets/images/hero/hero-bg-2.jpg'); /* Pick one of your nice truck images */
    background-size: cover;
    background-position: center;
    background-color: #111;
}

.mini-hero h1 {
    margin-top: 60px; /* Pushes the title down slightly so it doesn't hit the nav bar */
    font-size: 3.5rem;
}