/* =========================
   Site CSS - هوية تشليح (أنيميشن متقدّم)
   حفظ الملف كـ: css/site.css
   ========================= */


/* زر الاتصال العائم */
#call-fab {
    position: fixed;
    bottom: 100px; /* فوق الواتساب */
    left: 22px;
    width: 64px;
    height: 64px;
    background: #8c1727; /* لون الهوية */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 99999;
    box-shadow: 0 20px 50px rgba(140, 23, 39, 0.25);
    transition: transform .18s ease, box-shadow .18s ease;
}

    #call-fab:hover {
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 30px 80px rgba(140, 23, 39, 0.35);
    }

/* زر واتساب */
#whatsapp-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 99999;
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.25);
    transition: transform .18s ease, box-shadow .18s ease;
}

    #whatsapp-fab:hover {
        transform: translateY(-6px) scale(1.05);
        box-shadow: 0 30px 80px rgba(37, 211, 102, 0.35);
    }


/* حجم السلايدر */
.myServiceSlider {
    padding-bottom: 50px;
}

/* صورة الخدمة */
.service-img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

    .service-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
    }

.service-card:hover .service-img img {
    transform: scale(1.08);
}

/* أزرار السلايدر */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary);
    font-weight: bold;
    transition: .3s;
}

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        color: var(--primary-dark);
    }

/* النقاط */
.swiper-pagination-bullet {
    background: var(--primary);
    opacity: .4;
}

.swiper-pagination-bullet-active {
    background: var(--primary-dark);
    opacity: 1;
}









:root {
    --primary: #500505; /* لون اللوغو الأحمر (معدل) */
    --primary-dark: #44030c;
    --dark: #222222;
    --muted: #9E9E9E;
    --bg: #f6f6f6;
    --white: #ffffff;
    --whatsapp: #25D366;
    --accent-gradient: linear-gradient(135deg,#310303 0%, #8c1727 100%);
    --glass: rgba(255,255,255,0.06);
    --ease-fast: cubic-bezier(.2,.9,.2,1);
    --ease-smooth: cubic-bezier(.22,.8,.3,1);
}

/* -------------------------
   Reset and base
   ------------------------- */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    font-family: "Tajawal", "Lato", sans-serif;
    direction: rtl;
    margin: 0;
    color: var(--dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: right;
    -webkit-font-kerning: normal;
}

/* Utility animation helpers */
.fade-in {
    animation: fadeIn .7s var(--ease-smooth) both;
}

.fade-in-slow {
    animation: fadeIn 1.2s var(--ease-smooth) both;
}

.slide-up {
    animation: slideUp .7s var(--ease-smooth) both;
}

.pop {
    animation: pop .45s var(--ease-fast) both;
}

.stagger {
    opacity: 0;
    transform: translateY(12px);
    animation: staggerIn .6s var(--ease-smooth) forwards;
}

    .stagger.delay-1 {
        animation-delay: .12s;
    }

    .stagger.delay-2 {
        animation-delay: .24s;
    }

    .stagger.delay-3 {
        animation-delay: .36s;
    }

    .stagger.delay-4 {
        animation-delay: .48s;
    }

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pop {
    0% {
        transform: scale(.92);
        opacity: 0;
    }

    60% {
        transform: scale(1.03);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------
   Preloader (animated)
   ------------------------- */
#preloader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    z-index: 99999;
    transition: opacity .6s var(--ease-fast), visibility .6s var(--ease-fast);
}

.preloader-logo {
    width: 420px;
    max-width: 62vw;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    transform-origin: center;
    animation: preloaderFloat 3.6s infinite var(--ease-smooth);
}

@keyframes preloaderFloat {
    0% {
        transform: translateY(0) rotate(-1deg);
        filter: drop-shadow(0 8px 20px rgba(0,0,0,.2));
    }

    50% {
        transform: translateY(-18px) rotate(1deg);
        filter: drop-shadow(0 28px 60px rgba(0,0,0,.35));
    }

    100% {
        transform: translateY(0) rotate(-1deg);
    }
}

/* -------------------------
   Navbar (animated + responsive)
   ------------------------- */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 18px 0;
    background: transparent;
    transition: background .35s var(--ease-fast), padding .25s var(--ease-fast), box-shadow .35s var(--ease-fast);
    will-change: background, padding;
}

    .navbar-custom .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

.brand-logo {
    max-height: 64px;
    width: auto;
    border-radius: 8px;
    display: block;
    transition: transform .25s var(--ease-fast);
}

.brand-text {
    text-align: right;
    margin-right: 12px;
    line-height: 1;
    color: var(--white);
}

.brand-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--white);
}

.brand-sub {
    font-size: 12px;
    color: rgba(255,255,255,.9);
}

/* nav links */
.navbar-custom .nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 10px 12px;
    transition: color .18s var(--ease-fast), transform .18s var(--ease-fast);
}

    .navbar-custom .nav-link:hover {
        transform: translateY(-3px);
        color: #fff;
    }

/* CTA in navbar */
.btn-cta-nav {
    background: var(--white);
    color: var(--primary);
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 800;
    box-shadow: 0 12px 36px rgba(198,40,40,.08);
    transition: transform .18s var(--ease-fast);
}

    .btn-cta-nav:hover {
        transform: translateY(-4px);
        box-shadow: 0 20px 50px rgba(198,40,40,.12);
    }

/* scrolled state */
.navbar-custom.scrolled {
    background: rgba(255,255,255,0.98);
    padding: 10px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,.06);
}

    .navbar-custom.scrolled .nav-link {
        color: var(--dark);
    }

    .navbar-custom.scrolled .brand-title {
        color: var(--dark);
    }

    .navbar-custom.scrolled .brand-sub {
        color: var(--muted);
    }

/* mobile collapse styling */
@media (max-width:991px) {
    .navbar-custom {
        background: var(--primary);
        padding: 12px 0;
    }

        .navbar-custom .nav-link {
            color: #fff !important;
            font-size: 16px;
        }

    .navbar-collapse {
        background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
        padding: 12px;
        border-radius: 10px;
        margin-top: 8px;
    }

    .navbar-toggler {
        border: 1px solid rgba(255,255,255,.12);
    }

    .navbar-toggler-icon {
        filter: invert(1);
    }
}

/* -------------------------
   Hero (rich motion)
   ------------------------- */
#hero-area {
    padding: 160px 0 90px;
    background: var(--accent-gradient);
    color: #fff;
    overflow: hidden;
    position: relative;
}

    #hero-area .block {
        padding-top: 6px;
    }

    #hero-area h1 {
        font-size: 48px;
        letter-spacing: 4px;
        text-transform: uppercase;
        margin-bottom: 18px;
        font-weight: 900;
        text-shadow: 0 18px 40px rgba(0,0,0,.32);
        transform-origin: left center;
        animation: heroTitleIn .9s var(--ease-smooth) both;
    }

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#hero-area p.lead {
    font-size: 18px;
    color: rgba(255,255,255,.95);
    line-height: 1.8;
    text-align: right;
}

/* CTA buttons micro-interactions */
.btn-cta {
    background: var(--white);
    color: var(--primary);
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 900;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    border: 0;
    transition: transform .22s var(--ease-fast), box-shadow .22s var(--ease-fast);
}

    .btn-cta:hover {
        transform: translateY(-6px) scale(1.01);
        box-shadow: 0 30px 80px rgba(0,0,0,.26);
    }

.btn-cta-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.6);
    padding: 10px 22px;
    border-radius: 12px;
}

/* hero features with subtle reveal */
.hero-features {
    margin-top: 20px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

    .hero-features li {
        color: rgba(255,255,255,.95);
        font-weight: 800;
        display: flex;
        gap: 12px;
        align-items: center;
    }

        .hero-features li .dot {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: rgba(255,255,255,.08);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
        }

/* hero image float */
.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 40px 120px rgba(0,0,0,.4);
    animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-18px)
    }

    100% {
        transform: translateY(0)
    }
}

/* -------------------------
   Sections (About / Services / Contact)
   ------------------------- */
.section {
    padding: 80px 0;
    background: var(--bg);
    direction: rtl;
    text-align: right;
}

    .section.dark {
        background: #fff;
    }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 18px;
}

/* About card with entrance */
#about {
    background: #fff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 18px 60px rgba(0,0,0,.04);
    transform-origin: center;
}

    #about .sub-heading h3 {
        font-size: 22px;
        color: var(--dark);
        font-weight: 900;
        margin-bottom: 12px;
    }

    #about .block p {
        color: var(--dark);
        line-height: 1.8;
        font-weight: 600;
    }

/* Services grid with staggered icons */
#service .heading h2 {
    font-size: 32px;
    color: var(--dark);
    text-align: center;
    margin-bottom: 6px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: transform .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth);
    will-change: transform, box-shadow;
}

    .service-card:hover {
        transform: translateY(-12px) rotate(-.2deg);
        box-shadow: 0 40px 120px rgba(0,0,0,.08);
    }

    .service-card .icon {
        width: 76px;
        height: 76px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 30px;
        background: linear-gradient(135deg,var(--primary) 0%, var(--primary-dark) 100%);
        box-shadow: 0 18px 60px rgba(198,40,40,.12);
        transition: transform .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth);
    }

    .service-card:hover .icon {
        transform: scale(1.06) rotate(6deg);
        box-shadow: 0 28px 80px rgba(198,40,40,.16);
    }

    /* secondary icon style */
    .service-card .icon.secondary {
        background: linear-gradient(135deg,#41aba0 0%, #2f9a7f 100%);
    }

    /* text */
    .service-card h5 {
        font-weight: 900;
        color: var(--dark);
        margin-top: 8px;
    }

    .service-card p {
        color: #666;
        line-height: 1.6;
    }

/* subtle reveal for cards */
.card-reveal {
    opacity: 0;
    transform: translateY(18px) scale(.995);
    transition: opacity .6s var(--ease-smooth), transform .6s var(--ease-smooth);
}

    .card-reveal.visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

/* -------------------------
   CTA (buy cars)
   ------------------------- */
#cta-buy {
    background: var(--primary);
    color: #fff;
    padding: 64px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

    #cta-buy h3 {
        font-weight: 900;
        font-size: 26px;
        margin-bottom: 8px;
    }

    #cta-buy p {
        color: rgba(255,255,255,.95);
        margin-bottom: 18px;
    }

/* -------------------------
   Contact (animated inputs)
   ------------------------- */
#contact {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 18px 60px rgba(0,0,0,.04);
}

.input-field .form-control {
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    padding: 14px 16px;
    text-align: right;
    direction: rtl;
    transition: box-shadow .18s var(--ease-fast), transform .18s var(--ease-fast);
}

    .input-field .form-control:focus {
        box-shadow: 0 10px 30px rgba(198,40,40,.06);
        transform: translateY(-2px);
        outline: none;
    }

/* submit */
.btn-send {
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform .18s var(--ease-fast), box-shadow .18s var(--ease-fast);
}

    .btn-send:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 60px rgba(198,40,40,.12);
    }

/* -------------------------
   Footer & FAB
   ------------------------- */
footer {
    background: #111;
    color: #ddd;
    padding: 28px 0;
    text-align: center;
    font-size: 14px;
    border-top: 4px solid rgba(198,40,40,.06);
}

/* WhatsApp FAB */
#whatsapp-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 99999;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 80px rgba(37,211,102,.18);
    font-size: 30px;
    transition: transform .18s var(--ease-fast);
}

    #whatsapp-fab:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 40px 120px rgba(37,211,102,.22);
    }

/* -------------------------
   Accessibility & responsive
   ------------------------- */
.navbar-custom .nav-link:focus, .btn-cta:focus, .btn-send:focus {
    outline: 3px solid rgba(198,40,40,0.12);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width:991px) {
    #hero-area {
        padding: 110px 0 60px;
    }

        #hero-area h1 {
            font-size: 34px;
            letter-spacing: 2px;
        }

    .preloader-logo {
        width: 320px;
    }

    .brand-text {
        display: none;
    }

    .service-card .icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}

@media (max-width:576px) {
    .preloader-logo {
        width: 260px;
    }

    .brand-logo {
        max-height: 48px;
    }

    #hero-area {
        padding: 80px 0 40px;
    }

        #hero-area h1 {
            font-size: 26px;
        }

    #whatsapp-fab {
        width: 56px;
        height: 56px;
        font-size: 26px;
        left: 14px;
        bottom: 14px;
    }

    .service-card {
        padding: 18px;
        border-radius: 10px;
    }
}

/* -------------------------
   JS helper classes (for intersection observer)
   ------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease-smooth), transform .7s var(--ease-smooth);
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* -------------------------
   Small utilities
   ------------------------- */
.text-rtl {
    direction: rtl;
    text-align: right;
}

.mb-xxl {
    margin-bottom: 2.2rem;
}
