/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #1a1512;
    --text-color: #f5f5dc;
    --accent-color: #DEB886;
    --card-bg: #DEB886;
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    direction: rtl;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(rgba(26,21,18,0.5), rgba(26,21,18,0.5)), url('background.png') no-repeat center center/cover;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Reem Kufi', sans-serif;
    font-weight: 900;
    font-size: 8rem;
    color: #eeddca; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.4rem;
    color: #DEB887;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    font-weight: 700;
}

/* =========================================
   3. LAYOUT & BUTTONS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    background: transparent;
    border: 1px solid #98633B;
    color: #98633B;
    padding: 10px 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
    border-radius: 2px;
}

.btn:hover, .btn.active {
    background: #98633B;
    color: var(--bg-color);
}

.sub-filters .btn {
    font-size: 0.9rem;
    padding: 8px 20px;
    border-color:#DEB886;
    color: #DEB886;
}

.sub-filters .btn:hover, .sub-filters .btn.active {
    background: #DEB886;
    color: var(--bg-color);
}

.hidden { display: none; }

/* =========================================
    4. GALLERY GRID (Masonry)
   ========================================= */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: 50px; 
    grid-auto-flow: dense; 
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: #2b221e;  
    transition: transform 0.3s ease;
    grid-row: span 4; 
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-column: span 1;
    grid-row: span 6; 
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   5. MODAL & WHATSAPP
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.swiper { width: 100%; height: 100%; }
.swiper-slide {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px; font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    filter: drop-shadow(0px 0px 5px rgba(0,0,0,1));
}

.swiper-button-next, .swiper-button-prev {
    color: #ffffff !important;
    filter: drop-shadow(0px 0px 5px rgba(0,0,0,1));
    transition: transform 0.2s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover, .close:hover {
    transform: scale(1.2);
    color: #DEB886 !important;
}

.whatsapp-float {
    position: fixed; bottom: 25px; right: 25px;
    width: 50px; height: 50px;
    z-index: 2000; border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    transition: 0.3s;
}
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   6. FOOTER STYLES
   ========================================= */
.site-footer {
    background-color: #1a120b;
    color: #e0d0b8;
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 4px solid #c5a085;
    font-family: 'Cairo', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h3 {
    color: #c5a085;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 50px; height: 2px;
    background-color: #c5a085;
}

.footer-col ul { list-style: none; padding: 0; }
.contact-item { margin-bottom: 15px; }

.footer-col ul li a, .contact-link {
    color: #e0d0b8;
    text-decoration: none;
    transition: 0.3s;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-text { font-weight: bold; }

.footer-col ul li a:hover {
    color: #fff;
    padding-right: 10px;
}

.footer-col i { color: #c5a085; }

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.gold-text { color: #c5a085; font-weight: bold; }

/* =========================================
   7. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .hero { height: 25vh; }
    .hero-content h1 { font-size: 4rem; text-shadow: 3px 3px 10px rgba(0,0,0,0.8); }
    
    #gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; padding: 5px;
    }
    
    .whatsapp-float { bottom: 20px; right: 20px; }
    
    .footer-container { text-align: center; }
    .footer-col h3::after { right: 50%; transform: translateX(50%); }
    .footer-col ul li a:hover { padding-right: 0; }
    
    /* توسيط أيقونات الاتصال في الموبايل */
    .contact-link { justify-content: center; }
}