/* =========================================================
   أبنية أسطورة الوسام للمقاولات — تنسيقات الموقع
   ========================================================= */

:root {
  --ink: #101216;
  --ink-2: #171a20;
  --ink-3: #20242c;
  --paper: #fbf8f3;
  --stone: #f3ede3;
  --gold: #b29050;
  --gold-light: #d6ba85;
  --gold-deep: #7d5c24;
  --text: #1c1e22;
  --text-soft: #3a3d43;
  --muted: #5e6168;
  --line: rgba(16, 18, 22, .12);
  --line-dark: rgba(178, 144, 80, .22);
  --on-dark: #efe9de;
  --on-dark-muted: #a9a49a;

  --font-display: "Almarai", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 60px -26px rgba(16, 18, 22, .5);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.35; margin: 0 0 .5em; }
.strip-inner strong { font-family: var(--font-display); }
p { margin: 0 0 1em; }
ul, ol { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
[dir="ltr"] { unicode-bidi: isolate; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .85em 1.5em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 1em 1.75em; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-gold {
  color: var(--ink);
  background: linear-gradient(135deg, #e4cc98 0%, #b29050 55%, #9e7d3f 100%);
  box-shadow: 0 12px 30px -14px rgba(178, 144, 80, .8);
}
.btn-gold:hover { box-shadow: 0 18px 36px -14px rgba(178, 144, 80, .95); }

.btn-ghost {
  color: var(--on-dark);
  border-color: rgba(239, 233, 222, .4);
  background: rgba(16, 18, 22, .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: var(--gold-light); border-color: var(--gold-light); }

.btn-dark { color: var(--on-dark); background: var(--ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn-dark .icon { color: var(--gold); }

.btn-wa { color: #0b1a10; background: #25d366; }
.btn-ghost-dark { color: var(--on-dark); border-color: rgba(239, 233, 222, .3); }

/* ---------- العناوين المشتركة ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }

.section-title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.85rem); text-wrap: balance; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; border-radius: 2px; background: currentColor; }

.pattern-dark {
  color: var(--on-dark);
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23b29050' stroke-opacity='.07'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- الترويسة ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  padding-block: 16px;
  color: var(--on-dark);
  transition: padding .3s var(--ease);
}
/* الخلفية في عنصر مستقل حتى لا يؤثر التمويه على القائمة الثابتة في الجوال */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(16, 18, 22, .96);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.is-scrolled { padding-block: 9px; }
.site-header.is-scrolled::before { opacity: 1; }

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

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; }
.brand-logo { width: auto; height: 50px; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 44px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a {
  position: relative;
  display: inline-block;
  padding-block: 6px;
  font-weight: 500;
  font-size: .98rem;
  color: rgba(239, 233, 222, .88);
  transition: color .2s;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: #fff; }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }

.nav-cta { padding: .7em 1.3em; font-size: .95rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.nav-phone .icon { width: 1.1em; height: 1.1em; color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .nav-phone { display: none; }
}

@media (max-width: 1099px) {
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    border: 1px solid rgba(239, 233, 222, .25);
    border-radius: var(--radius);
    background: rgba(16, 18, 22, .35);
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--on-dark); transition: transform .3s var(--ease), opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 26px;
    padding: 100px var(--gutter) 40px;
    overflow-y: auto;
    background-color: var(--ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23b29050' stroke-opacity='.07'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3C/g%3E%3C/svg%3E");
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .nav-open { overflow: hidden; }

  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block;
    padding: 12px 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(239, 233, 222, .08);
  }
  .main-nav ul a::after { display: none; }
  .main-nav ul a.is-active { color: var(--gold-light); }
  .nav-cta { padding: 1em; font-size: 1.05rem; }
  .nav-phone { display: inline-flex; justify-content: center; font-size: 1.1rem; }
}

/* ---------- الواجهة الرئيسية ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: max(640px, 100svh);
  overflow: hidden;
  color: var(--on-dark);
  background: var(--ink);
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 55%;
  animation: hero-zoom 16s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to left, rgba(16, 18, 22, .94) 0%, rgba(16, 18, 22, .8) 32%, rgba(16, 18, 22, .38) 62%, rgba(16, 18, 22, .12) 100%),
    linear-gradient(to top, rgba(16, 18, 22, .95) 0%, rgba(16, 18, 22, .45) 24%, rgba(16, 18, 22, 0) 46%),
    linear-gradient(to bottom, rgba(16, 18, 22, .65) 0%, rgba(16, 18, 22, 0) 20%);
}

.hero-content { padding-block: calc(var(--header-h) + 64px) 56px; }
.hero-content > * { max-width: 680px; animation: rise .9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

.hero-content > .hero-title { max-width: 860px; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.75rem); line-height: 1.25; margin-bottom: .45em; }
.hero-title > span { display: block; width: fit-content; text-wrap: balance; }
.gold-text {
  color: transparent;
  background: linear-gradient(100deg, #f2e0b5 0%, #d0b06f 45%, #b29050 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-lead { max-width: 600px; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: rgba(239, 233, 222, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-strip {
  border-top: 1px solid var(--line-dark);
  background: rgba(16, 18, 22, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-inner li { display: flex; flex-direction: column; gap: 2px; padding: 22px 24px; border-inline-start: 1px solid rgba(239, 233, 222, .1); }
.strip-inner li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.strip-inner strong { font-weight: 700; font-size: 1.15rem; color: var(--gold-light); }
.strip-inner span { font-size: .92rem; color: var(--on-dark-muted); }

/* ---------- من نحن ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.about-text p { color: var(--text-soft); }
.about-text strong { color: var(--text); }

.tick-list { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 26px; }
.tick-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  font-size: .95rem;
}
.tick-list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

.about-media { position: relative; padding-block-end: 72px; padding-inline-end: 64px; }
.media-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-float {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  width: 56%;
  overflow: hidden;
  border: 8px solid var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.media-float img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-badge {
  position: absolute;
  inset-block-start: 40px;
  inset-inline-start: -28px;
  display: flex;
  flex-direction: column;
  padding: 16px 24px;
  line-height: 1.4;
  color: var(--on-dark);
  background: var(--ink);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media-badge span { font-size: .9rem; color: var(--on-dark-muted); }
.media-badge strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-light); }

/* ---------- الرؤية والرسالة ---------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.vm-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}
.vm-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: clamp(28px, 4vw, 48px);
  width: 72px;
  height: 3px;
  background: var(--gold);
}
.vm-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(178, 144, 80, .08);
}
.vm-icon .icon { width: 26px; height: 26px; }
.vm-card h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); color: #fff; }
.vm-card p { margin: 0; font-size: 1.08rem; color: var(--on-dark-muted); }

/* ---------- الخدمات ---------- */
.services { background: var(--stone); }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(28px, 4vw, 48px);
}
.service + .service { border-top: 1px solid var(--line); }
.service:nth-of-type(even) .service-media { order: 2; }

.service-media { position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service-media img { transform: scale(1.045); }
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(16, 18, 22, .6), rgba(16, 18, 22, 0) 45%);
}
.service-num {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 22px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  line-height: 1;
  color: rgba(255, 255, 255, .92);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--gold);
  background: var(--ink);
}
.service-icon .icon { width: 24px; height: 24px; }
.service-body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.service-body > p { margin-bottom: 20px; color: var(--muted); }

.service-list { display: grid; gap: 10px; }
.service-list li { position: relative; padding-inline-start: 26px; font-weight: 500; line-height: 1.7; }
.service-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .72em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- لماذا نحن ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(40px, 6vw, 96px); }
.why-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.why-head p:not(.eyebrow) { color: var(--text-soft); }
.why-head .btn { margin-top: 10px; }

.steps { position: relative; }
.steps::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(178, 144, 80, .15));
}
.step { position: relative; min-height: 56px; padding-inline-start: 88px; padding-block-end: 44px; }
.step:last-child { padding-block-end: 0; }
.step-num {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-light);
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(178, 144, 80, .4);
}
.step h3 { padding-top: 8px; margin-bottom: .3em; font-size: 1.35rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- التزامنا ---------- */
.commit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: var(--line-dark);
}
.commit { padding: clamp(28px, 3.5vw, 44px); background: var(--ink); transition: background-color .35s; }
.commit:hover { background: var(--ink-2); }
.commit .icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--gold); stroke-width: 1.5; }
.commit h3 { margin-bottom: .35em; font-size: 1.3rem; color: #fff; }
.commit p { margin: 0; color: var(--on-dark-muted); }

/* ---------- تواصل معنا ---------- */
.contact { background: var(--stone); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(36px, 5vw, 80px); }

.contact-cards { display: grid; gap: 14px; margin-top: 32px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 16px 34px -22px rgba(16, 18, 22, .5); }
.cc-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--gold-light);
  background: var(--ink);
}
.cc-icon .icon { width: 24px; height: 24px; }
.cc-icon--wa { color: #fff; background: #25d366; }
.cc-icon--snap { color: #111; background: #fffc00; }
.cc-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.45; }
.cc-label { font-size: .88rem; color: var(--muted); }
.cc-value { font-weight: 700; font-size: 1.15rem; color: var(--text); }

.quote-form {
  padding: clamp(24px, 4vw, 44px);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  color: var(--on-dark);
  background: var(--ink);
  box-shadow: var(--shadow);
  color-scheme: dark;
}
.quote-form h3 { margin-bottom: .25em; font-size: 1.6rem; color: #fff; }
.form-hint { margin-bottom: 24px; font-size: .98rem; color: var(--on-dark-muted); }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.optional { font-weight: 400; font-size: .85rem; color: var(--on-dark-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8em 1em;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(239, 233, 222, .16);
  border-radius: var(--radius);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: rgba(239, 233, 222, .42); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(178, 144, 80, .22);
}
.field select {
  appearance: none;
  padding-inline-end: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b29050' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1em center;
  cursor: pointer;
}
.field select option, .field select optgroup { color: var(--on-dark); background: var(--ink-2); }
.field.has-error input, .field.has-error select { border-color: #e2725f; }

.form-error { margin: -4px 0 14px; font-size: .95rem; color: #ffb4a8; }
.form-note { margin: 14px 0 0; text-align: center; font-size: .85rem; color: var(--on-dark-muted); }

/* ---------- التذييل ---------- */
.site-footer { padding-block-start: clamp(56px, 7vw, 80px); color: var(--on-dark-muted); background: #0b0c0f; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 190px; height: auto; }
.footer-brand p { max-width: 340px; margin-top: 18px; }
.footer-col h2 { margin-bottom: 16px; font-size: 1.1rem; color: #fff; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 1.1em; height: 1.1em; color: var(--gold); }
.footer-bottom { margin-top: 48px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .9rem; }
.footer-bottom p { margin: 0; }

/* ---------- أزرار التواصل العائمة ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  background: #25d366;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .65);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #25d366;
  border-radius: 50%;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

.mobile-bar { display: none; }

/* ---------- الحركة عند التمرير ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.commit:nth-child(3n + 2) { transition-delay: .08s; }
.commit:nth-child(3n) { transition-delay: .16s; }

/* ---------- الشاشات المتوسطة ---------- */
@media (max-width: 960px) {
  .about-grid, .service, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service-media { order: 0; }
  .about-media { max-width: 560px; }
  .why-head { position: static; }
  .vm-grid { grid-template-columns: 1fr; }
  .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .commit:nth-child(n) { transition-delay: 0s; }
  .commit:nth-child(2n) { transition-delay: .08s; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-inner li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .strip-inner li:nth-child(n + 3) { border-top: 1px solid rgba(239, 233, 222, .1); }
}

/* ---------- الجوال ---------- */
@media (max-width: 767px) {
  .wa-float { display: none; }
  .mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
  }
  .mobile-bar .btn { padding: .8em 1em; }
  .site-footer { padding-block-end: calc(70px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand-logo { height: 42px; }
  .site-header.is-scrolled .brand-logo { height: 38px; }
  .hero-content { padding-block: calc(var(--header-h) + 40px) 36px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .strip-inner li { padding: 16px 14px; }
  .strip-inner strong { font-size: 1.02rem; }
  .strip-inner span { font-size: .84rem; }
  .about-media { padding-inline-end: 36px; padding-block-end: 56px; }
  .media-badge { inset-block-start: 16px; inset-inline-start: 16px; padding: 12px 18px; }
  .media-badge strong { font-size: 1.15rem; }
  .commit-grid { grid-template-columns: 1fr; }
  .commit:nth-child(n) { transition-delay: 0s; }
  .footer-grid { grid-template-columns: 1fr; }
  .step { padding-inline-start: 76px; }
}

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