/* ============================================
   شركة بيت النخبة - نمط CSS
   تصميم: الفخامة الحديثة المينيمالية
   ============================================ */

/* متغيرات CSS */
:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #C5A059;
    --dark-charcoal: #1A1A1A;
    --off-white: #F9F9F9;
    --light-gray: #E8E8E8;
    --medium-gray: #CCCCCC;
    --text-color: #333333;
    --border-color: #E0E0E0;
    --transition-speed: 0.3s;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* إعادة تعيين عام */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--off-white);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* ============================================
   الطباعة والنصوص
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color var(--transition-speed) var(--ease-out);
}

a:hover {
    color: var(--secondary-gold);
}

/* ============================================
   الرأس والتنقل
   ============================================ */

header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--dark-charcoal);
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-charcoal);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

nav a {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed) var(--ease-out);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width var(--transition-speed) var(--ease-out);
}

nav a:hover {
    color: var(--primary-gold);
}

nav a:hover::after {
    width: 100%;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-gold);
    background-color: transparent;
    color: var(--primary-gold);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed) var(--ease-out);
    border-radius: 2px;
    font-weight: 600;
}

.contact-btn:hover {
    background-color: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ============================================
   قسم البطل (Hero Section)
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--off-white) 0%, #FAFAFA 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s var(--ease-out);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--primary-gold);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--ease-out);
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.cta-button:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.cta-button:active {
    transform: scale(0.97);
}

/* ============================================
   الأقسام العامة
   ============================================ */

section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-gold);
}

/* ============================================
   قسم من نحن
   ============================================ */

.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight-item::before {
    content: '✓';
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.about-image {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    height: 400px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
}

/* ============================================
   شبكة الفئات
   ============================================ */

.categories {
    background-color: var(--off-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background-color: white;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) var(--ease-out);
    border-radius: 2px;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-charcoal);
}

.category-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.category-link {
    display: inline-block;
    color: var(--primary-gold);
    font-weight: 600;
    transition: all var(--transition-speed) var(--ease-out);
}

.category-link:hover {
    color: var(--secondary-gold);
    margin-left: 0.5rem;
}

/* ============================================
   شبكة المنتجات
   ============================================ */

.products {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-speed) var(--ease-out);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medium-gray) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--ease-out);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--dark-charcoal);
    margin-bottom: 0.5rem;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.product-tag {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 1px;
}

.product-action {
    display: flex;
    gap: 0.5rem;
}

.whatsapp-btn {
    flex: 1;
    padding: 0.8rem;
    background-color: var(--primary-gold);
    color: white;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) var(--ease-out);
    border-radius: 2px;
}

.whatsapp-btn:hover {
    background-color: var(--secondary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.whatsapp-btn:active {
    transform: scale(0.97);
}

/* ============================================
   قسم لماذا نختارنا
   ============================================ */

.why-us {
    background-color: var(--off-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-us-card {
    background-color: white;
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) var(--ease-out);
    border-radius: 2px;
}

.why-us-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.why-us-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-charcoal);
}

.why-us-card p {
    color: var(--text-color);
    line-height: 1.8;
}

/* ============================================
   التذييل (Footer)
   ============================================ */

footer {
    background-color: var(--dark-charcoal);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) var(--ease-out);
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.company-info {
    background-color: rgba(212, 175, 55, 0.1);
    padding: 1.5rem;
    border-radius: 2px;
    margin-bottom: 2rem;
}

.company-info p {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.company-info strong {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ============================================
   أزرار WhatsApp العائمة
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.whatsapp-btn-float {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all var(--transition-speed) var(--ease-out);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.whatsapp-btn-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* ============================================
   الرسوم المتحركة
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   الاستجابة للشاشات الصغيرة
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .header-container {
        padding: 1rem;
        gap: 1rem;
    }

    nav ul {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 300px;
    }

    .categories-grid,
    .products-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
    }

    .whatsapp-btn-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }

    .contact-btn {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 200px;
    }
}

/* ============================================
   تقليل الحركة للأجهزة التي تفضلها
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
