/* =========================================================
   شركة همم غيم — ملف الأنماط الرئيسي
   الاتجاه: RTL | الخطوط: Kufam (العناوين) + Tajawal (النصوص)
   ---------------------------------------------------------
   01 المتغيرات (ألوان الهوية، الخطوط، المسافات)
   02 الأساسيات
   03 التخطيط والأدوات المساعدة
   04 الأزرار والأيقونات
   05 الترويسة والقائمة الرئيسية
   06 قائمة الجوال (Drawer)
   07 الواجهة الرئيسية (Hero)
   08 ترويسة الصفحات الداخلية
   09 الأقسام والعناوين
   10 الميزات التنافسية
   11 بطاقات الخدمات
   12 تفاصيل الخدمات وخطوات العمل
   13 شركاء النجاح
   14 معرض الأعمال
   15 من نحن والبطاقات العامة
   16 النماذج والنافذة المنبثقة
   17 صفحة التواصل
   18 شريط الدعوة للتواصل
   19 التذييل
   20 زر واتساب العائم
   21 الحركة
   ========================================================= */


/* ---------------------------------------------------------
   01 المتغيرات
   ألوان الهوية مأخوذة من شعار همم غيم: الكحلي #11345C والسماوي #208EC1.
   لتعديلها غيّر قيم --brand و --signal ودرجاتهما فقط.
   --------------------------------------------------------- */
:root {
  /* ألوان الهوية */
  --brand: #11345C;        /* الكحلي — اللون الأساسي في الشعار */
  --brand-600: #0D2A4B;
  --brand-800: #0B2440;
  --brand-950: #071628;    /* الكحلي الليلي: التذييل وزجاج الواجهة */
  --signal: #208EC1;       /* السماوي — لون الغيم في الشعار: الإبراز والإضاءة */
  --signal-300: #7FCBEE;   /* سماوي فاتح للنصوص فوق الخلفيات الكحلية */
  --signal-600: #1A77A3;
  --signal-800: #125A7D;
  --sign-face: #F2FAFE;    /* وجه الحرف البارز المضيء */

  /* المحايدات */
  --ink: #0F1523;
  --steel-700: #3A4255;
  --steel-600: #4E5870;
  --steel-400: #8D96AB;
  --steel-200: #C9CFDA;
  --line: #E1E5EC;
  --concrete: #F3F4F7;
  --white: #FFFFFF;

  /* ألوان وظيفية */
  --wa: #1FA855;
  --wa-deep: #0F7A37;
  --success: #0F7A4F;
  --success-bg: #E7F6EF;
  --danger: #C0262D;
  --danger-bg: #FDECEC;

  /* الخطوط */
  --font-display: "Kufam", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --fs-sign: clamp(2.3rem, 1rem + 6.4vw, 5.75rem);
  --fs-h1: clamp(2rem, 1.3rem + 3vw, 3.4rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* المسافات والأبعاد */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --space-section: clamp(3.75rem, 2.5rem + 5vw, 7rem);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 21, 35, 0.06), 0 2px 8px rgba(15, 21, 35, 0.05);
  --shadow: 0 14px 34px -14px rgba(15, 21, 35, 0.25);
  --shadow-lg: 0 28px 70px -24px rgba(7, 22, 40, 0.45);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* فواصل ألواح الكلادينج (ACP) — تُستخدم كخلفية للواجهات */
  --acp-seams:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0 2px, rgba(255, 255, 255, 0.07) 2px 3px, transparent 3px) 0 0 / 180px 100%,
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 2px, rgba(255, 255, 255, 0.05) 2px 3px, transparent 3px) 0 0 / 100% 132px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --header-h: 80px;
  }
}


/* ---------------------------------------------------------
   02 الأساسيات
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 0.25em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
}

p,
figure,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

::selection {
  background: var(--signal);
  color: var(--ink);
}


/* ---------------------------------------------------------
   03 التخطيط والأدوات المساعدة
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}


/* ---------------------------------------------------------
   04 الأزرار والأيقونات
   --------------------------------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0.85rem 1.7rem;
  font-size: 1.075rem;
}

.btn--block {
  width: 100%;
}

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

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

.btn--signal {
  background: var(--signal);
  color: var(--ink);
}

.btn--signal:hover {
  background: #3AA3D3;
  box-shadow: 0 0 0 4px rgba(32, 142, 193, 0.22), 0 0 28px rgba(32, 142, 193, 0.45);
}

.btn--outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--glass .icon {
  color: #5BE38C;
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--wa {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn--wa .icon {
  color: var(--wa);
}

.btn--wa:hover {
  border-color: var(--wa);
  color: var(--wa-deep);
}

.btn--wa-solid {
  background: var(--wa-deep);
  color: var(--white);
}

.btn--wa-solid:hover {
  background: #0B642C;
}

.btn[aria-busy="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(-4px);
}


/* ---------------------------------------------------------
   05 الترويسة والقائمة الرئيسية
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(15, 21, 35, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

/* الشعار (assets/images/logo.svg، والنسخة الفاتحة logo-light.svg للتذييل) */
.brand__logo {
  width: auto;
  height: 50px;
}

.brand--light .brand__logo {
  height: 76px;
}

.drawer__logo {
  width: auto;
  height: 44px;
}

@media (min-width: 1024px) {
  .site-header .brand__logo {
    height: 58px;
  }
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background: var(--concrete);
}

.nav-link[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 0.8rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 3px;
  background: var(--signal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 479px) {
  .header-actions .btn--wa {
    width: 44px;
    padding: 0;
  }

  .header-actions .btn--wa .btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

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

@media (min-width: 1100px) {
  .main-nav {
    display: block;
    flex: 1;
  }

  .nav-toggle {
    display: none;
  }
}


/* ---------------------------------------------------------
   06 قائمة الجوال (Drawer)
   --------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  transition: visibility 0s linear 0.35s;
}

.drawer.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 40, 0.55);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  padding: 1rem 1.25rem 1.5rem;
  overflow-y: auto;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

[dir="ltr"] .drawer__panel {
  transform: translateX(-100%);
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--concrete);
  color: var(--ink);
  cursor: pointer;
}

.drawer__close .icon {
  width: 22px;
  height: 22px;
}

.drawer__list {
  display: grid;
  list-style: none;
}

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.drawer__link .icon {
  color: var(--steel-400);
}

.drawer__link[aria-current="page"] {
  color: var(--brand);
}

.drawer__link[aria-current="page"] .icon {
  color: var(--signal-600);
}

.drawer__actions {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.drawer__phone {
  padding: 0.5rem;
  color: var(--steel-700);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}


/* ---------------------------------------------------------
   07 الواجهة الرئيسية (Hero)
   الفكرة: واجهة محل حقيقية — لوح كلادينج بأحرف بارزة مضيئة،
   ثم سكة معدنية بمجالات العمل، ثم واجهة زجاجية بالنص والأزرار.
   --------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--white);
}

.hero__fascia {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3.25rem, 2rem + 6.5vw, 7rem) clamp(2.75rem, 2rem + 4.5vw, 5.5rem);
  background:
    var(--acp-seams),
    linear-gradient(165deg, var(--brand) 0%, var(--brand-600) 48%, var(--brand-800) 100%);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.hero__eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(32, 142, 193, 0.25), 0 0 14px rgba(32, 142, 193, 0.9);
}

.hero__title {
  position: relative;
  font-size: var(--fs-sign);
  font-weight: 800;
  line-height: 1.3;
}

/* وهج الإضاءة المنعكس على اللوح خلف الحروف */
.hero__title::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  inset-inline-start: -6%;
  width: min(100%, 980px);
  height: 120%;
  background: radial-gradient(closest-side, rgba(32, 142, 193, 0.3), rgba(32, 142, 193, 0));
  pointer-events: none;
}

/* الحرف البارز المضيء: وجه فاتح + جوانب بارزة + وهج */
.sign {
  display: block;
  color: var(--sign-face);
  text-shadow:
    0 0 0.04em rgba(255, 255, 255, 0.9),
    -0.012em 0.012em 0 var(--signal-600),
    -0.024em 0.024em 0 var(--signal-600),
    -0.036em 0.036em 0 var(--signal-800),
    -0.048em 0.048em 0 var(--signal-800),
    -0.06em 0.06em 0 #0B3E5A,
    0 0 0.35em rgba(32, 142, 193, 0.55),
    -0.08em 0.14em 0.3em rgba(4, 14, 28, 0.45);
}

.hero__title-line {
  display: block;
  margin-top: 0.3em;
  font-size: 0.6em;
  font-weight: 700;
  color: var(--white);
}

.hero__rail {
  position: relative;
  z-index: 1;
  color: var(--ink);
  background: linear-gradient(180deg, #E6EAF1 0%, #C5CCD8 55%, #A3ACBC 100%);
  border-block: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.55);
}

.hero__rail-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  padding-block: 0.75rem;
  list-style: none;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.hero__rail-list li {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

/* براغي التثبيت بين المجالات */
.hero__rail-list li + li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFFFFF 0 18%, #8A93A6 55%, #4E5870 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (min-width: 1024px) {
  .hero__rail-list {
    justify-content: space-between;
  }
}

.hero__storefront {
  position: relative;
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  background:
    linear-gradient(112deg, transparent 0 56%, rgba(255, 255, 255, 0.045) 56% 64%, transparent 64%),
    linear-gradient(180deg, var(--brand-950), #0D1846);
}

/* قواطع الواجهة الزجاجية */
@media (min-width: 768px) {
  .hero__storefront::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 3px), rgba(255, 255, 255, 0.07) calc(25% - 3px) 25%);
    pointer-events: none;
  }
}

.hero__storefront-inner {
  position: relative;
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero__lead {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 559px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 960px) {
  .hero__storefront-inner {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
}


/* ---------------------------------------------------------
   08 ترويسة الصفحات الداخلية
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(2.5rem, 2rem + 3vw, 4.25rem);
  color: var(--white);
  background:
    var(--acp-seams),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-800) 78%, var(--brand-950) 100%);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  list-style: none;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--signal-300);
}

.page-hero__title {
  font-size: var(--fs-h1);
  font-weight: 800;
}

/* شريط إضاءة LED تحت العنوان */
.page-hero__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 0.9rem;
  border-radius: 4px;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(32, 142, 193, 0.75);
}

.page-hero__lead {
  max-width: 60ch;
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-lead);
}


/* ---------------------------------------------------------
   09 الأقسام والعناوين
   --------------------------------------------------------- */
.section {
  padding-block: var(--space-section);
}

.section--concrete {
  background: var(--concrete);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  max-width: none;
}

.section-head--split > div {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 2px;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(32, 142, 193, 0.25);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
}

.section-lead {
  margin-top: 0.9rem;
  color: var(--steel-600);
  font-size: var(--fs-lead);
}


/* ---------------------------------------------------------
   10 الميزات التنافسية
   --------------------------------------------------------- */
.usp-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.usp {
  position: relative;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  background: var(--white);
}

.usp::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  width: 48px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--signal);
}

.usp__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--brand);
  stroke-width: 1.6;
}

.usp__title {
  margin-bottom: 0.5rem;
  font-size: var(--fs-h3);
}

.usp__text {
  color: var(--steel-600);
}

@media (min-width: 768px) {
  .usp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---------------------------------------------------------
   11 بطاقات الخدمات
   --------------------------------------------------------- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

/* شريط إضاءة يظهر أعلى البطاقة عند التفاعل */
.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 1.75rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(32, 142, 193, 0.8);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--steel-200);
  box-shadow: var(--shadow);
}

.service-card:hover::before,
.service-card:focus-within::before {
  transform: scaleX(1);
}

.service-card:has(a:focus-visible) {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--concrete);
  color: var(--brand);
  transition: background-color 0.3s, color 0.3s;
}

.service-card__icon .icon {
  width: 28px;
  height: 28px;
}

.service-card:hover .service-card__icon {
  background: var(--brand);
  color: var(--white);
}

.service-card__title {
  font-size: var(--fs-h3);
}

.service-card__title a {
  color: inherit;
  text-decoration: none;
}

.service-card__title a:focus-visible {
  outline: none;
}

/* تجعل البطاقة كاملة قابلة للنقر */
.service-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.service-card__text {
  color: var(--steel-600);
}

.service-card__list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.service-card__list .icon {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.35em;
  color: var(--signal);
  stroke-width: 2.4;
}

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.service-card__more .icon {
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-card__more .icon {
  transform: translateX(-5px);
}

/* البطاقة الرئيسية: الدعاية والإعلان */
.service-card--featured {
  overflow: hidden;
  padding: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  border-color: var(--brand);
  color: var(--white);
  background:
    var(--acp-seams),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-800) 100%);
}

.service-card--featured:hover,
.service-card--featured:focus-within {
  border-color: var(--brand);
}

.service-card--featured .service-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--signal);
}

.service-card--featured:hover .service-card__icon {
  background: var(--signal);
  color: var(--ink);
}

.service-card--featured .service-card__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.service-card--featured .service-card__text {
  color: rgba(255, 255, 255, 0.82);
}

.service-card--featured .service-card__more {
  margin-top: 0;
  color: var(--signal-300);
}

/* «اسمك هنا» بأسلوب الحرف البارز المضيء */
.service-card__sign {
  margin-top: auto;
  padding-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--sign-face);
  text-shadow:
    -0.015em 0.015em 0 var(--signal-600),
    -0.03em 0.03em 0 var(--signal-800),
    -0.045em 0.045em 0 #0B3E5A,
    0 0 0.4em rgba(32, 142, 193, 0.55);
}

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

  .service-card--featured {
    grid-column: 1 / -1;
  }
}

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

  .service-card--featured {
    grid-column: auto;
    grid-row: span 2;
  }

  /* صفحة من نحن: ثماني بطاقات في صفين */
  .services-grid--quad {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ---------------------------------------------------------
   12 تفاصيل الخدمات وخطوات العمل
   --------------------------------------------------------- */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.subnav__list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-block: 0.75rem;
  list-style: none;
  scrollbar-width: none;
}

.subnav__list::-webkit-scrollbar {
  display: none;
}

.subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.subnav__link:hover,
.subnav__link.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.service-detail {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: center;
}

.service-detail__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--concrete);
  box-shadow: var(--shadow);
}

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

.service-detail__badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.service-detail__badge .icon {
  width: 28px;
  height: 28px;
}

.service-detail__title {
  margin-bottom: 0.9rem;
  font-size: var(--fs-h2);
  font-weight: 800;
}

.service-detail__text {
  color: var(--steel-600);
  font-size: var(--fs-lead);
}

.service-detail__subtitle {
  margin-top: 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 0.6rem 1.5rem;
  margin-block: 0.9rem 1.5rem;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.check-list .icon {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.3em;
  color: var(--brand);
  stroke-width: 2.4;
}

.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--steel-700);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.service-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

@media (min-width: 560px) {
  .check-list--2col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail--reverse .service-detail__media {
    order: 2;
  }
}

/* أنواع الأحرف البارزة: صفوف أفقية على الجوال، وبطاقات عمودية على الشاشات الكبيرة */
.type-grid {
  display: grid;
  gap: 0.875rem;
  list-style: none;
}

.type-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 0 1rem;
  padding: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.type-card__media {
  grid-row: span 2;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--brand-950);
}

.type-card__title {
  align-self: end;
  font-size: 1.05rem;
}

.type-card__text {
  align-self: start;
  margin-top: 0.25rem;
  color: var(--steel-600);
  font-size: var(--fs-sm);
}

/* بطاقات أنواع تعمل كروابط (خدمات الصفحة الرئيسية): البطاقة كاملة قابلة للنقر */
.type-card--link {
  position: relative;
}

.type-card--link .type-card__media {
  grid-row: span 3;
}

.type-card__title a {
  color: inherit;
  text-decoration: none;
}

.type-card__title a:focus-visible {
  outline: none;
}

.type-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.type-card--link:has(a:focus-visible) {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.type-card__more {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: var(--brand);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.type-card__more .icon {
  transition: transform 0.3s var(--ease);
}

.type-card--link:hover .type-card__more .icon {
  transform: translateX(-5px);
}

.type-grid__actions {
  margin-top: 2rem;
  text-align: center;
}

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

  .type-card {
    grid-template-columns: 112px 1fr;
  }
}

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

  .type-card {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .type-card__media {
    border-radius: 0;
  }

  .type-card__title {
    margin: 1rem 1.1rem 0.35rem;
  }

  .type-card__text {
    margin: 0 1.1rem 1.25rem;
  }

  .type-card--link .type-card__text {
    margin-bottom: 0.75rem;
  }

  .type-card__more {
    margin: auto 1.1rem 1.25rem;
  }
}

/* أنواع كل خدمة بصور من أعمالنا — بنفس بطاقات أنواع الأحرف */
.service-gallery {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.service-gallery__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-h3);
}

.service-gallery__title::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 2px;
  background: var(--signal);
}

/* خطوات العمل — تسلسل فعلي، لذلك مرقّمة */
.process {
  display: grid;
  gap: 1.25rem;
  list-style: none;
}

.process__step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.process__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(32, 142, 193, 0.1);
}

.process__title {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.process__text {
  color: var(--steel-600);
  font-size: var(--fs-sm);
}

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

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

  .process__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3.25rem;
    inset-inline-end: -1.25rem;
    width: 1.25rem;
    height: 2px;
    background: var(--steel-200);
  }
}


/* ---------------------------------------------------------
   13 شركاء النجاح
   --------------------------------------------------------- */
.logo-marquee {
  overflow: hidden;
  padding-block: 0.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 0;
  list-style: none;
}

.logo-marquee.is-animated .logo-marquee__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.logo-marquee.is-animated:hover .logo-marquee__track,
.logo-marquee.is-animated:focus-within .logo-marquee__track {
  animation-play-state: paused;
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 200px;
  height: 100px;
  margin-inline-end: 1rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.logo-tile img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.partner-card__logo {
  display: grid;
  place-items: center;
  height: 120px;
  border-bottom: 1px solid var(--line);
}

.partner-card__logo img {
  max-width: 85%;
  max-height: 96px;
  width: auto;
  object-fit: contain;
}

.partner-card__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
}


/* ---------------------------------------------------------
   14 معرض الأعمال
   --------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.filter-btn[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.filter-btn__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: var(--concrete);
  color: var(--steel-700);
  font-size: var(--fs-xs);
}

.filter-btn[aria-pressed="true"] .filter-btn__count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
}

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project[hidden] {
  display: none;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project.is-entering {
  animation: project-in 0.45s var(--ease) both;
}

.project__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--concrete);
}

.project__media img,
.project__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project:hover .project__media img,
.project:hover .project__media video {
  transform: scale(1.04);
}

/* شارة "فيديو" فوق مشاريع الفيديو */
.project__badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.7rem 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 21, 35, 0.72);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  pointer-events: none;
}

.project__badge .icon {
  width: 1em;
  height: 1em;
}

/* تنويع بصري للصور التوضيحية المتكررة */
.project__media--flip img {
  transform: scaleX(-1);
}

.project:hover .project__media--flip img {
  transform: scaleX(-1) scale(1.04);
}

.project__body {
  padding: 1.2rem 1.35rem 1.45rem;
}

.project__tag {
  display: inline-block;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: rgba(32, 142, 193, 0.08);
  color: var(--brand);
  font-size: var(--fs-xs);
  font-weight: 700;
}

.project__title {
  margin-block: 0.6rem 0.3rem;
  font-size: 1.2rem;
}

.project__meta {
  color: var(--steel-600);
  font-size: var(--fs-sm);
}

.portfolio-empty {
  padding: 3rem 1rem;
  border: 1.5px dashed var(--steel-200);
  border-radius: var(--radius-lg);
  text-align: center;
}

.portfolio-empty[hidden] {
  display: none;
}

.portfolio-empty p {
  margin-bottom: 1.25rem;
  color: var(--steel-600);
}

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

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


/* ---------------------------------------------------------
   15 من نحن والبطاقات العامة
   --------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
}

.prose {
  color: var(--steel-700);
  font-size: var(--fs-lead);
}

.prose p + p {
  margin-top: 1rem;
}

.prose .section-title {
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.facts {
  padding: 0.5rem 1.75rem;
  border-top: 4px solid var(--signal);
  border-radius: var(--radius-lg);
  background: var(--concrete);
}

.facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.facts__row:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--steel-600);
}

.facts dd {
  font-family: var(--font-display);
  font-weight: 800;
  text-align: end;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

.info-card {
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--brand);
  color: var(--white);
}

.info-card__icon .icon {
  width: 28px;
  height: 28px;
}

.info-card__title {
  margin-bottom: 0.6rem;
  font-size: var(--fs-h3);
}

.info-card__text {
  color: var(--steel-600);
}

.info-card--ink {
  border-color: var(--brand-950);
  background:
    var(--acp-seams),
    var(--brand-950);
  color: var(--white);
}

.info-card--ink .info-card__icon {
  background: var(--signal);
  color: var(--ink);
}

.info-card--ink .info-card__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lead);
}

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

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}


/* ---------------------------------------------------------
   16 النماذج والنافذة المنبثقة
   --------------------------------------------------------- */
.request-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  font-weight: 800;
}

.form-intro {
  margin-top: -0.75rem;
  color: var(--steel-600);
  font-size: var(--fs-sm);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field[hidden] {
  display: none;
}

.field__label {
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.field__optional {
  color: var(--steel-400);
  font-weight: 500;
}

.req {
  color: var(--danger);
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--steel-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
  color: var(--steel-400);
}

.input:hover {
  border-color: var(--steel-400);
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(32, 142, 193, 0.15);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(192, 38, 45, 0.15);
}

textarea.input {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

select.input {
  appearance: none;
  padding-inline-end: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E5870' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.85rem center;
  background-size: 18px;
  cursor: pointer;
}

.input[type="tel"] {
  text-align: right;
}

.field__error {
  display: none;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--danger);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.6;
}

.field__error:not(:empty) {
  display: flex;
}

.field__error:not(:empty)::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--danger);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

/* خيارات الراديو على شكل بطاقات */
.choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.choice__box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--steel-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.choice__box:hover {
  border-color: var(--steel-400);
}

.choice__box > .icon {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.choice__mark {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
  border: 2px solid var(--steel-400);
  border-radius: 50%;
  transition: border-color 0.2s;
}

.choice__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--brand);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}

.choice input:checked + .choice__box {
  border-color: var(--brand);
  background: rgba(32, 142, 193, 0.05);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice input:checked + .choice__box .choice__mark {
  border-color: var(--brand);
}

.choice input:checked + .choice__box .choice__mark::after {
  transform: scale(1);
}

.choice input:focus-visible + .choice__box {
  outline: 3px solid var(--signal);
  outline-offset: 2px;
}

.field.is-invalid .choice__box {
  border-color: var(--danger);
}

.choice__title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.choice__sub {
  display: block;
  color: var(--steel-600);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

/* حقل مخفي لمكافحة الرسائل الآلية */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: -0.4rem;
  color: var(--steel-600);
  font-size: var(--fs-xs);
  text-align: center;
}

.form-note .icon {
  color: var(--wa);
}

.form-note[hidden] {
  display: none;
}

.form-status {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-status--success {
  border: 1px solid rgba(15, 122, 79, 0.25);
  background: var(--success-bg);
  color: var(--success);
}

.form-status--error {
  border: 1px solid rgba(192, 38, 45, 0.25);
  background: var(--danger-bg);
  color: var(--danger);
}

.form-status a {
  justify-self: start;
  color: inherit;
  font-weight: 800;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 399px) {
  .choice-group--stack-sm {
    grid-template-columns: 1fr;
  }
}

/* النافذة المنبثقة لطلب عرض السعر */
.dialog {
  width: min(680px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.dialog::backdrop {
  background: rgba(7, 22, 40, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dialog[open] {
  animation: dialog-in 0.3s var(--ease);
}

.dialog__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--brand);
  color: var(--white);
}

.dialog__title {
  font-size: 1.15rem;
  font-weight: 800;
}

.dialog__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  cursor: pointer;
}

.dialog__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dialog .request-form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:has(.dialog[open]) {
  overflow: hidden;
}


/* ---------------------------------------------------------
   17 صفحة التواصل
   --------------------------------------------------------- */
.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 14px;
  background: var(--brand);
  color: var(--white);
}

.contact-card__icon .icon {
  width: 24px;
  height: 24px;
}

.contact-card--wa .contact-card__icon {
  background: var(--wa-deep);
}

.contact-card__body {
  min-width: 0;
}

.contact-card__label {
  color: var(--steel-600);
  font-size: var(--fs-sm);
}

.contact-card__value {
  display: inline-block;
  margin-block: 0.1rem 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

a.contact-card__value:hover {
  color: var(--brand);
}

.contact-card__text {
  color: var(--steel-600);
  font-size: var(--fs-sm);
}

.map {
  overflow: hidden;
  height: clamp(320px, 45vw, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--concrete);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--steel-600);
}

.map-meta p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
    align-items: start;
  }

  .contact-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}


/* ---------------------------------------------------------
   18 شريط الدعوة للتواصل
   --------------------------------------------------------- */
.cta-band {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    var(--acp-seams),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-800) 100%);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  width: 96px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--signal);
  box-shadow: 0 0 22px rgba(32, 142, 193, 0.9);
}

.cta-band__title {
  font-size: var(--fs-h2);
  font-weight: 800;
}

.cta-band__text {
  max-width: 56ch;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .cta-band {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
  }
}


/* ---------------------------------------------------------
   19 التذييل
   --------------------------------------------------------- */
.site-footer {
  padding-top: clamp(3rem, 2rem + 4vw, 5rem);
  background: var(--brand-950);
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-about {
  max-width: 42ch;
  margin-block: 1.1rem 1.5rem;
  line-height: 1.9;
}

.footer-title {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--signal-300);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact .icon {
  color: var(--signal);
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-bottom a {
  color: var(--signal-300);
  font-weight: 700;
  text-decoration: none;
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1.1fr 1.2fr;
  }
}


/* ---------------------------------------------------------
   20 زر واتساب العائم
   --------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  inset-inline-end: 1rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 12px 28px -8px rgba(31, 168, 85, 0.65);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), box-shadow 0.2s;
}

/* يظهر الزر بعد التمرير حتى لا يغطي أزرار الواجهة الرئيسية */
.js .wa-float:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
}

.wa-float .icon {
  width: 30px;
  height: 30px;
}

.wa-float:hover {
  transform: scale(1.07);
  box-shadow: 0 16px 34px -8px rgba(31, 168, 85, 0.75);
}


/* ---------------------------------------------------------
   21 الحركة
   --------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* تشغيل اللوحة: وميض إضاءة الأحرف البارزة عند فتح الصفحة */
  .js .sign {
    animation: power-on 1.9s linear 0.35s both;
  }

  .js .hero__title::before {
    animation: glow-on 1.9s linear 0.35s both;
  }
}

@keyframes power-on {
  0%, 12% { filter: brightness(0.38) saturate(0.2); }
  14%     { filter: brightness(1.15) saturate(1); }
  17%     { filter: brightness(0.38) saturate(0.2); }
  28%     { filter: brightness(1.1) saturate(1); }
  31%     { filter: brightness(0.5) saturate(0.4); }
  42%, 100% { filter: none; }
}

@keyframes glow-on {
  0%, 12% { opacity: 0; }
  14%     { opacity: 0.8; }
  17%     { opacity: 0; }
  28%     { opacity: 0.9; }
  31%     { opacity: 0.2; }
  42%, 100% { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

[dir="ltr"] .logo-marquee.is-animated .logo-marquee__track {
  animation-direction: reverse;
}

@keyframes project-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
