/* --- Reset & Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; overflow-x: hidden; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* حجم الأقسام */
.section-padding { padding: 130px 0; } 

h1, h2, h3, h4, .btn-primary, .btn-outline, nav ul li a, .btn-quote, .btn-gold { font-family: 'Montserrat', sans-serif; }
h1, h2, h3 { color: #2c3e50; margin-bottom: 15px; }

/* تكبير العناوين */
.section-title { text-align: center; margin-bottom: 80px; }
.section-title h2 { 
    font-family: 'Playfair Display', serif; 
    font-size: 4rem; 
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
@media (max-width: 768px) { .section-title h2 { font-size: 2.5rem; } }

:root {
    --gold-color: #c5a059;   
    --dark-bg: #1e272e;      
    --card-bg: #2c3e50;      
    --primary-color: #d35400; 
}

/* الأزرار */
.btn-primary { display: inline-block; background-color: var(--gold-color); color: white; padding: 14px 40px; border-radius: 4px; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3); transition: all 0.3s; }
.btn-primary:hover { background-color: #b08d4b; transform: translateY(-3px); }

.btn-outline { display: inline-block; background-color: transparent; color: white; border: 2px solid white; padding: 12px 38px; border-radius: 4px; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; transition: all 0.3s; }
.btn-outline:hover { background-color: white; color: var(--dark-bg); transform: translateY(-3px); }

/* Top Bar */
.top-bar { background-color: #111; color: #fff; padding: 10px 0; font-size: 0.9rem; border-bottom: 1px solid #333; }
.top-bar .container { display: flex; justify-content: center; align-items: center; }
.contact-info a { margin: 0 15px; color: #ccc; display: inline-flex; align-items: center; }
.contact-info a:hover { color: var(--gold-color); }
.contact-info i { color: var(--gold-color); margin-right: 8px; }

/* Header */
header { background: white; box-shadow: 0 2px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; transition: all 0.4s ease; }
header.scrolled { padding: 5px 0; background-color: rgba(255, 255, 255, 0.98); }
header .container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }

.logo a { display: flex; align-items: center; text-decoration: none; gap: 15px; }
.logo-symbol { width: 55px; height: 55px; border: 2px solid var(--gold-color); color: var(--gold-color); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; transition: 0.3s; background: transparent; }
.logo-text h1 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin: 0; color: #2c3e50; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.logo-text span { display: block; font-size: 0.75rem; color: var(--gold-color); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.logo:hover .logo-symbol { background-color: var(--gold-color); color: white; }

nav ul { display: flex; align-items: center; }
nav ul li { margin-left: 25px; }
nav ul li a { font-weight: 600; color: #333; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
nav ul li a:hover, nav ul li a.active { color: var(--gold-color); }
.btn-quote { background-color: #2c3e50; color: white !important; padding: 10px 25px; border-radius: 0; border: 1px solid #2c3e50; }
.btn-quote:hover { background-color: transparent; color: #2c3e50 !important; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: #333; }

/* Hero */
.hero { height: 90vh; background: url('images/int1.avif') no-repeat center center/cover; background-attachment: fixed; position: relative; display: flex; align-items: center; text-align: center; }
.hero .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; color: white; padding: 0 20px; }
.hero-content h2 { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: white; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; font-weight: 300; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 30px; }
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); }
.scroll-indicator span { display: block; width: 20px; height: 20px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg); margin: -10px; animation: animate 2s infinite; }
.scroll-indicator span:nth-child(2) { animation-delay: -0.2s; }
.scroll-indicator span:nth-child(3) { animation-delay: -0.4s; }
@keyframes animate { 0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); } 50% { opacity: 1; } 100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); } }

/* Why Choose Us */
.about { position: relative; background: linear-gradient(rgba(30, 39, 46, 0.9), rgba(30, 39, 46, 0.9)), url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); background-attachment: fixed; background-size: cover; background-position: center; color: white; text-align: center; }
.why-choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-bottom: 60px; }
.why-item { background: rgba(255, 255, 255, 0.05); padding: 40px 25px; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s ease; }
.why-item:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); border-color: var(--gold-color); }
.why-item h3 { font-size: 1.3rem; color: #fff; font-weight: 700; margin-bottom: 10px; font-family: 'Playfair Display', serif; }
.why-item p { color: #ccc; font-size: 0.95rem; margin-bottom: 20px; min-height: 50px; }
.icon-gold { font-size: 2.5rem; color: var(--gold-color); margin-bottom: 20px; display: block; }
.underline-gold { height: 2px; width: 40px; background-color: var(--gold-color); margin: 0 auto; }
.btn-gold { display: inline-block; background-color: var(--gold-color); color: white; padding: 16px 50px; font-weight: 600; text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; border: 1px solid var(--gold-color); transition: all 0.3s; }
.btn-gold:hover { background-color: transparent; color: var(--gold-color); }

/* Services Section */
.services { background-color: #1a2228; border-top: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.service-card { background-color: #243039; border: 1px solid #333; border-bottom: 3px solid var(--gold-color); border-radius: 8px; overflow: hidden; position: relative; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 1; }
.service-card:hover { transform: translateY(-15px); background-color: #2a3b4c; border-color: var(--gold-color); box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 15px rgba(197, 160, 89, 0.2); }
.img-holder { height: 250px; width: 100%; overflow: hidden; position: relative; }
.img-holder img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: brightness(0.9); }
.service-card:hover .img-holder img { transform: scale(1.1); filter: brightness(1.1); }
.card-content { padding: 35px; position: relative; }
.service-icon { font-size: 2rem; color: var(--gold-color); margin-bottom: 15px; display: inline-block; transition: transform 0.4s ease; }
.service-card:hover .service-icon { transform: scale(1.2) rotate(10deg); color: #fff; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 10px; color: #fff; font-family: 'Playfair Display', serif; transition: color 0.3s; }
.service-card:hover h3 { color: var(--gold-color); }
.card-content p { color: #ccc; margin-bottom: 25px; transition: color 0.3s; }
.service-card:hover p { color: #eee; }
.card-content a { color: var(--gold-color); font-weight: bold; display: inline-block; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; position: relative; transition: all 0.3s ease; padding-bottom: 5px; }
.card-content a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--gold-color); transition: width 0.3s ease; }
.service-card:hover .card-content a { color: #fff; padding-left: 10px; }
.service-card:hover .card-content a::after { width: 100%; }
.card-content a i { margin-left: 5px; transition: margin-left 0.3s; }
.service-card:hover .card-content a i { margin-left: 10px; }

/* CTA & Footer */
.cta-section { background-color: #111; color: white; text-align: center; padding: 100px 0; border-top: 1px solid #222; }
.cta-section h2 { color: white; font-family: 'Playfair Display', serif; }
footer { background-color: #0d0d0d; color: #888; padding: 80px 0 20px; }
.footer-top { margin-bottom: 50px; text-align: center; }
.footer-logo { display: inline-flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.logo-symbol-small { width: 45px; height: 45px; border: 2px solid var(--gold-color); color: var(--gold-color); display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.footer-logo h3 { font-family: 'Playfair Display'; color: #fff; margin: 0; font-size: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 25px; font-family: 'Playfair Display', serif; letter-spacing: 1px; font-size: 1.2rem; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--gold-color); }
.footer-col ul li { margin-bottom: 15px; }
.footer-col a { color: #aaa; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-color); padding-left: 5px; }
.footer-col p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-col i { color: var(--gold-color); width: 20px; }
.copyright { text-align: center; border-top: 1px solid #1a1a1a; padding-top: 30px; font-size: 0.9rem; color: #666; }

/* Floating */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; left: 30px; background-color: #25d366; color: #FFF; border-radius: 50%; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #000; z-index: 100; display: flex; align-items: center; justify-content: center; }
#backToTop { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; font-size: 18px; border: none; background-color: var(--gold-color); color: white; cursor: pointer; padding: 15px; border-radius: 50%; }
#backToTop.show { display: block; }

/* Preloader */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s; }
.logo-box-loader { width: 60px; height: 60px; border: 3px solid var(--gold-color); color: var(--gold-color); display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 0 auto 20px auto; }
.loader-content { text-align: center; }
.loader-content h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 20px; color: #333; }
.loader-content span { color: var(--gold-color); }
.loading-bar { width: 50px; height: 3px; background: var(--gold-color); margin: 0 auto; animation: grow 2s infinite; }
.preload-finish { opacity: 0; visibility: hidden; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@keyframes grow { 0% { width: 0; } 50% { width: 100px; } 100% { width: 0; } }

/* =========================================
   Mobile Rules (تم التعديل هنا)
========================================= */
@media (max-width: 768px) {
    /* 1. إظهار التوب بار وضبط العناصر */
    .top-bar { 
        display: block !important; /* إجبار الظهور */
        padding: 8px 0; 
        text-align: center;
    }
    .top-bar .container { 
        flex-direction: column; 
        gap: 5px; 
    }
    .contact-info a { 
        margin: 2px 0; 
        font-size: 0.8rem; 
        display: inline-block; /* لضمان عدم التداخل */
    }

    /* باقي تنسيقات الموبايل */
    .hamburger { display: block; }
    nav ul { position: fixed; top: 78px; left: -100%; width: 100%; height: calc(100vh - 78px); background: white; flex-direction: column; justify-content: center; transition: 0.3s; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    nav ul.active { left: 0; }
    nav ul li { margin: 20px 0; }
    .hero-content h2 { font-size: 2.2rem; }
    .hero { height: 100vh; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    .whatsapp-float, #backToTop { bottom: 20px; width: 50px; height: 50px; font-size: 24px; }
    #backToTop { padding: 10px; }
    .why-choose-grid { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 2.5rem; }
}