/* =========================================================
   مؤسسة القدس — لأنظمة الألومنيوم والزجاج والمطابخ
   هوية بصرية: Industrial Bold
   خلفية غامقة بملمس معدني + برتقالي تحذيري + قطوع 45° (زي قطع البروفايل الحقيقي)
   ========================================================= */

/* ===== VARIABLES ===== */
:root {
  --bg: #0f1c30;
  --bg-2: #16253f;
  --bg-3: #1d2f4d;
  --ink: #f5f3ea;
  --muted: #aab3c2;
  --muted-2: #7b8496;
  --orange: #cf9f3f;
  --orange-light: #e3bd6e;
  --orange-dark: #a67c25;
  --yellow: #2f4a75;
  --navy: #2f4a75;
  --navy-light: #4d6698;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --font: 'Tajawal', sans-serif;
  --font-display: 'Cairo', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--orange);
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* شريط قطوع تحذيري (Hazard Stripe) — عنصر متكرر */
.hazard-strip {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--yellow) 14px 28px);
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ink);
}

.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 14px;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 14px;
  left: 14px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 11px 20px;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  transition: background 0.25s ease;
}

.nav-cta:hover {
  background: var(--navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px 40px 60px;
  background: var(--bg);
}

/* ملمس معدن مبروش */
.hero-metal {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(100deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #14233b 0%, #0c1729 60%, #0f1c30 100%);
  z-index: 0;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 65% 35%, black 20%, transparent 80%);
  z-index: 0;
}

/* أشعة القطع 45° المتحركة */
.cut-beam {
  position: absolute;
  width: 220px;
  height: 900px;
  background: linear-gradient(180deg, transparent, rgba(207, 159, 63, 0.12) 45%, rgba(207, 159, 63, 0.06) 55%, transparent);
  transform: rotate(35deg);
  z-index: 0;
  filter: blur(2px);
  animation: beamPulse 6s ease-in-out infinite;
}

.cut-beam.b1 {
  top: -300px;
  right: 8%;
}

.cut-beam.b2 {
  top: -260px;
  right: 22%;
  animation-delay: 1.5s;
  opacity: 0.6;
}

@keyframes beamPulse {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(207, 159, 63, 0.14) 0%, transparent 70%);
  top: -100px;
  right: -140px;
  z-index: 0;
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  padding: 8px 18px 8px 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 30px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.hero-badge b {
  background: var(--orange);
  color: var(--bg);
  padding: 4px 10px;
  font-weight: 800;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -1px;
  max-width: 900px;
}

.hero h1 .line2 {
  color: var(--muted);
}

.hero h1 .accent {
  color: var(--orange);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 26px 0 0;
  line-height: 1.9;
}

.hero-phones {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--bg);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 28px;
  transition: all 0.25s ease;
  font-family: var(--font-mono);
  direction: ltr;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.phone-btn:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

.phone-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.phone-btn.ghost:hover {
  border-color: var(--orange);
  color: var(--orange-light);
}

/* عدادات الإحصائيات */
.hero-counters {
  display: flex;
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}

.counter-box {
  padding: 22px 26px 4px 0;
  border-left: 1px solid var(--line);
  flex: 1;
}

.counter-box:last-child {
  border-left: none;
}

.counter-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.counter-num span.plus {
  color: var(--orange);
  font-size: 1.4rem;
}

.counter-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  z-index: 2;
}

.scroll-hint i {
  animation: bounce 1.8s ease-in-out infinite;
  color: var(--orange);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@media (max-width: 700px) {
  .hero-counters {
    flex-wrap: wrap;
  }

  .counter-box {
    flex: 1 1 45%;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .scroll-hint {
    display: none;
  }
}

/* ===== MARQUEE ===== */
.marquee-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--muted);
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.marquee-track span i {
  color: var(--orange);
  font-size: 0.7rem;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(50%);
  }
}

/* ===== SECTION HEAD ===== */
.section-head {
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-head.center {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--ink);
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.8;
}

.section-light {
  background: #f4f2ec;
  color: var(--bg);
}

.section-light .section-head h2 {
  color: var(--bg);
}

.section-light .section-head p {
  color: #55585f;
}

/* ===== SERVICES GRID (على خلفية فاتحة للتباين) ===== */
.services-section {
  padding: 110px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(10, 11, 14, 0.1);
  border: 1px solid rgba(10, 11, 14, 0.1);
}

.service-card {
  background: #fff;
  padding: 34px 28px;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  background: var(--bg);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 20px;
  display: block;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #f4f2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 1.2rem;
  margin-bottom: 22px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--orange);
  color: var(--bg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--bg);
}

.service-card:hover h3 {
  color: var(--ink);
}

.service-card p {
  font-size: 0.86rem;
  color: var(--muted-2);
  line-height: 1.7;
}

.service-card:hover p {
  color: var(--muted);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    padding: 22px 16px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .service-card h3 {
    font-size: 0.92rem;
  }

  .service-card p {
    font-size: 0.76rem;
  }
}

/* ===== PROCESS ===== */
.process-section {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 20px;
}

.process-step {
  background: var(--bg-2);
  padding: 34px 26px;
  position: relative;
}

.process-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line-strong);
  margin-bottom: 16px;
  display: block;
}

.process-step:hover .process-num {
  -webkit-text-stroke: 1.5px var(--orange);
}

.process-step h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 800px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== WORK GRID (نفس صوركم الحقيقية) ===== */
.sections-grid-wrapper {
  padding: 110px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.section-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.section-card:hover {
  border-color: var(--orange);
  transform: translateY(-6px);
}

.card-plate-num {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--orange);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 9px;
}

.card-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: saturate(0.9) contrast(1.05);
}

.section-card:hover .card-thumb img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.1);
}

.card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted-2);
}

.card-img-fallback i {
  font-size: 1.8rem;
}

.card-img-fallback span {
  font-size: 0.72rem;
  color: var(--muted);
}

.card-thumb.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-card:hover .card-thumb-overlay {
  opacity: 1;
}

.card-thumb-overlay i {
  font-size: 1.7rem;
  color: var(--orange-light);
}

.card-thumb.no-img .card-thumb-overlay {
  opacity: 1;
  background: transparent;
}

.card-thumb.no-img .card-thumb-overlay i {
  color: var(--muted-2);
}

.card-body {
  padding: 18px 20px 22px;
}

.section-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-card p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-arrow {
  margin-top: 14px;
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateX(4px);
  transition: all 0.3s ease;
  font-family: var(--font-mono);
}

.section-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== CONTACT INFO ===== */
.contact-info-section {
  padding: 40px 40px 110px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  align-items: stretch;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 26px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-card.accent {
  background: var(--orange);
  color: var(--bg);
  border-color: transparent;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--orange-light);
}

.contact-info-card.accent .contact-info-icon {
  border-color: rgba(10, 11, 14, 0.3);
  color: var(--bg);
}

.contact-info-body h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-info-card.accent .contact-info-body h4 {
  color: rgba(10, 11, 14, 0.6);
}

.contact-info-body p {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
}

.contact-info-body .num {
  font-family: var(--font-mono);
  direction: ltr;
  display: inline-block;
  font-size: 0.98rem;
}

/* زر الاتجاهات */
.map-directions-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--orange);
  color: var(--orange-light);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 16px 20px;
  transition: all 0.25s ease;
}

.map-directions-btn:hover {
  background: var(--orange);
  color: var(--bg);
}

/* كارت الخريطة */
.map-card {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
  filter: grayscale(0.35) invert(0.92) contrast(0.9);
}

.map-pin-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--orange);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.map-pin-badge i {
  color: var(--orange-light);
}

.map-pin-badge:hover {
  background: var(--orange);
  color: var(--bg);
}

.map-pin-badge:hover i {
  color: var(--bg);
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: 260px;
  }

  .map-card iframe {
    min-height: 260px;
  }
}


/* ===== MAINTENANCE ===== */
.maintenance-section {
  padding: 0 40px 110px;
  max-width: 1280px;
  margin: 0 auto;
}

.maintenance-banner {
  background: linear-gradient(115deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
  color: var(--bg);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}

.maintenance-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(10, 11, 14, 0.05) 0 2px, transparent 2px 26px);
}

.maintenance-text {
  position: relative;
  z-index: 1;
}

.maintenance-text .eyebrow {
  color: rgba(10, 11, 14, 0.65);
}

.maintenance-text .eyebrow::before {
  background: var(--bg);
}

.maintenance-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--bg);
}

.maintenance-text p {
  color: rgba(10, 11, 14, 0.72);
  line-height: 1.8;
  max-width: 460px;
  font-weight: 600;
}

.maintenance-features {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.maintenance-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--bg);
}

.maintenance-cta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.maint-phone-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  color: #fff;
  padding: 15px 22px;
  transition: all 0.25s ease;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}

.maint-phone-btn:hover {
  background: var(--bg-2);
  transform: translateX(-3px);
}

.maint-phone-btn i {
  color: var(--orange-light);
  font-size: 1.1rem;
}

.maint-phone-btn div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.maint-phone-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.maint-phone-num {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  direction: ltr;
}

@media (max-width: 800px) {
  .maintenance-banner {
    grid-template-columns: 1fr;
    padding: 46px 26px;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg);
  padding: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 40px 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 44px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--ink);
}

.footer-brand i {
  width: 38px;
  height: 38px;
  background: var(--orange);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 560px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
}

.footer-links a:hover {
  color: var(--bg);
  background: var(--orange);
  border-color: var(--orange);
}

.footer-credit {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-2);
}

.footer-credit a {
  color: var(--orange-light);
  font-weight: 700;
}

/* ===== PAGE HERO (صفحات فرعية) ===== */
.page-hero {
  padding: 150px 40px 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.page-hero-icon {
  width: 78px;
  height: 78px;
  background: rgba(207, 159, 63, 0.1);
  border: 1px solid var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.page-hero-icon i {
  font-size: 2rem;
  color: var(--orange-light);
}

.page-hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 900;
  color: var(--ink);
}

.page-hero-text h1 span {
  color: var(--orange);
}

.page-hero-text p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== GALLERY ===== */
.gallery-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px 110px;
  background: var(--bg);
}

.gallery-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(207, 159, 63, 0.08);
  border: 1px solid rgba(207, 159, 63, 0.25);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--orange-light);
  margin-bottom: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay i {
  font-size: 1.5rem;
  color: var(--orange-light);
}

.gallery-item.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-item.placeholder i {
  font-size: 1.8rem;
  color: var(--muted-2);
}

.gallery-item.placeholder span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 6, 8, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(207, 159, 63, 0.15);
  border: 1px solid var(--orange);
  color: var(--orange-light);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.lightbox-close:hover {
  background: var(--orange);
  color: var(--bg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  color: #fff;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.lightbox-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
}

.lightbox-prev {
  right: 20px;
}

.lightbox-next {
  left: 20px;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9000;
  width: 58px;
  height: 58px;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 1.9rem;
  color: #fff;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge,
.hero h1,
.hero-sub,
.hero-phones,
.hero-counters {
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  animation-delay: 0.08s;
}

.hero-sub {
  animation-delay: 0.16s;
}

.hero-phones {
  animation-delay: 0.24s;
}

.hero-counters {
  animation-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }
}

/* ===== MOBILE NAV — قائمة كاملة الشاشة ===== */
@media (max-width: 900px) {
  nav {
    padding: 0 20px;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 78px;
    width: 100%;
    height: calc(100vh - 78px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 30px 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px 50px;
  }

  .services-section {
    padding: 70px 20px;
  }

  .process-section {
    padding: 60px 20px;
  }

  .sections-grid-wrapper {
    padding: 70px 20px;
  }

  .gallery-section {
    padding: 20px 16px 80px;
  }

  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding: 120px 20px 50px;
  }

  footer .footer-inner {
    padding: 50px 20px 26px;
  }

  .contact-info-section {
    padding: 20px 16px 80px;
  }

  .maintenance-section {
    padding: 0 16px 80px;
  }

  .maintenance-banner {
    padding: 40px 22px;
  }

  .sections-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card-thumb {
    height: 120px;
  }

  .card-body {
    padding: 12px 12px 14px;
  }

  .section-card h3 {
    font-size: 0.88rem;
  }

  .section-card p {
    font-size: 0.72rem;
  }

  .card-plate-num {
    font-size: 0.6rem;
    padding: 2px 7px;
  }

  .card-arrow {
    font-size: 0.68rem;
    margin-top: 8px;
  }
}

@media (max-width: 420px) {
  .card-thumb {
    height: 100px;
  }
}