/* ====== الأساسيات ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #202020 0, #050508 55%, #000000 100%);
  color: #f5f5f5;
  min-height: 100vh;
  line-height: 1.7;
}

/* لغات واتجاه */
body.lang-ar {
  direction: rtl;
  text-align: right;
}

body.lang-en {
  direction: ltr;
  text-align: left;
}

/* ====== الحاوية العامة ====== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== الهيدر ====== */
header {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.6);
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text-main {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text-sub {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ====== نافيجاشن ====== */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
}

nav a span {
  position: relative;
  z-index: 1;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #d4af37, #f5e8a3);
  transition: width 0.22s ease-out;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ====== زر تغيير اللغة ====== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.15rem;
  background: rgba(5, 5, 8, 0.85);
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.18s ease-out;
}

.lang-toggle button.active {
  background: linear-gradient(135deg, #d4af37, #f8e58a);
  color: #050508;
  opacity: 1;
}

/* ====== أزرار عامة ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.17s ease-out, box-shadow 0.17s ease-out, background 0.17s ease-out;
  background: linear-gradient(135deg, #201808, #614b16);
  color: #fbeec9;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.18);
}

.btn.secondary {
  background: transparent;
  color: #f5f5f5;
  border-color: rgba(245, 245, 245, 0.3);
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.4);
}

/* ====== الهيرو ====== */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

body.lang-ar .hero-inner {
  flex-direction: row-reverse;
}

body.lang-en .hero-inner {
  flex-direction: row;
}

.hero-text {
  flex: 1 1 320px;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fbeec9;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.hero-highlight {
  background: linear-gradient(120deg, #f5e8a3, #d4af37, #fdf7d1);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  max-width: 34rem;
  opacity: 0.9;
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

/* ====== صورة الهيرو ====== */
.hero-media {
  flex: 1 1 260px;
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(360px, 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: radial-gradient(circle at top left, #2f3c23 0, #020305 55%);
  box-shadow:
    0 0 35px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(212, 175, 55, 0.18);
  position: relative;
}

.hero-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.hero-card-footer {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ====== أقسام عامة ====== */
.section {
  padding: 2.8rem 0 2.6rem;
}

.section-header {
  margin-bottom: 1.6rem;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fbeec9;
  opacity: 0.9;
}

.section-title {
  font-size: 1.4rem;
  margin-top: 0.3rem;
}

.section-description {
  font-size: 0.9rem;
  opacity: 0.85;
  max-width: 34rem;
}

/* ====== شبكات البطاقات ====== */
.feature-grid,
.card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.95));
  padding: 1.1rem 1.1rem 1.15rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.13), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.6);
  margin-bottom: 0.6rem;
}

.card-body {
  font-size: 0.85rem;
  opacity: 0.9;
}

.card-body ul {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
}

body.lang-ar .card-body ul {
  padding-left: 0;
  padding-right: 1.1rem;
}

.card-body li {
  margin-bottom: 0.2rem;
}

/* ====== أقسام مقسومة نص + صورة ====== */
.split-section {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

body.lang-ar .split-section {
  flex-direction: row-reverse;
}

body.lang-en .split-section {
  flex-direction: row;
}

.split-text {
  flex: 1 1 320px;
}

.split-media {
  flex: 1 1 260px;
}

.split-media-inner {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: #111;
}

.split-media-inner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* ====== جدول تواصل ====== */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-panel {
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 1.3rem 1.2rem;
  background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.18), #050508 55%);
}

.contact-item {
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

/* ====== نموذج تواصل (شكلي) ====== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
}

.form-field label {
  font-size: 0.8rem;
  opacity: 0.85;
}

.form-field input,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid rgba(249, 249, 249, 0.2);
  padding: 0.55rem 0.6rem;
  background: rgba(3, 3, 3, 0.75);
  color: #f5f5f5;
  font-size: 0.85rem;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* ====== الفوتر ====== */
footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 0 1.5rem;
  font-size: 0.78rem;
  opacity: 0.75;
  text-align: center;
}

/* ====== إظهار/إخفاء اللغات ====== */
.lang {
  display: none;
}

body.lang-ar .lang-ar {
  display: inline;
}

body.lang-en .lang-en {
  display: inline;
}

/* للعناوين التي تحتاج بلوك */
.block {
  display: block;
}
