/* Video Play Button */
.video-card video:not([paused]) + .video-play-btn,
.video-card video[playing] + .video-play-btn {
    opacity: 0;
}
.video-play-btn {
    transition: opacity 0.3s ease;
}
.video-card:hover .video-play-btn i {
    transform: scale(1.1);
}
.video-play-btn i {
    transition: transform 0.3s ease;
}

.dh-section-divider {
  width: 80px;
  height: 2px;
  margin: 1rem auto 2rem;
  background: linear-gradient(90deg, #D4A857, #E9DCC7, #D4A857);
}

.dh-card {
  border: 1px solid rgba(233, 220, 199, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dh-card:hover {
  transform: translateY(-4px);
  border-color: #D4A857;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.dh-hero-overlay {
  background: radial-gradient(circle at top left, rgba(212, 168, 87, 0.20), transparent 50%),
              radial-gradient(circle at bottom right, rgba(233, 220, 199, 0.30), transparent 55%);
}

/* Gallery slider */
.gallery-section {
  position: relative;
}

.gallery-label {
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.gallery-slider {
  overflow: hidden;
}

.gallery-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
}

.gallery-slider-track::-webkit-scrollbar {
  height: 6px;
}

.gallery-slider-track::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 87, 0.55);
  border-radius: 999px;
}

.gallery-slider-track::-webkit-scrollbar-track {
  background: rgba(233, 220, 199, 0.35);
}

/* سلايدر الصور - صورة واحدة متوسطة في الجوال */
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  backdrop-filter: blur(2px);
}

/* تحسين السلايدر في الجوال - صورة واحدة متوسطة */
@media (max-width: 639px) {
  .gallery-slider-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    gap: 0;
  }
  
  .gallery-slider-track::-webkit-scrollbar {
    display: none;
  }
  
  .gallery-slide {
    flex: 0 0 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }
}

@media (min-width: 640px) {
  .gallery-slide {
    flex-basis: calc(50% - 1rem);
    scroll-snap-align: start;
  }
}

@media (min-width: 1024px) {
  .gallery-slide {
    flex-basis: calc(33.333% - 1rem);
  }
}

.gallery-image-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.08), rgba(212, 168, 87, 0.25));
}

.gallery-image-shell::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 110px;
  height: 40px;
  background: rgba(0, 0, 0, 0.75) url('/assets/img/watermark.png?v=3') no-repeat center/85%;
  border-radius: 6px;
  padding: 8px 12px;
  opacity: 1;
  pointer-events: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  /* تأثير التوهج الذهبي */
  filter: drop-shadow(0 0 8px rgba(212, 168, 87, 0.8))
          drop-shadow(0 0 15px rgba(212, 168, 87, 0.5));
  animation: watermark-glow 2s ease-in-out infinite alternate;
}

.gallery-image-shell img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-image-shell:hover img {
  transform: scale(1.03);
}

/* على الشاشات الكبيرة نستخدم aspect-ratio لتنسيق أفضل */
@media (min-width: 768px) {
  .gallery-image-shell {
    aspect-ratio: 3 / 4;
  }
  .gallery-image-shell img {
    height: 100%;
    object-fit: cover;
  }
}

.gallery-slide-caption {
  font-size: 0.9rem;
  color: #333;
  padding: 1rem 1.25rem 1.25rem;
}

.gallery-nav-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 2px solid #D4A857;
  color: #D4A857;
  background: #1A1A1A;
  font-size: 1.5rem;
  line-height: 1;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav-btn:hover {
  border-color: #D4A857;
  background: #D4A857;
  color: #1A1A1A;
  transform: scale(1.1);
}

.gallery-nav-btn:active {
  transform: scale(0.95);
  background: #D4A857;
  color: #1A1A1A;
}

.gallery-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero gallery in dark header */
.hero-gallery {
  max-width: 800px;
  margin: 2rem auto;
}

.hero-gallery .gallery-slide {
  flex: 0 0 70%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(212, 168, 87, 0.4);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.hero-gallery .gallery-slide:hover {
  border-color: #D4A857;
  transform: scale(1.02);
}

@media (min-width: 640px) {
  .hero-gallery .gallery-slide {
    flex-basis: 45%;
  }
}

@media (min-width: 1024px) {
  .hero-gallery .gallery-slide {
    flex-basis: 35%;
  }
}

.hero-gallery .gallery-image-shell {
  aspect-ratio: 1 / 1;
}

.hero-gallery .gallery-image-shell img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-gallery .gallery-image-shell {
    aspect-ratio: 4 / 3;
  }
  .hero-gallery .gallery-image-shell img {
    height: 100%;
    object-fit: cover;
  }
}

.hero-gallery .gallery-nav-btn {
  background: rgba(26, 26, 26, 0.8);
  border-color: rgba(212, 168, 87, 0.5);
  color: #D4A857;
}

.hero-gallery .gallery-nav-btn:hover {
  background: #D4A857;
  color: #1A1A1A;
}

.home-showcase {
  background: radial-gradient(circle at top, rgba(233, 220, 199, 0.08), transparent 60%), #0f0f0f;
}

.home-showcase .gallery-slide {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 168, 87, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.home-showcase .gallery-slide:hover {
  transform: translateY(-6px);
  border-color: #D4A857;
  background: rgba(255, 255, 255, 0.08);
}

.home-showcase .gallery-slide-caption {
  color: #F5F5F5;
}

.home-showcase .gallery-slide-caption .section-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.home-showcase .gallery-slide-caption .section-tagline {
  color: rgba(229, 229, 229, 0.8);
  font-size: 0.95rem;
}

.home-showcase .gallery-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}

.home-showcase .gallery-nav-btn:hover {
  color: #D4A857;
  border-color: #D4A857;
}

/* ===== VIDEO WATERMARK OVERLAY ===== */
.video-card {
  position: relative;
}

/* العلامة المائية داخل الفيديو - بخلفية غامقة ومتوهجة */
.video-card > div:first-child::after {
  content: '';
  position: absolute;
  bottom: 50px;
  right: 10px;
  width: 120px;
  height: 45px;
  background: rgba(0, 0, 0, 0.8) url('/assets/img/watermark.png?v=3') no-repeat center/85%;
  border-radius: 6px;
  opacity: 1;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  /* تأثير التوهج الذهبي */
  filter: drop-shadow(0 0 8px rgba(212, 168, 87, 0.9))
          drop-shadow(0 0 15px rgba(212, 168, 87, 0.6))
          drop-shadow(0 0 25px rgba(212, 168, 87, 0.4));
  animation: watermark-glow 2s ease-in-out infinite alternate;
}

@keyframes watermark-glow {
  0% {
    filter: drop-shadow(0 0 8px rgba(212, 168, 87, 0.9))
            drop-shadow(0 0 15px rgba(212, 168, 87, 0.6))
            drop-shadow(0 0 25px rgba(212, 168, 87, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 12px rgba(212, 168, 87, 1))
            drop-shadow(0 0 20px rgba(212, 168, 87, 0.8))
            drop-shadow(0 0 35px rgba(212, 168, 87, 0.5));
  }
}

@media (max-width: 767px) {
  .video-card > div:first-child::after {
    width: 90px;
    height: 35px;
    bottom: 45px;
    right: 8px;
  }
  .gallery-image-shell::after {
    width: 90px;
    height: 35px;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}

/* ===== CONTACT FORM BUTTONS ===== */
/* أزرار نموذج الاتصال - خلفية سوداء + نص ذهبي + إطار ذهبي */
form button[type="submit"],
form .contact-btn,
.contact-form-btn {
  background-color: #1A1A1A !important;
  color: #D4A857 !important;
  border: 1px solid #D4A857 !important;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

form button[type="submit"]:hover,
form .contact-btn:hover,
.contact-form-btn:hover {
  background-color: #D4A857 !important;
  color: #1A1A1A !important;
}

/* أزرار الواتساب والاتصال */
a[href*="wa.me"],
a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #1A1A1A;
  color: #D4A857;
  border: 1px solid #D4A857;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

a[href*="wa.me"]:hover,
a[href^="tel:"]:hover {
  background-color: #D4A857;
  color: #1A1A1A;
  transform: translateY(-2px);
}

/* استثناء الروابط في الفوتر والشريط السفلي */
.premium-footer a[href*="wa.me"],
.premium-footer a[href^="tel:"],
#sticky-cta a[href*="wa.me"],
#sticky-cta a[href^="tel:"],
.footer-contact-item a {
  background: transparent;
  border: none;
  padding: 0;
  display: inline;
}

.footer-contact-item a:hover {
  transform: none;
}
