@font-face {
    font-family: 'Abel';
    /* Preferred: WOFF2 (smallest), then WOFF, then TTF fallback. Removed local() to avoid using a different system-installed Abel which can render differently. */
    src: url('fonts/abel-v18-latin-regular.woff2') format('woff2'),
         url('fonts/abel-v18-latin-regular.woff') format('woff'),
         url('fonts/abel-v18-latin-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap; /* show fallback text until font loads */
}

/* Tajawal (Arabic) - self-hosted TTF files provided by the user. Prefer WOFF2/WOFF if available. */
@font-face {
    font-family: 'Tajawal';
    /* Prefer WOFF2, then WOFF, then TTF fallback. Using v12 filenames provided by the user. */
    src: url('fonts/tajawal-v12-latin-regular.woff2') format('woff2'),
         url('fonts/tajawal-v12-latin-regular.woff') format('woff'),
         url('fonts/tajawal-v12-latin-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    /* 700 weight: using files you provided (v12 naming) */
    src: url('fonts/tajawal-v12-latin-700.woff2') format('woff2'),
         url('fonts/tajawal-v12-latin-700.woff') format('woff'),
         url('fonts/tajawal-v12-latin-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --border-color: #dddddd;
    --font-heading: 'Abel', sans-serif;
    --font-body: 'Abel', sans-serif;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}



.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: #cccccc;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-left: 10px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    padding: 0;
}

.mobile-menu-btn .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

.mobile-menu-btn .bar:nth-child(1) { top: 0; }
.mobile-menu-btn .bar:nth-child(2) { top: 10px; }
.mobile-menu-btn .bar:nth-child(3) { top: 20px; }

.mobile-menu-btn.active .bar:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('images/gallery-item1-1600.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--secondary-color);
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-body);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 50px;
}

.btn .icon {
    filter: none;
}

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

.btn-outline .icon {
    filter: none;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-outline:hover .icon {
    filter: none;
}

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

.btn-solid .icon {
    filter: invert(1) brightness(2);
}

.btn-solid:hover {
    background: transparent;
    color: var(--primary-color);
}

.btn-solid:hover .icon {
    filter: none;
}

/* Local SVG icon helper to mimic Font Awesome sizing/align */
.icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

/* Ensure SVG/PNG social icons are visible on dark header/background */
.header .social-icons img.icon,
.header .mobile-social-icons img.icon {
    filter: invert(1) brightness(2);
}



/* Intro Section */
.intro-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--light-bg);
}

.intro-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

/* Menu Section */
.menu-section {
    padding: 5rem 0;
}

.sticky-menu-nav {
    position: sticky;
    top: 90px;
    background-color: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 15px 0;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.sticky-menu-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sticky-menu-nav a {
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    color: #555;
    letter-spacing: 1px;
}

.sticky-menu-nav a:hover {
    color: var(--primary-color);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.menu-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-actions .btn + .btn {
    margin-left: 0 !important;
}

.menu-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid transparent; /* Replaced default border with hover effect */
}

.menu-item:hover {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

.menu-item-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 0.5rem;
}

.menu-item-header::after {
    content: "";
    grid-column: 2;
    border-bottom: 2px dotted #ccc;
    position: relative;
    top: -6px;
    opacity: 0.6;
}

.menu-item h3 {
    grid-column: 1;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.menu-item .price {
    grid-column: 3;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.menu-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-col p, .footer-col a {
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .menu-actions {
        flex-direction: column;
        width: 100%;
    }

    .menu-actions .btn {
        width: min(100%, 320px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* MOBILE FIXES & ENHANCEMENTS */
@media (max-width: 768px) {
    .nav-right {
        display: none !important;
    }
    .mobile-menu-btn, .logo {
        position: relative;
        z-index: 1001;
    }
    .main-nav {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-color);
        padding-top: 100px;
        padding-bottom: 20px;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
    }
    .main-nav.mobile-active {
        opacity: 1;
        visibility: visible;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin-bottom: 20px;
    }
    .main-nav a {
        font-size: 1.6rem;
    }
    .mobile-social-icons {
        display: flex !important;
        gap: 20px;
        margin-top: auto;
    }
    .mobile-social-icons a {
        font-size: 2rem;
        color: var(--secondary-color);
    }
}
.mobile-social-icons {
    display: none;
}

/* Catering Features List */
.catering-features-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    max-width: 900px;
}

.catering-features-list li {
    width: calc(33.333% - 20px);
    text-align: left;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .catering-features-list li {
        width: 100%;
        justify-content: center;
    }
}

/* Gallery Carousel Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.gallery-carousel {
    position: relative;
    max-width: 1000px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    margin: 0;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 3;
    pointer-events: none; /* Let clicks pass through empty space */
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: background 0.3s ease, transform 0.3s ease;
    pointer-events: auto; /* Re-enable clicks on buttons */
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gallery-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .hero {
        background-image: url('images/gallery-item1-1000.webp');
    }

    .gallery-carousel {
        height: 350px;
        border-radius: 0; /* Full width on mobile */
    }
}

/* Home Contact Section */
.home-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 850px) {
    .home-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Our Story Page Styles */
.story-hero {
    text-align: center;
    padding: 120px 0 60px 0;
    background-color: var(--light-bg);
}

.arabic-quote {
    font-size: 3rem;
    margin: 2rem 0;
    color: var(--primary-color);
    /* Prefer self-hosted Tajawal, fall back to common Arabic/system fonts */
    font-family: 'Tajawal', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
    line-height: 1.2;
}

.story-section {
    padding: 80px 0;
}

.story-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.story-flex.reverse {
    flex-direction: row-reverse;
}

.story-content {
    flex: 1.2;
}

.story-visual {
    flex: 1;
}

.story-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.story-visual img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 20px 20px 0 rgba(0,0,0,0.03);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.story-grid img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

@media (max-width: 992px) {
    .story-flex, .story-flex.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 60px;
    }
    .arabic-quote {
        font-size: 2rem;
    }
}
