/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    --primary-color: #5D4037;
    --secondary-color: #8D6E63;
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-color: #3E2723;
    --text-light: #795548;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Header / Hero Section */
.hero-container {
    position: relative;
    width: 100%;
    height: 80vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #FFFFFF;
}

.hero-swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.swiper-slide {
    position: relative;
    /* Create stacking context */
}

.hero-swiper .swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
    /* Above image, below content */
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    /* Increased shadow opacity for clarity */
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 1;
    /* Removed transparency for better visibility */
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    /* Added shadow to subtitle */
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(216, 67, 21, 0.1);
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: transparent;
    color: var(--white);
}

/* Products Section */
.products-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: table;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #D84315, transparent);
    margin: 15px auto 0;
    border-radius: 3px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 450px;
    max-height: 550px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.product-calories {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-btn {
    margin-top: auto;
    text-align: center;
    padding: 0.8rem;
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Locations Section */
.locations-section {
    background-color: var(--white);
    padding: 5rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

.locations-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.locations-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.location-item {
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.location-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 3rem;
    background-color: #25D366;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

/* زر عرض جميع الفروع */
.all-branches-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.3);
    text-decoration: none;
}

.all-branches-btn:hover {
    background: linear-gradient(135deg, #D84315 0%, #BF360C 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(216, 67, 21, 0.4);
}

.all-branches-btn i {
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 2rem 2rem;
    font-size: 0.9rem;
}

.social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(216, 67, 21, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: 70vh;
    }

    .hero-container {
        height: 60vh;
        /* Slightly smaller on mobile for better fit */
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        color: #FFFFFF;
        /* Force white on mobile too */
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        color: #FFFFFF;
        opacity: 0.95;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding: 0.3rem 0.5rem;
    }

    .section-title::after {
        width: 60px;
        height: 4px;
        margin-top: 10px;
    }

    .products-section {
        padding: 3rem 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-image {
        height: 350px;
    }

    .product-name {
        font-size: 1.3rem;
    }

    .product-desc {
        font-size: 0.95rem;
    }

    .marquee-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .marquee-item {
        width: 220px;
        height: 220px;
    }

    .locations-section {
        padding: 3rem 1.5rem;
    }

    .locations-list {
        gap: 1rem;
    }

    .location-item {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .whatsapp-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .social-media {
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    footer {
        padding: 2rem 1.5rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .marquee-title {
        font-size: 1.5rem;
    }

    .marquee-item {
        width: 180px;
        height: 180px;
    }

    .product-image {
        height: 300px;
    }
}

/* Product Swiper Section */
.marquee-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
    overflow: hidden;
    position: relative;
}



.product-swiper {
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.product-slide {
    width: 280px;
    height: 280px;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 4px solid var(--white);
    cursor: pointer;
}

.product-slide:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.product-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-slide:hover img {
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomInLightbox 0.3s ease;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}



.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@keyframes zoomInLightbox {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        position: fixed;
        background: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ============================================
   Testimonials Section - آراء العملاء - RTL Optimized
   ============================================ */
.testimonials-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(141, 110, 99, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(216, 67, 21, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonials-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Swiper Container - RTL Optimized */
.testimonials-swiper {
    padding: 3rem 0 5rem;
    overflow: visible;
}

.testimonials-swiper .swiper-wrapper {
    align-items: center;
}

.testimonials-swiper .swiper-slide {
    width: 380px;
    height: auto;
}

.testimonial-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Added shadow for depth */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    height: 100%;
}

.swiper-slide-active .testimonial-card {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    /* Stronger shadow for active card */
}

.testimonial-image {
    width: 100%;
    height: auto;
    /* Allow height to adjust to content */
    max-height: 600px;
    /* Prevent it from getting too tall */
    object-fit: contain;
    /* Ensure full image is visible */
    display: block;
    transition: transform 0.4s ease;
    border-radius: 20px;
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.03);
}

/* Swiper Navigation - RTL */
.testimonials-swiper .swiper-button-next,
.testimonials-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-button-next::after,
.testimonials-swiper .swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.testimonials-swiper .swiper-button-next:hover,
.testimonials-swiper .swiper-button-prev:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.testimonials-swiper .swiper-button-next:hover::after,
.testimonials-swiper .swiper-button-prev:hover::after {
    color: var(--white);
}

/* Swiper Pagination */
.testimonials-swiper .swiper-pagination {
    bottom: 10px;
}

.testimonials-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent-color);
    width: 28px;
    border-radius: 5px;
}

/* Responsive Testimonials */
@media (max-width: 1024px) {
    .testimonials-swiper .swiper-slide {
        width: 360px;
    }

    .testimonial-image {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 4rem 1rem;
    }

    .testimonials-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .testimonials-swiper {
        padding: 2rem 0 4rem;
    }

    .testimonials-swiper .swiper-slide {
        width: 320px;
    }

    .testimonial-image {
        height: 450px;
    }

    .testimonials-swiper .swiper-button-next,
    .testimonials-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .testimonials-swiper .swiper-button-next::after,
    .testimonials-swiper .swiper-button-prev::after {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-swiper .swiper-slide {
        width: 300px;
    }

    .testimonial-image {
        height: 420px;
    }
}

/* ============================================
   Floating WhatsApp Button - زر واتساب ثابت
   ============================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp i {
    font-size: 2rem;
    color: var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1), 0 0 0 20px rgba(37, 211, 102, 0.05);
    }

    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive للزر الثابت */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }

    .floating-whatsapp i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .marquee-title {
        font-size: 1.5rem;
    }

    .marquee-item {
        width: 180px;
        height: 180px;
    }

    .product-image {
        height: 300px;
    }
}