﻿/* Al-Tasahill Al-Rabih - Final Luxury Polish 2026 */

:root {
    --amber: #d97706;
    --gold: #facc15;
    --dark: #0f172a;
    --deep-dark: #0a0f1d;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Cairo', sans-serif; }
body { background: var(--white); overflow-x: hidden; scroll-behavior: smooth; }

/* 1. Navbar & Glowing Logo */
.navbar { position: absolute; top: 0; width: 100%; z-index: 1000; padding: 3rem 5% 1rem; display: flex; justify-content: center; }
.site-logo { 
    height: 180px; 
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8)) drop-shadow(0 0 20px rgba(217, 119, 6, 0.4));
    transition: var(--transition);
}
.logo-wrapper:hover .site-logo { 
    transform: scale(1.05); 
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.9)) drop-shadow(0 0 40px rgba(250, 204, 21, 0.7)); 
}

/* 2. Hero Section (CSS Background Fix) */
.hero-single {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    margin-top: 80px;
}

.hero-content h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 15px; font-weight: 700; text-shadow: 0 4px 15px rgba(0,0,0,0.6); }
.hero-subtitle { font-size: clamp(1rem, 4vw, 1.8rem); opacity: 0.95; font-weight: 300; }
.hero-badge { background: var(--amber); padding: 8px 25px; border-radius: 50px; font-weight: 700; margin-bottom: 25px; display: inline-block; box-shadow: 0 0 15px rgba(217,119,6,0.5); }

/* 3. About Section & RTL Flip */
.about-section { padding: 100px 10%; background: white; margin-top: -60px; border-radius: 60px 60px 0 0; position: relative; z-index: 10; }
.about-container { display: flex; align-items: center; gap: 60px; max-width: 1200px; margin: 0 auto; }
.about-image img { width: 100%; height: 500px; border-radius: 40px; object-fit: cover; box-shadow: 25px 25px 0 #f1f5f9; transition: 0.5s ease; }

[dir="rtl"] .about-image img { transform: scaleX(-1); box-shadow: -25px 25px 0 #f1f5f9; }
[dir="rtl"] .about-content { text-align: right; }
.sub-title { color: var(--amber); font-weight: 700; margin-bottom: 15px; display: block; }

/* 4. Gallery */
.gallery { padding: 40px 5%; }
.masonry-grid { columns: 4 220px; column-gap: 20px; }
.gallery-item { margin-bottom: 20px; border-radius: 25px; overflow: hidden; break-inside: avoid; }
.gallery-item img { width: 100%; display: block; }
/* --- Optimized Simple Footer --- */
.footer { 
    background: var(--deep-dark); 
    color: white; 
    padding: 60px 10% 30px; 
    border-top: 2px solid var(--amber); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    align-items: center; /* توسيط العناصر عمودياً */
}

.footer-links, .footer-info { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

/* تنسيق جملة Proud to be Libyan */
.proud-text {
    margin-top: 10px;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 1px;
    font-size: 1.1rem;
    border-top: 1px solid rgba(217, 119, 6, 0.2);
    padding-top: 10px;
    display: inline-block;
}

.footer-contact-link, .footer-info p { 
    color: #cbd5e1; 
    text-decoration: none; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

[dir="rtl"] .footer-contact-link, [dir="rtl"] .footer-info p { 
    flex-direction: row-reverse; 
    justify-content: flex-start; 
}

.footer-bottom { 
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 20px; 
    text-align: center; 
    opacity: 0.5; 
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-contact-link, .footer-info p { justify-content: center !important; flex-direction: row !important; }
}

/* 6. Floating Controls */
.floating-controls { position: fixed; bottom: 35px; right: 35px; display: flex; flex-direction: column; gap: 15px; z-index: 9999; }
[dir="rtl"] .floating-controls { right: auto; left: 35px; }
.float-icon { width: 65px; height: 65px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-decoration: none; box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.whatsapp-btn { background: #25d366; font-size: 2.3rem; }
.lang-switch { background: var(--dark); border: 2px solid var(--amber); font-size: 0.7rem; font-weight: 700; }

/* 7. Mobile */
@media (max-width: 768px) {
    .about-container, .footer-grid { grid-template-columns: 1fr; text-align: center !important; }
    .footer-contact-link, .footer-info p { justify-content: center !important; flex-direction: row !important; }
    .hero-content h1 { font-size: 2.2rem; }
}