/* ==========================================================================
   شركة زمزم لأنظمة الري الحديث — الأنماط الرئيسية
   ========================================================================== */

/* --------------------------------- المتغيرات ------------------------------ */
:root {
  /* الألوان مأخوذة من شعار الشركة */
  --teal-900: #002a26;
  --teal-800: #003832;
  --teal-700: #0a4a44;
  --teal-600: #0e5f57;
  --green-700: #035e32;
  --green-600: #0b7a3f;
  --lime: #94c62f;
  --lime-600: #7cae1f;
  --lime-100: #eef7dc;
  --sky: #3fc1ea;
  --sky-600: #1fa2cf;
  --sky-100: #e4f6fd;

  --sand: #f6f3ea;
  --paper: #ffffff;
  --surface: #f4f7f5;
  --ink: #10231f;
  --ink-soft: #4a5b57;
  --line: #e2e8e5;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(0, 42, 38, 0.06);
  --shadow: 0 10px 30px rgba(0, 42, 38, 0.09);
  --shadow-lg: 0 24px 60px rgba(0, 42, 38, 0.16);

  --container: 1200px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: "Cairo", "Tajawal", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.4;
  font-weight: 800;
  color: var(--teal-800);
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--alt {
  background: var(--surface);
}

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

/* --------------------------------- العناوين ------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--green-600);
  background: var(--lime-100);
  border: 1px solid rgba(148, 198, 47, 0.35);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

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

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}

.section-title span {
  color: var(--green-600);
}

.section-sub {
  font-size: 1.05rem;
  margin: 0;
}

/* --------------------------------- الأزرار ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn--primary {
  background: var(--lime);
  color: var(--teal-900);
  box-shadow: 0 10px 24px rgba(148, 198, 47, 0.35);
}

.btn--primary:hover {
  background: var(--lime-600);
  box-shadow: 0 16px 32px rgba(148, 198, 47, 0.45);
}

.btn--dark {
  background: var(--teal-800);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 56, 50, 0.28);
}

.btn--dark:hover {
  background: var(--teal-700);
}

.btn--sky {
  background: var(--sky);
  color: var(--teal-900);
  box-shadow: 0 10px 24px rgba(63, 193, 234, 0.35);
}

.btn--sky:hover {
  background: var(--sky-600);
  color: #fff;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--teal-800);
}

.btn--outline {
  border-color: var(--teal-800);
  color: var(--teal-800);
}

.btn--outline:hover {
  background: var(--teal-800);
  color: #fff;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.88rem;
}

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

/* ================================ الترويسة ================================= */
.topbar {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  flex-wrap: wrap;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}

.topbar__item:hover {
  color: var(--lime);
}

.topbar__item svg {
  width: 15px;
  height: 15px;
  color: var(--lime);
  flex: none;
}

.topbar__socials {
  display: flex;
  gap: 10px;
}

.topbar__socials a {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.2s;
}

.topbar__socials a:hover {
  background: var(--lime);
  color: var(--teal-900);
  transform: translateY(-2px);
}

.topbar__socials svg {
  width: 14px;
  height: 14px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header.is-stuck {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 42, 38, 0.18);
}

.brand__text strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--teal-800);
  line-height: 1.3;
}

.brand__text span {
  display: block;
  font-size: 0.75rem;
  color: var(--sky-600);
  font-weight: 700;
  line-height: 1.3;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-800);
  position: relative;
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  color: var(--green-600);
  background: var(--lime-100);
}

.nav__link.is-active {
  color: #fff;
  background: var(--teal-800);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lime-100);
  place-items: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--teal-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* قائمة الجوال */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 42, 38, 0.55);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

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

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(320px, 85vw);
  background: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

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

.drawer__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--teal-800);
  line-height: 1;
}

.drawer__link {
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--teal-800);
  transition: background 0.2s, color 0.2s;
}

.drawer__link:hover,
.drawer__link.is-active {
  background: var(--lime-100);
  color: var(--green-600);
}

.drawer__foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.drawer__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--teal-800);
  font-size: 0.92rem;
}

.drawer__phone svg {
  width: 17px;
  height: 17px;
  color: var(--lime-600);
}

/* ================================== البطل ================================= */
.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--teal-900);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 7s linear;
  transform: scale(1.06);
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to left,
      rgba(0, 42, 38, 0.9) 0%,
      rgba(0, 42, 38, 0.72) 42%,
      rgba(0, 42, 38, 0.25) 100%
    ),
    linear-gradient(to top, rgba(0, 42, 38, 0.7), transparent 55%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 90px 0 110px;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(148, 198, 47, 0.18);
  border: 1px solid rgba(148, 198, 47, 0.45);
  color: var(--lime);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(148, 198, 47, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(148, 198, 47, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(148, 198, 47, 0);
  }
}

.hero__title {
  color: #fff;
  font-size: clamp(2rem, 5.2vw, 3.5rem);
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.hero__title em {
  font-style: normal;
  color: var(--lime);
}

.hero__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  max-width: 570px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__dots {
  position: absolute;
  bottom: 34px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 3;
  display: flex;
  gap: 9px;
  justify-content: center;
}

.hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s, width 0.3s;
  padding: 0;
}

.hero__dot.is-active {
  background: var(--lime);
  width: 34px;
  border-radius: var(--radius-full);
}

/* شريط المميزات أسفل البطل */
.hero-strip {
  position: relative;
  z-index: 5;
  margin-top: -58px;
}

.hero-strip__grid {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.hero-strip__item {
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-inline-start: 1px solid var(--line);
}

.hero-strip__item:first-child {
  border-inline-start: 0;
}

.hero-strip__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--lime-100);
  color: var(--green-600);
  flex: none;
}

.hero-strip__icon svg {
  width: 24px;
  height: 24px;
}

.hero-strip__item strong {
  display: block;
  color: var(--teal-800);
  font-size: 1rem;
  line-height: 1.4;
}

.hero-strip__item span {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* ============================== ترويسة الصفحات ============================= */
/* صورة الخلفية تُحدَّد داخل سمة style في الصفحة نفسها، لا عبر متغيّر CSS،
   لأن المسارات النسبية داخل url() في المتغيّرات تُحسب بالنسبة لملف الأنماط. */
.page-hero {
  position: relative;
  padding: 80px 0 70px;
  background-color: var(--teal-800);
  background-position: center;
  background-size: cover;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* حجاب داكن يخفّف الصورة ويحافظ على وضوح النص فوقها */
  background: var(--teal-800);
  background: color-mix(in srgb, var(--teal-800) 80%, transparent);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset-inline-start: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 198, 47, 0.25), transparent 65%);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 18px;
}

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

.breadcrumb span {
  color: var(--lime);
}

/* ============================== شبكات عامة ================================ */
.grid {
  display: grid;
  gap: 26px;
}

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

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

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

/* ============================== بطاقة الخدمة ============================== */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to left, var(--lime), var(--sky));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card:hover::after {
  transform: scaleX(1);
}

.card__icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-800), var(--green-700));
  color: var(--lime);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease);
}

.card:hover .card__icon {
  transform: rotate(-6deg) scale(1.06);
}

.card__icon svg {
  width: 30px;
  height: 30px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.card__list {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.card__list li {
  position: relative;
  padding-inline-start: 24px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

/* ============================== من نحن (مقتطف) ============================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.about-media__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media__sub {
  position: absolute;
  bottom: -38px;
  inset-inline-start: -30px;
  width: 46%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.about-media__sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-media__badge {
  position: absolute;
  top: 24px;
  inset-inline-end: -20px;
  background: var(--lime);
  color: var(--teal-900);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  line-height: 1.25;
}

.about-media__badge strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
}

.about-media__badge span {
  font-size: 0.8rem;
  font-weight: 700;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 26px 0 32px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.checklist li strong {
  color: var(--teal-800);
}

.checklist__mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 4px;
}

.checklist__mark svg {
  width: 15px;
  height: 15px;
}

/* ============================== الإحصائيات =============================== */
.stats {
  background: linear-gradient(135deg, var(--teal-900), var(--green-700));
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      circle at 15% 20%,
      rgba(148, 198, 47, 0.22),
      transparent 45%
    ),
    radial-gradient(circle at 85% 80%, rgba(63, 193, 234, 0.2), transparent 45%);
}

.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat__num {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 900;
  color: var(--lime);
  line-height: 1.2;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
  direction: ltr;
}

.stat__label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
  font-weight: 600;
}

/* ============================== بطاقات المنتجات ========================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.filter {
  padding: 9px 22px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal-800);
  transition: all 0.25s var(--ease);
}

.filter:hover {
  border-color: var(--lime);
  color: var(--green-600);
}

.filter.is-active {
  background: var(--teal-800);
  border-color: var(--teal-800);
  color: #fff;
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}

.product:hover .product__media img {
  transform: scale(1.06);
}

.product__zoom {
  position: absolute;
  inset: 0;
  background: rgba(0, 42, 38, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  font-weight: 700;
  font-size: 0.9rem;
}

.product__media:hover .product__zoom {
  opacity: 1;
}

.product__zoom svg {
  width: 30px;
  height: 30px;
}

.product__tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green-600);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.product__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product__body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product__body p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.product__specs span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--teal-700);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: var(--radius-full);
}

.product__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}

.product__icon-btn {
  width: 44px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--teal-800);
  transition: background 0.25s, color 0.25s;
}

.product__icon-btn:hover {
  background: var(--teal-800);
  color: #fff;
}

.product__icon-btn svg {
  width: 19px;
  height: 19px;
}

/* ============================== المعرض ================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--surface);
  display: block;
  width: 100%;
}

.gallery-item--tall {
  aspect-ratio: 1 / 1.35;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2.06 / 1;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 42, 38, 0.85), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: start;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

/* ============================== الصندوق المنبثق ========================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 20, 18, 0.93);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: min(100%, 1000px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__caption {
  position: absolute;
  bottom: 22px;
  inset-inline: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
}

.lightbox__btn {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s;
  backdrop-filter: blur(6px);
}

.lightbox__btn:hover {
  background: var(--lime);
  color: var(--teal-900);
}

.lightbox__btn svg {
  width: 24px;
  height: 24px;
}

.lightbox__close {
  top: 22px;
  inset-inline-end: 22px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox__prev {
  inset-inline-start: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  inset-inline-end: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ============================== لماذا نحن =============================== */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why__item {
  background: #fff;
  padding: 34px 28px;
  transition: background 0.3s var(--ease);
}

.why__item:hover {
  background: var(--lime-100);
}

.why__num {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--lime-600);
  letter-spacing: 0.08em;
  direction: ltr;
  display: block;
  margin-bottom: 12px;
}

.why__item h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.why__item p {
  font-size: 0.93rem;
  margin: 0;
}

/* ============================== خطوات العمل ============================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  padding: 0 8px;
}

.step__circle {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px dashed var(--lime);
  color: var(--green-600);
  position: relative;
  z-index: 2;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.step:hover .step__circle {
  background: var(--teal-800);
  border-style: solid;
  border-color: var(--teal-800);
  color: var(--lime);
  transform: translateY(-6px);
}

.step__circle svg {
  width: 32px;
  height: 32px;
}

.step__badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--teal-900);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 900;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9rem;
  margin: 0;
}

/* ============================== مناطق التغطية =========================== */
.coverage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.coverage__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.coverage__item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.coverage__pin {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky-100);
  color: var(--sky-600);
  display: grid;
  place-items: center;
  flex: none;
}

.coverage__pin svg {
  width: 21px;
  height: 21px;
}

.coverage__item strong {
  display: block;
  color: var(--teal-800);
  font-size: 1rem;
}

.coverage__item span {
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* ============================== نداء الإجراء ============================ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--teal-900);
  padding: 80px 0;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-2.jpg") center/cover;
  opacity: 0.2;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 42, 38, 0.94),
    rgba(3, 94, 50, 0.75)
  );
}

.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 10px;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 560px;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================== صفحة الاتصال ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--teal-800), var(--green-700));
  color: var(--lime);
  flex: none;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.contact-card p,
.contact-card a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
  display: block;
  direction: ltr;
  text-align: start;
}

.contact-card a:hover {
  color: var(--green-600);
}

.contact-card--rtl p,
.contact-card--rtl a {
  direction: rtl;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 7px;
}

.field label span {
  color: #d64545;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(148, 198, 47, 0.16);
}

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

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #d64545;
  background: #fff5f5;
}

.field__error {
  display: none;
  color: #d64545;
  font-size: 0.82rem;
  margin-top: 5px;
  font-weight: 600;
}

.field.has-error .field__error {
  display: block;
}

.form__note {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin: 14px 0 0;
  text-align: center;
}

.form__success {
  display: none;
  background: var(--lime-100);
  border: 1px solid rgba(148, 198, 47, 0.5);
  color: var(--green-700);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.form__success.is-visible {
  display: block;
}

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  position: relative;
  min-height: 420px;
}

.map iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

/* ============================== الأسئلة الشائعة ========================= */
.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq__item.is-open {
  box-shadow: var(--shadow-sm);
  border-color: rgba(148, 198, 47, 0.55);
}

.faq__q {
  width: 100%;
  text-align: start;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--teal-800);
}

.faq__mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime-100);
  color: var(--green-600);
  display: grid;
  place-items: center;
  flex: none;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.faq__item.is-open .faq__mark {
  transform: rotate(45deg);
  background: var(--lime);
  color: var(--teal-900);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq__a p {
  padding: 0 24px 22px;
  margin: 0;
  font-size: 0.95rem;
}

/* ============================== التذييل ================================= */
.footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -140px;
  inset-inline-start: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 193, 234, 0.15), transparent 68%);
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 42px;
  padding-bottom: 50px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.footer__brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.footer__brand strong {
  display: block;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
}

.footer__brand span {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.93rem;
}

.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 36px;
  height: 3px;
  border-radius: 3px;
  background: var(--lime);
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a {
  font-size: 0.93rem;
  transition: color 0.2s, padding 0.2s;
  display: inline-block;
}

.footer__links a:hover {
  color: var(--lime);
  padding-inline-start: 6px;
}

.footer__contact {
  display: grid;
  gap: 14px;
}

.footer__contact li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.92rem;
}

.footer__contact svg {
  width: 17px;
  height: 17px;
  color: var(--lime);
  flex: none;
  margin-top: 5px;
}

.footer__contact a {
  transition: color 0.2s;
}

.footer__contact a:hover {
  color: var(--lime);
}

.footer__socials {
  display: flex;
  gap: 11px;
  margin-top: 20px;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s, color 0.25s;
}

.footer__socials a:hover {
  background: var(--lime);
  color: var(--teal-900);
  transform: translateY(-3px);
}

.footer__socials svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.86rem;
}

.footer__bottom > :first-child {
  justify-self: start;
}

.footer__bottom > :last-child {
  justify-self: end;
}

.footer__bottom a:hover {
  color: var(--lime);
}

.footer__powered {
  justify-self: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--paper);
  color: color-mix(in srgb, var(--paper) 60%, transparent);
  white-space: nowrap;
}

.footer__powered strong {
  color: var(--lime);
  font-weight: 800;
}

/* ============================== أزرار عائمة ============================= */
.floaters {
  position: fixed;
  inset-inline-start: 22px;
  bottom: 22px;
  z-index: 800;
  display: grid;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.float-btn svg {
  width: 26px;
  height: 26px;
}

.float-btn--wa {
  background: #25d366;
  color: #fff;
  position: relative;
}

.float-btn--wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ripple 2.4s infinite;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

.float-btn--top {
  background: var(--teal-800);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease);
}

.float-btn--top.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ============================ بطاقة المطوّر ==============================
   مكوّن يعيش داخل التذييل فقط. يعتمد كليًا على متغيرات الألوان المعرّفة
   في :root أعلاه ولا يقدّم أي لون جديد. وبما أن خلفية التذييل هي
   --teal-900 نفسها، يُبنى سطح البطاقة من طبقة فاتحة شفافة لتظهر فوقه،
   تمامًا كما تفعل أيقونات التواصل في التذييل.
   ====================================================================== */
.footer__dev {
  position: relative;
  display: flex;
  /* محاذاة فيزيائية لليسار بغض النظر عن اتجاه الصفحة */
  direction: ltr;
  justify-content: flex-start;
  padding-bottom: 30px;
}

.dev-card {
  /* محتوى البطاقة لاتيني بالكامل لذلك اتجاهها ltr */
  direction: ltr;
  position: relative;
}

/* لوحة الواتساب: مخفية افتراضيًا وتنبثق فوق الشارة عند الضغط عليها */
.dev-card__panel {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 262px;
  max-width: calc(100vw - 32px);
  padding: 14px;
  border-radius: var(--radius);
  /* خلفية معتمة لأنها تنبثق فوق محتوى التذييل — قيمة احتياطية ثم مشتقة */
  background: var(--teal-700);
  background: color-mix(in srgb, var(--paper) 9%, var(--teal-900));
  border: 1px solid var(--teal-600);
  border: 1px solid color-mix(in srgb, var(--lime) 26%, transparent);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 13px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
    visibility 0.25s;
}

.dev-card.is-open .dev-card__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

.dev-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dev-card__name {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--paper);
}

.dev-card__role {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
    monospace;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--lime);
}

.dev-card__avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--sky));
  color: var(--teal-900);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.dev-card__wa {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: var(--lime);
  color: var(--teal-900);
  font-size: 0.87rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--lime) 30%, transparent);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.dev-card__wa:hover,
.dev-card__wa:focus-visible {
  background: var(--lime-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--lime) 42%, transparent);
}

.dev-card__wa svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.dev-card__num {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
    monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--teal-900);
  opacity: 0.72;
}

/* الشارة: العنصر الظاهر دائمًا، وتعمل زرًّا لإظهار لوحة الواتساب وإخفائها */
.dev-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-full);
  background: var(--teal-700);
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  border: 1px solid var(--teal-600);
  border: 1px solid color-mix(in srgb, var(--lime) 20%, transparent);
  text-align: start;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.dev-card__badge:hover,
.dev-card.is-open .dev-card__badge {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  border-color: var(--lime);
  border-color: color-mix(in srgb, var(--lime) 48%, transparent);
}

.dev-card__badge-icon {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--lime-100);
  background: color-mix(in srgb, var(--lime) 20%, transparent);
  color: var(--lime);
}

.dev-card__badge-icon svg {
  width: 15px;
  height: 15px;
}

.dev-card__badge-label {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono",
    monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--sky);
}

.dev-card__badge-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

@media (max-width: 640px) {
  .footer__dev {
    padding-bottom: 26px;
  }

  .dev-card__panel {
    width: 246px;
    padding: 12px;
    gap: 11px;
  }

  .dev-card__name {
    font-size: 0.88rem;
  }

  .dev-card__role {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .dev-card__avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .dev-card__wa {
    /* مساحة لمس مريحة على الشاشات الصغيرة */
    padding: 11px 13px;
    gap: 8px;
  }

  .dev-card__num {
    font-size: 0.68rem;
  }
}

/* ============================== حركات الظهور ============================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* شبكة أمان: إظهار المحتوى عند الطباعة أو تعطّل السكربت */
@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .floaters {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================== الاستجابة =============================== */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .burger {
    display: grid;
  }

  .header__cta .btn {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

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

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

@media (max-width: 900px) {
  .section {
    padding: 68px 0;
  }

  .hero-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip__item:nth-child(3) {
    border-inline-start: 0;
  }

  .hero-strip__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .about-media__sub {
    inset-inline-start: auto;
    inset-inline-end: -14px;
    bottom: -30px;
    width: 40%;
  }

  .about-media__badge {
    inset-inline-end: auto;
    inset-inline-start: -14px;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

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

  .why {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .topbar__inner {
    justify-content: center;
    padding-block: 8px;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer__bottom > :first-child,
  .footer__bottom > :last-child {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 56px 0;
  }

  .hero__inner {
    padding: 70px 0 100px;
  }

  .hero-strip {
    margin-top: -40px;
  }

  .hero-strip__grid {
    grid-template-columns: 1fr;
  }

  .hero-strip__item {
    border-inline-start: 0 !important;
    border-top: 1px solid var(--line);
  }

  .hero-strip__item:first-child {
    border-top: 0;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .why {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 24px 20px;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .topbar__list {
    gap: 14px;
    justify-content: center;
    font-size: 0.8rem;
  }

  .about-media__sub {
    display: none;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .lightbox__prev:hover,
  .lightbox__next:hover {
    transform: scale(1.06);
  }

  .lightbox__prev {
    inset-inline-start: calc(50% + 10px);
  }

  .lightbox__next {
    inset-inline-end: calc(50% + 10px);
  }

  .lightbox__caption {
    bottom: 78px;
    font-size: 0.85rem;
  }

  .floaters {
    inset-inline-start: 16px;
    bottom: 16px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }
}
