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

:root {
  --gold: #c9922a;
  --gold-l: #e8c06a;
  --gold-ll: #f5d98a;
  --gold-d: #8a6318;
  --dark: #08080f;
  --dark2: #0d0c16;
  --dark3: #13121c;
  --card: #17162060;
  --card2: #1c1b2a;
  --border: rgba(201, 146, 42, 0.18);
  --border2: rgba(201, 146, 42, 0.35);
  --text: #f0ece0;
  --text2: #c8c0a8;
  --muted: #8f8272;
  --r: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

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

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

/* ===== PROMO BANNER (تم تصغيره وتعديل حجم خطه وحوافه لعدم التداخل) ===== */
.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #c9922a;
  overflow: hidden;
  color: #000;
  text-align: center;
  padding: .15rem .5rem; /* تقليص الحواف العلوية والسفلية */
  font-size: .72rem; /* تصغير الخط العام */
  font-weight: 800;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  line-height: 1.2;
}

.promo-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .28) 50%, transparent 100%);
  animation: shimmer 2.5s ease-in-out infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  to {
    transform: translateX(300%);
  }
}

.promo-bar a {
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  justify-content: center;
}

.promo-close {
  position: absolute;
  left: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: .85rem;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-close:hover {
  background: rgba(0, 0, 0, .15);
}

.promo-bar .pulse {
  animation: pulse2 1.2s infinite;
}

@keyframes pulse2 {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ===== NAV (القائمة العلوية - تم تقليل المسافة العلوية لتتناسب مع شريط الخصم المحدث) ===== */
nav {
  position: fixed;
  top: 22px; /* تم تعديله من 28px لينزل أسفل شريط الخصم الصغير مباشرة */
  left: 0;
  right: 0;
  z-index: 999;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s, top 0.3s;
}

nav.scrolled {
  padding: .6rem 2rem;
}

body.promo-hidden nav {
  top: 0 !important;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-l));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #000;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  font-size: .9rem;
  font-weight: 600;
  transition: color .25s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: #000 !important;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: all .25s !important;
  font-size: .88rem !important;
}

.nav-cta:hover {
  background: var(--gold-l) !important;
  transform: translateY(-1px);
}

/* ===== DROPDOWN NAVIGATION (المنسدل عند النقر) ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(13, 12, 22, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 190px;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 8px;
  list-style: none;
  padding: 8px 0;
  right: 0;
}

.dropdown-content li {
  display: block !important;
  margin: 0 !important;
}

.dropdown-content a {
  color: var(--text2) !important;
  padding: 10px 15px !important;
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background: rgba(201, 146, 42, 0.12) !important;
  color: var(--gold) !important;
}

/* تفعيل الظهور المنسدل برمجياً عند الضغط */
.dropdown.active .dropdown-content {
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* القائمة الجانبية للشاشات الصغيرة */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(8, 8, 15, .97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text2);
  transition: color .2s;
}

.mobile-menu a:hover {
  color: var(--gold);
}

/* ===== HERO (الواجهة الرئيسية) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 30% 40%, rgba(201, 146, 42, .11) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  max-width: 680px;
  animation: slideUp .9s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(201, 146, 42, .1);
  border: 1px solid rgba(201, 146, 42, .28);
  color: var(--gold-l);
  padding: .4rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  letter-spacing: .03em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.gold-text {
  background: linear-gradient(130deg, var(--gold) 20%, var(--gold-ll) 60%, var(--gold-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text2);
  margin-bottom: 2.25rem;
  line-height: 1.85;
  max-width: 520px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.75rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  transition: all .28s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 24px rgba(201, 146, 42, .32);
}

.btn-gold:hover {
  background: var(--gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 146, 42, .45);
}

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, .28);
}

.btn-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 146, 42, .12);
}

.stat-val {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-lbl {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .3rem;
  font-weight: 600;
}

/* ===== SECTION COMMONS ===== */
section {
  padding: 5.5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.sec-label::before, .sec-label::after {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--gold-d);
  border-radius: 2px;
}

.sec-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .8rem;
}

.sec-desc {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 460px;
}

.sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== SERVICES (قسم الخدمات) ===== */
.services-section {
  background: var(--dark2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.svc-card {
  background: var(--card2);
  border: 1px solid rgba(201, 146, 42, .1);
  border-radius: var(--r);
  padding: 2rem;
  transition: all .32s;
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(201, 146, 42, .1), transparent 70%);
  border-radius: 0 var(--r) 0 100%;
}

.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-d), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.svc-card:hover {
  border-color: rgba(201, 146, 42, .38);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(201, 146, 42, .1);
}

.svc-card:hover::after {
  opacity: 1;
}

.svc-ico {
  width: 54px;
  height: 54px;
  background: rgba(201, 146, 42, .1);
  border: 1px solid rgba(201, 146, 42, .22);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.svc-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.svc-card p {
  color: var(--text2);
  font-size: .88rem;
  line-height: 1.75;
}

.svc-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .75rem;
  font-size: .77rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
}

/* ===== WHY US (لماذا تختارنا) ===== */
.why-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card2);
  border: 1px solid rgba(201, 146, 42, .1);
  border-radius: var(--r);
  transition: all .28s;
}

.why-item:hover {
  border-color: var(--border2);
  background: rgba(28, 27, 42, .9);
}

.why-ico-wrap {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: rgba(201, 146, 42, .1);
  border: 1px solid rgba(201, 146, 42, .2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.why-item h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .22rem;
}

.why-item p {
  color: var(--text2);
  font-size: .86rem;
  line-height: 1.65;
}

.color-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.color-card-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.color-note {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.color-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 146, 42, .12);
}

.color-action span {
  color: var(--text2);
  font-size: .85rem;
}

/* ===== LEAD FORM (نموذج حجز البيانات) ===== */
#contact-form-section {
  background: var(--dark3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lead-form {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: right;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(8, 8, 15, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: rgba(13, 12, 22, 0.9);
  box-shadow: 0 0 15px rgba(201, 146, 42, 0.15);
}

/* مظهر منسق للقوائم المنسدلة في الأجهزة الداكنة */
.form-group select option {
  background: var(--dark2);
  color: var(--text);
}

/* ===== GALLERY (معرض الأعمال) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gi {
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .35s;
  min-height: 200px;
}

.gi:hover {
  transform: scale(1.02);
  z-index: 2;
}

.gi1 { grid-column: span 7; grid-row: span 1; }
.gi2 { grid-column: span 5; grid-row: span 1; }
.gi3 { grid-column: span 4; grid-row: span 1; }
.gi4 { grid-column: span 4; grid-row: span 1; }
.gi5 { grid-column: span 4; grid-row: span 1; }

.gi img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gi:hover img {
  transform: scale(1.06);
}

.gi-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .75rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  width: 100%;
  font-size: .82rem;
  font-weight: 700;
  z-index: 3;
}

.gi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.gi-overlay span {
  color: rgba(255, 255, 255, 0);
  transition: color .3s;
  font-size: 1.5rem;
  font-weight: 800;
}

.gi:hover .gi-overlay {
  background: rgba(201, 146, 42, .15);
}

.gi:hover .gi-overlay span {
  color: rgba(255, 255, 255, .9);
}

/* ===== TESTIMONIALS (آراء العملاء) ===== */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.test-card {
  background: var(--card2);
  border: 1px solid rgba(201, 146, 42, .1);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color .28s;
}

.test-card:hover {
  border-color: var(--border2);
}

.test-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: .75rem;
  letter-spacing: .1em;
}

.test-text {
  color: var(--text2);
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.test-text::before, .test-text::after {
  content: '"';
  color: var(--gold-d);
}

.test-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.test-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.test-name {
  font-size: .9rem;
  font-weight: 800;
}

.test-area {
  font-size: .78rem;
  color: var(--muted);
}

/* ===== CTA (اتصل بنا الآن) ===== */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 50%, rgba(201, 146, 42, .1) 0%, transparent 70%), var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(201, 146, 42, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 146, 42, .03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-inner {
  position: relative;
}

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text2);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.phone-big {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--gold);
  direction: ltr;
  display: inline-block;
  margin-bottom: 2.5rem;
  letter-spacing: .05em;
  text-shadow: 0 0 40px rgba(201, 146, 42, .3);
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FOOTER (التذييل المطور والمقسم إلى أعمدة متجاوبة) ===== */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
}

.footer-tagline {
  color: var(--muted);
  font-size: .88rem;
}

/* تنسيقات الأعمدة الجديدة في الفوتر */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 800px;
  margin: 1.5rem 0;
  text-align: right;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
  font-weight: 800;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  line-height: 2;
}

.footer-col ul li a {
  color: var(--text2);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-copy {
  color: var(--muted);
  font-size: .78rem;
  border-top: 1px solid rgba(201, 146, 42, .1);
  width: 100%;
  padding-top: 1.5rem;
  margin-top: .25rem;
}

.footer-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text2);
  font-size: .88rem;
}

.footer-info-item span:first-child {
  color: var(--gold);
  font-size: 1.1rem;
}

.footer-dev {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 146, 42, .1);
  transition: all .25s;
  margin-top: .25rem;
  cursor: pointer;
}

.footer-dev:hover {
  color: var(--gold-l);
  border-color: rgba(201, 146, 42, .3);
  background: rgba(201, 146, 42, .05);
}

/* ===== FLOATING BTNs (أزرار الاتصال والواتس العائمة - يمين ومع اهتزاز متقطع ذكي كل 4 ثوانٍ) ===== */
.float-right {
  position: fixed;
  right: 1.25rem;
  left: auto; /* نضمن إلغاء أي تموضع يسار قديم */
  bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  z-index: 990;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
  transition: all .28s;
  position: relative;
  
  /* تفعيل كود الحركة والاهتزاز المتقطع الاحترافي */
  animation: subtle-shake 4s infinite ease-in-out;
}

.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}

.float-wa-btn {
  background: #25D366;
  color: #fff;
  animation-delay: 0.5s; /* تأخير زمني خفيف لعدم اهتزاز الزرين في نفس اللحظة */
}

.float-call-btn {
  background: var(--gold);
}

/* تأثير الاهتزاز والنبض المتقطع الهادئ لزيادة نقرات الاتصال والتحويل */
@keyframes subtle-shake {
  0%, 100%, 80% { transform: scale(1) rotate(0); }
  82% { transform: scale(1.1) rotate(-3deg); }
  84% { transform: scale(1.1) rotate(3deg); }
  86% { transform: scale(1.1) rotate(-3deg); }
  88% { transform: scale(1.1) rotate(3deg); }
  90% { transform: scale(1.05) rotate(0); }
}

.float-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  background: rgba(8, 8, 15, .95);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  top: 50%;
  transform: translateY(-50%);
}

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

/* ===== SCROLL TO TOP BTN (زر الصعود للأعلى - يسار دائماً) ===== */
.scroll-top-btn {
  position: fixed;
  left: 1.25rem;
  right: auto; /* نضمن إلغاء أي تموضع يمين قديم */
  bottom: 1.75rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(201, 146, 42, .1);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 900;
  z-index: 990;
  cursor: pointer;
  transition: all .28s;
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: all;
}

.scroll-top-btn:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-2px);
}

/* ===== HERO PHONE ===== */
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--gold);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  direction: ltr;
  padding: .6rem 1.4rem;
  margin-bottom: 1.5rem;
  background: rgba(201, 146, 42, .09);
  border: 1.5px solid rgba(201, 146, 42, .3);
  border-radius: 50px;
  transition: all .3s;
  letter-spacing: .04em;
  cursor: pointer;
}

.hero-phone:hover {
  background: rgba(201, 146, 42, .18);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 146, 42, .2);
}

.hero-phone .ph-ico {
  font-size: 1.2rem;
  animation: ring .8s ease-in-out infinite alternate;
}

@keyframes ring {
  from { transform: rotate(-12deg); }
  to { transform: rotate(12deg); }
}

.gallery-swipe-hint {
  display: none;
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .6rem;
}

@media(max-width: 900px) {
  .gallery-swipe-hint {
    display: block;
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: all .75s cubic-bezier(.16, 1, .3, 1); }
.reveal.vis { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-28px); transition: all .75s cubic-bezier(.16, 1, .3, 1); }
.reveal-l.vis { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(28px); transition: all .75s cubic-bezier(.16, 1, .3, 1); }
.reveal-r.vis { opacity: 1; transform: none; }

/* ===== RESPONSIVE MEDIA QUERIES ===== */
/* ── Tablet (900px) ── */
@media(max-width: 900px) {
  .why-wrap { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  /* تصفح معرض الصور بالسحب الأفقي على التابلت */
  .gallery-grid {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: .75rem;
    padding-bottom: .75rem;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gi { flex: 0 0 75vw; scroll-snap-align: start; min-height: 230px; }
  .gi1, .gi2, .gi3, .gi4, .gi5 { grid-column: unset; grid-row: unset; }
}

/* ── Mobile & Tablet Adjustments (الجوال والتابلت مع تعديل وتصغير تموضع شريط الخصم المحدث لعدم التداخل) ── */
@media(max-width: 768px) {
  /* تفعيل الأيقونات العائمة وثباتها في اليمين واليسار دون أي تداخل في الجوال */
  .float-right {
    display: flex !important;
    right: 1rem !important;
    left: auto !important;
    bottom: 1.5rem !important;
  }
  
  .scroll-top-btn {
    display: flex !important;
    left: 1rem !important;
    right: auto !important;
    bottom: 1.5rem !important;
  }
  
  /* تعطيل الشريط الممتد العريض لتجنب حجب الأزرار التتبعية الثابتة */
  .mob-cta {
    display: none !important; 
  }
  body {
    padding-bottom: 0px !important; /* إلغاء المساحة السفلية للشريط */
  }
}

/* ── Mobile (600px) ── */
@media(max-width: 600px) {
  section { padding: 3.5rem 1.1rem; }
  
  /* تعديل وتصغير شريط الخصم ليكون فائق الحجم ومناسباً للطباعة دون حجب اللوجو */
  .promo-bar { 
    font-size: 0.65rem !important; 
    padding: .12rem .3rem !important;
  }
  
  /* تنزيل الهيدر بدقة فائقة وبالمسافة الدقيقة المتناسقة مع الشريط الجديد */
  nav { 
    top: 18px !important; 
    padding: .6rem 1rem; 
  }
  
  /* Hero */
  .hero { padding: 7.5rem 1.1rem 3rem; }
  .hero h1 { font-size: 2.05rem; line-height: 1.15; }
  .hero-desc { font-size: .95rem; }
  .hero-phone { font-size: 1.25rem; padding: .5rem 1rem; margin-bottom: 1.1rem; }
  .hero-btns { flex-direction: column; gap: .7rem; }
  .hero-btns .btn { width: 100%; justify-content: center; padding: .8rem 1rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; padding-top: 1.5rem; }
  .stat-val { font-size: 1.6rem; }
  
  /* العناوين */
  .sec-title { font-size: 1.55rem; }
  
  /* الخدمات والنموذج */
  .services-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 1.5rem 1rem; }
  
  /* معرض الأعمال على الجوال */
  .gi { flex: 0 0 88vw; min-height: 210px; }
  
  /* الآراء والكول تو آكشن */
  .test-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; gap: .75rem; }
  .cta-btns .btn { width: 100%; max-width: 320px; justify-content: center; }
  .phone-big { font-size: 1.8rem; }
  
  /* الفوتر */
  .footer-info { flex-direction: column; gap: .75rem; align-items: flex-start; }
  
  /* جعل الأعمدة تترتب فوق بعضها في الهواتف بسلاسة */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* التعديل لأجهزة اللمس ومساحة النقر */
  .float-btn { width: 58px; height: 58px; font-size: 1.6rem; }
  .float-right { right: 1rem; bottom: 1.5rem; }
  .scroll-top-btn { width: 50px; height: 50px; left: 1rem; bottom: 1.5rem; }
  .sec-head-row { flex-direction: column; align-items: flex-start; }
}

/* ── Small Mobile (380px) ── */
@media(max-width: 380px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-phone { font-size: 1.1rem; }
  .gi { flex: 0 0 92vw; }
}

/* حماية الحركات المتكررة للتابلت والموبايل */
@media(max-width: 768px) {
  .reveal, .reveal-l, .reveal-r {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* مساحة لمس أزرار اللمس (التفاعلية) */
.nav-links a { min-height: 44px; display: flex; align-items: center; padding: .25rem .1rem; }
.footer-info-item { min-height: 44px; }

@media(hover: none) {
  .btn:active { opacity: .85; transform: scale(.97); }
  .float-btn:active { transform: scale(.92); }
  .svc-card:active { border-color: var(--border2); }
  .why-item:active { background: rgba(28, 27, 42, .9); }
  .gi:active { transform: scale(.99); }
}

@media(hover: none) {
  .svc-card:hover { transform: none; }
  .btn-gold:hover, .btn-wa:hover { transform: none; }
}

/* خفض الحركات للأجهزة المهيئة لتوفير الحركة (Accessibility) */
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-l, .reveal-r { opacity: 1 !important; transform: none !important; }
}
