/* ===== شركة دقة — أنماط مخصصة (خارج Tailwind) ===== */

html {
  scroll-behavior: auto;
}
body {
  background-color: #050505;
  color: #F8F9FA;
  font-family: Cairo, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection {
  background: #d4af37;
  color: #050505;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#8a6d1f, #d4af37);
  border-radius: 8px;
}

/* ---------- Glossy text effects ---------- */
.glossy-gold {
  background-image: linear-gradient(
    100deg,
    #8a6d1f 0%,
    #d4af37 22%,
    #fff6c9 40%,
    #f5d76e 50%,
    #d4af37 62%,
    #8a6d1f 82%,
    #f5d76e 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
  filter: drop-shadow(0 2px 16px rgba(212, 175, 55, 0.35));
}

.glossy-white {
  background-image: linear-gradient(
    100deg,
    #9a9a9a 0%,
    #f8f9fa 30%,
    #ffffff 45%,
    #c9c9c9 60%,
    #f8f9fa 80%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
  filter: drop-shadow(0 1px 10px rgba(255, 255, 255, 0.18));
}

.glossy-green {
  background-image: linear-gradient(
    100deg,
    #1b4332 0%,
    #52b788 30%,
    #b7e4c7 48%,
    #2d6a4f 65%,
    #52b788 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% center;
  }
}

/* ---------- Cinematic noise overlay ---------- */
.noise-overlay {
  position: relative;
}
.noise-overlay::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

/* ---------- Marquee ---------- */
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.marquee-track {
  animation: marquee 46s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* ---------- Flip cards ---------- */
.flip-scene {
  perspective: 1600px;
}
.flip-inner {
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.35, 0.1, 0.2, 1);
}
.flip-inner.is-flipped {
  transform: rotateY(180deg);
}
.flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-back {
  transform: rotateY(180deg);
}

/* ---------- Gold outline text for marquee ---------- */
.text-outline-gold {
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.5);
  color: transparent;
}

/* ---------- Slow float ---------- */
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.animate-float-slow {
  animation: floatY 6s ease-in-out infinite;
}

/* ---------- 3D rotating hero ring ---------- */
.ring3d {
  --ring-radius: 260px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: spinRing 34s linear infinite;
}
.ring3d:hover {
  animation-play-state: paused;
}
@media (min-width: 768px) {
  .ring3d {
    --ring-radius: 460px;
  }
}
@keyframes spinRing {
  from {
    transform: rotateX(-10deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-10deg) rotateY(360deg);
  }
}
.ring-card {
  position: absolute;
  width: 180px;
  height: 120px;
  left: -90px;
  top: -60px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.12);
  background: #0a0a0a;
}
@media (min-width: 768px) {
  .ring-card {
    width: 250px;
    height: 165px;
    left: -125px;
    top: -82px;
  }
}
.ring-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ring-card:hover img {
  transform: scale(1.08);
}

/* ---------- CSS hero bubbles ---------- */
.css-bubble {
  position: absolute;
  left: var(--x);
  bottom: -160px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 1px solid;
  mix-blend-mode: screen;
  box-shadow:
    inset -6px -8px 18px rgba(255, 255, 255, 0.08),
    inset 4px 6px 14px rgba(255, 255, 255, 0.16),
    0 0 30px rgba(212, 175, 55, 0.14);
  animation: bubble-rise var(--dur) linear var(--delay) infinite;
  will-change: transform;
}
.css-bubble::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 16%;
  width: 26%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(-25deg);
}
@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--drift), -55vh, 0) scale(1);
  }
  100% {
    transform: translate3d(calc(var(--drift) * -0.5), -115vh, 0) scale(1.05);
    opacity: 0;
  }
}

/* ---------- Rotating gold beam around buttons ---------- */
@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.gold-beam,
.gold-beam-lite,
.gold-beam-frame {
  position: relative;
}
.gold-beam::before,
.gold-beam::after,
.gold-beam-lite::after,
.gold-beam-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 250deg,
    #8a6d1f 292deg,
    #f5d76e 322deg,
    #fff6c9 340deg,
    #d4af37 350deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: none;
  pointer-events: none;
}
.gold-beam::after {
  filter: blur(4px);
  opacity: 0.75;
}
.beam-on.gold-beam::before,
.beam-on.gold-beam::after,
.beam-on.gold-beam-lite::after,
.beam-on.gold-beam-frame::before {
  animation: beam-spin 3.4s linear infinite;
}
@keyframes beam-spin {
  to {
    --beam-angle: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .beam-on.gold-beam::before,
  .beam-on.gold-beam::after,
  .beam-on.gold-beam-lite::after,
  .beam-on.gold-beam-frame::before {
    animation: none;
  }
}
.flip-face.gold-beam-frame,
.ring-card.gold-beam-frame {
  position: absolute;
}

/* ---------- Pulse ring for whatsapp ---------- */
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: #25d366;
  animation: pulseRing 1.8s ease-out infinite;
  z-index: -1;
}

/* ---------- Reveal-on-scroll (replaces framer-motion whileInView) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(10px);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ---------- Masked hero line entrance ---------- */
.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.5rem;
}
.mask-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}
.mask-line.mask-in > span {
  transform: translateY(0);
}

/* ---------- Simple fade/slide-up entrances (header, hero sub-elements) ---------- */
.fade-init {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-init.fade-in {
  opacity: 1;
}
.fade-up {
  transform: translateY(16px);
}
.fade-up.fade-in {
  transform: translateY(0);
}
.fade-up-lg {
  transform: translateY(20px);
}
.fade-up-lg.fade-in {
  transform: translateY(0);
}
.fade-up-60 {
  transform: translateY(60px);
}
.fade-up-60.fade-in {
  transform: translateY(0);
}

/* Header entrance */
#main-header {
  transform: translateY(-90px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.5s, box-shadow 0.5s;
}
#main-header.header-in {
  transform: translateY(0);
  opacity: 1;
}

/* Hero rotating word */
.word-rotate {
  position: relative;
  display: inline-block;
  min-width: 110px;
  height: 2.25rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .word-rotate {
    height: 2.75rem;
  }
}
.word-rotate span {
  position: absolute;
  right: 0;
  top: 0;
  white-space: nowrap;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.word-rotate span.word-active {
  transform: translateY(0);
  opacity: 1;
}
.word-rotate span.word-exit {
  transform: translateY(-110%);
  opacity: 0;
}

/* Scroll indicator bounce */
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.animate-bounce-y {
  animation: bounceY 2s infinite;
}

/* Preloader */
#preloader {
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
#preloader.preloader-hide {
  transform: translateY(-100%);
}
#preloader-bar {
  transform: translateX(100%);
  transition: transform 1.6s ease-in-out;
}
#preloader-bar.preloader-bar-run {
  transform: translateX(-100%);
}
#preloader-logo-wrap {
  opacity: 0;
  transform: scale(0.85);
  filter: blur(12px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
#preloader-logo-wrap.preloader-logo-in {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
#preloader-caption {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}
#preloader-caption.preloader-caption-in {
  opacity: 1;
}

/* Mobile menu collapse */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.mobile-menu-open {
  max-height: 480px;
  opacity: 1;
}

/* Article modal */
.modal-overlay {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.modal-overlay.modal-open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  transform: translateY(40px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.modal-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* WhatsApp float entrance */
#whatsapp-float {
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s, opacity 0.6s ease 2.2s;
}
#whatsapp-float.wa-in {
  transform: scale(1);
  opacity: 1;
}
#whatsapp-float:hover {
  transform: scale(1.1);
}

/* Before/After slider */
.ba-slider {
  touch-action: pan-y;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Toast notifications */
#toast-root {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  pointer-events: none;
}
.toast {
  font-family: Tajawal, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  color: #050505;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.toast.toast-in {
  opacity: 1;
  transform: translateY(0);
}
.toast-success { background: #52b788; }
.toast-error { background: #e07a5f; }

/* =====================================================================
   إصلاح تعارض ثيم ووردبريس / Elementor مع تصميم الموقع الثابت
   (المشكلتان: 1) الصور تفقد object-cover وتظهر طولية/غير مكتملة
              2) الأقسام محصورة بعرض ضيق في المنتصف بدل ملء الصفحة)
   ===================================================================== */

/* --- 1) إجبار الصور على ملء حاويتها بغض النظر عن CSS الثيم/إليمنتور --- */
#dhoqa-site img {
  max-width: none !important;
}
#dhoqa-site img.w-full.h-full.object-cover,
#dhoqa-site img.absolute.inset-0.w-full.h-full.object-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
#dhoqa-site img.w-full.h-\[520px\].object-cover {
  width: 100% !important;
  height: 520px !important;
  object-fit: cover !important;
}

/* --- 2) كسر الموقع من حاوية الثيم الضيقة ليملأ عرض الشاشة بالكامل --- */
body {
  overflow-x: hidden;
}
#dhoqa-site {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}
/* عناصر ثابتة الموضع (الهيدر، زر واتساب) تُحسب من نافذة العرض أصلاً
   ولا تتأثر بحاوية الأب، فلا حاجة لأي تعديل إضافي عليها. */
