/* ============================================
   Routemaster Logistics LLC - Custom Styles
   Color Palette:
     Logistics Blue:   #1B3A5C
     Industrial Grey:  #4A4A4A
     Safety Orange:    #E87722
   ============================================ */

:root {
    --primary-dark: #1B3A5C;
    --primary-light: #2A5580;
    --grey: #4A4A4A;
    --grey-light: #6B6B6B;
    --accent: #E87722;
    --accent-hover: #D06A1E;
    --bg-light: #F8F9FA;
}

/* --- Global --- */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--grey);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
}

a {
    color: var(--primary-dark);
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

/* --- Navbar --- */
.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.navbar-dark .navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: #fff;
}

.navbar-dark .nav-link.active {
    border-bottom: 2px solid var(--accent);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 50%, #1a3050 100%);
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

/* --- Page Header --- */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    padding: 4rem 0 3rem;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.border-accent {
    border-color: var(--accent) !important;
}

/* --- Feature Cards --- */
.feature-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1) !important;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
}

/* --- Stats Section --- */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Service List --- */
.service-list li,
.service-detail-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

/* --- Service Icon Large --- */
.service-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

/* --- Process Steps --- */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- Value Icons --- */
.value-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.5rem;
}

/* --- Team Avatars --- */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto;
}

/* --- Contact Info --- */
.contact-info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- Footer --- */
footer {
    background-color: #1a1a2e !important;
}

.footer-links li {
    padding: 0.25rem 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-links li:not(:has(a)) {
    color: rgba(255,255,255,0.6);
}

.text-light-muted {
    color: rgba(255,255,255,0.5) !important;
}

/* --- Form Styles --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(27, 58, 92, 0.15);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-section .display-3 {
        font-size: 2.2rem;
    }

    .min-vh-75 {
        min-height: 60vh;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .badge-hero {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background: var(--primary-dark);
    color: #fff;
}
