:root {
    /* Branding Colors */
    --primary-color: #ca0005;
    /* Red */
    --secondary-color: #f48b20;
    /* Orange */
    --bg-dark: #2a0001;
    --bg-light: #6d0003;

    /* Button Styles */
    --btn-neutral: #ffffff;
    --btn-text: #1a1a1a;
    --radius-pill: 9999px;

    /* Spacing & Sizes */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --container-width: 540px;
    --border-black: 4px solid #ffffff;

    /* Typography System */
    --font-en: 'Poppins', sans-serif;
    --font-ar: 'Roboto Arabic', sans-serif;
    --font-brand: 'Playfair Display', serif;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 3rem;
    color: #ffffff;
    text-align: center;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.3),
        4px 4px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        text-shadow:
            1px 1px 0 rgba(0, 0, 0, 0.3),
            3px 3px 6px rgba(0, 0, 0, 0.5);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-en);
    background-color: #ca0005;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: var(--spacing-md);
    line-height: normal;
    overflow-x: hidden;
}

/* Mobile Background */
@media (max-width: 768px) {
    body {
        background-color: #ca0005;
    }
}

/* Language-specific Typography */
:lang(en) {
    font-family: var(--font-en);
    font-weight: bold;
    letter-spacing: normal;
}

:lang(ar) {
    font-family: var(--font-ar);
}

.container {
    width: 100%;
    max-width: var(--container-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0;
}

/* Header Section */
header {
    margin-bottom: var(--spacing-lg);
    width: 100%;
}

.logo-main-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px auto;
    background: #ffffff;
    border-radius: 50%;
    border: var(--border-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.logo-main-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1.brand-title {
    font-family: var(--font-brand);
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.09em;
}

/* Playful Typography Treatment */
.playful-text {
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    perspective: 1000px;
}

.playful-text p,
.playful-text h4 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.playful-text span {
    display: inline-block;
}

/* Individual letter character */
.playful-text span:nth-child(1) {
    transform: rotate(-8deg);
}

.playful-text span:nth-child(2) {
    transform: rotate(5deg) translateY(-2px);
}

.playful-text span:nth-child(3) {
    width: 0.2em;
}

/* Space */
.playful-text span:nth-child(4) {
    transform: rotate(-5deg) translateY(2px);
}

.playful-text span:nth-child(5) {
    transform: rotate(8deg);
}

.playful-text span:nth-child(6) {
    transform: rotate(-3deg) translateY(-3px);
}

.playful-text span:nth-child(7) {
    transform: rotate(6deg);
}

.playful-text span:nth-child(8) {
    transform: rotate(-4deg);
}

.tagline {
    font-size: x-large;
    color: rgb(255, 255, 255);
    font-weight: bolder;
    margin-bottom: inherit;
    letter-spacing: 0.1em;
    font-family: inherit;
    align-items: center;

}

/* Social Icons */
.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: var(--spacing-lg);
}

.social-icons-row svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
}

/* Buttons List */
.links-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: var(--spacing-lg);
    font-weight: bold;
}

.nav-button {
    display: flex;
    align-items: center;
    background: var(--btn-neutral);
    color: var(--btn-text);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    height: 68px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Entrance & Scroll Animations Removed */
.reveal {
    opacity: 1;
    transform: none;
}

/* Specialized Reveal for Menu Images Removed */
.menu-item-img.reveal {
    opacity: 1;
    transform: none;
}

.btn-logo-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: var(--border-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.btn-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-label {
    flex-grow: 1;
    font-weight: 500;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: .2em;
    margin-right: 48px;
    font-family: var(--font-en);
}

/* WhatsApp Bottom Button */
.whatsapp-btn {
    background: var(--secondary-color);
    color: #ffffff;
    width: 100%;
    height: 56px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: .2em;
    gap: 12px;
    margin-top: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.whatsapp-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Bottom Branding */
.footer-branding {
    margin-top: 50px;
    padding-bottom: 20px;
}

.footer-text {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 5px;
    opacity: 1;
    line-height: 1.5em;
}

.footer-text.playful-text span {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 400px) {
    .brand-title {
        font-size: 1.5rem;
    }

    .btn-label {
        font-size: 0.95rem;
    }

    .footer-text {
        font-size: 2rem;
    }
}

/* --- Menu Page Specific Styles --- */

.menu-page {
    padding: 0;
}

.menu-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.menu-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ca0005;
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px;
    direction: ltr;
    /* Added to make Back button start from left */
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.menu-title {
    font-family: var(--font-brand);
    flex-grow: 1;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 60px;
    /* Offset for the back button to center title */
}

.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.menu-item-img {
    width: 100%;
    margin-bottom: 10px;
}

.menu-item-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.menu-footer {
    padding: 20px 0;
    text-align: center;
}

/* --- Overlay Styles --- */

.restaurant-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
    /* High z-index to be above everything */
    padding: var(--spacing-md);
}

.restaurant-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    background-color: #ca0005;
    /* Consistent with brand background */
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 24px;
    width: 100%;
    max-width: 360px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.restaurant-overlay.active .overlay-content {
    transform: translateY(0);
}

.close-overlay-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay-header {
    margin-bottom: var(--spacing-lg);
}

.overlay-header h2 {
    font-family: var(--font-brand);
    color: white;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.overlay-header p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-en);
}

.overlay-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Smaller version of main buttons */
.overlay-choice-btn {
    display: flex;
    align-items: center;
    background: var(--btn-neutral);
    color: var(--btn-text);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    height: 60px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.overlay-choice-btn:active {
    transform: scale(0.97);
}

.overlay-choice-btn .btn-logo-circle {
    width: 42px;
    height: 42px;
    border-width: 2px;
    /* Smaller border for smaller button */
}

.overlay-choice-btn .btn-label {
    font-size: 1.05rem;
    margin-right: 42px;
    /* Balanced centering */
    letter-spacing: 0.1em;
}

/* Special styling for WhatsApp-themed overlay buttons if needed */
.overlay-choice-btn.whatsapp-theme {
    background: var(--secondary-color);
    color: white;
}

.overlay-choice-btn.whatsapp-theme .btn-logo-circle {
    background: white;
}

/* Adjustments for mobile */
@media (max-width: 400px) {
    .overlay-content {
        padding: var(--spacing-md);
    }

    .overlay-choice-btn {
        height: 54px;
    }

    .overlay-choice-btn .btn-label {
        font-size: 0.95rem;
    }
}