@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --primary-color: #0f172a;
    /* Deep Navy Blue */
    --accent-color: #f59e0b;
    /* Gold/Amber */
    --secondary-color: #64748b;
    /* Slate Gray */
    --background-color: #f8fafc;
    /* Very Light Gray */
    --text-color: #1e293b;
    /* Dark Slate */
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    text-decoration: none;
    color: var(--white);
}

.logo-container {
    perspective: 1000px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateBox 6s infinite linear;
}

.cube-face {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    opacity: 0.9;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.front {
    transform: rotateY(0deg) translateZ(20px);
}

.back {
    transform: rotateY(180deg) translateZ(20px);
}

.right {
    transform: rotateY(90deg) translateZ(20px);
}

.left {
    transform: rotateY(-90deg) translateZ(20px);
}

.top {
    transform: rotateX(90deg) translateZ(20px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(20px);
}

@keyframes rotateBox {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.language-switcher {
    display: flex;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    align-items: center;
}

.language-switcher a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
}

.nav-cta {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700 !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.4)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 140px 0 100px;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 40px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Search Box */
.search-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 420px;
    max-width: 100%;
    color: var(--text-color);
    text-align: right;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: none;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.row-group {
    display: flex;
    gap: 10px;
}

.btn-search {
    width: 100%;
    background-color: var(--accent-color);
    color: #000;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-search:hover {
    background-color: #d97706;
}

.whatsapp-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 40px;
        background-position: center bottom;
        min-height: 80vh;
        align-items: flex-start;
    }

    .hero-content {
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        margin-bottom: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    }

    .hero p {
        font-size: 1.1rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    .search-box {
        width: 100%;
        padding: 20px;
        margin-top: 20px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    }

    .row-group {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        display: none;
    }
}


/* Home Page Sections */
.section-padding {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    margin: 10px 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-right: 4px solid var(--accent-color);
    /* RTL border */
}

.stars {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.testimonial-author {
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
    color: var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: auto;
    /* Push to left in RTL */
    margin-left: 0;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    padding: 0 20px 20px;
    color: var(--text-color);
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}



/* Cars Page Redesign */

/* Page Header */
.page-header-title {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.page-header-title h1 {
    margin: 0;
    font-size: 2rem;
}

.breadcrumbs {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Filters */
.filters-section {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    direction: rtl;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
}

.btn-filter {
    background: var(--accent-color);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary-color);
}

/* Redesigned Car Grid */
.cars-grid-redesign {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.car-card-new {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: transform 0.2s;
}

.car-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.car-image-wrapper {
    position: relative;
    height: 180px;
    background: #f8fafc;
    overflow: hidden;
}

.car-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    /* RTL Left */
    display: flex;
    gap: 5px;
}

.badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.car-info {
    padding: 20px;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.car-price-block {
    margin-bottom: 15px;
}

.price-main {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-deposit {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.availability-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-details {
    flex: 1;
    text-align: center;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: background 0.2s;
}

.btn-details:hover {
    background: #f1f5f9;
}

.btn-whatsapp-icon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #dcfce7;
    color: #166534;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-item {
    padding: 8px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
}

.page-item.active {
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    border-color: var(--accent-color);
}

/* Booking Page Redesign */

.booking-page-container {
    background-color: #f8fafc;
    padding-bottom: 60px;
}

/* Steps Indicator */
.steps-container {
    padding: 30px 0;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    direction: rtl;
}

.steps-list {
    display: inline-flex;
    list-style: none;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.step-item.active {
    color: var(--primary-color);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.step-item.active .step-number {
    background: var(--accent-color);
    color: var(--white);
}

/* Booking Layout */
.booking-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 40px;
    align-items: start;
    direction: rtl;
}

/* Left Column: Summary Card */
.summary-card-sticky {
    position: sticky;
    top: 20px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.summary-car-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.summary-specs {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.price-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #475569;
}

.price-total {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    margin-top: 10px;
}

/* Right Column: Steps Form */
.booking-form-section {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.section-header {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent-color);
}

/* Extras Checkboxes */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}

.extra-price {
    font-size: 0.85rem;
    color: #64748b;
    margin-right: auto;
    /* RTL: Push to left */
    margin-left: 0;
}

/* Confirm Button */
.btn-confirm {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-confirm:hover {
    background: #e69509;
}

@media (max-width: 992px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }

    .summary-card-sticky {
        position: static;
        order: -1;
    }
}

/* Contact Page Redesign */

.contact-page-container {
    background-color: #f8fafc;
    padding-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 10;
    direction: rtl;
}

/* Common Card Style */
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.contact-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

/* Contact Info Items */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.whatsapp-btn-green {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 10px 0;
    transition: transform 0.2s;
}

.whatsapp-btn-green:hover {
    transform: scale(1.02);
    color: #fff;
}

/* Map Section */
.map-section {
    margin-top: 50px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card.info-card {
        order: -1;
    }
}

/* Footer Redesign */

.site-footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
    direction: rtl;
}

.footer-col h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 5px;
    /* RTL: Slide right */
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.footer-contact-icon {
    color: var(--accent-color);
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981;
    /* Green */
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    /* Fully rounded */
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 20px;
    width: 100%;
    transition: background 0.2s;
}

.footer-whatsapp-btn:hover {
    background: #059669;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    direction: rtl;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}