/* ===== CSS Variables ===== */
:root {
    --primary-blue: #0077be;
    --primary-dark: #005a8e;
    --black: #1a1a1a;
    --white: #ffffff;
    --cream: #f5f0e6;
    --wood-light: #e8dcc8;
    --wood-medium: #d4c4a8;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --font-script: 'Dancing Script', cursive;
    --font-arabic: 'Noto Sans Arabic', sans-serif;
}

/* ===== RTL Support ===== */
html[dir="rtl"] {
    font-family: var(--font-arabic), var(--font-body);
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .nav-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .section-header,
html[dir="rtl"] .footer-content {
    text-align: center;
}

html[dir="rtl"] .about-content {
    flex-direction: row-reverse;
}

html[dir="rtl"] .about-text {
    text-align: right;
}

html[dir="rtl"] .about-text .section-header {
    text-align: right;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .contact-content {
    direction: rtl;
}

html[dir="rtl"] .menu-item-overlay {
    text-align: right;
    align-items: flex-end;
}

html[dir="rtl"] .special-offer {
    text-align: center;
}

html[dir="rtl"] .delivery-badge {
    text-align: center;
}

/* RTL Mobile Fixes */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-container {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .nav-center {
        flex-direction: column;
    }

    html[dir="rtl"] .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    html[dir="rtl"] .about-content {
        flex-direction: column;
    }

    html[dir="rtl"] .about-text {
        text-align: center;
    }

    html[dir="rtl"] .about-text .section-header {
        text-align: center;
    }

    html[dir="rtl"] .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    html[dir="rtl"] .feature {
        text-align: center;
    }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--cream);
    /* Wood texture pattern */
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 119, 101, 0.03) 2px,
            rgba(139, 119, 101, 0.03) 4px
        ),
        linear-gradient(
            to bottom,
            #f5f0e6 0%,
            #efe8d8 50%,
            #f5f0e6 100%
        );
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Nav Center Container ===== */
.nav-center {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

html[dir="rtl"] .nav-center {
    flex-direction: row-reverse;
}

/* ===== Language Selector ===== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 3px;
    background: var(--cream);
    padding: 4px;
    border-radius: 25px;
    border: 1px solid var(--wood-medium);
}

.lang-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: var(--primary-blue);
}

.lang-btn {
    padding: 8px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    border-radius: 20px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--primary-blue);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: var(--white);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(135deg, rgba(245, 240, 230, 0.9) 0%, rgba(232, 220, 200, 0.9) 100%),
        url('../images/menu-cover.jpeg') center/cover no-repeat;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 119, 101, 0.05) 2px,
            rgba(139, 119, 101, 0.05) 4px
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.hero-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-hover);
    border: 4px solid var(--white);
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-tagline {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--black);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
}

.section-header h2::before {
    right: calc(100% + 20px);
}

.section-header h2::after {
    left: calc(100% + 20px);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== Menu Section ===== */
.menu-section {
    padding: 40px 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 119, 101, 0.02) 2px,
            rgba(139, 119, 101, 0.02) 4px
        ),
        linear-gradient(to bottom, var(--cream), var(--wood-light));
}

.container-full {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.menu-tab {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.menu-tab:hover {
    color: var(--primary-blue);
}

.menu-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* Full Menu Display */
.menu-full-display {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--cream);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.menu-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.menu-image-item {
    flex: 1;
    max-width: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.menu-image-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.menu-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.menu-image-item.hidden {
    display: none;
}

/* Responsive Menu */
@media (max-width: 1200px) {
    .menu-row {
        flex-wrap: wrap;
    }

    .menu-image-item {
        max-width: 100%;
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .menu-image-item {
        flex: 1 1 100%;
    }

    .menu-tabs {
        border-radius: 15px;
        padding: 15px;
    }

    .menu-tab {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ===== About Section ===== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-description {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
}

.feature-icon {
    margin-bottom: 15px;
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--black);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 100px 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--black);
}

.contact-text p {
    color: var(--text-light);
}

.contact-text a:hover {
    color: var(--primary-blue);
}

.contact-map {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
}

.contact-badges {
    display: flex;
    gap: 20px;
}

.qr-code-box {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

.qr-code-box p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.delivery-badge {
    background: linear-gradient(135deg, var(--cream), var(--wood-light));
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.delivery-badge h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--black);
    margin: 15px 0 10px;
}

.delivery-badge p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.google-review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 20px;
}

.google-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.google-review-btn svg {
    fill: #FBBC05;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
}

.footer-logo p {
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.footer-tagline {
    font-family: var(--font-script);
    font-size: 1.3rem;
    margin: 20px 0;
    color: var(--cream);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 20px;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--primary-blue);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-blue);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .about-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-center {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-200%);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-center.active {
        transform: translateY(0);
    }

    .language-selector {
        padding: 15px;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--wood-medium);
        background: var(--cream);
        justify-content: center;
        width: 100%;
    }

    .lang-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .nav-menu {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        width: 100%;
        align-items: center;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding-top: 70px;
    }

    .hero-logo-img {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header h2::before,
    .section-header h2::after {
        display: none;
    }

    .menu-gallery {
        grid-template-columns: 1fr;
    }

    .menu-item img {
        height: 300px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .menu-tabs {
        gap: 8px;
        padding: 10px;
    }

    .menu-tab {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .contact-badges {
        flex-direction: column;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* ===== Animation Initial States ===== */
.menu-image-item,
.gallery-item,
.feature,
.contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-image-item.visible,
.gallery-item.visible,
.feature.visible,
.contact-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fallback for no-JS */
.no-js .menu-image-item,
.no-js .gallery-item,
.no-js .feature,
.no-js .contact-item {
    opacity: 1;
    transform: none;
}

/* ===== Floating WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    flex-shrink: 0;
}

.whatsapp-text {
    font-size: 0.95rem;
}

html[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 25px;
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }

    .whatsapp-float svg {
        width: 24px;
        height: 24px;
    }

    .whatsapp-text {
        font-size: 0.85rem;
    }

    html[dir="rtl"] .whatsapp-float {
        left: 20px;
        right: auto;
    }
}
