/* ============================================================
   Egypt Pro Soft — ورقة الأنماط
   نسخة HTML/CSS/JS تحاكي التصميم الأصلي (React + Tailwind)
   نظام التصميم: Sand / Ink / Blue / Magenta
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Rubik:wght@400;500;600&display=swap');

/* ---------------- المتغيرات (نفس رموز hsl الأصلية) ---------------- */
:root {
  --background: 40 33% 97%;
  --foreground: 222 47% 9%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 9%;
  --primary: 226 86% 55%;
  --primary-foreground: 0 0% 100%;
  --secondary: 40 22% 92%;
  --secondary-foreground: 222 47% 9%;
  --muted: 40 18% 90%;
  --muted-foreground: 222 12% 42%;
  --accent: 333 82% 50%;
  --accent-foreground: 0 0% 100%;
  --border: 36 16% 85%;
  --input: 36 16% 85%;
  --ring: 226 86% 55%;
  --ink: 222 47% 9%;
  --sand: 40 33% 97%;
  --radius: 0.25rem;

  --blue: hsl(226 86% 55%);
  --blue-soft: hsl(226 86% 50%);
  --blue-hover-border: hsl(226 86% 55%);
  --magenta: hsl(333 82% 50%);
  --magenta-45: hsl(333 82% 45%);
  --magenta-62: hsl(333 82% 62%);
  --magenta-65: hsl(333 82% 65%);
  --magenta-72: hsl(333 82% 72%);
  --sand-hsl: hsl(var(--sand));
  --ink-hsl: hsl(var(--ink));
  --card-hsl: hsl(var(--card));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Tajawal', 'Space Grotesk', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
  line-height: 1.5;
}

html[dir='ltr'] body {
  font-family: 'Space Grotesk', 'Rubik', sans-serif;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.font-display {
  font-family: 'Tajawal', 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}

html[dir='ltr'] .font-display {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

::selection {
  background: hsl(333 82% 50% / 0.2);
}

/* ---------------- أدوات عامة ---------------- */

.wrap {
  width: 100%;
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap-narrow {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.grad-brand {
  background-image: linear-gradient(115deg, hsl(226 86% 55%), hsl(333 82% 50%));
}

.grad-text {
  background-image: linear-gradient(100deg, hsl(226 86% 58%), hsl(333 82% 52%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--magenta-45);
}

.kicker::before {
  content: '';
  width: 2rem;
  height: 1px;
  background-image: linear-gradient(115deg, hsl(226 86% 55%), hsl(333 82% 50%));
}

.h2 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}

/* خلفية الحبوب (Grain) — مثل الموقع الأصلي */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* تمييز تحته خط مائل */
.underline-mark {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.underline-mark::after {
  content: '';
  position: absolute;
  inset-inline: -2%;
  bottom: 0.06em;
  height: 0.34em;
  background-image: linear-gradient(100deg, hsl(226 86% 55% / 0.28), hsl(333 82% 50% / 0.28));
  transform: skewX(-8deg);
  z-index: -1;
}

/* حركات الظهور عند التمرير (تحاكي framer-motion whileInView) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* ---------------- الترويسة ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--sand) / 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 2.75rem;
  width: 2.75rem;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.brand-tagline {
  display: block;
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

.main-nav {
  margin-inline: auto;
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.75);
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--blue-soft);
}

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

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: border-color 0.2s, color 0.2s;
}

.lang-btn:hover {
  border-color: var(--blue-hover-border);
  color: var(--blue-soft);
}

.lang-btn .icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.call-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  transition: transform 0.1s;
}

.call-btn:active {
  transform: scale(0.98);
}

.call-btn .icon {
  width: 1rem;
  height: 1rem;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0;
  background: transparent;
  color: hsl(var(--foreground));
}

.menu-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.menu-btn .ico-close {
  display: none;
}

.mobile-nav {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--sand));
  padding: 1rem 1.25rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.75rem;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
}

.mobile-nav a:hover {
  background: hsl(var(--secondary));
}

/* ---------------- قسم الهيرو ---------------- */

.hero {
  min-height: 100dvh;
  background: hsl(var(--sand));
  padding-top: 2.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding-bottom: 4rem;
}

.hero-title {
  margin: 1.5rem 0 0;
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.03;
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  animation: heroLineUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.22s; }

@keyframes heroLineUp {
  to { opacity: 1; transform: none; }
}

.hero-body {
  margin: 1.75rem 0 0;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.hero-ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3.5rem;
  padding-inline: 1.75rem;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.1s;
}

.btn-brand:active {
  transform: scale(0.98);
}

.btn-brand .arrow {
  width: 1.25rem;
  height: 1.25rem;
}

.arrow-ltr {
  transform: rotate(90deg);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  padding-inline: 1.75rem;
  border: 1px solid hsl(var(--ink));
  border-radius: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  transition: background-color 0.2s, color 0.2s;
}

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

.hero-stats {
  margin: 3rem 0 0;
  max-width: 42rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.hero-media {
  position: relative;
}

.hero-media .glow {
  position: absolute;
  inset: -0.75rem;
  z-index: -1;
  opacity: 0.15;
  filter: blur(40px);
  background-image: linear-gradient(115deg, hsl(226 86% 55%), hsl(333 82% 50%));
}

.hero-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 30px 70px -40px hsl(222 47% 9% / 0.6);
  opacity: 0;
  transform: scale(0.96);
  animation: heroMediaIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes heroMediaIn {
  to { opacity: 1; transform: none; }
}

.hero-caption {
  position: absolute;
  bottom: 1.25rem;
  inset-inline-start: 1.25rem;
  max-width: 15rem;
  background: hsl(0 0% 100% / 0.95);
  padding: 1rem;
}

.hero-caption-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
}

.hero-caption-sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ---------------- الشريط المتحرك ---------------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid hsl(var(--ink));
  border-bottom: 1px solid hsl(var(--ink));
  background: hsl(var(--ink));
  color: #fff;
  padding: 1rem 0;
}

.ticker-track {
  display: flex;
  width: 200%;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

html[dir='rtl'] .ticker-track {
  animation-direction: reverse;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  padding-inline-end: 0;
}

.ticker-dot {
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
}

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

/* ---------------- من نحن ---------------- */

.about {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  gap: 3.5rem;
}

.about-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

.founder-card {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-inline-start: 2px solid hsl(333 82% 50%);
  padding-inline-start: 1rem;
}

.founder-img {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  object-fit: cover;
}

.founder-name {
  font-weight: 700;
  margin: 0;
}

.founder-role {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0.125rem 0 0;
}

.about-body {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(var(--muted-foreground));
}

.about-points {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
}

.check-badge {
  margin-top: 0.125rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  color: #fff;
}

.check-badge svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 3;
}

/* ---------------- الخدمات ---------------- */

.services {
  background: hsl(var(--ink));
  color: #fff;
  padding: 6rem 0;
}

.services .kicker {
  color: var(--magenta-62);
}

.services-list {
  margin-top: 3.5rem;
  border-top: 1px solid hsl(0 0% 100% / 0.12);
  border-bottom: 1px solid hsl(0 0% 100% / 0.12);
}

.service-row {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid hsl(0 0% 100% / 0.12);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-num {
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--magenta-62);
}

.service-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s;
}

.service-body {
  margin: 0;
  max-width: 36rem;
  line-height: 1.65;
  color: hsl(0 0% 100% / 0.65);
}

/* ---------------- المشاريع ---------------- */

.projects {
  padding: 6rem 0;
}

.projects-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  height: 2.5rem;
  padding-inline: 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
}

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

.filter-btn.active {
  border-color: transparent;
  color: #fff;
}

.projects-empty {
  margin-top: 4rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.projects-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  padding: 0;
  border: 0;
  text-align: start;
  background: transparent;
  color: #fff;
}

.project-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-card .aspect-1610 { aspect-ratio: 16 / 10; }
.project-card .aspect-43 { aspect-ratio: 4 / 3; }

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(222 47% 9% / 0.88), transparent 55%, transparent);
}

.project-card .info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1.5rem;
  text-align: start;
}

.project-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--magenta-72);
}

.project-title {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.project-meta {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: hsl(0 0% 100% / 0.7);
}

/* النافذة المنبثقة للمشروع */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: hsl(222 47% 9% / 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: 100%;
  max-width: 48rem;
  max-height: 92dvh;
  overflow-y: auto;
  background: hsl(var(--sand));
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal-panel {
  transform: none;
}

.modal-media {
  position: relative;
}

.modal-media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: #fff;
  color: hsl(var(--foreground));
}

.modal-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.modal-body {
  padding: 1.75rem;
}

.modal-cat {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--magenta-45);
}

.modal-title {
  margin: 0.5rem 0 0;
  font-size: 1.875rem;
  font-weight: 800;
}

.modal-text {
  margin: 1rem 0 0;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.modal-details {
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.25rem;
  font-size: 0.875rem;
}

.modal-details dt {
  color: hsl(var(--muted-foreground));
}

.modal-details dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

/* ---------------- مراحل العمل ---------------- */

.process {
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.6);
  padding: 6rem 0;
}

.process-list {
  margin: 3.5rem 0 0;
  display: grid;
  gap: 2rem;
}

.process-step {
  border-top: 2px solid hsl(var(--ink));
  padding-top: 1.25rem;
}

.process-num {
  font-size: 2.25rem;
  font-weight: 800;
}

.process-title {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.process-body {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

/* ---------------- آراء العملاء ---------------- */

.testimonials {
  padding: 6rem 0;
}

.testimonials-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.75rem;
}

.testimonial-card .quote-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--magenta);
  stroke-width: 1.6;
}

.testimonial-quote {
  margin: 1rem 0 0;
  flex: 1;
  font-size: 1.125rem;
  line-height: 1.7;
}

.testimonial-person {
  margin-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}

.testimonial-name {
  display: block;
  font-weight: 700;
}

.testimonial-role {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ---------------- التواصل ---------------- */

.contact {
  background: hsl(var(--ink));
  color: #fff;
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  gap: 3.5rem;
}

.contact-body {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(0 0% 100% / 0.65);
}

.contact-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  color: hsl(0 0% 100% / 0.85);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-list .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--magenta-65);
  stroke-width: 1.8;
}

.contact-list a {
  font-weight: 500;
}

.contact-form {
  background: hsl(0 0% 100% / 0.05);
  padding: 1.5rem;
}

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

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.field {
  width: 100%;
  height: 3.25rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

textarea.field {
  height: auto;
  resize: vertical;
  min-height: 7rem;
}

.field:focus {
  border-color: var(--blue-hover-border);
}

select.field {
  appearance: auto;
}

.form-submit {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.5rem;
  border-radius: 0;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.1s;
}

.form-submit:active {
  transform: scale(0.98);
}

.form-success {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--magenta-72);
}

.form-success svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.5;
}

/* ---------------- التذييل ---------------- */

.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--sand));
  padding: 3rem 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand {
  max-width: 24rem;
}

.footer-brand .brand img {
  height: 2.5rem;
  width: 2.5rem;
}

.footer-brand p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.footer-col {
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-col a:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ---------------- استجابة الشاشات ---------------- */

@media (min-width: 640px) {
  .wrap, .wrap-narrow { padding-inline: 2rem; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .call-btn { display: inline-flex; }
  .about, .services, .projects, .process, .testimonials, .contact { padding: 8rem 0; }
  .contact-form { padding: 2rem; }
  .contact-form .row { grid-template-columns: 1fr 1fr; }
  .modal { align-items: center; padding: 1.5rem; }
  .modal-body { padding: 1.75rem 2rem; }
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .service-row { grid-template-columns: 5rem 18rem 1fr; align-items: baseline; gap: 2rem; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .header-actions { margin-inline-start: 0; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .process-list { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; }
}

@media (min-width: 1024px) {
  .project-card.col-span-2 { grid-column: span 2; }
}

/* تقليل الحركة للمستخدمين */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
  .hero-line, .hero-img { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
