/* ======== إعدادات عامة ======== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');

:root {
    --dark-blue: #0a2e5d;
    --bright-yellow: #ffc107;
    --white: #ffffff;
    --dark-gray: #333333;
    --light-gray-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
    overflow: hidden;
}

/* ======== الهيدر ======== */
.main-header {
    background-color: var(--dark-blue);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, background-color 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(10, 46, 93, 0.9);
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    transition: font-size 0.3s ease;
}

.main-header.scrolled .logo {
    font-size: 24px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-right: 30px;
}

.main-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: var(--bright-yellow);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* ======== الأزرار ======== */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--bright-yellow);
    color: var(--dark-blue);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* ======== عنوان القسم (مشترك) ======== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--bright-yellow);
    border-radius: 2px;
}


/* ======== كروت القائمة (مشتركة) ======== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.menu-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.menu-card-content {
    padding: 25px;
}
.menu-card-content h3 {
    margin-bottom: 10px;
}
.menu-card-content .price {
    font-size: 20px;
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 20px;
}


/* ======== الفوتر ======== */
.main-footer {
    background-color: var(--dark-blue);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--bright-yellow);
}

.footer-column p {
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}
.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s, transform 0.3s;
}
.footer-column ul li a:hover {
    color: var(--bright-yellow);
    transform: translateX(-5px);
}

.social-links a {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.3s;
}
.social-links a:hover {
    background-color: var(--bright-yellow);
    color: var(--dark-blue);
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* ======== تأثيرات الظهور ======== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}