/* Base Variables & Reset based on Tuf Logo Branding */
:root {
    --primary-pink: #dd4b92;
    --primary-green: #bde08f;
    --dark-wood: #4a2f26;
    --light-bg: #fffcf8;
    --card-bg: #ffffff;
    --text-main: #4e342e;
    --text-muted: #795548;
    
    --font-sans: 'Cairo', sans-serif;
    --font-heading: 'Tajawal', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light-green {
    background-color: rgba(189, 224, 143, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--dark-wood);
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--primary-pink);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-sans);
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-pink);
    color: #fff;
    box-shadow: 0 4px 15px rgba(221, 75, 146, 0.3);
}

.btn-primary:hover {
    background-color: #c43c7d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(221, 75, 146, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-pink);
    color: var(--primary-pink);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-pink);
    color: #fff;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.95rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(255, 252, 248, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
}

.brand-logo {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links a {
    color: var(--dark-wood);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-pink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
}

/* Hero Section (Split Layout) */
.hero-split {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: radial-gradient(circle at top right, rgba(189, 224, 143, 0.2) 0%, transparent 60%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    padding-right: 20px;
}

.badge {
    display: inline-block;
    background: rgba(221, 75, 146, 0.1);
    color: var(--primary-pink);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text .title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-wood);
    margin-bottom: 25px;
}

.hero-text .description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-composition {
    position: relative;
    height: 500px;
}

.img-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 1;
}

.img-front {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 65%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    z-index: 2;
    border: 8px solid var(--light-bg);
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Highlight */
.highlight-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.highlight-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.highlight-content h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
}

.highlight-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
}

.feature-bullets {
    list-style: none;
}

.feature-bullets li {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-bullets i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

/* Menu Gallery (Masonry style) */
.menu-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 20px;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 10;
    pointer-events: none;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(221, 75, 146, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9;
    pointer-events: none;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

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

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.info-card {
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #4a2f26; /* Dark background so contain images look good */
}

.card-img-wrapper::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 10;
    pointer-events: none;
}

.card-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(221, 75, 146, 0.4);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9;
    pointer-events: none;
}

.info-card:hover .card-img-wrapper::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.info-card:hover .card-img-wrapper::before {
    opacity: 1;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* This helps show the top of the menu/text instead of the middle */
    transition: transform 0.5s ease;
}

.info-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    text-align: center;
}

.card-content h3 {
    font-family: var(--font-heading);
    color: var(--primary-pink);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--dark-wood);
    padding: 60px 0 30px;
    text-align: center;
    color: #fff;
}

.brand-logo-footer {
    height: 90px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-pink);
    transform: translateY(-5px);
}

.copyright {
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .highlight-container {
        grid-template-columns: 1fr;
    }
    
    .hero-split {
        padding-top: 200px;
        align-items: flex-start;
    }

    .hero-container {
        margin-top: 20px;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-top: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-composition {
        margin-top: 50px;
    }
    
    .nav-container {
        flex-wrap: wrap;
        padding: 5px 0;
        gap: 0;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-actions {
        order: 2;
        margin-right: auto; /* Ensures button stays on the far left */
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 5px;
        margin-top: 15px;
        gap: 15px;
    }
    
    .nav-links::-webkit-scrollbar {
        height: 0px;
        background: transparent;
    }
    
    .nav-links a {
        font-size: 1rem;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .hero-text .title {
        font-size: 2.5rem;
    }
    
    .brand-logo {
        height: 50px;
    }
    
    .navbar.scrolled .brand-logo {
        height: 45px;
    }
    
    .btn-sm-mobile {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
    
    .btn-sm-mobile {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hide-mobile {
        display: none;
    }
    
    .hero-text .title {
        font-size: 2.3rem;
    }
    
    .hero-text .description {
        font-size: 1.1rem;
    }
    
    .hero-image-composition {
        height: 350px; /* Make image container smaller on mobile */
    }
    
    .img-back {
        width: 85%;
    }
    
    .img-front {
        width: 75%;
        border-width: 4px;
    }
}

@media (max-width: 768px) {
    .hero-text .title {
        font-size: 3rem;
    }
}

/* Lightbox Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.modal-close:hover {
    color: var(--primary-pink);
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* 🛒 Cart & Product Cards Styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.2rem;
    color: var(--dark-wood);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-weight: bold;
    color: var(--primary-pink);
    font-size: 1.2rem;
}

.add-btn {
    background: var(--primary-green);
    color: var(--dark-wood);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.add-btn:hover {
    background: #a2c875;
}

.floating-cart {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-pink);
    color: #fff;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(221, 75, 146, 0.4);
    z-index: 1001;
    transition: transform 0.3s;
}

.floating-cart:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-green);
    color: var(--dark-wood);
    font-size: 0.9rem;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px; /* Hidden off-screen left because RTL */
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: left 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    left: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-info .price {
    color: var(--primary-pink);
    font-weight: bold;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #eee;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

/* PWA Install Prompt */
#pwa-install-prompt {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-250%);
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    z-index: 9999;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(221, 75, 146, 0.25);
}

#pwa-install-prompt.pwa-prompt-visible {
    transform: translateX(-50%) translateY(0);
}

.pwa-prompt-hidden {
    pointer-events: none;
}

.pwa-prompt-content {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    position: relative;
}

.pwa-close-btn {
    position: absolute;
    top: 5px;
    left: 10px; /* RTL */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.pwa-close-btn:hover {
    color: var(--primary-pink);
}

.pwa-icon img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pwa-text {
    text-align: right;
}

.pwa-text h3 {
    font-size: 1.05rem;
    color: var(--dark-wood);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.pwa-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.pwa-text strong {
    color: var(--primary-pink);
}

.pwa-arrow-down {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(255, 255, 255, 0.95);
}

.pwa-install-action {
    width: 100%;
    margin-top: 12px;
    padding: 12px 20px !important;
    font-size: 1.05rem !important;
    border-radius: 14px !important;
    animation: pulseBtn 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 4px 15px rgba(221, 75, 146, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(221, 75, 146, 0.6); }
}
