/* ============================================
   Fakhamatuk - PREMIUM CINEMATIC THEME
   Fire & Gold Luxury Design System
   ============================================ */

/* --- THEME VARIABLES (Dark Mode Default) --- */
:root {
    /* Core Colors */
    --bg-primary: #080808;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2d2d2d;
    --text-primary: #f0ece4;
    --text-secondary: rgba(240,236,228,0.8);
    --text-muted: rgba(240,236,228,0.55);
    
    /* RGB versions for alpha compositing */
    --bg-primary-rgb: 8,8,8;
    --text-primary-rgb: 240,236,228;
    --color-ember-rgb: 38,48,87;
    --color-gold-rgb: 28,83,89;
    
    /* Brand Colors (unchanged) */
    --color-ember: #263057;
    --color-ember-hover: #334074;
    --color-ember-dark: #1C2A45;
    --color-gold: #1C5359;
    --color-gold-light: #2A7A9A;
    --color-gold-dark: #153D4D;
    
    /* Borders & Dividers */
    --border-color: rgba(240,236,228,0.08);
    --border-color-strong: rgba(240,236,228,0.15);
    
    /* Glass Effects */
    --glass-bg: rgba(255,255,255,0.04);
    --glass-border: rgba(255,255,255,0.08);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(var(--color-ember-rgb),0.4);
    --shadow-gold: 0 0 20px rgba(var(--color-gold-rgb),0.3);
    
    /* Gradients */
    --gradient-ember: linear-gradient(135deg, var(--color-ember) 0%, var(--color-ember-hover) 100%);
    --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    --gradient-void: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-glass: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255,255,255,0.02) 100%);
    
    /* Spacing */
    --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
    --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px; --space-9: 128px;
    
    /* Typography */
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Tajawal', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4,0,0.2,1);
    --transition-bounce: 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
}

/* --- LIGHT MODE OVERRIDES --- */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #111111;
    --text-secondary: rgba(17,17,17,0.8);
    --text-muted: rgba(17,17,17,0.6);
    --border-color: rgba(0,0,0,0.08);
    --border-color-strong: rgba(0,0,0,0.15);
    --glass-bg: rgba(0,0,0,0.02);
    --glass-border: rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(var(--color-ember-rgb),0.15);
    --shadow-gold: 0 0 20px rgba(var(--color-gold-rgb),0.1);
    --bg-primary-rgb: 255,255,255;
    --text-primary-rgb: 17,17,17;
}

/* --- LIGHT MODE OVERRIDES --- */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #111111;
    --text-secondary: rgba(17,17,17,0.8);
    --text-muted: rgba(17,17,17,0.6);
    --border-color: rgba(0,0,0,0.08);
    --border-color-strong: rgba(0,0,0,0.15);
    --glass-bg: rgba(0,0,0,0.02);
    --glass-border: rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(38,48,87,0.15);
    --shadow-gold: 0 0 20px rgba(28,83,89,0.1);
}

/* --- Global Base with Smooth Theming --- */
html { 
    scroll-behavior: smooth;
    overflow-x: hidden;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-arabic);
    line-height: 1.75;
    overflow-x: hidden;
    max-width: 100vw;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Arabic vs English fonts auto-switch based on lang attribute */
html[lang="ar"] { font-family: var(--font-arabic); }
html[lang="en"] { font-family: var(--font-english); }

/* Latin display headings italic */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
    font-family: var(--font-display);
    font-style: italic;
}

/* Heading Scale */
h1 { font-size: 72px; }
h2 { font-size: 48px; }
h3 { font-size: 36px; }
h4 { font-size: 24px; }

@media (max-width: 768px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 28px; }
}

/* --- Typography Utility Classes --- */
.display-1 { font-size: 4rem; font-weight: 800; }
.display-2 { font-size: 3.5rem; font-weight: 800; }
.display-3 { font-size: 3rem; font-weight: 700; }
.display-4 { font-size: 2.5rem; font-weight: 700; }

.text-gradient {
    background: var(--gradient-ember);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gold { color: var(--color-gold) !important; }
.text-ember { color: var(--color-ember) !important; }
.text-muted { color: var(--color-text-muted) !important; }

/* --- Navigation Bar --- */
.navbar {
    background: transparent !important;
    padding: 1.5rem 2rem;
    transition: all var(--transition-smooth);
    border-bottom: 1px solid transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Make mobile collapsed menu visually consistent with other pages */
@media (max-width: 991px) {
    .navbar .navbar-collapse.show {
        background: var(--bg-secondary);
        padding: 1rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 8px 30px rgba(0,0,0,0.35);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
    }
    .navbar .navbar-collapse.show .nav-link,
    .navbar .navbar-collapse.show .nav-link:focus,
    .navbar .navbar-collapse.show .nav-link:hover,
    .navbar .navbar-collapse.show .nav-link.active {
        color: var(--text-secondary) !important;
        padding: 0.5rem 1rem;
    }
    .navbar .navbar-collapse.show .nav-item { margin-bottom: 0.25rem; }
}

.navbar.is-scrolled {
    background: var(--bg-secondary) !important;
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-color-strong);
    padding: 1rem 2rem;
}

/* Mobile: ensure expanded/collapsed menu on top of page is visible like scrolled state */
.navbar .navbar-collapse.show {
    background: var(--bg-secondary);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem;
    z-index: 1040;
    border-bottom: 1px solid var(--border-color);
}
.navbar .navbar-collapse.show .nav-link {
    color: var(--text-primary) !important;
}
.navbar .navbar-collapse .nav-link {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text-primary) !important;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--color-ember);
    text-shadow: 0 0 15px var(--shadow-glow);
    animation: flamePulse 2s ease-in-out infinite alternate;
}
@keyframes flamePulse {
    from { text-shadow: 0 0 10px var(--shadow-glow); }
    to   { text-shadow: 0 0 20px var(--shadow-glow), 0 0 30px var(--shadow-glow); }
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin: 0 0.75rem;
    transition: color var(--transition-fast);
    position: relative;
}
.nav-link:hover { color: var(--color-ember) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition-smooth);
}
.nav-link:hover::after { width: 100%; }

/* Navbar right alignment */
.navbar-nav.ms-auto { margin-left: auto; }
[dir="rtl"] .navbar-nav.ms-auto { margin-left: 0; margin-right: auto; }

/* Language dropdown */
.nav-item.dropdown .nav-link {
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-fast);
}
.nav-item.dropdown .nav-link:hover { background: var(--color-gold); color: var(--color-void) !important; }

/* Dropdown menu styling */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-2);
}
.dropdown-item {
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.dropdown-item:hover { background: var(--color-ember); color: #fff; }
.dropdown-item.active { background: var(--color-gold); color: var(--color-void); }

/* --- Page Headers (section headers for inner pages) --- */
.page-header {
    position: relative;
    padding: var(--space-8) 0;
    background: var(--gradient-void);
    border-bottom: 1px solid var(--color-coal-border);
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(255,85,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.page-header .lead {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin: 0;
}
@media (max-width: 768px) {
    .page-header h1 { font-size: 36px; }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100dvh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#heroVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(8,8,8,0.3) 0%,
        rgba(8,8,8,0.6) 50%,
        rgba(8,8,8,0.9) 100%
    );
    z-index: -1;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-4);
    max-width: 900px;
}
.hero-title {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(240,236,228,0.8);
    margin-bottom: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.125rem;
    font-weight: 700;
    font-family: var(--font-arabic);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-void);
    background: var(--gradient-ember);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255,85,0,0.4);
}
.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255,85,0,0.6);
    color: var(--color-void);
    text-decoration: none;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
}
@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translate(-50%,0); }
    40% { transform: translate(-50%,-10px); }
    60% { transform: translate(-50%,-5px); }
}

/* --- Common Section Styles --- */
.section-header { text-align: center; margin-bottom: var(--space-8); }
.section-title { font-weight: 800; margin-bottom: var(--space-3); display: inline-block; }
.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-ember);
    margin: 0 auto var(--space-4);
    border-radius: 2px;
}
.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Menu Section --- */
.menu-section {
    padding: var(--space-9) 0;
    background: var(--bg-secondary);
}
.menu-card {
    background: var(--gradient-glass);
    border: 1px solid var(--color-coal-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-smooth);
    height: 100%;
}
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255,85,0,0.15);
    border-color: rgba(201,146,42,0.3);
}
.menu-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.menu-card:hover .menu-card-image img { transform: scale(1.05); }
.menu-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-ember);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}
[dir="rtl"] .menu-card-badge { right: auto; left: 1rem; }
.menu-card-body { padding: var(--space-4); }
.menu-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}
.menu-card-description {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}
.menu-card-footer {
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--color-coal-border);
    background: rgba(0,0,0,0.2);
}
.menu-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin: 0;
}
.menu-price span {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.7;
    margin-inline-start: 0.25rem;
}
[dir="rtl"] .menu-price span { margin-inline-start: 0; margin-inline-end: 0.25rem; }

.add-to-cart-btn {
    background: var(--gradient-ember);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,85,0,0.4);
    background: linear-gradient(135deg, #ff6600, #ff4400);
}

/* --- Gallery Section --- */
.gallery-section {
    padding: var(--space-9) 0;
    background: var(--bg-primary);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
    color: var(--color-text-primary);
    font-weight: 600;
    margin: 0;
    transform: translateY(10px);
    transition: transform var(--transition-smooth);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* --- Menu image overlay (expand button like gallery) --- */
.menu-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,0.85) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
    pointer-events: none;
}
.menu-card-image:hover .menu-image-overlay,
.menu-card:hover .menu-image-overlay {
    opacity: 1;
    pointer-events: auto;
}
.menu-image-caption {
    color: var(--color-text-primary);
    font-weight: 600;
    margin: 0;
}

/* --- Full image box: show entire image inside a centered box (no cropping) --- */
.full-image-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-3) 0;
    background: transparent;
    overflow: hidden;
}
.full-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 65vh; /* limit height so it fits viewport */
    object-fit: contain;
    margin: 0 auto;
}
@media (max-width: 991px) {
    .full-image { max-height: 45vh; }
}

/* Ensure badge sits above the overlay */
.menu-card-badge { z-index: 2; }

/* Full width menu-card adjustments when category requires full-bleed images */
.menu-card-full {
    border-radius: 0 !important;
    /* keep image inside the card */
    overflow: hidden;
}
.menu-card-full .menu-card-image {
    border-radius: 0 !important;
    /* show image fully inside the card without overflow */
    height: auto;
    max-height: none;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}
.menu-card-full .menu-card-body,
.menu-card-full .menu-card-footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

/* --- Utility: Full-bleed (full viewport width) image wrapper --- */
.full-bleed-image {
    width: 100vw;
    /* center full-bleed using transform to avoid clipping in parents */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
}
.full-bleed-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.full-bleed-image {
    /* show image at natural size inside a full-bleed wrapper */
    height: auto;
    max-height: none;
}
.full-bleed-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* --- Utility: Fullscreen-cover image (cover entire viewport height) --- */
.fullscreen-cover-image {
    width: 100vw;
    height: 100vh;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}
.fullscreen-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
    .menu-card-full .menu-card-image,
    .full-bleed-image {
        height: auto;
        max-height: none;
    }
    .full-bleed-image img,
    .menu-card-full .menu-card-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* --- About Section --- */
.about-section {
    padding: var(--space-9) 0;
    background: var(--bg-secondary);
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}
@media (max-width: 991px) {
    .about-content { grid-template-columns: 1fr; gap: var(--space-5); }
}
.about-text .section-title { text-align: start; }
.about-text .section-divider { margin: var(--space-4) 0; }
.about-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding: var(--space-5);
    background: var(--gradient-glass);
    border: 1px solid var(--color-coal-border);
    border-radius: var(--radius-xl);
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-ember);
    line-height: 1;
    margin-bottom: var(--space-2);
}
.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-9) 0;
    background: var(--gradient-void);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,85,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--space-4);
}
@media (max-width: 768px) {
    .cta-content h2 { font-size: 32px; }
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--color-coal-border);
    padding: var(--space-8) 0 var(--space-4);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}
@media (max-width: 991px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-content { grid-template-columns: 1fr; }
}
.footer-brand-col .footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-3);
}
.footer-brand-col p { color: var(--color-text-muted); line-height: 1.7; }
.social-links { display: flex; gap: 1rem; }
.social-link {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-coal-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-coal-border);
}
.social-link:hover {
    background: var(--color-ember);
    color: #fff;
    transform: translateY(-2px);
}
.footer-section-title { font-weight: 700; margin-bottom: var(--space-3); color: var(--color-text-primary); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-ember); }
.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-coal-border);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* --- Contact Section --- */
.contact-section { padding: var(--space-9) 0; background: var(--color-coal); }
.contact-form {
    background: var(--gradient-glass);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-coal-border);
}
.contact-form .form-label {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}
.contact-form .form-control,
.contact-form .form-select {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--color-coal-border);
    color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background: rgba(0,0,0,0.5);
    border-color: var(--color-ember);
    color: var(--color-text-primary);
    box-shadow: 0 0 0 3px rgba(255,85,0,0.15);
}

.contact-info-card {
    background: var(--gradient-glass);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-coal-border);
}
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}
.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-ember);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-inline-end: var(--space-3);
}
[dir="ltr"] .info-icon { margin-right: var(--space-3); margin-left: 0; }
[dir="rtl"] .info-icon { margin-left: var(--space-3); margin-right: 0; }
.info-content h5 { font-weight: 700; margin-bottom: 0.25rem; color: var(--color-text-primary); }
.info-content p { color: var(--color-text-muted); margin: 0; line-height: 1.6; }

/* --- Buttons --- */
.btn-premium {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-family: var(--font-arabic);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-primary);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-md);
    background: transparent;
    transition: all var(--transition-smooth);
    text-decoration: none;
    cursor: pointer;
}
.btn-premium:hover {
    background: var(--color-gold);
    color: var(--color-void);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(201,146,42,0.3);
}

/* --- Loading Screen --- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-coal-border);
    border-top-color: var(--color-ember);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
    color: var(--color-gold);
    font-weight: 700;
    margin: 0;
}

/* --- Video Modal --- */
#videoModal .modal-content { background: transparent; border: none; }
#videoModal video {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
#videoModal .close-btn,
#lightboxModal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    z-index: 10;
}
#videoModal .close-btn:hover,
#lightboxModal .close-btn:hover {
    background: rgba(255,255,255,0.2);
}
[dir="rtl"] #videoModal .close-btn,
[dir="rtl"] #lightboxModal .close-btn {
    right: auto;
    left: 1rem;
}

/* --- Lightbox Modal --- */
#lightboxModal .modal-content {
    background: rgba(8,8,8,0.95) !important;
    border: 1px solid var(--color-coal-border);
    border-radius: var(--radius-xl);
}

/* --- Utility Classes --- */
.img-lazy {
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.img-lazy.loaded { opacity: 1; }

/* RTL margin helpers override */
[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
[dir="ltr"] .me-1 { margin-right: 0.25rem !important; margin-left: 0 !important; }
[dir="ltr"] .me-2 { margin-right: 0.5rem !important; margin-left: 0 !important; }
[dir="ltr"] .me-3 { margin-right: 1rem !important; margin-left: 0 !important; }

/* --- Responsive Typography --- */
@media (max-width: 768px) {
    .hero-title { font-size: 48px; }
    .hero-subtitle { font-size: 1.125rem; }
    .navbar-brand { font-size: 1.25rem; }
    .nav-link { margin: 0.25rem 0; font-size: 0.8rem; letter-spacing: 0.04em; }
    .about-stats { grid-template-columns: 1fr; gap: var(--space-3); }
    .stat-number { font-size: 2.5rem; }
}

/* --- Focus States --- */
:focus-visible {
    outline: 2px solid var(--color-ember);
    outline-offset: 2px;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-coal); }
::-webkit-scrollbar-thumb {
    background: var(--color-ember);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-ember-hover); }

/* --- Dropdowns (Bootstrap overrides) --- */
.dropdown-menu { min-width: 10rem; }

/* --- Page Header Backdrop --- */
.page-header {
    position: relative;
    isolation: isolate;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--color-void), transparent);
    pointer-events: none;
    z-index: 0;
}

/* --- Filter Buttons (Menu page) --- */
.btn-group .btn-outline-dark {
    border-color: var(--color-ember) !important;
    color: var(--color-ember) !important;
    background: transparent;
    transition: all var(--transition-fast);
}
.btn-group .btn-outline-dark:hover,
.btn-group .btn-outline-dark.active {
    background: var(--color-ember);
    color: #fff !important;
    border-color: var(--color-ember) !important;
}

/* --- Lazy Load Transition --- */
.img-lazy { opacity: 0; transition: opacity 0.6s ease-in-out; }
.img-lazy.loaded { opacity: 1; }

/* --- Video Showcase / Container --- */
.video-showcase-section,
.video-gallery-section {
    padding: var(--space-9) 0;
    background: linear-gradient(180deg, var(--color-void) 0%, var(--color-coal) 100%);
}
.video-thumbnail {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
}
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background: linear-gradient(to top, rgba(8,8,8,0.9), transparent);
    color: #fff;
}
.video-caption h4 { margin: 0; font-size: 1.125rem; }
.video-caption p { margin: 0; opacity: 0.8; font-size: 0.875rem; }

/* --- About Preview Image Placeholder --- */
.about-image .bg-gradient {
    background: var(--gradient-ember) !important;
    color: white;
    border-radius: var(--radius-xl);
}

/* --- Map Section --- */
.contact-section + section {
    padding: 0;
}
.ratio-16x9 {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* --- Alerts --- */
.alert {
    border-radius: var(--radius-md);
    border: none;
}

/* --- Footer contact info list spacing (if used) --- */
.contact-info-list .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3);
    color: var(--color-text-muted);
}
.contact-info-list .contact-item i {
    color: var(--color-gold);
    width: 24px;
    margin-inline-end: var(--space-2);
    margin-inline-start: 0;
}
[dir="ltr"] .contact-info-list .contact-item i { margin-right: var(--space-2); }

/* --- Ensure AOS styles don't conflict --- */
[data-aos] { pointer-events: auto; }

/* --- Disable outline on .navbar-toggler for aesthetic, keep accessibility --- */
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,85,0,0.4); }

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
[dir="rtl"] .whatsapp-float { left: 2rem; }
[dir="ltr"] .whatsapp-float { right: 2rem; }
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

/* --- Category Filter Buttons --- */
.category-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-ember);
    border-radius: var(--radius-lg);
    color: #ffc107;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: transparent;
    white-space: nowrap;
}
.category-filter-btn:hover,
.category-filter-btn.active {
    background: var(--gradient-ember);
    color: white;
    border-color: var(--color-ember);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 48, 87, 0.3);
}

/* --- Category Divider Header --- */
.category-divider-header {
    position: relative;
    padding-bottom: 0.5rem;
}
.category-divider-header .category-title {
    white-space: nowrap;
    flex-shrink: 0;
}
.category-section + .category-section {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-coal-border);
}

/* --- Menu Card Image Hover Enhancement --- */
.menu-card:hover .menu-card-image img {
    transform: scale(1.08);
}
.menu-card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.menu-card-image img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

