/* ============================================================
   شركة محيط المدينة لاستيراد الأجهزة الإلكترونية
   الهوية البصرية: الفخامة التقنية (كحلي عميق، فضي، أزرق تقني، أبيض)
   ============================================================ */

:root {
  /* لوحة الألوان الأساسية */
  --navy-950: #050b16;
  --navy-900: #0a1628;
  --navy-850: #0d1c34;
  --navy-800: #132544;
  --navy-700: #1e355b;

  --electric: #2563eb;
  --electric-bright: #3b82f6;
  --electric-glow: rgba(37, 99, 235, 0.28);
  --electric-tint: rgba(37, 99, 235, 0.08);

  --white: #ffffff;
  --platinum-50: #f8fafc;
  --platinum-100: #f1f5f9;
  --silver-200: #e2e8f0;
  --silver-300: #cbd5e1;
  --silver-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --ink-900: #0a1628;

  /* الخط والقياسات */
  --font-main: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1220px;
  --header-height: 78px;

  /* أنصاف الأقطار والظلال */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-soft: 0 18px 48px rgba(10, 22, 40, 0.08);
  --shadow-deep: 0 28px 70px rgba(5, 11, 22, 0.45);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==================== الإعدادات الأساسية ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  color: var(--ink-900);
  background-color: var(--white);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
textarea {
  font-family: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--electric-bright);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

main > section[id] {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

/* رابط التخطي */
.skip-link {
  position: absolute;
  top: -120px;
  right: 1rem;
  z-index: 999;
  background: var(--electric);
  color: var(--white);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ==================== الأزرار ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), background-color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.28s ease, color 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.28s var(--ease-out);
}

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

.btn-primary {
  background-color: var(--electric);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
}

.btn-ghost {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(203, 213, 225, 0.28);
  color: var(--white);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(203, 213, 225, 0.55);
}

.btn-navy {
  background-color: var(--navy-900);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(10, 22, 40, 0.16);
}

.btn-navy:hover {
  background-color: var(--navy-800);
}

.btn-outline-navy {
  background-color: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn-outline-navy:hover {
  background-color: var(--navy-900);
  color: var(--white);
}

/* ==================== 1. Header ==================== */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.12);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 16, 31, 0.95);
  border-bottom-color: rgba(203, 213, 225, 0.2);
  box-shadow: 0 14px 36px rgba(5, 11, 22, 0.34);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--silver-300);
  transition: color 0.25s ease, transform 0.35s var(--ease-out);
}

.brand:hover .brand-mark {
  color: var(--white);
  transform: scale(1.03);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0;
}

.brand-sub {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--silver-300);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--silver-200);
  border-radius: var(--radius-sm);
  transition: color 0.22s ease, background-color 0.22s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  inset-inline: 0.9rem;
  height: 2px;
  background-color: var(--electric-bright);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(203, 213, 225, 0.24);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-line {
  width: 19px;
  height: 1.8px;
  background-color: var(--white);
  border-radius: 99px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* القائمة المنسدلة للهاتف */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  inset-inline: 0;
  background: rgba(7, 16, 31, 0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.16);
  padding-block: 1.25rem 1.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s var(--ease-out), visibility 0.28s ease;
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.9rem 0.5rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--silver-200);
  border-bottom: 1px solid rgba(203, 213, 225, 0.08);
  transition: color 0.2s ease, padding-right 0.2s ease;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--white);
  padding-right: 0.9rem;
}

/* ==================== 2. Hero Section ==================== */
.hero-section {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 22% 28%, #13284b 0%, #0a1628 54%, #060e1c 100%);
  color: var(--white);
  padding-top: calc(var(--header-height) + 3.4rem);
  padding-bottom: 4.8rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.1);
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left, rgba(203, 213, 225, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(203, 213, 225, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 45%, black 35%, transparent 82%);
  pointer-events: none;
}

.hero-ambient-glow {
  position: absolute;
  top: 10%;
  left: 6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  filter: blur(42px);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.65rem;
}

.hero-title-primary {
  font-size: clamp(2.55rem, 5vw, 4.15rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
}

.hero-title-secondary {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--silver-200);
}

.hero-description {
  max-width: 50ch;
  font-size: 1.14rem;
  line-height: 1.9;
  color: var(--silver-200);
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* التكوين البصري للـ Hero */
.hero-visual {
  position: relative;
}

.hero-stage {
  --px: 0px;
  --py: 0px;
  position: relative;
  padding-bottom: 2.4rem;
  padding-inline: 1.4rem 2.2rem;
}

.hero-backdrop-frame {
  position: absolute;
  top: -1rem;
  left: 0.25rem;
  width: 82%;
  height: 82%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(203, 213, 225, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(37, 99, 235, 0.04) 100%);
  transform: translate3d(calc(var(--px) * -0.45), calc(var(--py) * -0.45), 0);
  transition: transform 0.65s var(--ease-out), border-color 0.4s ease;
  animation: driftBackdrop 14s ease-in-out infinite;
  pointer-events: none;
}

.hero-stage:hover .hero-backdrop-frame {
  border-color: rgba(59, 130, 246, 0.34);
}

.hero-frame-primary {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.24);
  background: var(--navy-850);
  box-shadow: 0 30px 76px rgba(5, 11, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3.05;
  transform: translate3d(calc(var(--px) * 0.4), calc(var(--py) * 0.4), 0);
  transition: transform 0.55s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}

.hero-frame-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%, rgba(5, 11, 22, 0.22) 100%);
  opacity: 0.45;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.hero-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  scale: 1;
  animation: breathSlow 16s ease-in-out infinite;
  transition: scale 0.65s var(--ease-out), filter 0.55s ease;
}

.hero-frame-primary:hover {
  border-color: rgba(59, 130, 246, 0.48);
  box-shadow: 0 34px 78px rgba(5, 11, 22, 0.58), 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.hero-frame-primary:hover::after {
  opacity: 0.75;
}

.hero-frame-primary:hover .hero-img-main {
  scale: 1.045;
  filter: contrast(1.04) brightness(1.03);
}

.frame-reticle {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-color: rgba(59, 130, 246, 0.65);
  border-style: solid;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), border-color 0.35s ease;
}

.reticle-tr {
  top: 14px;
  right: 14px;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 6px;
}

.reticle-bl {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 6px;
}

.hero-frame-primary:hover .reticle-tr {
  transform: translate(3px, -3px);
  border-color: var(--electric-bright);
}

.hero-frame-primary:hover .reticle-bl {
  transform: translate(-3px, 3px);
  border-color: var(--electric-bright);
}

.hero-frame-secondary {
  position: absolute;
  z-index: 3;
  bottom: 0;
  right: 0;
  width: 41%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.36);
  box-shadow: 0 24px 52px rgba(5, 11, 22, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  background: var(--navy-900);
  transform: translate3d(calc(var(--px) * 0.9), calc(var(--py) * 0.9), 0);
  animation: floatGentle 9.5s ease-in-out -2.5s infinite;
  transition: transform 0.6s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}

.hero-img-inset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  animation: insetBreath 13.5s ease-in-out -3.5s infinite;
  transition: scale 0.65s var(--ease-out), filter 0.45s ease;
}

.hero-stage:hover .hero-frame-secondary {
  border-color: rgba(203, 213, 225, 0.5);
}

.hero-frame-secondary:hover {
  transform: translate3d(calc(var(--px) * 0.9), calc(var(--py) * 0.9 - 6px), 0);
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 28px 56px rgba(5, 11, 22, 0.72);
}

.hero-frame-secondary:hover .hero-img-inset {
  scale: 1.05;
  filter: brightness(1.04);
}

/* ==================== الإيقاع العام للأقسام ==================== */
.section {
  padding-block: 6rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink-900);
  margin-bottom: 1.15rem;
}

.section-title-light {
  color: var(--white);
}

/* ==================== 3. عن الشركة ==================== */
.about-section {
  background-color: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 4.5rem;
}

.about-photo-stack {
  position: relative;
  padding-bottom: 2.2rem;
  padding-inline-end: 2.2rem;
}

.about-photo-back {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 68%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-soft);
  animation: aboutBackDrift 13.5s ease-in-out -4s infinite;
  transition: transform 0.65s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}

.about-photo-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  filter: saturate(0.8) contrast(1.05);
  animation: aboutBackImgBreath 17.5s ease-in-out -5s infinite;
  transition: scale 0.65s var(--ease-out), filter 0.55s ease;
}

.about-photo-front {
  position: relative;
  z-index: 2;
  width: 88%;
  aspect-ratio: 4 / 4.2;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--silver-200);
  box-shadow: 0 26px 58px rgba(10, 22, 40, 0.13);
  background: var(--platinum-100);
  animation: aboutFrontFloat 11s ease-in-out infinite;
  transition: transform 0.6s var(--ease-out), box-shadow 0.45s ease, border-color 0.35s ease;
}

.about-photo-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  animation: aboutFrontImgDrift 15.5s ease-in-out -1.5s infinite;
  transition: scale 0.65s var(--ease-out), filter 0.45s ease;
}

.about-photo-stack:hover .about-photo-front {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 32px 66px rgba(10, 22, 40, 0.17);
}

.about-photo-stack:hover .about-photo-front img {
  scale: 1.045;
}

.about-photo-stack:hover .about-photo-back {
  transform: translate3d(-6px, 6px, 0);
  border-color: var(--silver-300);
}

.about-photo-stack:hover .about-photo-back img {
  scale: 1.045;
  filter: saturate(1) contrast(1.06);
}

.about-lead {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--electric);
  margin-bottom: 1.2rem;
}

.about-text {
  font-size: 1.08rem;
  color: var(--slate-700);
  margin-bottom: 1.2rem;
  line-height: 1.92;
}

.about-closing {
  margin-top: 1.6rem;
  padding-inline-start: 1.25rem;
  padding-block: 0.35rem;
  border-inline-start: 2px solid var(--electric);
  background: linear-gradient(to left, rgba(37, 99, 235, 0.035), transparent 85%);
  border-radius: 4px 0 0 4px;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink-900);
  line-height: 1.92;
}

/* ==================== 4. منتجاتنا ومجالاتنا ==================== */
.products-section {
  background-color: var(--platinum-100);
  border-block: 1px solid var(--silver-200);
}

.products-header {
  margin-bottom: 2.25rem;
}

.products-header .section-title {
  margin-bottom: 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 2.2rem;
  align-items: stretch;
}

.showcase-index {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.showcase-tab {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.55rem 1.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--silver-200);
  background: var(--white);
  text-align: right;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out),
    background-color 0.25s ease;
}

.showcase-tab:hover {
  border-color: var(--silver-400);
  transform: translateX(-3px);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.05);
}

.showcase-tab.is-active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  box-shadow: 0 20px 44px rgba(10, 22, 40, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tab-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tab-title {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-900);
}

.tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--electric-tint);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: var(--electric);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.tab-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.28s var(--ease-out);
}

.showcase-tab:hover .tab-icon {
  background: rgba(37, 99, 235, 0.13);
  border-color: rgba(37, 99, 235, 0.3);
}

.showcase-tab:hover .tab-icon svg {
  transform: scale(1.06);
}

.showcase-tab.is-active .tab-icon {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.42);
  color: #93c5fd;
}

.showcase-tab.is-active .tab-title {
  color: var(--white);
}

.tab-desc {
  font-size: 0.98rem;
  color: var(--slate-600);
  line-height: 1.78;
}

.showcase-tab.is-active .tab-desc {
  color: var(--silver-200);
}

.showcase-visuals {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 1.15rem;
  min-height: 440px;
}

.mosaic-primary {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-soft);
  transition: transform 0.55s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}

.mosaic-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  animation: mosaicBreath 18s ease-in-out infinite;
  transition: opacity 0.35s ease, scale 0.65s var(--ease-out), filter 0.45s ease;
}

.mosaic-primary img.is-switching {
  opacity: 0.35;
}

.mosaic-primary:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 24px 54px rgba(10, 22, 40, 0.14);
}

.mosaic-primary:hover img {
  scale: 1.045;
  filter: contrast(1.03);
}

.mosaic-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2.5rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgba(5, 11, 22, 0.92) 0%, rgba(5, 11, 22, 0.55) 60%, transparent 100%);
  color: var(--white);
  transition: transform 0.45s var(--ease-out);
}

.mosaic-primary:hover .mosaic-caption {
  transform: translateY(-3px);
}

.mosaic-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.32);
  border: 1px solid rgba(59, 130, 246, 0.55);
  font-size: 0.88rem;
  font-weight: 700;
  color: #eff6ff;
  margin-bottom: 0.6rem;
}

.mosaic-text {
  font-size: 1.02rem;
  color: var(--platinum-100);
  line-height: 1.75;
}

.mosaic-secondary-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.15rem;
}

.mosaic-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--silver-200);
  background: var(--navy-900);
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}

.mosaic-tile:first-child {
  animation: tileFloatA 10.5s ease-in-out -1.5s infinite;
}

.mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1;
  transition: scale 0.65s var(--ease-out), filter 0.45s ease;
}

.mosaic-tile:first-child img {
  animation: tileImgDriftA 13s ease-in-out -2s infinite;
}

.mosaic-tile:last-child img {
  animation: tileBreathB 15s ease-in-out -6s infinite;
}

.mosaic-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 22px 46px rgba(10, 22, 40, 0.16);
}

.mosaic-tile:hover::after {
  opacity: 1;
}

.mosaic-tile:first-child:hover img {
  scale: 1.05;
  filter: contrast(1.04) brightness(1.03);
}

.mosaic-tile:last-child:hover img {
  scale: 1.05;
  filter: contrast(1.04) brightness(1.03);
}

/* ==================== 5. لماذا تختارنا؟ ==================== */
.why-section {
  background: linear-gradient(160deg, #091529 0%, #060e1c 100%);
  color: var(--white);
}

.why-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: start;
}

.why-summary {
  font-size: 1.08rem;
  color: var(--silver-200);
  line-height: 1.9;
  margin-bottom: 2.2rem;
}

.why-art-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.16);
  aspect-ratio: 16 / 10;
  background: var(--navy-950);
  box-shadow: 0 20px 46px rgba(5, 11, 22, 0.4);
  transition: transform 0.55s var(--ease-out), border-color 0.35s ease, box-shadow 0.45s ease;
}

.why-art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  scale: 1;
  animation: hardwarePulse 17s ease-in-out -3s infinite;
  transition: scale 0.65s var(--ease-out), opacity 0.45s ease;
}

.why-art-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.08) 0%, rgba(6, 14, 28, 0.78) 100%);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.why-art-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 24px 52px rgba(5, 11, 22, 0.48);
}

.why-art-frame:hover img {
  scale: 1.045;
  opacity: 0.96;
}

.why-art-frame:hover .why-art-scrim {
  opacity: 0.78;
}

/* قائمة تحريرية بدون مربعات أو بطاقات */
.editorial-list {
  border-top: 1px solid rgba(203, 213, 225, 0.18);
}

.editorial-row {
  position: relative;
  display: block;
  padding-block: 2rem;
  padding-inline: 0.75rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.18);
  transition: border-color 0.3s ease, background 0.35s ease;
  cursor: default;
}

.editorial-row:hover,
.editorial-row:focus-visible,
.editorial-row.is-highlighted {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.025), transparent 85%);
}

.editorial-row::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--electric-bright);
  transition: width 0.38s var(--ease-out);
}

.editorial-row:hover::before,
.editorial-row:focus-visible::before,
.editorial-row.is-highlighted::before {
  width: 120px;
}

.row-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.row-desc {
  font-size: 1.04rem;
  color: var(--silver-200);
  line-height: 1.85;
}

/* ==================== 6. تواصل معنا ==================== */
.contact-section {
  background-color: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 4rem;
  align-items: start;
}

.contact-lead {
  font-size: 1.08rem;
  color: var(--slate-700);
  line-height: 1.9;
  margin-bottom: 2.2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.channel-block {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.45rem;
  border-radius: var(--radius-md);
  background: var(--platinum-50);
  border: 1px solid var(--silver-200);
  transition: transform 0.3s var(--ease-out), border-color 0.25s ease, box-shadow 0.25s ease;
}

.channel-block:hover {
  transform: translateY(-2px);
  border-color: var(--silver-300);
  box-shadow: 0 12px 30px rgba(10, 22, 40, 0.06);
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(10, 22, 40, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.channel-icon svg {
  width: 22px;
  height: 22px;
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.channel-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-600);
}

.channel-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink-900);
}

.channel-phone-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.channel-phone-link,
.channel-email-link {
  transition: color 0.2s ease;
}

.channel-phone-link:hover,
.channel-email-link:hover {
  color: var(--electric);
}

.channel-email-link {
  align-self: flex-start;
  font-size: clamp(0.92rem, 3.6vw, 1.12rem);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-btn {
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--silver-300);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--electric);
  color: var(--electric);
}

.copy-btn.is-copied {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

/* لوحة نموذج التواصل */
.form-panel {
  padding: 2.35rem;
  border-radius: var(--radius-xl);
  background: var(--platinum-50);
  border: 1px solid var(--silver-200);
  box-shadow: 0 22px 54px rgba(10, 22, 40, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-panel-head {
  margin-bottom: 1.75rem;
}

.form-panel-title {
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}

.form-panel-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.form-label {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink-900);
}

.form-control {
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--silver-300);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-900);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.form-control::placeholder {
  color: var(--slate-500);
}

.form-control:focus {
  outline: none;
  border-color: var(--electric);
  box-shadow: 0 0 0 3px var(--electric-tint);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-control.invalid,
.form-control.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 112px;
}

.field-error {
  font-size: 0.88rem;
  font-weight: 600;
  color: #dc2626;
  min-height: 1.2em;
}

.form-actions {
  margin-top: 0.4rem;
}

.btn-submit {
  width: 100%;
  padding-block: 0.98rem;
}

.btn-submit:disabled {
  opacity: 0.78;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: btnSpin 0.75s linear infinite;
}

.btn-submit.is-loading .btn-spinner {
  display: inline-block;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  margin-top: 1.1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.75;
}

.form-status.is-success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.form-status.is-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ==================== 7. Footer ==================== */
.site-footer {
  background-color: var(--navy-950);
  color: var(--silver-300);
  border-top: 1px solid rgba(203, 213, 225, 0.14);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.12);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.brand-mark-sm {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-company-name {
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.footer-company-activity {
  font-size: 0.96rem;
  color: var(--silver-300);
}

.footer-heading {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.98rem;
  color: var(--silver-300);
  transition: color 0.2s ease, padding-right 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  padding-right: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--silver-200);
}

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

.footer-meta-label {
  color: var(--silver-300);
}

.footer-phone {
  font-weight: 700;
  color: var(--white);
}

.footer-phone:hover {
  color: var(--electric-bright);
}

.footer-bottom {
  padding-top: 1.6rem;
  text-align: center;
}

.copyright {
  font-size: 0.92rem;
  color: var(--silver-300);
}

/* ==================== حركات الظهور والحركة التلقائية للصور ==================== */
@keyframes driftBackdrop {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 5px 5px;
  }
}

@keyframes breathSlow {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.05) translate3d(-4px, -3px, 0);
  }
}

@keyframes floatGentle {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes insetBreath {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.045) translate3d(3px, 2px, 0);
  }
}

@keyframes aboutFrontFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@keyframes aboutFrontImgDrift {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.045) translate3d(-4px, 0, 0);
  }
}

@keyframes aboutBackDrift {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: -5px 5px;
  }
}

@keyframes aboutBackImgBreath {
  0%, 100% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.045);
  }
}

@keyframes mosaicBreath {
  0%, 100% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.055) translate3d(6px, -3px, 0);
  }
}

@keyframes tileFloatA {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

@keyframes tileImgDriftA {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.045) translate3d(3px, 2px, 0);
  }
}

@keyframes tileBreathB {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.048) translate3d(-3px, 2px, 0);
  }
}

@keyframes hardwarePulse {
  0%, 100% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.055) translate3d(0, -4px, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .hero-backdrop-frame,
  .hero-frame-primary,
  .hero-img-main,
  .hero-frame-secondary,
  .hero-img-inset,
  .about-photo-front,
  .about-photo-front img,
  .about-photo-back,
  .about-photo-back img,
  .mosaic-primary img,
  .mosaic-tile,
  .mosaic-tile img,
  .why-art-frame img,
  .hero-frame-primary:hover .hero-img-main,
  .hero-frame-primary:hover .reticle-tr,
  .hero-frame-primary:hover .reticle-bl,
  .hero-frame-secondary:hover,
  .hero-frame-secondary:hover .hero-img-inset,
  .about-photo-stack:hover .about-photo-front,
  .about-photo-stack:hover .about-photo-front img,
  .about-photo-stack:hover .about-photo-back,
  .about-photo-stack:hover .about-photo-back img,
  .mosaic-primary:hover img,
  .mosaic-primary:hover .mosaic-caption,
  .mosaic-tile:hover,
  .mosaic-tile:hover img,
  .why-art-frame:hover,
  .why-art-frame:hover img,
  .channel-block:hover,
  .showcase-tab:hover .tab-icon svg {
    animation: none !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
  }

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

@media (hover: none) {
  .hero-frame-primary:hover .hero-img-main,
  .hero-frame-secondary:hover .hero-img-inset,
  .about-photo-stack:hover .about-photo-front img,
  .about-photo-stack:hover .about-photo-back img,
  .mosaic-primary:hover img,
  .mosaic-tile:first-child:hover img,
  .mosaic-tile:last-child:hover img,
  .why-art-frame:hover img {
    scale: 1;
  }

  .hero-frame-primary:hover .reticle-tr,
  .hero-frame-primary:hover .reticle-bl,
  .mosaic-primary:hover .mosaic-caption {
    transform: none;
  }

  .hero-frame-secondary:hover,
  .about-photo-stack:hover .about-photo-front,
  .about-photo-stack:hover .about-photo-back,
  .mosaic-tile:hover,
  .why-art-frame:hover,
  .channel-block:hover,
  .showcase-tab:hover .tab-icon svg {
    transform: none;
  }
}

/* ==================== التجاوب: Tablet و Mobile ==================== */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-layout,
  .about-layout,
  .showcase-grid,
  .why-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2.6rem);
    padding-bottom: 4.2rem;
  }

  .hero-stage {
    max-width: 620px;
    margin-inline: auto;
  }

  .about-photo-stack {
    max-width: 520px;
    margin-inline: auto;
  }

  .showcase-visuals {
    min-height: 400px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(100% - 1.75rem, var(--container-max));
  }

  .brand-name {
    font-size: 1.04rem;
  }

  .brand-sub {
    font-size: 0.78rem;
  }

  .section {
    padding-block: 4.2rem;
  }

  .hero-layout {
    gap: 2.4rem;
  }

  .hero-title-primary {
    font-size: 2.25rem;
  }

  .hero-title-secondary {
    font-size: 1.42rem;
  }

  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 2rem;
  }

  .about-text,
  .why-summary,
  .contact-lead {
    font-size: 1.02rem;
  }

  .products-header {
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-stage {
    padding-inline: 0.35rem 0.65rem;
    padding-bottom: 1.5rem;
  }

  .hero-backdrop-frame {
    top: -0.5rem;
    left: 0;
  }

  .hero-frame-secondary {
    width: 46%;
  }

  .about-photo-stack {
    padding-inline-end: 1.1rem;
    padding-bottom: 1.3rem;
  }

  .about-closing {
    font-size: 1.02rem;
    margin-top: 1.35rem;
  }

  .showcase-visuals {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mosaic-primary {
    aspect-ratio: 4 / 3.4;
  }

  .mosaic-caption {
    padding: 2rem 1.15rem 1.15rem;
  }

  .mosaic-secondary-stack {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .mosaic-tile {
    aspect-ratio: 4 / 3;
  }

  .editorial-row {
    padding-block: 1.5rem;
  }

  .form-panel {
    padding: 1.5rem;
  }

  .form-row-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
