/* ========================================
   قصر السلطان - ملف الأنماط المخصص
   ======================================== */

/* الألوان الرئيسية */
:root {
    --primary-gold: #D4AF37;
    --secondary-gold: #C9A961;
    --dark-red: #8B0000;
    --light-red: #A52A2A;
    --cream: #FFF8DC;
    --beige: #F5F5DC;
    --dark-brown: #3E2723;
    --copper: #B87333;
    --light-bg: #FFFAF0;
}

/* الخطوط العربية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Tajawal:wght@400;500;700;900&display=swap');

body {
    font-family: 'Tajawal', 'Arial', sans-serif;
    color: var(--dark-brown);
    background-color: var(--light-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cairo', 'Arial', sans-serif;
    font-weight: 700;
}

/* الهيدر والنافبار */
.header .topbar {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--light-red) 100%);
    border-bottom: 3px solid var(--primary-gold);
}

.header .topbar a {
    color: #fff !important;
    transition: all 0.3s ease;
}

.header .topbar a:hover {
    color: var(--primary-gold) !important;
}

.navbar {
    background: #fff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--primary-gold);
}

.nav-link {
    color: var(--dark-brown) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-gold) !important;
}

.contact-number a {
    background: var(--primary-gold);
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-number a:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* الأزرار */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--secondary-gold) 0%, var(--primary-gold) 100%);
}

/* البطاقات والأقسام */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* الأيقونات الذهبية */
.text-primary,
.icon-primary {
    color: var(--primary-gold) !important;
}

.bg-primary {
    background: var(--primary-gold) !important;
}

.bg-primary-light {
    background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 100%);
}

/* الزخارف */
.decorative-border {
    border: 2px solid var(--primary-gold);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
}

.decorative-border::before,
.decorative-border::after {
    content: '❖';
    position: absolute;
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.decorative-border::before {
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
}

/* الخلفيات المتدرجة */
.gradient-overlay {
    background: linear-gradient(135deg,
            rgba(139, 0, 0, 0.8) 0%,
            rgba(212, 175, 55, 0.6) 100%);
}

/* قسم Hero */
.hero-section {
    min-height: 70vh;
    background: linear-gradient(rgba(139, 0, 0, 0.7), rgba(62, 39, 35, 0.8)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* تأثيرات خاصة */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--dark-red) 100%);
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer a {
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

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

/* ========================================
   تحسينات الاستجابة (Responsive)
   ======================================== */

/* شاشات كبيرة جداً (Large Desktops) */
@media (min-width: 1400px) {

    .container,
    .container-fluid {
        max-width: 1320px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 5rem;
    }
}

/* شاشات كبيرة (Desktops) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 2.8rem !important;
    }

    .display-3 {
        font-size: 3.5rem !important;
    }
}

/* شاشات متوسطة (Tablets Landscape) */
@media (max-width: 991px) {
    .hero-section {
        min-height: 60vh;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .display-4 {
        font-size: 2.5rem !important;
    }

    .display-3 {
        font-size: 3rem !important;
    }

    .py-6 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .navbar-brand img {
        height: 80px !important;
    }

    /* تحسين البطاقات على التابلت */
    .card {
        margin-bottom: 1.5rem;
    }

    .feature-box {
        padding: 1.5rem !important;
    }
}

/* شاشات صغيرة (Tablets Portrait) */
@media (max-width: 767px) {

    /* Hero Section */
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* العناوين */
    .display-4 {
        font-size: 2rem !important;
    }

    .display-3 {
        font-size: 2.3rem !important;
    }

    .display-2 {
        font-size: 2.5rem !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    /* النصوص */
    .fs-3 {
        font-size: 1.1rem !important;
    }

    .fs-4 {
        font-size: 1rem !important;
    }

    .fs-5 {
        font-size: 0.95rem !important;
    }

    .lead {
        font-size: 1.15rem !important;
    }

    /* المسافات */
    .py-6 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .mt-5 {
        margin-top: 2rem !important;
    }

    /* الهيدر والنافبار */
    .header .topbar {
        font-size: 0.9rem;
    }

    .navbar-brand img {
        height: 70px !important;
    }

    .nav-link {
        font-size: 1rem !important;
        padding: 0.6rem 1rem !important;
    }

    .contact-number a {
        padding: 0.5rem 1.2rem;
        font-size: 0.95rem;
    }

    /* الأزرار */
    .btn {
        font-size: 0.95rem !important;
        padding: 0.6rem 1.5rem !important;
    }

    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.8rem !important;
    }

    /* البطاقات */
    .card {
        margin-bottom: 1.5rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .feature-box {
        padding: 1.25rem !important;
        margin-bottom: 1rem;
    }

    /* الأيقونات */
    .fa-3x {
        font-size: 2.5rem !important;
    }

    .fa-4x {
        font-size: 3rem !important;
    }

    /* الزخارف */
    .decorative-border {
        padding: 1.5rem !important;
    }

    .decorative-border::before {
        font-size: 1.2rem;
    }

    /* الصور */
    .about-image img {
        margin-bottom: 2rem;
    }

    /* تحسين عرض الأقسام */
    section {
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* شاشات صغيرة جداً (Phones) */
@media (max-width: 575px) {

    /* Hero Section */
    .hero-section {
        min-height: 45vh;
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem !important;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* العناوين */
    .display-4 {
        font-size: 1.75rem !important;
    }

    .display-3 {
        font-size: 2rem !important;
    }

    .display-2 {
        font-size: 2.2rem !important;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    h4 {
        font-size: 1.15rem !important;
    }

    /* النصوص */
    body {
        font-size: 0.95rem;
    }

    .fs-3 {
        font-size: 1rem !important;
    }

    .fs-4 {
        font-size: 0.95rem !important;
    }

    .fs-5 {
        font-size: 0.9rem !important;
    }

    .lead {
        font-size: 1.05rem !important;
    }

    /* المسافات */
    .py-6 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .p-5 {
        padding: 1.5rem !important;
    }

    .p-4 {
        padding: 1rem !important;
    }

    /* الهيدر */
    .header .topbar {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .header .topbar .d-md-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-brand img {
        height: 60px !important;
    }

    .nav-link {
        font-size: 0.95rem !important;
        padding: 0.5rem 0.8rem !important;
    }

    .contact-number {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0 !important;
        margin-top: 0.5rem;
    }

    .contact-number a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        display: inline-block;
    }

    /* الأزرار */
    .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1.2rem !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .btn-lg {
        font-size: 0.95rem !important;
        padding: 0.65rem 1.5rem !important;
    }

    /* تحسين عرض الأزرار في Hero */
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.8rem;
    }

    .hero-section .me-3 {
        margin-right: 0 !important;
    }

    /* البطاقات */
    .card {
        margin-bottom: 1.25rem;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    .feature-box {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }

    .feature-box i {
        font-size: 2rem !important;
    }

    /* الأيقونات */
    .fa-3x {
        font-size: 2rem !important;
    }

    .fa-4x {
        font-size: 2.5rem !important;
    }

    /* الزخارف */
    .decorative-border {
        padding: 1.25rem !important;
    }

    .decorative-border::before,
    .decorative-border::after {
        font-size: 1rem;
    }

    /* الحاويات */
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* الصفوف والأعمدة */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col,
    [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* تحسين الفجوات */
    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }

    /* تحسين عرض النصوص */
    .text-center {
        text-align: center !important;
    }

    .w-75 {
        width: 95% !important;
    }

    /* إخفاء العناصر غير الضرورية */
    .d-none.d-sm-flex {
        display: none !important;
    }

    /* تحسين الـ CTA Section */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.8rem !important;
    }

    /* تحسين Section Title */
    .section-title::after {
        width: 80px;
    }
}

/* شاشات صغيرة للغاية (Extra Small) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .display-4 {
        font-size: 1.6rem !important;
    }

    .display-3 {
        font-size: 1.8rem !important;
    }

    body {
        font-size: 0.9rem;
    }

    .navbar-brand img {
        height: 55px !important;
    }

    .btn {
        font-size: 0.85rem !important;
        padding: 0.45rem 1rem !important;
    }

    .py-6 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* تحسينات عامة للأجهزة المحمولة */
@media (max-width: 767px) {

    /* تحسين النصوص الطويلة */
    p {
        text-align: justify;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* تحسين الصور */
    img {
        max-width: 100%;
        height: auto;
    }

    /* تحسين الجداول */
    table {
        font-size: 0.9rem;
    }

    /* إزالة التأثيرات الثقيلة على الموبايل */
    .shine-effect::before {
        display: none;
    }

    /* تحسين الأداء */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* تحسين اللمس */
    a,
    button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* تحسينات خاصة للـ iPhone X وما بعده */
@supports (padding: max(0px)) {
    @media (max-width: 767px) {
        body {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
    }
}


/* ========================================
   Dishes Gallery Styles
   ======================================== */

/* Dish Cards */
.dish-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    background: #fff;
    height: 350px;
}

.dish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

/* Dish Image Wrapper */
.dish-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Dish Images */
.dish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dish-card:hover .dish-image {
    transform: scale(1.1);
}

/* Dish Overlay */
.dish-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top,
            rgba(139, 0, 0, 0.95) 0%,
            rgba(139, 0, 0, 0.85) 50%,
            transparent 100%);
    padding: 1.5rem;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.dish-card:hover .dish-overlay {
    background: linear-gradient(to top,
            rgba(139, 0, 0, 0.98) 0%,
            rgba(139, 0, 0, 0.9) 70%,
            rgba(139, 0, 0, 0.7) 100%);
}

/* Dish Name */
.dish-name {
    color: var(--primary-gold);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.dish-card:hover .dish-name {
    transform: translateY(-5px);
    color: #fff;
}

/* Responsive Adjustments */

/* Tablets */
@media (max-width: 991px) {
    .dish-card {
        height: 300px;
    }

    .dish-name {
        font-size: 1.25rem;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .dish-card {
        height: 280px;
        margin-bottom: 1.5rem;
    }

    .dish-name {
        font-size: 1.15rem;
    }

    .dish-overlay {
        padding: 1.25rem;
    }

    /* Disable hover effects on mobile */
    .dish-card:hover .dish-image {
        transform: scale(1.05);
    }

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

/* Small Mobile */
@media (max-width: 575px) {
    .dish-card {
        height: 260px;
        margin-bottom: 1.25rem;
    }

    .dish-name {
        font-size: 1.05rem;
        padding: 0 0.5rem;
    }

    .dish-overlay {
        padding: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .dish-card {
        height: 240px;
    }

    .dish-name {
        font-size: 1rem;
    }
}