/* ==========================================================================
   Al-Riyada Cars - Modern Luxury Theme Styling
   ========================================================================== */

:root {
    --primary-color: #dc2626;
    --primary-hover: #b91c1c;
    --primary-light: #fef2f2;
    --secondary-color: #0f172a;
    --accent-gold: #d97706;
    --dark: #090d16;
    --dark-surface: #111827;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Universal Standards */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.bg-gray {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title .line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    margin: 0 auto 15px auto;
    border-radius: 4px;
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.45);
    color: #ffffff;
}

.btn-white {
    background-color: #ffffff;
    color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 10px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right, .top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar i {
    color: var(--primary-color);
}

.social-icons-small {
    display: flex;
    gap: 14px;
}

.social-icons-small a {
    color: #94a3b8;
    font-size: 1rem;
}

.social-icons-small a:hover {
    color: var(--primary-color);
}

/* Header & Navigation */
.header {
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links .current-menu-item a::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}

/* Mobile Drawer Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    z-index: 2000;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    align-self: flex-start;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(9, 13, 22, 0.92), rgba(15, 23, 42, 0.88)), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    color: #ffffff;
    padding: 130px 0 110px 0;
    position: relative;
    overflow: hidden;
}

.hero-text-box {
    max-width: 800px;
}

.hero .badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.4);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.4rem;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Stats Section */
.stats-section {
    margin-top: -50px;
    position: relative;
    z-index: 20;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-card {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 600;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--dark-surface);
    color: #ffffff;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    border-right: 5px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.experience-badge strong {
    display: block;
    font-size: 2.2rem;
    color: var(--primary-color);
    line-height: 1;
}

.lead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.check-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.check-list i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Car Inventory Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.car-card {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(220, 38, 38, 0.3);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
}

.car-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-details h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.car-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Services Boxes */
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-box {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.service-img {
    height: 180px;
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-info p {
    color: var(--text-muted);
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    background: var(--dark-surface);
    color: #ffffff;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
}

.step i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #0f172a, #090d16);
    color: #ffffff;
    padding: 85px 0;
    text-align: center;
    position: relative;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 35px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Pulse animation for WhatsApp button */
.cta-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Footer */
.footer {
    background-color: var(--dark-surface);
    color: #94a3b8;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about p {
    margin-bottom: 25px;
    line-height: 1.8;
}

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

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

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

.footer-title {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
    padding-right: 6px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 4px;
}

.contact-info strong {
    display: block;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Floating Actions Widget */
.floating-contact {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1500;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.float-wa {
    background-color: #25D366;
}

.float-wa:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.float-call {
    background-color: var(--primary-color);
}

.float-call:hover {
    transform: scale(1.1);
    background-color: var(--primary-hover);
}

/* Media Queries & Responsive Layouts */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
    }

    .nav-links, .contact-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .hero .subtitle {
        font-size: 1.05rem;
    }

    .btn-large {
        width: 100%;
    }

    .top-bar {
        display: none;
    }
}
