:root {
  --brand: #b71c1c;
  --brand-dark: #7f0000;
  --brand-soft: #fef2f2;
  --brand-border: #fecaca;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --bg-main: #eef2f6;
  --bg-alt: #e2e8f0;
  --surface: #ffffff;
  --surface-dark: #111827;
  --surface-dark-card: #1e293b;
  --border-solid: #cbd5e1;
  --border-dark: #334155;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* الشريط العلوي */
.top-accent-bar {
  height: 6px;
  background-color: var(--brand);
  width: 100%;
}

.site-header {
  background-color: var(--surface);
  border-bottom: 2px solid var(--border-solid);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--border-solid);
  border-radius: 10px;
  padding: 4px;
  background-color: var(--surface);
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.main-nav a:hover {
  color: var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* أزرار التواصل الاجتماعي */
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-solid);
  background-color: var(--bg-main);
  color: var(--ink-secondary);
}

.social-links a:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

/* الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline {
  background-color: var(--surface);
  color: var(--brand);
  border-color: var(--brand);
}

.btn-outline:hover {
  background-color: var(--brand-soft);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* القسم الرئيسي Hero */
.hero-section {
  background-color: var(--surface-dark);
  color: var(--surface);
  padding: 64px 0;
  border-bottom: 4px solid var(--brand);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background-color: var(--surface-dark-card);
  color: #f87171;
  border: 1px solid var(--border-dark);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--surface);
}

.hero-title span {
  color: #ef4444;
}

.hero-desc {
  margin-top: 16px;
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 540px;
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-image-box {
  background-color: var(--surface-dark-card);
  padding: 16px;
  border-radius: 20px;
  border: 2px solid var(--border-dark);
}

.hero-image-box img {
  width: 100%;
  border-radius: 12px;
}

/* الأقسام العامة */
.section-block {
  padding: 64px 0;
}

.section-bg-primary {
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-solid);
}

.section-bg-secondary {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-solid);
}

.section-bg-surface {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-solid);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-solid);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
  position: relative;
}

/* شبكة المنتجات */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  background-color: var(--surface);
  border: 2px solid var(--border-solid);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-img-wrapper {
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-solid);
  padding: 12px;
}

.product-img-wrapper img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
}

.product-desc {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  margin-top: 8px;
}

.product-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  background-color: var(--bg-main);
  border: 1px solid var(--border-solid);
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 12px;
  margin-bottom: 16px;
  font-weight: 600;
}

.product-body .btn {
  margin-top: auto;
  width: 100%;
}

/* الملحقات */
.empty-box {
  background-color: var(--surface);
  border: 2px solid var(--border-solid);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-secondary);
  font-weight: 700;
  font-size: 1.05rem;
}

/* الخدمات */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background-color: var(--bg-main);
  border: 2px solid var(--border-solid);
  border-top: 5px solid var(--brand);
  border-radius: 14px;
  padding: 28px 24px;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.service-desc {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

/* تواصل معنا والخريطة */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact-panel {
  background-color: var(--surface);
  border: 2px solid var(--border-solid);
  border-radius: 16px;
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-solid);
  background-color: var(--bg-main);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
}

.input-field:focus {
  outline: none;
  border-color: var(--brand);
  background-color: var(--surface);
}

.contact-alt-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 14px;
}

.link-red {
  color: var(--brand);
  font-weight: 700;
}

.link-red:hover {
  text-decoration: underline;
}

.map-panel {
  background-color: var(--surface);
  border: 2px solid var(--border-solid);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.map-frame-box {
  height: 360px;
  width: 100%;
  background-color: var(--bg-alt);
}

.map-frame-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-footer {
  padding: 16px 20px;
  background-color: var(--surface);
  border-top: 1px solid var(--border-solid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* قسم الخانات الثلاث لبيانات الشركة الرسمية أسفل الصفحة */
.company-info-section {
  background-color: var(--surface-dark);
  padding: 56px 0;
  border-top: 4px solid var(--brand);
  color: var(--surface);
}

.company-info-header {
  margin-bottom: 28px;
}

.company-info-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--surface);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.info-card {
  background-color: var(--surface-dark-card);
  border: 2px solid var(--border-dark);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f87171;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 10px;
}

.info-card-content {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.address-structured-list {
  display: grid;
  gap: 8px;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-dark);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-dark);
}

.address-key {
  font-weight: 700;
  color: #94a3b8;
  font-size: 0.85rem;
  min-width: 75px;
}

.address-val {
  color: var(--surface);
  font-weight: 600;
}

/* التذييل Footer */
.site-footer {
  background-color: var(--surface);
  border-top: 2px solid var(--border-solid);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-solid);
}

.footer-social-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--ink-secondary);
  font-weight: 600;
}

/* زر واتساب العائم */
.wa-fab {
  position: fixed;
  bottom: 20px;
  z-index: 60;
  background-color: var(--brand);
  color: var(--surface);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.wa-fab:hover {
  background-color: var(--brand-dark);
}

html[dir="rtl"] .wa-fab {
  left: 20px;
}

html[dir="ltr"] .wa-fab {
  right: 20px;
}

/* التجاوب مع الشاشات */
@media (max-width: 767px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

