/* 
/*
   Bahrain Taxi KSA - Refined Design System
   Theme: White & Orange Premium
   Inspired by: Dispatch Route UI & Mobile App Experience
*/

:root {
    /* Primary Palette from MAKSIMO Logo - Charcoal & Orange */
    --primary: #F58220;
    /* MAKSIMO Orange */
    --primary-dark: #cc6b1b;
    --primary-light: #fff2e6;
    --accent: #FF9F43;

    /* Dark Theme Neutrals */
    --bg-white: #1A1A1A;
    /* Charcoal for main background */
    --bg-light: #121212;
    /* Deeper charcoal */
    --dark: #121212;
    --dark-surface: #222222;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-white: #FFFFFF;
    --border: #333333;
    --border-dark: #444444;

    /* Layout & Styling */
    --container: 1200px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --header-height: 80px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header.scrolled {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

[dir="rtl"] {
    --font-family: 'Tajawal', sans-serif;
}

[dir="ltr"] {
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    height: var(--header-height);
    background: var(--bg-white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Navigation Hide on Mobile for App Feel */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section with Slider */
.hero {
    position: relative;
    padding: 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-white);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: heroSlideAnim 60s infinite;
    /* 20s per slide * 3 = 60s total */
}

/* Hero Slide Overlays - Reduced fog to ~15% */
.hero-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15)), url('../assets/images/hero1.webp');
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15)), url('../assets/images/hero2.webp');
    animation-delay: 20s;
}

.hero-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15)), url('../assets/images/hero3.webp');
    animation-delay: 40s;
}

@keyframes heroSlideAnim {

    0%,
    33.33% {
        opacity: 1;
        transform: scale(1);
    }

    38.33%,
    95% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
    }
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: left;
    /* Align to the side */
    width: 100%;
}

[dir="rtl"] .hero .container {
    text-align: right;
}

.hero-content-box {
    max-width: 900px;
    margin: -80px auto 60px;
    background: var(--dark-surface);
    backdrop-filter: blur(1px);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 600;
}

/* Service Cards - No Prices/Emojis */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--dark-surface);
    /* Darker surface for cards */
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
    /* Use Orange for visibility */
}

.service-desc {
    color: var(--text-white);
    /* White for better contrast */
    font-size: 16px;
}

/* Dispatch Route Style Form */
.booking {
    background-color: var(--dark);
    padding: 100px 0;
    color: var(--text-white);
}

@media (max-width: 768px) {
    .booking {
        padding: 0;
    }

    /* Edge to edge for mobile */
    .booking .container {
        padding: 0;
    }

    .booking-form-wrapper {
        border-radius: 0;
        border: none;
        padding: 60px 24px;
    }
}

.booking-form-wrapper {
    background: #0A0A0A;
    padding: 60px 50px;
    border-radius: var(--radius-lg);
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid #222;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

/* Booking Form Refinements */
.booking-actions {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-call {
    background: var(--dark-surface);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-contact:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

@media (max-width: 480px) {
    .booking-actions {
        grid-template-columns: 1fr;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
    background: #121212;
    border: 1px solid var(--border-dark);
    padding: 16px;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 16px;
    transition: var(--transition);
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .input-row {
        grid-template-columns: 1fr;
    }
}

.submit-btn {
    width: 100%;
    margin-top: 20px;
    background: var(--primary);
    color: var(--dark);
    padding: 18px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* FAQ */
.faq {
    padding: 60px 0;
}

.header-contact {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 20px;
}

[dir="rtl"] .header-contact {
    text-align: left;
    margin-right: 0;
    margin-left: 20px;
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .header-contact {
        display: none;
        /* Hide on small mobile to save space */
    }
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    /* Light text for visibility */
    cursor: pointer;
    text-align: inherit;
}

.faq-answer {
    margin-top: 12px;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Global Utilities */
.text-orange {
    color: var(--primary);
}

.bg-orange {
    background-color: var(--primary);
}

.edge-to-edge {
    width: 100%;
    max-width: none;
    border-radius: 0;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Language Dropdown */
.lang-select {
    background: var(--dark-surface);
    color: var(--text-white);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.lang-select:focus {
    border-color: var(--primary);
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: var(--dark-surface);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.review-stars {
    font-size: 18px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 16px;
}

.author-location {
    font-size: 13px;
    color: var(--text-muted);
}