/*
Theme Name: Bakran
Theme URI: https://faditec.com
Author: Fadi Abboud (Enhanced by Bakran Team)
Description: A custom WordPress theme for Bakran Restaurant in Madinah, featuring a heritage Saudi design with modern luxury aesthetics.
Version: 1.2.0 (Premium Update)
Text Domain: bakran
*/

/* =========================================
   1. VARIABLES & SETTINGS
   ========================================= */
:root {
    /* Brand Colors */
    --color-maroon: #680109;
    --color-light-yellow: #f9f4d9;
    --color-wood: #8B5A2B;
    --color-soft-black: #161616;
    
    /* Fonts */
    --font-heading: "Adobe Naskh", "Noto Naskh Arabic", serif;
    --font-body: "Brando Arabic", "Amiri", serif;
    --font-english: "Haboro Slab", "Roboto Slab", serif;

    /* Transitions */
    --ease-luxury: cubic-bezier(0.6, 0.05, 0.01, 0.99);
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; font-size: 16px; }
body {
    background-color: var(--color-light-yellow);
    color: var(--color-soft-black);
    font-family: var(--font-body);
    line-height: 1.8;
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-light-yellow); }
::-webkit-scrollbar-thumb { background: var(--color-wood); border-radius: 4px; }

/* ألوان الخلفيات الفاخرة العامة */
.bg-cream { background-color: #f9f4d9; }
.bg-maroon { background-color: #4A0E12; }
.text-cream { color: #f9f4d9; }
.text-gold { color: #8B5A2B; }
.text-maroon { color: #680109; }

/* =========================================
   3. TYPOGRAPHY SYSTEM
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-top: 0; margin-bottom: 1.5rem;
    line-height: 1.3; font-weight: 700;
}
.display-huge {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #8B5A2B;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
}
.text-h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.text-h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.text-xl { font-size: 1.5rem; }
.text-lg { font-size: 1.25rem; }
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-english { font-family: var(--font-english); }
.leading-loose { line-height: 2.2 !important; }
.tracking-widest { letter-spacing: 0.1em; }
.opacity-90 { opacity: 0.9; }
.opacity-80 { opacity: 0.8; }

/* =========================================
   4. BUTTONS & ACTIONS
   ========================================= */
.btn-luxury {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: #680109; color: #f9f4d9;
    padding: 12px 35px; border-radius: 4px;
    font-family: var(--font-heading); font-size: 1.1rem;
    text-decoration: none; border: 1px solid #680109;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn-luxury.btn-outline { background-color: transparent; border: 1px solid #8B5A2B; color: #8B5A2B; }
.btn-luxury:hover { background-color: #8B5A2B; border-color: #8B5A2B; color: #fff; transform: translateY(-2px); }
.btn-header { padding: 10px 25px; border-radius: 50px; font-size: 1rem; background-color: #8B5A2B; border-color: #8B5A2B; }
.btn-header i { margin-left: 8px; }
.btn-header:hover { background-color: #f9f4d9; color: #4A0E12; border-color: #f9f4d9; }

/* =========================================
   5. LUXURY PRELOADER
   ========================================= */
.madinah-preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #1a0505; z-index: 999999;
    display: flex; justify-content: center; align-items: center;
}
.preloader-content { display: flex; flex-direction: column; align-items: center; }
.cooking-pot-icon { width: 90px; height: 90px; filter: drop-shadow(0 0 10px rgba(139, 90, 43, 0.4)); }
.steam { animation: steam-rise 2s infinite ease-in-out; opacity: 0; }
.steam-1 { animation-delay: 0.1s; } .steam-2 { animation-delay: 0.7s; } .steam-3 { animation-delay: 1.3s; }
@keyframes steam-rise { 0% { transform: translateY(5px); opacity: 0; } 50% { opacity: 0.8; } 100% { transform: translateY(-15px); opacity: 0; } }
.fire-flame { animation: fire-flicker 0.5s infinite alternate ease-in-out; transform-origin: center 21px; }
@keyframes fire-flicker { 0% { transform: scaleY(0.9) scaleX(1.05); opacity: 0.8; fill: #8B5A2B; } 100% { transform: scaleY(1.2) scaleX(0.95); opacity: 1; fill: #C5A065; } }
.preloader-text { font-size: 1.6rem; letter-spacing: 0.5px; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); animation: text-pulse 1.5s infinite alternate; }
@keyframes text-pulse { 0% { opacity: 0.6; transform: scale(0.98); } 100% { opacity: 1; transform: scale(1); } }
.preloader-progress { width: 200px; height: 2px; background-color: rgba(139, 90, 43, 0.2); border-radius: 2px; position: relative; overflow: hidden; }
.progress-bar-inner { position: absolute; top: 0; right: 0; height: 100%; width: 40%; background-color: #8B5A2B; border-radius: 2px; animation: loading-slide 1.5s infinite ease-in-out; }
@keyframes loading-slide { 0% { right: -40%; width: 40%; } 50% { width: 80%; } 100% { right: 100%; width: 40%; } }

/* =========================================
   6. SMART HEADER & NAVIGATION
   ========================================= */
.madinah-smart-header {
    position: absolute; top: 0; left: 0; width: 100%; z-index: 999;
    background-color: transparent; padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-inner { align-items: center; }
.header-logo-img { height: auto; max-height: 135px; transition: max-height 0.4s ease; }
.madinah-smart-header.solid-header { background-color: #680109 !important; position: sticky !important; top: 0; z-index: 1000; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); padding: 10px 0; }
.site-header.scrolled, .madinah-smart-header.scrolled {
    background-color: #680109 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important; border-bottom: 1px solid rgba(139, 90, 43, 0.3) !important;
    padding: 10px 0 !important; transition: all 0.4s ease !important;
}
.scrolled .header-logo-img { max-height: 85px; }
.madinah-nav a {
    color: #f9f4d9; font-family: var(--font-heading); font-size: 1.15rem; text-decoration: none; position: relative; padding-bottom: 5px; transition: color 0.3s ease;
}
.madinah-nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; right: 0; background-color: #8B5A2B; transition: width 0.3s ease; }
.madinah-nav a:hover { color: #8B5A2B; }
.madinah-nav a:hover::after { width: 100%; }
.site-header.scrolled .madinah-nav a { color: #f9f4d9 !important; text-shadow: none !important; }

/* =========================================
   7. LUXURY FULL-SCREEN MOBILE MENU
   ========================================= */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(74, 14, 18, 0.98); backdrop-filter: blur(15px); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transform: translateY(-20px);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-inner { width: 90%; max-width: 400px; position: relative; }
.mobile-menu-close { position: absolute; top: -50px; left: 0; font-size: 2.5rem; cursor: pointer; transition: transform 0.3s ease; }
.mobile-menu-close:hover { transform: rotate(90deg); }
.mobile-navigation li { margin-bottom: 25px; }
.mobile-navigation a { color: #f9f4d9; font-family: var(--font-heading); font-size: 1.8rem; text-decoration: none; display: block; transition: color 0.3s ease, transform 0.3s ease; }
.mobile-navigation a:hover { color: #8B5A2B; transform: scale(1.05); }

/* =========================================
   8. HERO SECTION
   ========================================= */
.hero-luxury { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(30, 0, 5, 0.75) 0%, rgba(10, 0, 2, 0.85) 100%); z-index: 1; }
.hero-pattern-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://www.transparenttextures.com/patterns/arabesque.png'); opacity: 0.15; mix-blend-mode: color-dodge; z-index: 2; }
.hero-content-container { z-index: 10; position: relative; padding: 0 20px; }
.hero-desc-wrapper h2 { font-size: clamp(1.2rem, 2vw, 1.8rem); text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8); }
.hero-paragraph { font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.9; max-width: 750px; margin: 0 auto; text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8); opacity: 0.9; }
.hero-actions { margin-top: 40px; }

/* =========================================
   9. MADINAH ARCHITECTURE & ELEMENTS
   ========================================= */
.section-padding { padding: 100px 0; }
.madinah-divider { width: 60px; height: 3px; background-color: #8B5A2B; position: relative; border-radius: 2px; }
.madinah-divider::before, .madinah-divider::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px; background-color: #8B5A2B; }
.madinah-divider::before { left: -15px; } .madinah-divider::after { right: -15px; }
.madinah-quote { border-right: 3px solid #8B5A2B; background: linear-gradient(90deg, transparent, rgba(139, 90, 43, 0.05)); padding: 15px 20px 15px 0; border-radius: 0 8px 8px 0; }
.islamic-pattern-bg { position: absolute; top: -10%; left: -10%; width: 120%; height: 120%; background-image: radial-gradient(#8B5A2B 1px, transparent 1px); background-size: 30px 30px; opacity: 0.1; transform: rotate(15deg); pointer-events: none; }
.madinah-arch-wrapper { position: relative; padding: 20px; }
.arch-img { border-radius: 200px 200px 10px 10px; box-shadow: 0 30px 60px rgba(74, 14, 18, 0.15); height: 650px; object-fit: cover; }
.arch-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid #8B5A2B; border-radius: 215px 215px 15px 15px; z-index: -1; transform: translate(-15px, 15px); opacity: 0.7; }
.rawashin-card, .philosophy-card-luxury { background: #5A161A; border: 1px solid rgba(139, 90, 43, 0.3); border-radius: 8px; position: relative; transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.rawashin-card:hover, .philosophy-card-luxury:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: #8B5A2B; }
.corner-decor { position: absolute; width: 30px; height: 30px; border: 2px solid #8B5A2B; opacity: 0.5; }
.corner-decor.top-right { top: 10px; right: 10px; border-bottom: none; border-left: none; } .corner-decor.bottom-left { bottom: 10px; left: 10px; border-top: none; border-right: none; }
.sadu-border-top { position: absolute; top: 0; left: 0; width: 100%; height: 8px; background-color: #8B5A2B; opacity: 0.8; }

/* =========================================
   10. MADINAH TIMELINE (OUR STORY)
   ========================================= */
.story-hero { height: 65vh; min-height: 500px; }
.madinah-timeline { position: relative; padding: 40px 0; }
.madinah-timeline::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: linear-gradient(to bottom, transparent, #8B5A2B 10%, #8B5A2B 90%, transparent); }
.timeline-dot { width: 20px; height: 20px; background-color: #f9f4d9; border: 4px solid #8B5A2B; border-radius: 50%; position: relative; z-index: 2; box-shadow: 0 0 0 6px rgba(139, 90, 43, 0.2); }
.timeline-year { text-shadow: 0 5px 15px rgba(0,0,0,0.05); }
@media (max-width: 767px) { .madinah-timeline::before { display: none; } .timeline-item.flex-md-row-reverse .text-md-start { text-align: center !important; } }

/* =========================================
   11. LUXURY FOOTER & FAQ
   ========================================= */
.site-footer.bg-maroon { background-color: #4A0E12; color: #f9f4d9; position: relative; overflow: hidden; }
.footer-sadu-border { width: 100%; height: 10px; background-color: #8B5A2B; background-image: url('../assets/images/sadu-pattern.png'); background-repeat: repeat-x; background-size: contain; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(139, 90, 43, 0.3); border-radius: 50%; color: #f9f4d9; font-size: 1.1rem; transition: all 0.3s ease; text-decoration: none; }
.social-icon:hover { background-color: #8B5A2B; border-color: #8B5A2B; color: #fff; transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.2); }
.footer-links-list li { margin-bottom: 12px; position: relative; padding-right: 20px; }
.footer-links-list li::before { content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #8B5A2B; font-size: 1rem !important; transition: transform 0.3s ease; }
.footer-links-list li:hover::before { transform: translate(-3px, -50%); }
.footer-links-list a { color: rgba(249, 244, 217, 0.9) !important; text-decoration: none; transition: color 0.3s ease, transform 0.3s ease; font-size: 1.25rem !important; font-family: var(--font-heading) !important; display: inline-block; }
.footer-links-list a:hover { color: #8B5A2B !important; transform: translateX(-5px); }
.contact-link { transition: color 0.3s ease; opacity: 0.9; } .contact-link:hover { color: #8B5A2B !important; opacity: 1; }
.border-gold-20 { border-color: rgba(139, 90, 43, 0.2) !important; }
.footer-logo-img { max-height: 130px !important; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3)); }
.footer-contact .contact-list span { font-family: var(--font-heading) !important; font-size: 1.15rem !important; }

/* FAQ Styles */
.faq-container { display: flex; flex-direction: column; gap: 20px; }
.faq-item { background: #ffffff; border: 1px solid rgba(139, 90, 43, 0.2); border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03); overflow: hidden; transition: all 0.4s ease; }
.faq-item:hover { box-shadow: 0 10px 25px rgba(104, 1, 9, 0.08); border-color: #8B5A2B; transform: translateY(-2px); }
.faq-question { width: 100%; text-align: right; background: transparent; border: none; padding: 25px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background-color 0.3s ease; }
.faq-question:focus { outline: none; }
.question-text { padding-left: 20px; transition: color 0.3s ease; }
.faq-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; background-color: #f9f4d9; color: #8B5A2B; border-radius: 50%; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; }
.faq-answer-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); background-color: #fdfbf7; }
.faq-answer { padding: 0 30px 25px 30px; border-top: 1px solid transparent; }
.faq-item.active { border-color: #8B5A2B; }
.faq-item.active .faq-question { background-color: #fdfbf7; }
.faq-item.active .question-text { color: #8B5A2B; }
.faq-item.active .faq-icon { background-color: #680109; color: #f9f4d9; transform: rotate(135deg); }

/* =========================================
   12. PREMIUM INNER PAGE HERO
   ========================================= */
.hero-inner-page { min-height: 60vh; min-height: 55svh; padding-top: 120px; padding-bottom: 80px; position: relative; }
.hero-inner-page .hero-bg { transform: scale(1.05); background-position: center center; background-size: cover; }
.hero-premium-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(104, 1, 9, 0.3) 0%, rgba(26, 5, 5, 0.8) 100%), linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 40%, rgba(10,0,2,0.9) 100%); z-index: 1; }
.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.4rem); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); text-shadow: 0 10px 30px rgba(0,0,0,0.6); line-height: 1.2; }
.hero-description { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 700px; line-height: 2; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.hero-bottom-shape { position: absolute; bottom: -1px; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 3; }
.hero-bottom-shape svg { display: block; width: calc(100% + 1.3px); height: 50px; }
@media (max-width: 768px) { .hero-inner-page { min-height: 50vh; min-height: 45svh; padding-top: 100px; } .hero-bottom-shape svg { height: 25px; } }

/* =========================================
   13. PREMIUM BRANCH CARDS & WORKING HOURS
   ========================================= */
.section-locations-overlap { margin-top: -80px; z-index: 10; }

/* Bulletproof Branch Card */
.bakran-premium-card {
    background-color: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(139, 90, 43, 0.1) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.bakran-premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(104, 1, 9, 0.15) !important;
}
.card-image-box {
    height: 240px; background-size: cover; background-position: center; position: relative; border-bottom: 2px solid #8B5A2B;
}
.card-badge {
    position: absolute; bottom: -15px; right: 25px; background-color: #8B5A2B; color: #ffffff;
    padding: 4px 18px; border-radius: 30px; font-size: 1rem; border: 3px solid #ffffff; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.card-info-box {
    padding: 35px 25px 25px 25px !important; display: flex; flex-direction: column; flex-grow: 1; background-color: #ffffff !important;
}
.card-action-btn {
    display: block; width: 100%; background-color: #f9f4d9 !important; color: #680109 !important;
    padding: 12px 0 !important; border-radius: 8px !important; font-family: var(--font-heading) !important; font-size: 1.1rem !important; text-decoration: none !important; font-weight: bold; border: 1px solid rgba(139, 90, 43, 0.2) !important; transition: all 0.3s ease !important;
}
.card-action-btn:hover { background-color: #8B5A2B !important; color: #ffffff !important; border-color: #8B5A2B !important; }
.card-action-btn.disabled { background-color: #f5f5f5 !important; color: #999 !important; border-color: #eee !important; cursor: default; }

/* Working Hours Card */
.working-hours-card {
    background: #ffffff; border: 1px solid rgba(139, 90, 43, 0.15); border-radius: 16px; padding: 50px 30px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}
.icon-circle {
    width: 80px; height: 80px; border-radius: 50%; background: #fdfbf7; border: 1px dashed var(--color-gold); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
/* =========================================
   14. LUXURY MENU FILTER & CARDS
   ========================================= */

/* أزرار الفلترة (Tabs) */
.menu-filter-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.menu-filter-btn {
    background: transparent;
    border: 1px solid rgba(139, 90, 43, 0.3);
    color: #680109;
    padding: 8px 25px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-filter-btn:hover, .menu-filter-btn.active {
    background: #8B5A2B;
    color: #ffffff;
    border-color: #8B5A2B;
    box-shadow: 0 5px 15px rgba(139, 90, 43, 0.3);
}

/* بطاقة الطبق (Menu Card) */
.bakran-menu-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(139, 90, 43, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    gap: 20px;
}

.bakran-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(104, 1, 9, 0.08);
    border-color: rgba(139, 90, 43, 0.3);
}

.menu-card-img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* صورة دائرية للطبق */
    background-size: cover;
    background-position: center;
    border: 3px solid #f9f4d9;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.border-bottom-dashed {
    border-bottom: 1px dashed rgba(139, 90, 43, 0.3);
    padding-bottom: 8px;
}

.menu-price {
    font-size: 1.25rem;
}

.menu-price .currency {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    opacity: 0.8;
}

.menu-calories {
    font-size: 0.85rem;
    color: #888;
    background: #fdfbf7;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.menu-order-btn {
    background: #f9f4d9;
    color: #680109;
    padding: 5px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 90, 43, 0.2);
}

.menu-order-btn:hover {
    background: #25D366; /* لون الواتساب */
    color: #fff;
    border-color: #25D366;
}

/* شاشات الجوال */
@media (max-width: 576px) {
    .bakran-menu-card {
        flex-direction: column;
        text-align: center;
    }
    .menu-card-info { width: 100%; }
    .border-bottom-dashed { flex-direction: column; gap: 5px; }
}

