/* ===== CSS الأساسي - المنطلق الأول لتأجير السيارات ===== */
/* المؤلف: فريق المنطلق الأول | التحديث: يناير 2024 */

/* ===== المتغيرات والألوان ===== */
:root {
    /* الألوان الأساسية من الشعار */
    --primary-color: #2d2478;
    --secondary-color: #eb8b27;
    --accent-color: #ff9a3c;
    
    /* الألوان المساعدة */
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --whatsapp-color: #25d366;
    --danger-color: #ff4757;
    --success-color: #2ed573;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #000000;
    
    /* الظلال */
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.08);
    
    /* التدريجات اللونية */
    --gradient-primary: linear-gradient(135deg, #2d2478 0%, #3a2f9e 100%);
    --gradient-secondary: linear-gradient(135deg, #eb8b27 0%, #ff9a3c 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25d366 0%, #1da851 100%);
    
    /* الزوايا */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* التحولات */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s ease;
}

/* ===== إعادة التعيين والأنماط الأساسية ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: var(--dark-color);
    background-color: var(--white);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== الطباعة ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

h1 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 5px;
    background: var(--gradient-secondary);
    border-radius: 3px;
}

.section-header.center h2:after {
    right: 50%;
    transform: translateX(50%);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray-color);
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-color);
}

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

ul {
    list-style: none;
}

/* ===== أنماط قسم الهيرو المحسنة ===== */
.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== أنماط صفحة العروض ===== */
.special-offers {
    padding: 100px 0;
}

.special-offers-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.special-offer-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.special-offer-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.special-offer-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-secondary);
}

.offer-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.offer-tag {
    margin-top: 20px;
    padding: 8px 20px;
    background: var(--gradient-secondary);
    color: var(--white);
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
}

/* ===== أنماط صفحة الاتصال ===== */
.map-section {
    padding: 100px 0;
}

.map-container {
    margin-top: 40px;
}

.map-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-card ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.info-card ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* ===== الرسوم المتحركة ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== الفئات المساعدة ===== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-10 {
    margin-top: 10px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.py-100 {
    padding: 100px 0;
}

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

.text-primary {
    color: var(--primary-color);
}

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

.badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-new {
    background: var(--gradient-secondary);
    color: var(--white);
}

.badge-popular {
    background: var(--gradient-primary);
    color: var(--white);
}

.full-width {
    grid-column: 1 / -1;
}

/* ===== أنماط خاصة للاتصال ===== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-section {
    padding: 20px;
}

.contact-method {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-method-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.contact-details p {
    margin-bottom: 8px;
    color: var(--gray-color);
}

.phone-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--secondary-color);
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-word;
}

.email-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.availability {
    font-size: 0.95rem;
    color: var(--success-color);
    font-weight: 600;
    margin-top: 10px;
}

.contact-actions {
    text-align: left;
}

.contact-actions .btn {
    min-width: 150px;
}

.social-contact {
    margin-top: 40px;
    padding: 30px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.social-contact h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.social-contact .social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.social-contact .social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-width: 90px;
    text-decoration: none;
    color: var(--dark-color);
}

.social-contact .social-icon:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-5px);
}

.social-contact .social-icon i {
    font-size: 1.5rem;
}

.social-contact .social-icon span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== نموذج الاتصال ===== */
.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-form-container p {
    margin-bottom: 30px;
    color: var(--gray-color);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    background: var(--white);
    color: var(--dark-color);
    transition: var(--transition);
    min-height: 50px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 36, 120, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* ===== قسم الأسئلة الشائعة ===== */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-light);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    text-align: right;
    background: none;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.faq-question:hover {
    background: var(--light-color);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
}

.faq-answer p {
    padding: 20px 0;
    margin: 0;
}

/* ===== بانر الخصم ===== */
.discount-banner {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.discount-banner:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
}

.discount-banner span {
    position: relative;
    z-index: 1;
}

/* ===== إشعارات النظام ===== */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    margin-right: auto;
}

/* تحسينات للشاشات الصغيرة جداً */
@media (max-width: 360px) {
    .contact-method-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .contact-details {
        width: 100%;
    }
    
    .social-contact .social-icon {
        min-width: 70px;
        padding: 10px 8px;
    }
    
    .social-contact .social-icon span {
        font-size: 0.8rem;
    }
}

/* تحسينات للوضع الأفقي على الجوال */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .contact-form textarea {
        min-height: 80px;
    }
    
    .page-hero {
        min-height: 300px;
    }
}

/* تحسينات للشاشات عالية الدقة */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* تحسينات لأجهزة iPad والأجهزة اللوحية */
@media (min-width: 769px) and (max-width: 1024px) {
    .contact-method-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .contact-actions {
        align-items: center;
    }
    
    .social-contact .social-icons {
        justify-content: center;
    }
}