/* ==========================================================================
   FAST INTERNATIONAL LOGISTICS W.L.L - Custom Stylesheet
   Based on Bootstrap 5.3 Framework
   ========================================================================== */

/* --- 1. CSS Variables (Brand Colors & Fonts) --- */
:root {
    --primary-color: #c0003c;      /* Brand Red / Crimson */
    --primary-hover: #a00032;      /* Darker Red for hover states */
    --secondary-color: #343a40;    /* Dark Grey for text/headings */
    --bg-light: #f8f9fa;           /* Light grey background */
    --text-muted: #6c757d;
    --transition-speed: 0.3s;
}

/* --- 2. General & Typography --- */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--secondary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-hover);
}

.text-brand {
    color: var(--primary-color) !important;
}

.bg-brand {
    background-color: var(--primary-color) !important;
    color: #fff;
}

.btn-brand {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-weight: 500;
    transition: all var(--transition-speed);
}

.btn-brand:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(192, 0, 60, 0.2);
}

/* --- 3. Navigation Bar --- */
.navbar-custom {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    padding: 15px 0;
}

.navbar-custom .navbar-brand img {
    height: 50px;
    object-fit: contain;
}

.navbar-custom .nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 10px;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
}

/* Underline effect on hover */
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
    width: 100%;
}

/* --- 4. Hero Banner Section --- */
.hero-section {
    position: relative;
    background-color: var(--secondary-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)); /* Overlay */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-section p.lead {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

.page-header {
    background-color: var(--bg-light);
    padding: 60px 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 40px;
}

/* --- 5. Services Cards --- */
.service-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 25px;
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(192, 0, 60, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

/* --- 6. Shipment Tracking Timeline (For track.php) --- */
.tracking-search-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: -80px; /* Overlaps hero section slightly */
    position: relative;
    z-index: 10;
}

.timeline {
    position: relative;
    padding: 20px 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 14px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
    z-index: 1;
}

/* Highlight the latest status */
.timeline-item:first-child::before {
    background-color: #198754; /* Success green */
    box-shadow: 0 0 0 2px #198754;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

/* --- 7. Contact Form --- */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(192, 0, 60, 0.25);
}

.contact-info-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* --- 8. Client Carousel / Logos --- */
.client-logo-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.client-logo-grid img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-speed);
}

.client-logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- 9. Footer --- */
.site-footer {
    background-color: var(--secondary-color);
    color: #adb5bd;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.site-footer h5 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 600;
}

.site-footer ul {
    padding-left: 0;
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 10px;
}

.site-footer ul li a {
    color: #adb5bd;
    transition: color 0.2s ease;
}

.site-footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Slight nudge on hover */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

/* --- 10. Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .tracking-search-box {
        margin-top: -40px;
        padding: 20px;
    }
}