/*
Theme Name: الفهد لتأجير السيارات - ElFahd CAR RENTAL
Theme URI: https://wa.me/201027137079
Author: Abanob Gerges
Author URI: https://wa.me/201027137079
Description: قالب ووردبريس مخصص واحترافي لشركات تأجير السيارات في مصر والوطن العربي. يدعم الاتجاه من اليمين لليسار (RTL)، متجاوب بنسبة 100% مع كافة الشاشات، متوافق مع معايير الـ SEO، ويشمل لوحة تحكم كاملة ومربعات بيانات مخصصة لمعرض الصور وسلايدر الزوم والأسعار والمواصفات ونظام CRM لإدارة الحجوزات.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alfahdauto
Tags: car-rental, rtl-language-support, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   Base Theme Variables & Reset Styles
   ========================================================================== */
:root {
    --brand-red: #dc2626;
    --brand-red-hover: #b91c1c;
    --brand-red-light: #fef2f2;
    --brand-red-border: #fecaca;
    --brand-dark: #1e2329;
    --brand-charcoal: #111827;
    --brand-slate-dark: #0f172a;
    --brand-surface: #ffffff;
    --brand-gray-bg: #f8fafc;
    --brand-border: #e2e8f0;
    --brand-whatsapp: #25D366;
    --brand-whatsapp-hover: #20bd5a;
    --brand-radius-card: 1.25rem;
    --brand-radius-btn: 0.75rem;
}

/* التايبوجرافي وتجربة القراءة العربية الفاخرة */
body {
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--brand-gray-bg);
    color: var(--brand-charcoal);
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', system-ui, sans-serif;
    text-wrap: balance;
    letter-spacing: normal;
}

p {
    line-height: 1.8;
}

/* شريط تمرير أنيق ونحيف */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* هيدر ثابت بتأثير زجاجي فخم */
.glass-header {
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* بطاقات وتأثيرات التحويم الفاخرة */
.card-hover {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    border-color: #fca5a5;
}

/* أزرار تفاعلية عالية الاستجابة */
.btn-interactive {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-interactive:hover {
    transform: translateY(-1px);
}

.btn-interactive:active {
    transform: scale(0.98);
}

/* حقول الإدخال والتركيز النظيف */
input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12) !important;
}

/* الخط الأحمر الفاصل المميز للهوية */
.brand-red-divider {
    height: 3px;
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 60%, transparent 100%);
    width: 60px;
    border-radius: 9999px;
    margin-top: 6px;
    margin-bottom: 12px;
}

/* شريط السلايدر المتحرك اللانهائي للشركاء */
@keyframes marquee-scroll-rtl {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll-rtl 32s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* تأثير الزوم في صفحة السيارة */
.zoom-container {
    overflow: hidden;
    position: relative;
    cursor: crosshair;
}

.zoom-container img {
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    will-change: transform, transform-origin;
}

.mobile-zoom-img {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center center;
}

.thumb-active {
    border-color: var(--brand-red) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25) !important;
}

/* أزرار الفلترة النشطة */
.category-btn {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-btn.active {
    background-color: var(--brand-red) !important;
    color: #ffffff !important;
    border-color: var(--brand-red) !important;
    box-shadow: 0 6px 16px -2px rgba(220, 38, 38, 0.35);
}

/* تنسيقات محرر الشروط وسياسة الاسترداد الغنية */
.rich-terms-content, .rich-refund-content {
    font-size: 13.5px;
    line-height: 1.85;
}

.rich-terms-content p, .rich-refund-content p {
    margin: 0 0 10px 0;
}

.rich-terms-content p:last-child, .rich-refund-content p:last-child {
    margin-bottom: 0;
}

.rich-terms-content ul, .rich-refund-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.rich-terms-content ul li {
    position: relative;
    padding-right: 22px;
    margin-bottom: 9px;
    color: #450a0a;
    font-weight: 500;
}

.rich-terms-content ul li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: #dc2626;
    font-weight: 900;
    font-size: 13px;
}

.rich-refund-content ul li {
    position: relative;
    padding-right: 22px;
    margin-bottom: 9px;
    color: #064e3b;
    font-weight: 500;
}

.rich-refund-content ul li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: #16a34a;
    font-weight: 900;
    font-size: 13px;
}
