@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #2b4c3b;
    --secondary-color: #1a332a;
    --accent-color: #d4a056;
    --accent-hover: #bfa15f;
    --bg-light: #f9fbf9;
    --white: #ffffff;
    --text-gray: #555555;
    --shadow: 0 10px 30px rgba(43, 76, 59, 0.08);
    --card-radius: 16px;
    --btn-radius: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cairo', sans-serif; scroll-behavior: smooth; }
body { background-color: var(--bg-light); color: var(--text-gray); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.8s ease forwards; opacity: 0; }

html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="ltr"] { direction: ltr; text-align: left; }

/* Header */
header { 
    background-color: var(--white); 
    box-shadow: 0 2px 20px rgba(0,0,0,0.04); 
    position: sticky; top: 0; z-index: 1000; padding: 10px 0; 
    border-bottom: 3px solid var(--accent-color);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo h2 { color: var(--primary-color); font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.navbar ul { display: flex; gap: 30px; }
.navbar a { font-weight: 700; font-size: 16px; color: var(--secondary-color); position: relative; padding: 5px 0; }
.navbar a:hover, .navbar a.active { color: var(--accent-color); }
.header-icons { display: flex; align-items: center; gap: 15px; }
#language-selector { padding: 6px 15px; border: 1px solid #eee; border-radius: 20px; font-weight: bold; outline: none; cursor: pointer; }

/* Hero Section */
.hero { 
    /* تأكد من وجود صورة رقم 1 */
    background: url('photos/1.jpg') no-repeat center center/cover; 
    height: 90vh; min-height: 600px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; background-attachment: fixed;
}
.hero-overlay { 
    background: linear-gradient(180deg, rgba(43, 76, 59, 0.85) 0%, rgba(43, 76, 59, 0.6) 100%);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.hero-content { color: var(--white); max-width: 800px; z-index: 2; padding: 0 20px; }
.hero-content h1 { font-size: 3rem; line-height: 1.3; margin-bottom: 20px; font-weight: 800; }
.hero-content p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.95; }

/* Buttons & Titles */
.btn-primary { background-color: var(--accent-color); color: var(--white); padding: 14px 40px; border-radius: var(--btn-radius); font-weight: 700; border: none; cursor: pointer; display: inline-block; transition: var(--transition); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-3px); }
.btn-secondary { background: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); padding: 8px 20px; border-radius: var(--btn-radius); cursor: pointer; font-weight: 700; margin-top: 15px; display: inline-block; }
.btn-secondary:hover { background: var(--accent-color); color: #fff; }
.section-title-wrapper { text-align: center; margin-bottom: 50px; }
.section-title { color: var(--primary-color); font-size: 2.2rem; font-weight: 800; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title::before { content: ''; position: absolute; bottom: 0; width: 60px; height: 4px; background-color: var(--accent-color); left: 50%; transform: translateX(-50%); border-radius: 2px; }

/* Products Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: var(--white); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid #eee; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-10px); }
.product-card img { width: 100%; height: 240px; object-fit: cover; }
.card-body { padding: 25px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-body h3 { color: var(--primary-color); margin-bottom: 10px; }

/* Gallery & Map */
.map-container { 
    width: 100%; height: 350px; border-radius: 20px; 
    /* تأكد من وجود صورة رقم 9 */
    background: url('photos/9.jpg') center/cover; 
    display: flex; justify-content: center; align-items: center; position: relative;
}
.map-overlay { background: rgba(255,255,255,0.9); padding: 20px 40px; border-radius: 15px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.map-overlay i { font-size: 40px; color: var(--accent-color); margin-bottom: 10px; }
.map-overlay p { font-weight: 800; color: var(--primary-color); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; height: 220px; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(43, 76, 59, 0.7); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: #fff; font-size: 1.5rem; }

/* Contact Form */
.contact-container { display: flex; flex-wrap: wrap; gap: 30px; }
.contact-info, .contact-form { flex: 1; min-width: 300px; background: var(--white); padding: 40px; border-radius: var(--card-radius); box-shadow: var(--shadow); }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-item i { background: rgba(212, 160, 86, 0.15); color: var(--accent-color); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; color: var(--primary-color); font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 10px; outline: none; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-color); }
.form-group textarea { height: 120px; resize: none; }
.btn-full { width: 100%; margin-top: 10px; }

/* Footer */
footer { background-color: var(--primary-color); color: var(--white); padding: 40px 0; border-top: 5px solid var(--accent-color); text-align: center; }

/* Mobile */
.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary-color); }
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .navbar { position: fixed; top: 0; height: 100vh; width: 250px; background: var(--white); padding-top: 80px; box-shadow: 0 0 20px rgba(0,0,0,0.1); transition: 0.4s; z-index: 999; }
    html[dir="ltr"] .navbar { right: -300px; } html[dir="ltr"] .navbar.active { right: 0; }
    html[dir="rtl"] .navbar { left: -300px; } html[dir="rtl"] .navbar.active { left: 0; }
    .navbar ul { flex-direction: column; padding: 0 30px; }
    .hero-content h1 { font-size: 2rem; }
}

/* Lightbox */
.lightbox { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.9); z-index: 2000; display: none; justify-content: center; align-items: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90vh; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; }