/* Modern Egyptian Restaurant - Mobile First Responsive Design */

/* CSS Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Color Palette - Matching Reference Image */
    --primary-dark: #2F5F3F;
    --secondary-dark: #1E4A2E;
    --accent-gold: #DAA520;
    --accent-orange: #B8860B;
    --accent-green: #90EE90;
    --text-white: #ffffff;
    --text-light: #F5F5DC;
    --text-gray: #DEB887;
    --pure-black: #0F2A1A;
    --overlay-dark: rgba(47, 95, 63, 0.9);
    --overlay-light: rgba(47, 95, 63, 0.7);
    
    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    --font-arabic: 'Cairo', 'Amiri', 'Times New Roman', serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    
    /* Mobile First Spacing */
    --section-padding-mobile: 40px 0;
    --section-padding-tablet: 60px 0;
    --section-padding-desktop: 80px 0;
    --container-padding-mobile: 0 16px;
    --container-padding-tablet: 0 24px;
    --container-padding-desktop: 0 32px;
    --border-radius: 8px;
    --header-height-mobile: 60px;
    --header-height-desktop: 80px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-strong: 0 8px 40px rgba(0,0,0,0.5);
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Mobile First Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, 
        var(--secondary-dark) 0%, 
        var(--primary-dark) 50%, 
        var(--pure-black) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

/* Container - Mobile First */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--container-padding-mobile);
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    padding: 12px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    color: var(--accent-gold);
    background: var(--overlay-light);
}

/* Header Styles - Mobile First */
.header {
    background: var(--overlay-dark);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height-mobile);
    box-shadow: 0 4px 20px rgba(15, 42, 26, 0.4);
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent-gold);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height-mobile);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.logo-text {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
}

/* Navigation - Mobile First (Hidden by default) */
.nav-menu {
    display: none;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: var(--border-radius);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    background: var(--overlay-light);
}

/* Hero Section - Mobile First */
.hero {
    min-height: 100vh;
    background: linear-gradient(
        rgba(47, 95, 63, 0.1),
        rgba(15, 42, 26, 0.5)
    ), url('../images/banner5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding-mobile);
    text-align: center;
    border-bottom: 3px solid var(--accent-gold);
    color: var(--text-white);
    position: relative;
    margin-top: var(--header-height-mobile);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    padding: var(--container-padding-mobile);
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-family: var(--font-arabic);
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(100, 86, 86, 0.8);
    color: var(--text-white);
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.3rem);
    margin-bottom: 32px;
    opacity: 0.9;
    color: #fffefd;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* Buttons - Mobile First */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--accent-gold), var(--accent-orange));
    color: var(--pure-black);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    min-height: 48px;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-gold));
    color: var(--text-white);
    border: 2px solid transparent;
}

.btn-primary.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.5);
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-gold));
    border-color: var(--accent-orange);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 120px;
}

/* Sections - Mobile First */
.about {
    padding: var(--section-padding-mobile);
    background: var(--secondary-dark);
    text-align: center;
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-arabic);
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1rem;
    color: var(--accent-gold);
    font-family: var(--font-arabic);
    text-align: center;
    position: relative;
    text-shadow: 2px 2px 4px rgba(15, 42, 26, 0.8);
    border: 2px solid var(--accent-gold);
    padding: 15px 25px;
    border-radius: 10px;
    background: rgba(47, 95, 63, 0.3);
    backdrop-filter: blur(5px);
    display: inline-block;
}

.section-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: var(--text-gray);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

/* Menu Preview Section - Mobile First */
.menu-preview {
    padding: var(--section-padding-mobile);
    background: var(--secondary-dark);
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-gold);
    position: relative;
}

/* Features Grid - Mobile First */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--secondary-dark);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
    border-color: var(--accent-orange);
    background: linear-gradient(135deg, var(--secondary-dark), rgba(47, 95, 63, 0.8));
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary-dark);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent-gold);
    transform: scale(1.05);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-gold);
    transition: fill 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    fill: var(--primary-dark);
}

.feature-title {
    font-family: var(--font-arabic);
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    color: var(--text-white);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Menu Grid - Mobile First */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.menu-card {
    background: #ecdfce; /* Beige background like reference */
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.2);
    border: 2px solid var(--accent-gold);
    position: relative;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(249, 216, 5, 0.4);
    border-color: var(--accent-orange);
    background: #EAD5BB; /* Slightly darker beige on hover */
}

.menu-card:hover .menu-card-title {
    color: var(--secondary-dark); /* Dark green color on hover for better contrast */
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.menu-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.menu-card-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.3;
}

.menu-card-content {
    padding: 20px;
}

.menu-card-title {
    font-family: var(--font-arabic);
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    color: var(--accent-gold); /* Golden color for product names */
    font-weight: 700; /* Bold font */
    margin-bottom: 8px;
}

.menu-card-description {
    color: #2b6235; /* Darker green-gray for beige background */
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.menu-card-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-dark); /* Dark color for beige background */
}

/* Footer - Mobile First */
.footer {
    background: linear-gradient(135deg, var(--pure-black), var(--secondary-dark));
    color: var(--text-light);
    padding: var(--section-padding-mobile);
    border-top: 3px solid var(--accent-gold);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-section h3 {
    font-family: var(--font-arabic);
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    margin-bottom: 16px;
    color: var(--accent-gold);
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-section p,
.footer-section li {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-contact-list li,
.footer-hours-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-contact-list i,
.footer-hours-list i {
    color: var(--accent-gold);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 24px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
input:focus,
button:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Mobile Menu States */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-white);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Selection Styling */
::selection {
    background: var(--accent-gold);
    color: var(--primary-dark);
}
