/* ══════════════════════════════════════════════════════════════════
   دهانات أبو أحمد — هوية "استوديو الألوان والتشطيبات المعمارية"
   ══════════════════════════════════════════════════════════════════ */
:root {
  --ink: #09192e;
  --ink-2: #102542;
  --ink-3: #18345a;
  --blue: #3f78b5;
  --blue-bright: #5b9ae0;
  --sage: #6e8568;
  --sand: #d8b98a;
  --sand-light: #efe2cb;
  --slate: #4f728a;
  --paper: #f6f4ef;
  --paper-2: #ede9e0;
  --white: #ffffff;
  --text: #16202e;
  --muted: #5a6678;
  --border: rgba(9, 25, 46, 0.09);
  --display: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  --body: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 6px 20px rgba(9, 25, 46, 0.06);
  --shadow-md: 0 18px 46px rgba(9, 25, 46, 0.11);
  --shadow-lg: 0 28px 70px rgba(5, 14, 28, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.75;
  font-size: 1.03rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

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

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

.container {
  width: min(1200px, 90%);
  margin-inline: auto;
}

/* ── شريط التقدم العلوي ── */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--sand), var(--blue-bright), var(--sage));
  z-index: 250;
  pointer-events: none;
}

/* ── شاشة التحميل ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  animation: loaderFallback 0.6s ease 3.6s forwards;
}

@keyframes loaderFallback {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-swatch-fan {
  display: flex;
  gap: 6px;
  margin-bottom: 0.4rem;
}

.loader-swatch-fan span {
  width: 16px;
  height: 38px;
  border-radius: 5px;
  transform-origin: bottom center;
  animation: fanPop 0.9s var(--ease) infinite alternate;
}

.loader-swatch-fan span:nth-child(1) { background: var(--blue-bright); transform: rotate(-14deg); animation-delay: 0s; }
.loader-swatch-fan span:nth-child(2) { background: var(--sage); transform: rotate(-5deg); animation-delay: 0.1s; }
.loader-swatch-fan span:nth-child(3) { background: var(--sand); transform: rotate(5deg); animation-delay: 0.2s; }
.loader-swatch-fan span:nth-child(4) { background: var(--slate); transform: rotate(14deg); animation-delay: 0.3s; }

@keyframes fanPop {
  from { transform: translateY(4px) scaleY(0.9); }
  to { transform: translateY(-4px) scaleY(1.05); }
}

.loader-brand {
  font: 700 2.15rem/1.2 var(--display);
  color: #fff;
}

.loader-brand span {
  color: var(--sand);
}

.loader-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.loader-track {
  width: 210px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-top: 0.3rem;
}

.loader-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-bright), var(--sage), var(--sand));
  transform-origin: right;
  animation: loaderFill 1.1s var(--ease) forwards;
}

@keyframes loaderFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ── المؤشر المخصص ── */
.cursor-dot, .cursor-ring {
  position: fixed;
  left: -60px;
  top: -60px;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

@media (min-width: 1025px) and (pointer: fine) {
  .cursor-dot {
    display: block;
    width: 7px;
    height: 7px;
    background: var(--sand);
  }
  .cursor-ring {
    display: block;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(91, 154, 224, 0.7);
    transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  }
  .cursor-ring.hovered {
    width: 54px;
    height: 54px;
    background: rgba(216, 185, 138, 0.16);
    border-color: var(--sand);
  }
}

/* ── الأزرار ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.75rem;
  border-radius: 999px;
  font: 600 0.98rem/1.2 var(--body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s, border-color 0.3s;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.06rem;
}

.btn-full {
  width: 100%;
}

.btn-gold {
  background: var(--sand);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(216, 185, 138, 0.28);
}

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

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

.btn-ink:hover {
  background: var(--blue);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

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

.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(9, 25, 46, 0.04);
}

/* ── الترويسة ── */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.05rem 5%;
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), box-shadow 0.35s;
}

#header.scrolled {
  background: rgba(9, 25, 46, 0.92);
  backdrop-filter: blur(14px);
  padding: 0.72rem 5%;
  box-shadow: 0 10px 35px rgba(4, 12, 24, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font: 700 1.38rem/1 var(--display);
}

.logo-text span {
  color: var(--sand);
}

#header nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

#header nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.25s;
}

#header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
  transition: width 0.3s var(--ease);
}

#header nav a:hover,
#header nav a.active {
  color: #fff;
}

#header nav a:hover::after,
#header nav a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.25s, color 0.25s;
}

.nav-phone:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--sand);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5.5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  padding: 0.62rem 0.58rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(9, 25, 46, 0.98);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.35s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.mobile-nav-link {
  font: 700 1.65rem/1.3 var(--display);
  color: #fff;
  text-decoration: none;
  transition: color 0.25s;
}

.mobile-nav-link:hover {
  color: var(--sand);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(290px, 100%);
}

/* ── الواجهة الرئيسية (HERO) ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 5.5rem;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(50% 50% at 86% 18%, rgba(63, 120, 181, 0.36), transparent 68%),
    radial-gradient(45% 45% at 10% 88%, rgba(110, 133, 104, 0.28), transparent 68%),
    radial-gradient(38% 38% at 52% 95%, rgba(216, 185, 138, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 82%);
  pointer-events: none;
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--sand);
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border: 1px solid rgba(216, 185, 138, 0.35);
  background: rgba(216, 185, 138, 0.09);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--sand-light);
  margin-bottom: 1.45rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulseGreen 2.2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-title {
  font-size: clamp(2.45rem, 5vw, 4.15rem);
  line-height: 1.22;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}

.hero-highlight {
  display: inline-block;
  color: var(--ink);
  padding: 0.04em 0.32em;
  margin-top: 0.15em;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--sand), #f1dec0);
  box-shadow: 0 12px 30px rgba(216, 185, 138, 0.25);
}

.hero-subtitle {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.07rem;
  margin-bottom: 2rem;
}

.hero-subtitle strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  width: fit-content;
}

.metric-item strong {
  display: block;
  font: 700 1.45rem/1.15 var(--display);
  color: var(--sand);
}

.metric-item span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}

.metric-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.14);
}

/* بطاقة صورة البطل */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 530px;
}

.hero-frame {
  position: relative;
  border-radius: 26px 26px 96px 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
  background: var(--ink-2);
}

.hero-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-frame-caption {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  background: rgba(9, 25, 46, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.caption-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand);
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  z-index: 3;
}

.floating-card strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
}

.floating-card span {
  font-size: 0.75rem;
  color: var(--muted);
}

.fc-top {
  top: -18px;
  inset-inline-end: -18px;
}

.fc-bottom {
  bottom: 24px;
  inset-inline-start: -22px;
}

.fc-swatches {
  display: flex;
}

.fc-swatches i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-inline-start: -6px;
}

.fc-swatches i:first-child {
  margin-inline-start: 0;
}

.fc-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(63, 120, 181, 0.14);
  color: var(--blue);
  display: grid;
  place-items: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  cursor: pointer;
  z-index: 2;
}

.scroll-arrow {
  width: 13px;
  height: 13px;
  border-inline-end: 2px solid var(--sand);
  border-bottom: 2px solid var(--sand);
  transform: rotate(45deg);
  animation: bounceArrow 1.7s ease infinite;
}

@keyframes bounceArrow {
  50% { transform: translateY(6px) rotate(45deg); }
}

/* ── الشريط المتحرك للمهارة ── */
.craft-strip {
  background: var(--sand);
  color: var(--ink);
  overflow: hidden;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(9, 25, 46, 0.1);
}

.craft-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-weight: 600;
  font-size: 0.94rem;
}

.craft-track span {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
}

.craft-track span::after {
  content: "◆";
  font-size: 0.65rem;
  opacity: 0.55;
}

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

/* ── الأقسام العامة ── */
section {
  position: relative;
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.2rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: rgba(63, 120, 181, 0.1);
  padding: 0.32rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.tag-light {
  color: var(--sand-light);
  background: rgba(255, 255, 255, 0.12);
}

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  color: var(--ink);
  margin-bottom: 0.7rem;
}

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

.section-title-dark {
  color: #fff;
}

.section-title-dark span {
  color: var(--sand);
}

.section-desc {
  color: var(--muted);
  font-size: 1.02rem;
}

.desc-light {
  color: rgba(255, 255, 255, 0.76);
}

/* ── من نحن ── */
#about {
  background: var(--paper);
}

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

.about-quote-card {
  background: var(--ink);
  color: #fff;
  padding: 2.8rem 2.3rem;
  border-radius: 14px 80px 14px 14px;
  box-shadow: 14px 14px 0 var(--sand);
  position: relative;
}

.quote-swatch-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.quote-swatch-bar span {
  height: 6px;
  flex: 1;
  border-radius: 4px;
}

.quote-swatch-bar span:nth-child(1) { background: var(--blue-bright); }
.quote-swatch-bar span:nth-child(2) { background: var(--sage); }
.quote-swatch-bar span:nth-child(3) { background: var(--sand); }
.quote-swatch-bar span:nth-child(4) { background: var(--slate); }

.about-quote-card blockquote {
  font: 600 1.38rem/1.75 var(--display);
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.96);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sand), #b58d52);
  color: var(--ink);
  font: 700 1.4rem/1 var(--display);
  display: grid;
  place-items: center;
}

.quote-author .name {
  font-weight: 700;
  font-size: 1.06rem;
}

.quote-author .title {
  font-size: 0.88rem;
  color: var(--sand);
}

.about-text h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  color: var(--ink);
  margin-bottom: 1rem;
}

.about-text h2 span {
  color: var(--blue);
}

.about-text > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.about-bullets {
  list-style: none;
  display: grid;
  gap: 0.72rem;
  margin-bottom: 2rem;
}

.about-bullets li {
  position: relative;
  padding-inline-start: 1.85rem;
  font-weight: 500;
}

.about-bullets li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.58em;
  width: 0.95rem;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--sage);
}

.about-bullets li:nth-child(2)::before { background: var(--sand); }
.about-bullets li:nth-child(3)::before { background: var(--blue); }
.about-bullets li:nth-child(4)::before { background: var(--slate); }
.about-bullets li:nth-child(5)::before { background: var(--ink); }

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ── الخدمات ── */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(63, 120, 181, 0.25);
}

.service-top {
  padding: 1.35rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.s-blue { background: linear-gradient(135deg, #27588c, #4481c2); }
.s-sage { background: linear-gradient(135deg, #4f664a, #718b6a); }
.s-sand { background: linear-gradient(135deg, #9b794a, #c9a775); }
.s-slate { background: linear-gradient(135deg, #2b4761, #4f728a); }

.service-num {
  font: 700 1.55rem/1 var(--display);
  opacity: 0.55;
}

.service-body {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-body h3 {
  font-size: 1.24rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.service-body p {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
  flex: 1;
}

.service-meta {
  display: inline-block;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
}

/* ── مختبر الألوان التفاعلي (Color Visualizer) ── */
#visualizer {
  background: linear-gradient(180deg, var(--paper) 0%, #ebe6dc 100%);
}

.visualizer-shell {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.room-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #eae5dc;
  border: 1px solid var(--border);
}

.room-svg {
  width: 100%;
  height: auto;
  display: block;
}

.room-badge-bar {
  position: absolute;
  top: 1rem;
  inset-inline: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  z-index: 2;
}

.room-swatch-pill, .room-code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(9, 25, 46, 0.84);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.room-swatch-pill i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.room-code-pill {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--sand-light);
  direction: ltr;
}

.visualizer-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.35rem;
  padding: 0.5rem 0.25rem;
}

.control-block h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 0.72rem;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.swatch-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.72rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.swatch-btn:hover {
  transform: translateY(-1px);
  border-color: var(--slate);
}

.swatch-btn.active {
  border-color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.swatch-chip {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
}

.swatch-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-btn {
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

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

.pill-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.visualizer-footer {
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.vis-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

/* ── مقارنة قبل وبعد (Before / After) ── */
#transformation {
  background: var(--ink);
  color: #fff;
}

#transformation .section-tag {
  background: rgba(216, 185, 138, 0.14);
  color: var(--sand-light);
}

.transform-wrapper {
  max-width: 920px;
  margin-inline: auto;
}

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  direction: ltr;
  user-select: none;
  --pos: 50%;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.ba-label {
  position: absolute;
  top: 1rem;
  padding: 0.38rem 0.95rem;
  border-radius: 999px;
  background: rgba(9, 25, 46, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  z-index: 3;
  pointer-events: none;
}

.ba-label-before {
  left: 1rem;
}

.ba-label-after {
  right: 1rem;
  background: rgba(110, 133, 104, 0.92);
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #fff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  border: 3px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.stage-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.stage-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: start;
  transition: 0.25s;
}

.stage-btn:hover {
  border-color: var(--sand);
}

.stage-btn.active {
  background: rgba(216, 185, 138, 0.16);
  border-color: var(--sand);
  color: #fff;
}

.stage-step {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--sand);
  color: var(--ink);
  display: grid;
  place-items: center;
  font: 700 0.9rem/1 var(--display);
  flex-shrink: 0;
}

/* ── خطوات العمل ── */
#process {
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.9rem 1.5rem;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--sand);
  font: 700 1.15rem/1 var(--display);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

.process-card h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.process-card p {
  font-size: 0.93rem;
  color: var(--muted);
}

/* ── لماذا نحن ── */
#why-us {
  background: linear-gradient(135deg, var(--ink) 0%, #0d223f 100%);
  color: #fff;
}

#why-us .section-tag {
  background: rgba(216, 185, 138, 0.14);
  color: var(--sand-light);
}

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

.why-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.9rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-inline-start: 4px solid var(--blue-bright);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.why-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.075);
}

.why-card:nth-child(2) { border-inline-start-color: var(--sage); }
.why-card:nth-child(3) { border-inline-start-color: var(--sand); }
.why-card:nth-child(4) { border-inline-start-color: #79b6f2; }

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.why-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.why-info p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

/* ── معرض الأعمال ── */
#gallery {
  background: var(--white);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.2rem;
}

.filter-btn {
  padding: 0.58rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

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

.filter-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery-item.gallery-featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item.is-hidden {
  display: none;
}

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

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

.gallery-item img.img-crop-bottom {
  object-position: center top;
  transform: scale(1.05);
}

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

.gallery-item:hover img.img-crop-bottom {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 35%, rgba(9, 25, 46, 0.88) 100%);
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.3s;
}

.gallery-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 0.2rem;
}

.gallery-meta h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
}

.gallery-zoom {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.gallery-item:hover .gallery-zoom {
  background: var(--sand);
  color: var(--ink);
}

/* ── عارض الصور المحسن (Lightbox) ── */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 13, 25, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1000px, 100%);
  margin-inline: auto;
  color: #fff;
}

.lightbox-counter {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sand);
  direction: ltr;
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s;
}

.lightbox-close:hover {
  background: #fff;
  color: var(--ink);
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: auto;
  width: min(1040px, 100%);
}

.lightbox-figure {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  width: min(820px, 100%);
  box-shadow: var(--shadow-lg);
}

.lightbox-img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #06101e;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.35rem;
  color: #fff;
}

.lightbox-cat {
  display: block;
  font-size: 0.78rem;
  color: var(--sand);
  font-weight: 600;
}

.lightbox-caption h3 {
  font-size: 1.08rem;
}

.lightbox-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}

.lightbox-nav:hover {
  background: var(--sand);
  color: var(--ink);
}

/* ── حاسبة التكلفة التقديرية ── */
#estimator {
  background: var(--paper);
}

.estimator-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.estimator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.est-group label {
  display: block;
  font: 700 1rem/1.4 var(--display);
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.est-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.est-label-row label {
  margin-bottom: 0;
}

.est-area-readout {
  font: 700 1.2rem/1 var(--display);
  color: var(--blue);
  background: rgba(63, 120, 181, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

.est-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.est-options-stack {
  grid-template-columns: 1fr;
}

.est-opt {
  padding: 0.75rem 0.9rem;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: 0.25s;
}

.est-options-stack .est-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-align: start;
}

.est-options-stack .est-opt span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.est-opt:hover {
  border-color: var(--slate);
}

.est-opt.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.est-options-stack .est-opt.active span {
  color: var(--sand-light);
}

.est-range {
  width: 100%;
  accent-color: var(--blue);
  cursor: pointer;
  height: 8px;
}

.est-range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.estimator-summary {
  background: linear-gradient(155deg, var(--ink) 0%, #122d52 100%);
  color: #fff;
  border-radius: 22px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.summary-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--sand);
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
}

.summary-price {
  font: 700 clamp(1.85rem, 3vw, 2.5rem)/1.2 var(--display);
  color: #fff;
}

.summary-note {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.96rem;
}

.summary-note strong {
  color: var(--sand);
}

.summary-perks {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.summary-perks li {
  position: relative;
  padding-inline-start: 1.35rem;
}

.summary-perks li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--sand);
  font-weight: 700;
}

/* ── الأسئلة الشائعة ── */
#faq {
  background: var(--white);
}

.faq-container {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item.open {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: start;
  font: 700 1.04rem/1.45 var(--display);
  color: var(--ink);
  cursor: pointer;
}

.faq-plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(9, 25, 46, 0.08);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.faq-item.open .faq-plus {
  transform: rotate(45deg);
  background: var(--ink);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-a p {
  padding: 0 1.4rem 1.3rem;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ── قسم التواصل ── */
#contact {
  background: linear-gradient(135deg, #1b4f85 0%, #102b4d 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  inset: auto -8% -45% auto;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 185, 138, 0.24), transparent 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 2;
}

.contact-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin-bottom: 1rem;
}

.contact-title span {
  color: var(--sand);
}

.contact-sub {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: 1.06rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.contact-phone-card {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 2rem;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font: 700 1.32rem/1.2 var(--display);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: transform 0.3s var(--ease);
}

.contact-phone-card:hover {
  transform: translateY(-3px) scale(1.02);
}

/* ── الفوتر ── */
#footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
  padding: 4.5rem 0 1.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 2.8rem;
}

.footer-brand p {
  margin: 1rem 0 1.35rem;
  max-width: 24rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.social-link:hover {
  background: var(--sand);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1rem;
}

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

.footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s;
}

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

.footer-contact-item {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.footer-contact-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-contact-item a:hover {
  color: var(--sand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--sand);
  text-decoration: none;
}

/* ── زر واتساب العائم + شريط الجوال ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
  animation: pulseWa 2.5s ease infinite;
  transition: transform 0.25s;
}

.whatsapp-btn:hover {
  transform: scale(1.07);
}

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  65% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

.whatsapp-tooltip {
  background: #fff;
  color: var(--ink);
  padding: 0.38rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

.mobile-sticky-cta {
  display: none;
}

/* ── حركات الظهور ── */
.js-anim .reveal,
.js-anim .reveal-left,
.js-anim .reveal-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js-anim .visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.07s !important; }
.delay-2 { transition-delay: 0.14s !important; }
.delay-3 { transition-delay: 0.21s !important; }
.delay-4 { transition-delay: 0.28s !important; }

/* ── التجاوب مع الشاشات ── */
@media (max-width: 1080px) {
  #header nav, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    text-align: center;
  }
  .hero-subtitle, .hero-metrics { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .scroll-indicator { display: none; }

  .about-grid,
  .visualizer-shell,
  .estimator-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  section { padding: 4.2rem 0; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.gallery-featured {
    grid-column: span 2;
  }

  .why-grid,
  .footer-grid,
  .stage-switcher {
    grid-template-columns: 1fr;
  }

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

  .lightbox-stage {
    position: relative;
  }
  .lightbox-nav {
    position: absolute;
    top: 42%;
    z-index: 4;
  }
  .lightbox-prev { right: 0.5rem; }
  .lightbox-next { left: 0.5rem; }

  .whatsapp-float {
    display: none;
  }

  .mobile-sticky-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 105;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(9, 25, 46, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .m-cta-wa, .m-cta-call {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
  }

  .m-cta-wa {
    background: #25d366;
    color: #fff;
  }

  .m-cta-call {
    background: var(--sand);
    color: var(--ink);
  }

  #footer {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 560px) {
  .services-grid,
  .process-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.gallery-featured {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
  .fc-top {
    top: -12px;
    inset-inline-end: 8px;
  }
  .fc-bottom {
    bottom: -14px;
    inset-inline-start: 8px;
  }
  .about-quote-card {
    box-shadow: 8px 8px 0 var(--sand);
    padding: 2rem 1.4rem;
  }
  .hero-metrics {
    width: 100%;
    justify-content: space-around;
    gap: 0.8rem;
  }
  .metric-divider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-anim .reveal,
  .js-anim .reveal-left,
  .js-anim .reveal-right {
    opacity: 1;
    transform: none;
  }
}
