/* ==========================================================================
   Design System: High-Tech Steel & Royal Cobalt (Mobile-First 100%)
   Primary: #0b1329 | Secondary: #1d4ed8 | Accent: #0284c7 | Cyan: #38bdf8 | BG Light: #f1f5f9
   ========================================================================== */
:root {
  --color-primary: #0b1329;
  --color-primary-light: #152244;
  --color-secondary: #1d4ed8;
  --color-secondary-hover: #1e40af;
  --color-accent: #0284c7;
  --color-cyan: #38bdf8;
  --color-bg-light: #f1f5f9;
  --color-white: #ffffff;
  --color-text-dark: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  --color-success: #16a34a;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(11, 19, 41, 0.08);
  --shadow-lg: 0 10px 25px rgba(11, 19, 41, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* منع الحركة والاهتزاز يميناً ويساراً على شاشات الجوال */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

html {
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-secondary);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Header & Brand Logo */
.site-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* الشعار والعنوان بجانب بعض في سطر واحد */
.brand-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo span {
  white-space: nowrap;
}

.nav-menu {
  display: none;
  gap: 1.15rem;
  align-items: center;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-cyan);
  background-color: rgba(255, 255, 255, 0.05);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header-call {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--color-cyan);
}

@media (min-width: 640px) {
  .btn-header-call {
    display: inline-flex;
  }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* القائمة الجانبية (تفتح نصف الشاشة فقط وبشكل ثابت) */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 280px;
  height: 100vh;
  background: var(--color-primary);
  padding: 1.5rem 1.25rem 2.5rem;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 2px solid var(--color-secondary);
  box-shadow: -5px 0 25px rgba(0,0,0,0.5);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--color-cyan);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-nav-drawer a {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-drawer a:hover, .mobile-nav-drawer a.active {
  background: rgba(29, 78, 216, 0.25);
  color: var(--color-cyan);
}

/* الأزرار العائمة (واتساب واتصال يميناً، والصعود للأعلى يساراً) */
.floating-actions-right {
  position: fixed;
  bottom: 25px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 990;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.floating-btn:hover {
  transform: scale(1.08);
}

.floating-btn-call {
  background: var(--color-secondary);
  border: 2px solid var(--color-cyan);
}

.floating-btn-wa {
  background: #25d366;
  border: 2px solid #ffffff;
}

/* زر الصعود للأعلى عائم على اليسار */
.scroll-top-left {
  position: fixed;
  bottom: 25px;
  left: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-cyan);
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all var(--transition-normal);
  z-index: 990;
}

.scroll-top-left.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* صندوق التنبيه: الأسعار تقريبية وتحدد بعد المعاينة */
.price-disclaimer-box {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  color: #92400e;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.75rem auto 2.5rem;
  max-width: 850px;
  line-height: 1.6;
}

.price-disclaimer-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.6rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  text-align: center;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), #0369a1);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1eb956;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content h1 {
  font-size: 1.85rem;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 2.6rem;
  }
}

.hero-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.trust-badges-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.trust-badge-item svg {
  color: var(--color-cyan);
  flex-shrink: 0;
}

/* Lead Calculator Box */
.lead-calculator-box {
  background: #ffffff;
  color: var(--color-text-dark);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--color-cyan);
}

.lead-calculator-box h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.lead-calculator-box p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #f8fafc;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* Sections General */
.section-pad {
  padding: 3.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* Services 2-Column Grid */
.services-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .services-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(203, 213, 225, 0.7);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-cyan);
}

.service-card-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #0b1329;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-tag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(11, 19, 41, 0.85);
  color: var(--color-cyan);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
  font-weight: 800;
}

.service-card-body p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.service-features-list li {
  font-size: 0.88rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features-list li svg {
  color: var(--color-secondary);
  flex-shrink: 0;
}

.service-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.service-card-actions .btn {
  flex: 1;
  font-size: 0.88rem;
  padding: 0.65rem 0.85rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-cyan);
}

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

.gallery-item-info {
  padding: 1rem;
}

.gallery-item-info h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.gallery-item-info p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* Feature Boxes */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-box {
  background: var(--color-white);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--color-secondary);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.feature-box-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-secondary);
  border-radius: 50%;
}

.feature-box h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.45rem;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* FAQ Accordion */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0369a1 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cta-banner h2 {
  font-size: 1.7rem;
  margin-bottom: 0.65rem;
  color: var(--color-white);
}

.cta-banner p {
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #cbd5e1;
  padding: 3.5rem 0 2rem;
  border-top: 4px solid var(--color-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 1.15rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.45rem;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-cyan);
  padding-right: 3px;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.dev-signature a {
  color: var(--color-cyan);
  font-weight: 700;
  text-decoration: underline;
}
