/*
  القالب العام لموقع وكالة القرار الأمثل
  الألوان والخطوط متناسقة مع الهوية البصرية للوكالة.
*/

:root {
  --primary-color: #4F46E5; /* أزرق بنفسجي أنيق */
  --secondary-color: #9333EA; /* بنفسجي مائل للوردي */
  --accent-color: #F5F3FF; /* خلفية فاتحة للغاية */
  --text-color: #333333;
  --light-text: #666666;
  font-family: 'Cairo', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: var(--accent-color);
  color: var(--text-color);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

/* شريط التنقل العلوي */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .nav-links a {
  margin-left: 20px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
  color: var(--secondary-color);
}

/* قطاع البطل (Hero) */
.hero {
  position: relative;
  background: linear-gradient(rgba(79,70,229,0.6), rgba(79,70,229,0.6)), url('../assets/hero_final.png') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: #E0E7FF;
}

.btn-primary {
  display: inline-block;
  background: var(--secondary-color);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

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

/* الأقسام العامة */
.section {
  padding: 60px 20px;
  background: #ffffff;
}

.section:nth-of-type(even) {
  background: #F9FAFB;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--primary-color);
}

.section p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  color: var(--light-text);
}

/* البطاقات */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 25px;
  text-align: center;
  width: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.card p {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* نموذج الاتصال و الحجز */
.contact-form {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  background: var(--primary-color);
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--secondary-color);
}

/* الفوتر */
.footer {
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* معرض الأعمال */
.portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.portfolio-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-item h3 {
  margin: 15px;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.portfolio-item p {
  margin: 0 15px 15px;
  font-size: 0.9rem;
  color: var(--light-text);
}

/* مقالات (مدونة) */
.posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.post {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 20px 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.post p {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 15px;
}

.post a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
}

.post a:hover {
  text-decoration: underline;
}