/* ========================================
   ملك الطابون والمعجنات - CSS محسّن
   SEO & Mobile Optimized - Core Web Vitals
   ======================================== */

/* CSS Variables - الألوان الأصلية محفوظة */
:root {
    --red-primary: #C8102E;
    --red-light: #E63946;
    --red-dark: #9B0D23;
    --red-glow: rgba(200, 16, 46, 0.4);
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #E8E8E8;
    --gray-dark: #333333;
    --text-dark: #1A1A1A;
    --shadow-red: 0 0 40px rgba(200, 16, 46, 0.2);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    
    /* Touch Target Minimum Size */
    --touch-target-min: 48px;
    
    /* Safe Area Insets for notched phones */
    --safe-area-inset-top: env(safe-area-inset-top, 0px);
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset & Base - تحسين الأداء */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html { 
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--red-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 10px 10px;
    z-index: 9999;
    text-decoration: none;
    font-weight: 700;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Visually Hidden - للقراء الشاشات */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Container */
.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 max(1.5rem, env(safe-area-inset-left));
    position: relative; 
    z-index: 10;
}

/* ========================================
   Header - محسّن للهواتف
   ======================================== */
.header {
    position: fixed;
    top: 0; 
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    padding-top: calc(0.8rem + var(--safe-area-inset-top));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    will-change: transform, box-shadow;
}

.header.scrolled {
    background: var(--white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    padding-top: calc(0.5rem + var(--safe-area-inset-top));
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-light));
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section { 
    display: flex; 
    align-items: center; 
    gap: 0.8rem;
    text-decoration: none;
    min-height: var(--touch-target-min);
}

.logo-img {
    width: 55px; 
    height: 55px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    border: 2px solid var(--red-primary);
    aspect-ratio: 1/1;
}

@media (hover: hover) {
    .logo-img:hover { 
        transform: scale(1.08) rotate(3deg);
    }
}

.logo-text h1 {
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 800;
    color: var(--red-primary);
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--gray-dark);
    display: block;
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    min-height: var(--touch-target-min);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0; 
    right: 0;
    width: 0; 
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
    .nav-links a:hover { 
        color: var(--red-primary);
    }
    
    .nav-links a:hover::before { 
        width: 100%;
    }
}

.nav-links a:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.mobile-menu {
    display: none;
    font-size: 1.6rem;
    color: var(--red-primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    justify-content: center;
    align-items: center;
}

.mobile-menu:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ========================================
   Hero Section - محسّن للهواتف
   ======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding-top: calc(80px + var(--safe-area-inset-top));
    padding-bottom: var(--safe-area-inset-bottom);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: linear-gradient(135deg, var(--red-primary), var(--red-light));
    border-radius: 0 0 50% 50%;
    transform: rotate(-15deg);
    opacity: 0.08;
}

.hero-content {
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.hero-logo-container {
    position: relative;
    margin: 0 auto 2.5rem;
    width: 180px; 
    height: 180px;
    contain: layout style;
}

.hero-logo-ring {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; 
    height: 200px;
    border: 2px solid var(--red-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: ringPulse 3s ease-in-out infinite;
    will-change: transform, opacity;
}

.hero-logo-ring:nth-child(2) { 
    width: 230px; 
    height: 230px; 
    animation-delay: 0.5s; 
    opacity: 0.2;
}

.hero-logo-ring:nth-child(3) { 
    width: 260px; 
    height: 260px; 
    animation-delay: 1s; 
    opacity: 0.1;
}

@keyframes ringPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1); 
        opacity: 0.1;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero-logo-ring,
    .hero-logo {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.hero-logo {
    width: 180px; 
    height: 180px;
    background: white;
    border-radius: 50%;
    padding: 12px;
    box-shadow: var(--shadow-red);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
    border: 4px solid var(--red-primary);
    will-change: transform;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-logo img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain;
    aspect-ratio: 1/1;
}

.hero-main-title {
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--red-primary);
    text-shadow: 0 4px 20px rgba(200, 16, 46, 0.2);
    line-height: 1.2;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 4vw, 1.6rem);
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    letter-spacing: clamp(3px, 2vw, 8px);
    font-weight: 300;
}

.hero .since {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    border: 2px solid var(--red-primary);
    border-radius: 50px;
    color: var(--red-primary);
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    background: var(--white);
    font-weight: 600;
}

.hero-tagline {
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-family: 'Amiri', serif;
    line-height: 1.8;
    padding: 0 1rem;
}

.hero-tagline span { 
    color: var(--red-primary); 
    font-weight: 700;
}

.hero-buttons { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap;
    padding: 0 1rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--red-primary);
    color: white;
    padding: 1.1rem 2rem;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(200, 16, 46, 0.3);
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    min-height: var(--touch-target-min);
    touch-action: manipulation;
}

@media (hover: hover) {
    .btn-primary:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 20px 60px rgba(200, 16, 46, 0.4);
        background: var(--red-dark);
    }
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-primary:focus-visible {
    outline: 3px solid var(--red-light);
    outline-offset: 3px;
}

.btn-primary i { 
    font-size: 1.3rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--white);
    color: var(--red-primary);
    padding: 1.1rem 2rem;
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid var(--red-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    min-height: var(--touch-target-min);
    touch-action: manipulation;
}

@media (hover: hover) {
    .btn-secondary:hover {
        background: var(--red-primary);
        color: white;
        transform: translateY(-3px);
    }
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-secondary:focus-visible {
    outline: 3px solid var(--red-primary);
    outline-offset: 3px;
}

/* ========================================
   Section Title
   ======================================== */
.section-title { 
    text-align: center; 
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.section-title h2 {
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 700;
    color: var(--red-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.section-title p { 
    color: var(--gray-dark); 
    font-size: clamp(1rem, 3vw, 1.2rem);
}

/* ========================================
   Food Section - تحسين CLS
   ======================================== */
.food-section {
    padding: 4rem 1.5rem;
    position: relative;
    background: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.food-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-medium);
    contain: layout style;
}

.food-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(200, 16, 46, 0.85) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

@media (hover: hover) {
    .food-card:hover::before { 
        opacity: 1;
    }
    
    .food-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 30px 60px rgba(200, 16, 46, 0.2);
    }
    
    .food-card:hover img { 
        transform: scale(1.12);
    }
    
    .food-card:hover .food-info { 
        transform: translateY(0); 
        opacity: 1;
    }
}

/* Touch devices - show info by default */
@media (hover: none) {
    .food-card::before {
        opacity: 1;
    }
    
    .food-card .food-info {
        transform: translateY(0);
        opacity: 1;
    }
}

.food-card img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    aspect-ratio: 4/3;
}

.food-badge {
    position: absolute;
    top: 12px; 
    right: 12px;
    background: var(--red-primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.food-info {
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.food-info h3 {
    color: white;
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 0.3rem;
}

.food-info p { 
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ========================================
   Services Section
   ======================================== */
.services-section { 
    padding: 4rem 1.5rem;
    position: relative; 
    background: var(--gray-light);
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

@media (hover: hover) {
    .service-card:hover {
        transform: translateY(-8px);
        border-color: var(--red-primary);
        box-shadow: 0 20px 50px rgba(200, 16, 46, 0.15);
    }
    
    .service-card:hover .service-icon { 
        background: var(--red-primary);
        color: white;
        border-color: var(--red-primary);
        transform: scale(1.1);
    }
}

.service-icon {
    width: 75px; 
    height: 75px;
    margin: 0 auto 1.2rem;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gray-dark);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-medium);
}

.service-card h3 {
    color: var(--red-primary);
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 0.8rem;
    font-family: 'Noto Kufi Arabic', serif;
}

.service-card p { 
    color: var(--gray-dark); 
    line-height: 1.7; 
    font-size: 0.95rem;
}

.delivery-phone {
    color: var(--red-primary);
    font-weight: 700;
    text-decoration: none;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.delivery-phone:hover {
    text-decoration: underline;
}

/* ========================================
   Hours Banner
   ======================================== */
.hours-banner {
    background: var(--red-primary);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hours-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.hours-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    color: white;
}

.hours-item i { 
    font-size: 2rem; 
    opacity: 0.9;
}

.hours-item span { 
    font-size: clamp(1.1rem, 3vw, 1.3rem); 
    font-weight: 600;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-section {
    padding: 4rem 1.5rem;
    background: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.gallery-item img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    aspect-ratio: 3/2;
}

@media (hover: hover) {
    .gallery-item:hover img { 
        transform: scale(1.1);
    }
}

.gallery-overlay {
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(200, 16, 46, 0.9));
}

.gallery-overlay h4 {
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: white;
    margin: 0;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h3 {
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--red-primary);
    margin-bottom: 0.5rem;
}

.founder-name {
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.about-content p {
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 1.2rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    list-style: none;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--white);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-medium);
}

.about-feature i {
    color: var(--red-primary);
    font-size: 1.4rem;
}

.about-feature span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.founder-bio {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    border-right: 4px solid var(--red-primary);
    box-shadow: var(--shadow-soft);
}

.founder-bio h4 {
    color: var(--red-primary);
    margin-bottom: 0.8rem;
    font-family: 'Noto Kufi Arabic', serif;
    font-size: 1.2rem;
}

.founder-bio p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.about-image-main {
    width: 100%;
    aspect-ratio: 5/4;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-red);
    border: 4px solid var(--red-primary);
}

.about-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/4;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 4rem 1.5rem;
    background: var(--gray-light);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    font-style: normal;
}

.contact-info h3 {
    color: var(--red-primary);
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red-primary);
    font-size: 1.3rem;
    border: 2px solid var(--gray-medium);
}

.contact-text h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-text p,
.contact-text a {
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 1rem;
}

.contact-text a {
    min-height: var(--touch-target-min);
    display: inline-flex;
    align-items: center;
}

.contact-text a:hover {
    color: var(--red-primary);
}

.contact-text a:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-dark);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-medium);
}

@media (hover: hover) {
    .social-link:hover {
        background: var(--red-primary);
        color: white;
        border-color: var(--red-primary);
        transform: translateY(-3px);
    }
}

.social-link:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16/10;
    min-height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Rating Section
   ======================================== */
.rating-section {
    background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    padding: 3rem 1.5rem;
    text-align: center;
}

.rating-content h3 {
    color: white;
    font-family: 'Noto Kufi Arabic', serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.rating-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
}

.rating-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: var(--red-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: var(--touch-target-min);
    margin-bottom: 1.5rem;
}

@media (hover: hover) {
    .rating-whatsapp:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
}

.rating-whatsapp:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.rating-stars i {
    color: #FFD700;
    font-size: 1.8rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    padding: 3rem 1.5rem;
    padding-bottom: calc(3rem + var(--safe-area-inset-bottom));
    text-align: center;
    color: white;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--red-primary);
    aspect-ratio: 1/1;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-english {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

/* ========================================
   Chatbot
   ======================================== */
.chatbot-trigger {
    position: fixed;
    bottom: 25px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--red-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(200, 16, 46, 0.4);
    transition: all 0.3s ease;
    border: none;
}

@media (hover: hover) {
    .chatbot-trigger:hover {
        transform: scale(1.1);
        background: var(--red-dark);
    }
}

.chatbot-trigger:active {
    transform: scale(0.95);
}

.chatbot-trigger:focus-visible {
    outline: 3px solid var(--red-light);
    outline-offset: 3px;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: calc(100vw - 40px);
    max-width: 380px;
    height: 500px;
    max-height: calc(100vh - 150px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: var(--red-primary);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    flex-shrink: 0;
}

.chatbot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-title h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.chatbot-title span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--gray-light);
    -webkit-overflow-scrolling: touch;
}

.message {
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.bot {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.message.user {
    background: var(--red-primary);
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 6px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 1rem;
    align-self: flex-start;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--red-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.4;
    }
    50% { 
        transform: translateY(-8px); 
        opacity: 1;
    }
}

.chatbot-input {
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid var(--gray-medium);
    display: flex;
    gap: 0.8rem;
}

.chatbot-input input {
    flex: 1;
    background: var(--gray-light);
    border: 1px solid var(--gray-medium);
    border-radius: 25px;
    padding: 0.9rem 1.2rem;
    color: var(--text-dark);
    font-size: 16px; /* Prevents zoom on iOS */
    font-family: 'Tajawal', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    min-height: var(--touch-target-min);
}

.chatbot-input input::placeholder { 
    color: var(--gray-dark);
}

.chatbot-input input:focus { 
    border-color: var(--red-primary); 
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.1);
}

.chatbot-input button {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--red-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (hover: hover) {
    .chatbot-input button:hover { 
        transform: scale(1.1); 
        background: var(--red-dark);
    }
}

.chatbot-input button:active {
    transform: scale(0.95);
}

.chatbot-input button:disabled { 
    opacity: 0.5; 
    cursor: not-allowed;
}

.chatbot-input button:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
}

/* ========================================
   WhatsApp Float
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    z-index: 998;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .whatsapp-float:hover { 
        transform: scale(1.1);
    }
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float:focus-visible {
    outline: 3px solid #25D366;
    outline-offset: 3px;
}

/* ========================================
   Responsive - نقاط التوقف المحسّنة
   ======================================== */
@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .hero-content {
        padding: 3rem;
    }
    
    .about-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .food-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .food-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hours-content {
        gap: 6rem;
        flex-wrap: nowrap;
    }
    
    .chatbot-container {
        width: 400px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: calc(75px + var(--safe-area-inset-top));
        right: -100%;
        width: 100%;
        height: calc(100vh - 75px - var(--safe-area-inset-top));
        height: calc(100dvh - 75px - var(--safe-area-inset-top));
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.active { 
        right: 0;
    }
    
    .nav-links li { 
        width: 100%; 
        text-align: center;
    }
    
    .nav-links a { 
        display: flex;
        justify-content: center;
        padding: 1.5rem;
        border-bottom: 1px solid var(--gray-medium);
        min-height: 60px;
    }
    
    .mobile-menu { 
        display: flex;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        aspect-ratio: 16/10;
    }
    
    .about-image-main {
        aspect-ratio: 4/3;
    }
    
    .map-container {
        min-height: 350px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .logo-img {
        width: 48px;
        height: 48px;
    }
    
    .logo-text h1 {
        font-size: 1.1rem;
    }
    
    .logo-text span {
        font-size: 0.65rem;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .hero-logo-container {
        width: 140px;
        height: 140px;
    }
    
    .hero-logo {
        width: 140px;
        height: 140px;
    }
    
    .hero-logo-ring {
        width: 160px;
        height: 160px;
    }
    
    .hero-logo-ring:nth-child(2) {
        width: 190px;
        height: 190px;
    }
    
    .hero-logo-ring:nth-child(3) {
        width: 220px;
        height: 220px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
    }
    
    .contact-info {
        padding: 2rem 1rem;
    }
    
    .chatbot-trigger {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 15px;
    }
    
    .chatbot-trigger i {
        font-size: 1.6rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 15px;
        font-size: 1.6rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .food-grid,
    .services-grid {
        gap: 1.2rem;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .rating-whatsapp {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .hero .since {
        padding: 0.8rem 1.5rem;
        gap: 0.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        gap: 0.6rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.1rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .header,
    .chatbot-trigger,
    .chatbot-container,
    .whatsapp-float,
    .hero-logo-ring,
    .mobile-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .hero {
        min-height: auto;
        padding-top: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    .food-card::before,
    .gallery-overlay {
        display: none;
    }
}