/**
 * Luxury Theme for Al-Zain Limousine
 * Modern, elegant, luxury-oriented design with dark/light mode support
 */

/* ========================================
   COLOR PALETTES
   ======================================== */

/* Default Colors (Light Mode) */
:root {
    --bg-primary: #FFFCF9;
    --bg-secondary: #D8CFC4;
    --bg-tertiary: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #6E6E6E;
    --accent-primary: #D4AF37;
    --accent-secondary: #FFD700;
    --cta-color: #1A1A40;
    --border-color: #E0E0E0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-overlay: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(26, 26, 64, 0.05) 100%);
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-secondary: #2C2C2C;
    --bg-tertiary: #1A1A1A;
    --text-primary: #F8F8F8;
    --text-secondary: #B0B0B0;
    --accent-primary: #D4AF37;
    --accent-secondary: #FFD700;
    --cta-color: #1A1A40;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-overlay: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(26, 26, 64, 0.1) 100%);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
    padding-top: 80px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 20px var(--shadow-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar-scrolled {
    background-color: var(--bg-primary);
    box-shadow: 0 4px 30px var(--shadow-color);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--accent-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--accent-secondary) !important;
}

.navbar-brand img {
    max-height: 180px;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--accent-primary) !important;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.theme-toggle:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-color);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: translateY(-10px);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--cta-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

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

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.service-card {
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
    border-color: var(--accent-primary);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-secondary);
}

/* ========================================
   FLEET SECTION
   ======================================== */

.fleet-section {
    padding: 6rem 0;
}

.filter-bar {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
}

.car-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.car-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

.car-details {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.car-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-height: none;
}

.car-details .btn {
    margin-top: auto;
}

.feature-badge {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-badge:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-color);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.value-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.value-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    color: var(--accent-secondary);
    transform: scale(1.1);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    padding: 6rem 0;
}

.contact-info-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

/* ========================================
   FORMS
   ======================================== */

.form-control {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.form-select {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-select:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    color: var(--text-primary);
}

.form-select option {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .form-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

footer h5 {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

footer a {
    color: var(--text-secondary);
    display: block;
    padding: 0.5rem 0;
}

footer a:hover {
    color: var(--accent-primary);
    padding-left: 10px;
}

footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-on-scroll {
    opacity: 0;
}

.fade-in-on-scroll.fade-in {
    opacity: 1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .services-section,
    .fleet-section,
    .about-section,
    .contact-section {
        padding: 4rem 0;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
    }

    .service-card,
    .car-card,
    .value-card {
        padding: 1.5rem;
    }
}

/* ========================================
   ACCORDION (FAQ)
   ======================================== */

/* Accordion Item */
.accordion-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

/* Accordion Button */
.accordion-button {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-tertiary);
    color: var(--accent-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    border-color: var(--accent-primary);
}

/* Accordion Body */
.accordion-body {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Accordion Icon */
.accordion-button::after {
    filter: invert(1);
}

[data-theme="light"] .accordion-button::after {
    filter: invert(0);
}

/* ========================================
   RTL SUPPORT
   ======================================== */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

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

[dir="rtl"] .nav-link::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .nav-link:hover::after,
[dir="rtl"] .nav-link.active::after {
    transform: translateX(-50%);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
