/* =========================================================
   شركة المنظور الجديد - الأنماط المخصصة
   واجهة عربية RTL، متجاوبة، Mobile-First
   ========================================================= */

:root {
  --primary-color: #0b1f3a;
  --primary-rgb: 11,31,58;
  --secondary-color: #0d6efd;
  --secondary-rgb: 13,110,253;
  --accent-color: #00bcd4;
  --accent-rgb: 0,188,212;
  --light-color: #f5f8fc;
  --dark-color: #071426;
  --text-color: #263547;
  --muted-color: #64748b;
  --success-color: #25d366;
  --surface: #fff;
  --surface-soft: #eef4fb;
  --border: #dbe5f0;
  --heading: #0b1f3a;
  --body-bg: #fff;
  --navbar-bg: rgba(255,255,255,.94);
  --shadow-sm: 0 8px 24px rgba(7,20,38,.07);
  --shadow-md: 0 18px 48px rgba(7,20,38,.11);
  --shadow-lg: 0 28px 70px rgba(7,20,38,.16);
  --radius-sm: .75rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.75rem;
  --transition: 220ms ease;
  --navbar-height: 78px;
  --font-body: "IBM Plex Sans Arabic","Tajawal","Segoe UI",Tahoma,Arial,sans-serif;
  --font-heading: "Alexandria","IBM Plex Sans Arabic","Tajawal","Segoe UI",Tahoma,Arial,sans-serif;
}

html[data-theme="dark"] {
  --light-color: #0b1728;
  --surface: #102138;
  --surface-soft: #122a45;
  --border: #27405d;
  --heading: #f2f7fc;
  --text-color: #d8e4f1;
  --muted-color: #9fb0c3;
  --body-bg: #081524;
  --navbar-bg: rgba(8,21,36,.94);
  --shadow-sm: 0 8px 24px rgba(0,0,0,.18);
  --shadow-md: 0 18px 48px rgba(0,0,0,.28);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.36);
  color-scheme: dark;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navbar-height) + 1rem); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--body-bg);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition),color var(--transition);
}
body,button,input,select,textarea { font-family: var(--font-body); }
img,svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--secondary-color); text-decoration: none; transition: all var(--transition); }
a:hover { color: #0a58ca; }
h1,h2,h3,h4,h5,h6 { color: var(--heading); font-family: var(--font-heading); font-weight: 700; line-height: 1.42; }
.section-heading h2,.footer-title,.product-card h3,.process-card h3,.solution-card h3,.contact-card h3 { text-wrap: balance; }
.form-label,.eyebrow,.filter-btn,#resultsCount { font-family: var(--font-heading); }
p:last-child,ul:last-child { margin-bottom: 0; }
::selection { background: rgba(var(--accent-rgb),.24); color: var(--heading); }
:focus-visible { outline: 3px solid rgba(var(--accent-rgb),.65); outline-offset: 3px; }
.form-control:focus,.form-select:focus,.form-check-input:focus,.btn:focus-visible,.navbar-toggler:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 .25rem rgba(var(--accent-rgb),.2);
}
.section-anchor { scroll-margin-top: calc(var(--navbar-height) + 1rem); }
.section { position: relative; padding: 5rem 0; }
.section--muted { background: var(--light-color); }
.section--dark {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%,rgba(var(--accent-rgb),.18),transparent 32%),
    radial-gradient(circle at 82% 80%,rgba(var(--secondary-rgb),.22),transparent 36%),
    var(--dark-color);
}
.section-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size: 36px 36px;
}
.section-heading { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.section-heading--start { margin-inline: 0; text-align: right; }
.section-heading h2 { margin: .65rem 0 .9rem; font-size: clamp(1.9rem,5vw,3rem); }
.section-heading p { margin: 0; color: var(--muted-color); font-size: 1.08rem; }
.section-heading--light h2,.section-heading--light p { color: #fff; }
.section-heading--light p { opacity: .78; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .8rem;
  border: 1px solid rgba(var(--secondary-rgb),.16); border-radius: 999px;
  background: rgba(var(--secondary-rgb),.08); color: var(--secondary-color);
  font-size: .88rem; font-weight: 700;
}
.eyebrow--light,.section-heading--light .eyebrow {
  border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.09); color: #fff;
}
.skip-link {
  position: fixed; z-index: 2000; top: .75rem; right: .75rem; padding: .75rem 1rem;
  border-radius: .6rem; background: var(--dark-color); color: #fff; transform: translateY(-160%);
}
.skip-link:focus { color: #fff; transform: translateY(0); }

/* الأزرار */
.btn {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  gap: .5rem; border-radius: .75rem; font-family: var(--font-heading); font-weight: 600;
  transition: transform var(--transition),box-shadow var(--transition),background-color var(--transition),border-color var(--transition),color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  --bs-btn-bg: var(--secondary-color); --bs-btn-border-color: var(--secondary-color);
  --bs-btn-hover-bg: #0b5ed7; --bs-btn-hover-border-color: #0a58ca;
  box-shadow: 0 10px 24px rgba(var(--secondary-rgb),.2);
}
.btn-outline-primary {
  --bs-btn-color: var(--secondary-color); --bs-btn-border-color: rgba(var(--secondary-rgb),.44);
  --bs-btn-hover-bg: var(--secondary-color); --bs-btn-hover-border-color: var(--secondary-color);
}
.btn-outline-secondary {
  --bs-btn-color: var(--text-color); --bs-btn-border-color: var(--border);
  --bs-btn-hover-bg: var(--surface-soft); --bs-btn-hover-color: var(--heading); --bs-btn-hover-border-color: var(--border);
}
.btn-whatsapp {
  border-color: var(--success-color); background: var(--success-color); color: #062f17;
  box-shadow: 0 10px 24px rgba(37,211,102,.2);
}
.btn-whatsapp:hover,.btn-whatsapp:focus-visible { border-color: #20bd5a; background: #20bd5a; color: #052812; }
.icon-btn {
  display: inline-grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
  color: var(--heading); font-size: 1.1rem; transition: all var(--transition);
}
.icon-btn:hover { border-color: var(--accent-color); color: var(--secondary-color); transform: translateY(-2px); }

/* الشريط العلوي والتنقل */
.topbar { min-height: 38px; background: var(--primary-color); color: rgba(255,255,255,.82); font-size: .86rem; }
.topbar__inner,.topbar__links,.topbar span,.topbar a { display: flex; align-items: center; gap: .4rem; }
.topbar__inner { min-height: 38px; justify-content: space-between; gap: 1rem; }
.topbar__links { gap: 1.25rem; }
.topbar a { color: inherit; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.navbar {
  min-height: var(--navbar-height); border-bottom: 1px solid transparent;
  background: var(--navbar-bg); backdrop-filter: blur(15px);
  transition: min-height var(--transition),box-shadow var(--transition),border-color var(--transition),background-color var(--transition);
}
.navbar.is-scrolled { min-height: 68px; border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.navbar-brand { display: inline-flex; align-items: center; border-radius: 1rem; transition: background-color var(--transition),padding var(--transition),box-shadow var(--transition); }
.navbar-brand img { width: 208px; height: auto; }
html[data-theme="dark"] .navbar-brand { padding: .18rem .45rem; background: rgba(255,255,255,.97); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.navbar-toggler { width: 44px; height: 44px; padding: .55rem; border-color: var(--border); }
html[data-theme="dark"] .navbar-toggler-icon { filter: invert(1) grayscale(1) brightness(2); }
.navbar-nav { gap: .1rem; }
.navbar .nav-link { position: relative; padding: .7rem .78rem !important; color: var(--text-color); font-family: var(--font-heading); font-size: .92rem; font-weight: 600; }
.navbar .nav-link::after {
  position: absolute; right: .78rem; bottom: .35rem; left: .78rem; height: 2px;
  border-radius: 2px; background: var(--secondary-color); content: ""; opacity: 0;
  transform: scaleX(.2); transition: all var(--transition);
}
.navbar .nav-link:hover,.navbar .nav-link.active { color: var(--secondary-color); }
.navbar .nav-link.active::after { opacity: 1; transform: scaleX(1); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 4.5rem 0 4rem;
  background:
    radial-gradient(circle at 80% 10%,rgba(var(--accent-rgb),.13),transparent 36%),
    radial-gradient(circle at 14% 70%,rgba(var(--secondary-rgb),.1),transparent 34%),
    linear-gradient(180deg,var(--body-bg),var(--light-color));
}
.hero::before {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background-image: radial-gradient(rgba(var(--secondary-rgb),.16) 1px,transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(to bottom,rgba(0,0,0,.52),transparent 75%);
}
.hero__shape { position: absolute; border: 1px solid rgba(var(--accent-rgb),.16); border-radius: 50%; }
.hero__shape--1 { top: 6%; right: -110px; width: 290px; height: 290px; }
.hero__shape--2 { bottom: -90px; left: -70px; width: 220px; height: 220px; }
.hero__brand {
  position: relative; max-width: 760px; margin: 1.1rem 0 1.15rem; padding-right: 1rem;
}
.hero__brand::before {
  position: absolute; top: .35rem; right: 0; bottom: .35rem; width: 4px; border-radius: 999px;
  background: linear-gradient(180deg,var(--secondary-color),var(--accent-color)); content: "";
  box-shadow: 0 0 22px rgba(var(--accent-rgb),.28);
}
.hero__brand-prefix {
  display: block; margin-bottom: .15rem; color: var(--secondary-color);
  font-family: var(--font-heading); font-size: clamp(.95rem,2vw,1.15rem); font-weight: 700;
}
.hero__company-name {
  margin: 0; font-size: clamp(2.65rem,10vw,5.25rem); font-weight: 800; line-height: 1.08;
  letter-spacing: 0; text-wrap: balance;
}
.hero__company-name > span {
  display: inline-block; color: var(--heading);
  background: linear-gradient(105deg,var(--primary-color) 8%,var(--secondary-color) 66%,var(--accent-color));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html[data-theme="dark"] .hero__company-name > span {
  background: linear-gradient(105deg,#f5f9ff 5%,#75aaff 55%,#64e3f2);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__company-name small {
  display: block; margin-top: .45rem; color: var(--heading);
  font-size: clamp(1rem,3.2vw,1.55rem); font-weight: 600; line-height: 1.55;
}
.hero__headline {
  max-width: 700px; margin: 0 0 .85rem; color: var(--heading);
  font-size: clamp(1.35rem,3.8vw,2rem); font-weight: 700; line-height: 1.5;
}
.hero__lead { max-width: 700px; margin-bottom: 1.75rem; color: var(--muted-color); font-size: clamp(1.05rem,2.3vw,1.25rem); line-height: 1.9; }
.hero__actions,.hero__trust { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__trust { margin-top: 1.5rem; color: var(--muted-color); font-size: .92rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: .35rem; }
.hero__trust i { color: var(--accent-color); }
.tech-visual { position: relative; max-width: 650px; margin: 0 auto; color: var(--secondary-color); }
.tech-visual svg { overflow: visible; }
.tech-visual__tag {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border: 1px solid rgba(var(--secondary-rgb),.13);
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm);
  color: var(--heading); font-size: .86rem; font-weight: 700;
}
.tech-visual__tag i { color: var(--secondary-color); }
.tag-1 { top: 15%; right: 5%; }
.tag-2 { bottom: 15%; right: 7%; }
.tag-3 { top: 29%; left: 0; }

/* شريط المجالات */
.fields-strip { position: relative; z-index: 2; padding: 0 0 2.5rem; background: var(--light-color); }
.fields-grid {
  display: grid; grid-template-columns: repeat(2,1fr); overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.fields-grid a {
  display: flex; min-height: 104px; flex-direction: column; align-items: center; justify-content: center;
  gap: .55rem; padding: 1rem; border-bottom: 1px solid var(--border);
  color: var(--text-color); text-align: center;
}
.fields-grid a:nth-child(odd) { border-left: 1px solid var(--border); }
.fields-grid i { color: var(--secondary-color); font-size: 1.65rem; }
.fields-grid span { font-size: .9rem; font-weight: 700; }
.fields-grid a:hover { background: var(--surface-soft); color: var(--secondary-color); }

/* من نحن */
.about-visual {
  position: relative; width: min(100%,460px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background:
    radial-gradient(circle,rgba(var(--secondary-rgb),.15) 0 20%,transparent 21%),
    radial-gradient(circle,transparent 0 49%,rgba(var(--accent-rgb),.14) 50% 50.6%,transparent 51%),
    radial-gradient(circle,transparent 0 72%,rgba(var(--secondary-rgb),.11) 73% 73.6%,transparent 74%);
}
.about-visual__core,.about-visual__orbit {
  position: absolute; display: grid; place-items: center; border-radius: 50%; box-shadow: var(--shadow-md);
}
.about-visual__core {
  top: 50%; left: 50%; width: 122px; height: 122px; color: #fff; font-size: 3rem;
  background: linear-gradient(145deg,var(--secondary-color),var(--accent-color)); transform: translate(-50%,-50%);
}
.about-visual__orbit {
  width: 74px; height: 74px; border: 1px solid var(--border); background: var(--surface);
  color: var(--secondary-color); font-size: 1.75rem;
}
.orbit-1 { top: 8%; right: 20%; } .orbit-2 { top: 38%; left: 4%; }
.orbit-3 { right: 5%; bottom: 19%; } .orbit-4 { bottom: 3%; left: 30%; }
.about-copy p { color: var(--muted-color); font-size: 1.05rem; }
.check-list,.quote-points,.footer-links,.footer-contact,.product-list { margin: 0; padding: 0; list-style: none; }
.check-list,.quote-points { display: grid; gap: .7rem; }
.check-list li,.quote-points li { display: flex; align-items: flex-start; gap: .6rem; }
.check-list i,.quote-points i { margin-top: .15rem; color: var(--secondary-color); }

/* أدوات وبطاقات المنتجات */
.product-tools {
  margin-bottom: 1.6rem; padding: 1.25rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm);
}
.search-box { position: relative; }
.search-box > i { position: absolute; z-index: 2; top: 50%; right: 1rem; color: var(--muted-color); transform: translateY(-50%); pointer-events: none; }
.search-box .form-control { min-height: 52px; padding-right: 2.8rem; padding-left: 3rem; border-radius: .85rem; }
.search-box__clear {
  position: absolute; top: 50%; left: .65rem; display: grid; width: 36px; height: 36px;
  place-items: center; border: 0; border-radius: 50%; background: transparent;
  color: var(--muted-color); transform: translateY(-50%);
}
.search-box__clear:hover { background: var(--surface-soft); color: var(--heading); }
.product-tools__summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
#resultsCount { color: var(--heading); font-weight: 700; }
.filter-scroller {
  display: flex; gap: .55rem; margin-top: 1rem; padding-bottom: .35rem; overflow-x: auto;
  scrollbar-width: thin; scroll-snap-type: x proximity;
}
.filter-btn {
  min-height: 40px; flex: 0 0 auto; padding: .45rem .85rem; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); color: var(--text-color);
  font-size: .9rem; font-weight: 700; scroll-snap-align: start; transition: all var(--transition);
}
.filter-btn:hover,.filter-btn.active { border-color: var(--secondary-color); background: var(--secondary-color); color: #fff; }
.product-card-wrap[hidden] { display: none !important; }
.product-card {
  display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform var(--transition),box-shadow var(--transition),border-color var(--transition);
}
.product-card:hover { border-color: rgba(var(--secondary-rgb),.35); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.product-card__icon {
  display: grid; width: 70px; height: 70px; margin: 1.35rem 1.35rem 0; place-items: center;
  border-radius: 1.15rem; background: linear-gradient(145deg,rgba(var(--secondary-rgb),.13),rgba(var(--accent-rgb),.16));
  color: var(--secondary-color); font-size: 2rem;
}
.product-card__body { position: relative; flex: 1; padding: 1.25rem 1.35rem .8rem; }
.product-card__number {
  position: absolute; top: -4.45rem; left: 1.35rem; color: rgba(var(--primary-rgb),.09);
  font-size: 3rem; font-weight: 800; line-height: 1;
}
html[data-theme="dark"] .product-card__number { color: rgba(255,255,255,.07); }
.product-card h3 { margin-bottom: .7rem; font-size: 1.25rem; }
.product-card p { color: var(--muted-color); }
.product-list-collapse { padding-top: .5rem; }
.product-list {
  display: grid; gap: .45rem; padding: .9rem 1rem; border-radius: .85rem;
  background: var(--surface-soft); color: var(--text-color); font-size: .94rem;
}
.product-list li { position: relative; padding-right: 1rem; }
.product-list li::before {
  position: absolute; top: .78em; right: 0; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent-color); content: "";
}
.product-card__actions {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem 1.35rem 1.35rem; border-top: 1px solid var(--border);
}
.collapse-toggle { min-height: 40px; padding: 0; color: var(--secondary-color); text-decoration: none; }
.collapse-toggle i { transition: transform var(--transition); }
.collapse-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.request-category { min-height: 40px; padding: .4rem .75rem; font-size: .88rem; white-space: nowrap; }
.empty-state {
  max-width: 620px; margin: 2rem auto 0; padding: 2.5rem 1.5rem;
  border: 1px dashed var(--border); border-radius: var(--radius-md); background: var(--surface); text-align: center;
}
.empty-state > i {
  display: inline-grid; width: 72px; height: 72px; place-items: center; border-radius: 50%;
  background: var(--surface-soft); color: var(--secondary-color); font-size: 1.8rem;
}
.empty-state h3 { margin: 1rem 0 .4rem; font-size: 1.35rem; }
.empty-state p { color: var(--muted-color); }

/* آلية الطلب */
.process-grid { display: grid; gap: 1.25rem; }
.process-card {
  position: relative; padding: 1.5rem; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm);
}
.process-card__number {
  position: absolute; top: 1rem; left: 1rem; color: rgba(var(--secondary-rgb),.13);
  font-size: 3.5rem; font-weight: 800; line-height: 1;
}
.process-card__icon {
  display: grid; width: 58px; height: 58px; margin-bottom: 1.15rem; place-items: center;
  border-radius: 1rem; background: rgba(var(--secondary-rgb),.11); color: var(--secondary-color); font-size: 1.45rem;
}
.process-card h3 { font-size: 1.2rem; }
.process-card p { color: var(--muted-color); }

/* حلول الشركات */
.solution-card {
  height: 100%; min-height: 180px; padding: 1.4rem; border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); background: rgba(255,255,255,.055); backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.solution-card:hover { border-color: rgba(var(--accent-rgb),.55); background: rgba(255,255,255,.09); transform: translateY(-4px); }
.solution-card i {
  display: inline-grid; width: 54px; height: 54px; margin-bottom: 1rem; place-items: center;
  border-radius: 1rem; background: rgba(var(--accent-rgb),.15); color: var(--accent-color); font-size: 1.45rem;
}
.solution-card h3 { margin: 0; color: #fff; font-size: 1.05rem; }

/* CTA */
.cta-section { padding: 2rem 0; background: var(--body-bg); }
.cta-box {
  position: relative; display: flex; overflow: hidden; flex-direction: column; gap: 1.5rem;
  padding: 2rem; border-radius: var(--radius-lg);
  background: radial-gradient(circle at 90% 15%,rgba(255,255,255,.16),transparent 26%),linear-gradient(135deg,var(--primary-color),#0b4c8f 62%,#087d92);
  box-shadow: var(--shadow-lg); color: #fff;
}
.cta-box::before,.cta-box::after {
  position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: "";
}
.cta-box::before { top: -110px; left: -60px; width: 260px; height: 260px; }
.cta-box::after { right: 35%; bottom: -95px; width: 190px; height: 190px; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { margin: .75rem 0 .65rem; color: #fff; font-size: clamp(1.65rem,4vw,2.45rem); }
.cta-box p { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* النموذج */
.quote-intro { position: sticky; top: calc(var(--navbar-height) + 1.5rem); }
.quote-intro h2 { margin: .7rem 0 1rem; font-size: clamp(2rem,5vw,3rem); }
.quote-intro > p { color: var(--muted-color); }
.info-note {
  display: flex; align-items: flex-start; gap: .75rem; margin: 1.5rem 0; padding: 1rem;
  border: 1px solid rgba(var(--accent-rgb),.25); border-radius: var(--radius-sm);
  background: rgba(var(--accent-rgb),.08);
}
.info-note i { margin-top: .1rem; color: var(--accent-color); font-size: 1.1rem; }
.info-note p { margin: 0; color: var(--text-color); font-size: .93rem; }
.quote-form {
  padding: 1.4rem; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.form-label { margin-bottom: .45rem; color: var(--heading); font-weight: 700; }
.form-label span { color: #dc3545; }
.form-control,.form-select {
  min-height: 50px; border-color: var(--border); border-radius: .75rem;
  background-color: var(--body-bg); color: var(--text-color);
}
textarea.form-control { min-height: auto; resize: vertical; }
.form-control::placeholder { color: var(--muted-color); opacity: .72; }
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select { background-color: #091827; }
html[data-theme="dark"] .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d8e4f1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.consent-check {
  padding: 1rem 2.4rem 1rem 1rem; border: 1px solid var(--border);
  border-radius: .75rem; background: var(--surface-soft);
}
.consent-check .form-check-input { margin-right: -1.7rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* التواصل والخريطة */
.contact-card {
  display: flex; height: 100%; min-height: 285px; flex-direction: column; align-items: center;
  padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); box-shadow: var(--shadow-sm); text-align: center;
}
.contact-card__icon {
  display: grid; width: 68px; height: 68px; margin-bottom: 1rem; place-items: center;
  border-radius: 1.1rem; background: rgba(var(--secondary-rgb),.11); color: var(--secondary-color); font-size: 1.7rem;
}
.contact-card__icon--whatsapp { background: rgba(37,211,102,.13); color: var(--success-color); }
.contact-card h3 { font-size: 1.25rem; }
.contact-card p { flex: 1; color: var(--muted-color); }
.map-placeholder {
  position: relative; display: grid; min-height: 340px; margin-top: 2rem; place-items: center; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm);
}
.map-placeholder__grid {
  position: absolute; inset: 0;
  background: linear-gradient(30deg,transparent 49.4%,rgba(var(--secondary-rgb),.07) 49.5% 50.5%,transparent 50.6%) 0 0/78px 78px,
              linear-gradient(-30deg,transparent 49.4%,rgba(var(--accent-rgb),.08) 49.5% 50.5%,transparent 50.6%) 0 0/78px 78px,
              var(--surface-soft);
}
.map-placeholder__pin {
  position: absolute; top: 22%; right: 14%; display: grid; width: 62px; height: 62px; place-items: center;
  border-radius: 50% 50% 50% 0; background: var(--secondary-color); box-shadow: var(--shadow-md);
  color: #fff; font-size: 1.65rem; transform: rotate(-45deg);
}
.map-placeholder__pin i { transform: rotate(45deg); }
.map-placeholder__content {
  position: relative; z-index: 1; max-width: 580px; margin: 1.25rem; padding: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: rgba(255,255,255,.9); box-shadow: var(--shadow-md); text-align: center; backdrop-filter: blur(12px);
}
html[data-theme="dark"] .map-placeholder__content { background: rgba(16,33,56,.9); }
.map-placeholder__content h3 { font-size: 1.35rem; }
.map-placeholder__content p { color: var(--muted-color); }

/* التذييل */
.site-footer { padding: 4.5rem 0 1.5rem; background: var(--dark-color); color: rgba(255,255,255,.72); }
.footer-logo { display: inline-block; margin-bottom: 1.2rem; padding: .5rem .65rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(255,255,255,.98); box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.footer-logo img { width: 240px; }
.footer-title { margin-bottom: 1.2rem; color: #fff; font-size: 1.1rem; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a,.footer-contact a { color: rgba(255,255,255,.72); }
.footer-links a:hover,.footer-contact a:hover { color: var(--accent-color); }
.footer-contact { display: grid; gap: .85rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .65rem; }
.footer-contact i { margin-top: .2rem; color: var(--accent-color); }
.footer-bottom {
  display: flex; flex-direction: column; gap: .35rem; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.09); font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-note { color: rgba(255,255,255,.55); }

/* عناصر عائمة ورسائل */
.floating-whatsapp,.back-to-top {
  position: fixed; z-index: 1050; display: grid; width: 54px; height: 54px;
  place-items: center; border: 0; border-radius: 50%; box-shadow: var(--shadow-md); font-size: 1.45rem;
}
.floating-whatsapp { right: 1rem; bottom: 1rem; background: var(--success-color); color: #063016; }
.floating-whatsapp:hover { background: #20bd5a; color: #052812; transform: translateY(-3px); }
.back-to-top {
  right: 1rem; bottom: 5.25rem; visibility: hidden; background: var(--primary-color); color: #fff;
  opacity: 0; transform: translateY(12px); transition: all var(--transition);
}
.back-to-top.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--secondary-color); }
.toast { background: var(--primary-color); color: #fff; box-shadow: var(--shadow-lg); }

/* الظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease,transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 374.98px) {
  .container { --bs-gutter-x: 1.25rem; }
  .topbar__inner > span { display: none; }
  .topbar__links { width: 100%; justify-content: space-between; }
  .navbar-brand img { width: 158px; }
  .hero__company-name { font-size: 2.35rem; }
  .hero__company-name small { font-size: .92rem; }
  .hero__headline { font-size: 1.28rem; }
  .hero__actions .btn,.cta-box__actions .btn,.form-actions .btn { width: 100%; }
  .product-card__actions { align-items: stretch; flex-direction: column; }
  .request-category { width: 100%; }
}

@media (min-width: 576px) {
  .section { padding: 6rem 0; }
  .hero { padding: 5.5rem 0 5rem; }
  .fields-grid { grid-template-columns: repeat(3,1fr); }
  .fields-grid a:nth-child(odd) { border-left: 0; }
  .fields-grid a:not(:nth-child(3n)) { border-left: 1px solid var(--border); }
  .fields-grid a:nth-last-child(-n+3) { border-bottom: 0; }
  .quote-form { padding: 2rem; }
  .cta-box { padding: 2.5rem; }
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .footer-bottom { align-items: center; justify-content: space-between; flex-direction: row; }
  .floating-whatsapp,.back-to-top { right: 1.5rem; }
}

@media (max-width: 991.98px) {
  .navbar { min-height: 68px; }
  .navbar .container { position: relative; }
  .navbar-collapse {
    position: absolute; z-index: 10; top: calc(100% + .5rem); right: calc(var(--bs-gutter-x)*.5); left: calc(var(--bs-gutter-x)*.5);
    padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); box-shadow: var(--shadow-lg);
  }
  .navbar .nav-link { padding: .7rem .85rem !important; border-radius: .6rem; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link.active { background: rgba(var(--secondary-rgb),.1); }
  .tech-visual { max-width: 530px; }
  .quote-intro { position: static; }
}

@media (min-width: 992px) {
  .navbar-brand img { width: 220px; }
  .hero { min-height: calc(100vh - 116px); display: flex; align-items: center; }
  .fields-strip { margin-top: -1.2rem; }
  .fields-grid { grid-template-columns: repeat(6,1fr); }
  .fields-grid a,.fields-grid a:not(:nth-child(3n)) { border-bottom: 0; border-left: 1px solid var(--border); }
  .fields-grid a:last-child { border-left: 0; }
  .process-grid { position: relative; grid-template-columns: repeat(4,1fr); }
  .process-grid::before {
    position: absolute; z-index: 0; top: 43px; right: 9%; left: 9%; height: 2px;
    background: linear-gradient(90deg,transparent,rgba(var(--secondary-rgb),.28) 12%,rgba(var(--secondary-rgb),.28) 88%,transparent); content: "";
  }
  .process-card { z-index: 1; }
  .cta-box { align-items: center; justify-content: space-between; flex-direction: row; padding: 3rem; }
  .cta-box > div:first-child { max-width: 700px; }
  .cta-box__actions { min-width: 270px; flex-direction: column; }
  .cta-box__actions .btn { width: 100%; }
}

@media (min-width: 1200px) {
  .hero__company-name { font-size: 5rem; }
  .section { padding: 7rem 0; }
}
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero h1 { font-size: 4.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after {
    scroll-behavior: auto !important; transition-duration: .01ms !important;
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
}
