/* تنسيق styles.css */
/* إعداد الخط والأبعاد العامة */
body {
    font-family: 'Changa', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
    text-align: right;
    direction: rtl;
}

h1, h2, h3 {
    color: #a00000; /* لون أحمر غامق للعناوين */
}

a {
    text-decoration: none;
    color: inherit;
}

/* 🖼️ رأس الصفحة (Header) */
.main-header {
    background-color: #a00000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.main-header h1 {
    color: white;
    font-size: 2.5em;
    margin: 0;
    padding: 10px 0;
}

/* Hero */
.hero { display:flex; flex-wrap:wrap; align-items:center; padding:40px 0; background:#e3f2fd; }
.hero-text { flex:1; }
.hero-text h1 { font-size:30px; margin-bottom:12px; }
.hero-text p { margin-bottom:18px; font-size:16px; }
.hero-image { flex:1; text-align:center; order:2; }
.hero-image img { max-width:60%; border-radius:10px; display:block; margin:0 auto; }
.btn.outline { display:inline-block; padding:12px 24px; border:2px solid #d6ddd7; color:#ddece7;background-color:#0dffae ; border-radius:5px; font-weight:bold; transition:background-color 0.3s, color 0.3s; }

/* 🏠 قسم المحتوى الرئيسي (General Content) */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    border-bottom: 3px solid #ffcc00; /* خط ذهبي تحت العنوان */
    padding-bottom: 10px;
}

/* 🍕 تنسيق القوائم والجداول */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
}

.menu-table th, .menu-table td {
    padding: 15px;
    border: 1px solid #ddd;
}

.menu-table th {
    background-color: #ffcc00;
    color: #333;
    font-weight: bold;
}

.menu-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.menu-table td:first-child {
    text-align: right;
    font-weight: bold;
    color: #555;
}

/* --- تنسيق نموذج الطلب (Form) --- */
.simple-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.simple-form fieldset {
    border: 1px solid #ffcc00;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.simple-form legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #a00000;
    padding: 0 10px;
}

.simple-form label {
    display: block;
    margin-bottom: 8px;
    margin-top: 15px;
    font-weight: bold;
    color: #555;
}

.simple-form input[type="text"],
.simple-form input[type="tel"],
.simple-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* للتأكد من أن البادنج لا يزيد العرض */
    font-size: 16px;
    font-family: inherit;
    direction: rtl;
    text-align: right;
}

.simple-form textarea {
    resize: vertical; /* يسمح بتغيير ارتفاع مربع النص فقط */
}

.form-note {
    font-size: 0.9em;
    color: #a00000;
    margin-top: -10px;
    margin-bottom: 20px;
}

.submit-button, .reset-button {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.submit-button {
    background-color: #4CAF50; /* أخضر للإرسال */
    color: white;
}

.submit-button:hover {
    background-color: #45a049;
}

.reset-button {
    background-color: #f44336; /* أحمر للمسح */
    color: white;
    margin-right: 15px;
}

.reset-button:hover {
    background-color: #d32f2f;
}

/* 📞 زر الاتصال العائم (Fixed Contact Button) */
.fixed-contact-button {
    position: fixed;
    left: 20px; 
    bottom: 20px;
    width: 60px;
    height: 60px;
    background-color: #4CAF50; /* لون أخضر للاتصال */
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 1.8em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s;
}

.fixed-contact-button:hover {
    background-color: #45a049;
}

/* 📞 مربع الاتصال المنبثق (Popup) */
.contact-popup {
    position: fixed;
    left: 90px;
    bottom: 10px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 250px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.contact-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.contact-popup h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.contact-link {
    display: block;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-weight: bold;
    text-align: right;
    transition: background-color 0.2s;
}

.call-link {
    background-color: #007bff; /* أزرق للمكالمة */
    color: white;
}

.whatsapp-link {
    background-color: #25D366; /* أخضر واتساب */
    color: white;
}

.contact-link i {
    margin-left: 10px;
}

/* 🏠 تنسيق الصفحة الرئيسية فقط */
.hero-home {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('chef-main-image.jpg') no-repeat center center/cover;
    color: white;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-home img {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    border: 5px solid white;
    margin-bottom: 15px;
}

.hero-home h1 {
    color: white;
    font-size: 3.5em;
    margin: 10px 0;
}

/* شبكة التصنيفات في الرئيسية */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.category-card h3 {
    margin: 15px 10px;
    color: #a00000;
}

/* Floating Call Button */
.floating-call-btn {
  position:fixed;
  bottom:25px;
  right:25px;
  width:60px;
  height:60px;
  background:#08c456;
  color:#fff;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:28px;
  text-decoration:none;
  box-shadow:0 4px 15px rgba(0,0,0,0.2);
  z-index:999;
  transition: transform 0.2s, background 0.2s;
}
.floating-call-btn:hover { background:#084dbf; transform:scale(1.1); }

/* Contact */
.contact { padding:50px 0; }
.contact-card { background:#fff; padding:20px; border-radius:10px; box-shadow:0 2px 10px rgba(0,0,0,0.1); text-align:center; }
.contact-card h3 { margin-top:0; color:#047935; }


/* 🦶 قسم الفوتر (Footer) */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px; /* زيادة التباعد العلوي والسفلي */
    margin-top: 30px;
}

.footer-content p {
    margin: 5px 0;
    font-size: 1em;
}

/* تنسيق أيقونات التواصل الاجتماعي */
.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: white; /* لون الأيقونة أبيض */
    font-size: 2em; /* حجم الأيقونة */
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffcc00; /* تغيير لون الأيقونة عند المرور بالماوس */
}
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}