@import url('styles/variables.css');
@import url('styles/base.css');
@import url('styles/components.css');
@import url('styles/forms.css');
@import url('styles/layout.css');
@import url('styles/pages.css');
@import url('styles/responsive.css');
@import url('styles/rtl.css');

/* 
   REFACTOR TOMBSTONE:
   All monolithic CSS rules previously found in this file have been distributed 
   to the modular files imported above.
   
   // removed :root variables definitions -> moved to styles/variables.css
   // removed global reset and base styles -> moved to styles/base.css
   // removed component styles (buttons, cards, badges) -> moved to styles/components.css
   // removed layout styles (navbar, hero, footer) -> moved to styles/layout.css
   // removed page-specific styles (tracking, services, about) -> moved to styles/pages.css
   // removed form styles -> moved to styles/forms.css
   // removed responsive media queries -> moved to styles/responsive.css
   // removed RTL overrides -> moved to styles/rtl.css
*/

/* Mobile Optimization */
@media (max-width: 768px) {
    .navbar { height: 60px; }
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: block; }

    .hero h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    .tracking-input-group { flex-direction: column; }
    
    .contact-wrapper { flex-direction: column; }
    .professional-form .form-row { flex-direction: column; gap: 0; }
    .contact-form-container { padding: 25px; width: 100%; }

    .stats { flex-direction: row; }
    .stat-item { width: 45%; margin-bottom: 20px; }
}

/* Footer Polish */
.main-footer {
    background-color: #0b1120; /* Very dark blue */
    color: #a0aec0;
    padding-top: 70px;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin: 20px 0;
    line-height: 1.6;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

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

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-nav {
    list-style: none;
}

.footer-nav li { margin-bottom: 12px; }

.footer-nav a {
    color: #a0aec0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.contact-item i {
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-item a {
    color: #a0aec0;
    text-decoration: none;
    display: block;
}

.contact-item a:hover { color: white; }

.copyright {
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand p, .footer-col { margin: 0 auto; }
    
    .social-links { justify-content: center; }
    
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    
    .contact-item { justify-content: center; text-align: left; }
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-links {
    padding-right: 0;
}

[dir="rtl"] .step-icon {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .tracking-result {
    border-left: none;
    border-right: 4px solid var(--primary-color);
}

[dir="rtl"] .featured-badge {
    right: auto;
    left: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 10px;
}

[dir="rtl"] .footer-col h4::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .nav-logo {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .footer-nav a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Mobile Menu RTL */
[dir="rtl"] .nav-links {
    left: auto;
    right: 0;
}

/* Icons mirroring for RTL if needed */
[dir="rtl"] .fa-truck {
    transform: scaleX(-1);
}

/* Tab buttons spacing RTL */
[dir="rtl"] .tab-btn {
    font-family: 'Tajawal', sans-serif;
}

/* Service Link Cards */
.service-link-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

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

.service-link-card .card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.service-link-card h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
}

.service-link-card p {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link-card .learn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: gap 0.3s;
}

.service-link-card:hover .learn-more {
    gap: 12px;
}

.service-link-card.featured-card {
    border: 2px solid var(--primary-color);
    position: relative;
}

/* Service Page Hero */
.service-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.dealership-hero {
    background-image: url('hero_truck.png');
}

.private-hero {
    background-image: url('vip_delivery.png');
}

.vip-hero {
    background-image: url('vip_delivery.png');
}

.heavy-hero {
    background-image: url('heavy_transport.png');
}

.vip-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.vip-badge i {
    margin-right: 8px;
}

/* Service Details Layout */
.service-details {
    padding: 60px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.details-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.details-content h3 {
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.details-content p {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-list li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-list.vip-list li i {
    color: var(--accent-color);
}

/* Process Steps */
.process-steps {
    margin-top: 30px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-light);
    margin: 0;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-box {
    background: #f8fbff;
    padding: 25px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid #e3f2fd;
}

.info-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-box h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-box p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* VIP Specific */
.vip-promise {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 30px;
    border-left: 5px solid var(--accent-color);
}

.vip-promise h3 {
    color: var(--accent-color);
    margin-top: 0;
}

.ideal-for {
    margin-top: 30px;
}

.ideal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.ideal-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.ideal-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

/* Heavy Specs */
.heavy-specs {
    background: #f8fbff;
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.spec-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.spec-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.spec-item h4 {
    color: var(--primary-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.spec-item p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

/* Quote Sidebar */
.quote-sidebar {
    position: sticky;
    top: 100px;
}

.quote-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-color);
}

.quote-card h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.vip-quote-card {
    border-color: var(--accent-color);
}

.vip-header {
    text-align: center;
    margin-bottom: 25px;
}

.vip-header i {
    font-size: 2rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 10px;
}

.vip-header h3 {
    color: var(--accent-color);
}

/* Service Quote Form */
.service-quote-form .form-group {
    margin-bottom: 20px;
}

.service-quote-form label {
    display: block;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.service-quote-form input,
.service-quote-form select,
.service-quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: #f8fafc;
}

.service-quote-form input:focus,
.service-quote-form select:focus,
.service-quote-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 76, 153, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.vip-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8533 100%);
}

.vip-btn:hover {
    background: linear-gradient(135deg, #ff8533 0%, var(--accent-color) 100%);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .quote-sidebar {
        position: static;
    }
    
    .service-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .info-boxes {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .ideal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* RTL Support for Service Pages */
[dir="rtl"] .step {
    flex-direction: row-reverse;
}

[dir="rtl"] .spec-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .vip-badge i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .vip-promise {
    border-left: none;
    border-right: 5px solid var(--accent-color);
}