/* ==========================================================================
   AL-JAWHARA ADS ENGINE & NATIVE INTERACTION HELPERS
   100% Native Design System Extensions - Zero Conflict
   ========================================================================== */

/* Accordion collapse grid transition */
.collapse-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.collapse-grid.is-open {
  grid-template-rows: 1fr;
}
.collapse-grid > div {
  overflow: hidden;
}

/* Native Modal & Bottom Sheet for Conversion Popup */
.ads-popup-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 47, 41, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}
.ads-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ads-popup-dialog {
  background: #ffffff;
  color: #13201C;
  border: 1px solid #DCE4E0;
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px -12px rgba(8, 47, 41, 0.35), 0 0 0 1px rgba(201, 162, 74, 0.2);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  font-family: var(--font-sans, system-ui, sans-serif);
}
.ads-popup-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #C9A24A 0%, #D7B765 50%, #082F29 100%);
  z-index: 20;
}
.ads-popup-overlay.active .ads-popup-dialog {
  transform: scale(1) translateY(0);
}

@media (max-width: 640px) {
  .ads-popup-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .ads-popup-dialog {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform: translateY(100%);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
  .ads-popup-overlay.active .ads-popup-dialog {
    transform: translateY(0);
  }
}

/* Quote Form Success Message */
.quote-success-banner {
  background: #eff7f5;
  border: 1px solid #25D366;
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  color: #082F29;
}

/* ==========================================================================
   HERO FLOATING TRUST BADGES & PERSUASION CARDS
   ========================================================================== */
.hero-float-card {
  position: absolute;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 47, 41, 0.85);
  border: 1px solid rgba(201, 162, 74, 0.35);
  border-radius: 1rem;
  padding: 0.65rem 0.9rem;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 10;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.hero-float-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 74, 0.6);
}

/* Live Status Pulse Animation */
@keyframes pulseLive {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
.pulse-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #25D366;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseLive 2s infinite;
}

/* Hero Pill Badge */
.hero-benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.hero-benefit-pill:hover {
  background: rgba(201, 162, 74, 0.15);
  border-color: rgba(201, 162, 74, 0.4);
}

/* Enhanced Popup Components */
.popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(201, 162, 74, 0.15);
  border: 1px solid rgba(201, 162, 74, 0.35);
  color: #8C6D1F;
  font-size: 0.75rem;
  font-weight: 800;
}

.popup-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
  color: #082F29;
  font-weight: 700;
  background: #F4F8F6;
  padding: 0.55rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(8, 47, 41, 0.07);
}

/* ==========================================================================
   HERO VISUAL HOOK & ANIMATION ENHANCEMENTS
   ========================================================================== */
.hero-hook-callout {
  display: inline-block;
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.28) 0%, rgba(11, 59, 51, 0.55) 100%);
  border: 1.5px solid rgba(201, 162, 74, 0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 0.85rem;
  color: #F8E7B2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 22px rgba(201, 162, 74, 0.25);
  margin-top: 0.4rem;
  animation: hookGlow 3.5s ease-in-out infinite alternate;
}

@keyframes hookGlow {
  0% {
    box-shadow: 0 0 15px rgba(201, 162, 74, 0.2);
    border-color: rgba(201, 162, 74, 0.5);
  }
  100% {
    box-shadow: 0 0 28px rgba(201, 162, 74, 0.45);
    border-color: rgba(201, 162, 74, 0.9);
  }
}

/* Floating Card Animations */
@keyframes floatSlow1 {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-8px);
  }
}

@keyframes floatSlow2 {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(7px);
  }
}

.float-badge-1 {
  animation: floatSlow1 3.5s ease-in-out infinite alternate;
}

.float-badge-2 {
  animation: floatSlow2 4.2s ease-in-out infinite alternate;
}

/* WhatsApp CTA Attention Pulse */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 8px 20px -4px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0), 0 12px 24px -4px rgba(37, 211, 102, 0.5);
  }
}

.cta-pulse-whatsapp {
  animation: ctaPulse 2.8s infinite;
}

/* Micro-Highlight Tag */
.hero-tag-glow {
  background: rgba(201, 162, 74, 0.18);
  border: 1px solid rgba(201, 162, 74, 0.45);
  padding: 0.15rem 0.5rem;
  border-radius: 0.5rem;
  color: #F5E09E;
  font-weight: 800;
}

/* Quote Phone Error */
#phone-error {
  color: #dc2626;
  font-size: 0.785rem;
  font-weight: 700;
  margin-top: 0.35rem;
  display: block;
}
#phone-error.hidden {
  display: none !important;
}

/* CTA Link Neutralization */
a[data-cta] {
  text-decoration: none !important;
}

/* Pricing Table Responsive Card Layout */
.pricing-table-wrap {
  border: 1px solid #DCE4E0;
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.07);
}
.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid #EEF2F0;
  transition: background-color 0.2s ease;
}
.pricing-row:last-child {
  border-bottom: none;
}
.pricing-row:hover {
  background-color: #F8FAF9;
}
.pricing-header-row {
  background: #082F29;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.875rem;
}
.pricing-header-row:hover {
  background: #082F29;
}
@media (max-width: 640px) {
  .pricing-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
  }
  .pricing-header-row {
    display: none;
  }

/* ==========================================================================
   CRO & SOCIAL PROOF ENHANCEMENTS (Trust Bar, Reviews, Gallery, Video, Form)
   ========================================================================== */

/* 1. Official Saudi Authority & Trust Bar */
.trust-authority-bar {
  background: #05211B;
  border-bottom: 1px solid rgba(201, 162, 74, 0.25);
  color: #E2E8F0;
  font-size: 0.8rem;
  position: relative;
  z-index: 15;
}
.trust-authority-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}
.sbc-badge {
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #25D366;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.google-rating-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.live-schedule-badge {
  background: rgba(201, 162, 74, 0.15);
  border: 1px solid rgba(201, 162, 74, 0.4);
  color: #F7E7B4;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* 2. Hero Transparent Pricing Strip */
.hero-price-strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(201, 162, 74, 0.18) 0%, rgba(8, 47, 41, 0.6) 100%);
  border: 1px solid rgba(201, 162, 74, 0.45);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.hero-price-strip .price-num {
  color: #F7E7B4;
  font-family: monospace;
  font-size: 1.05rem;
  font-weight: 900;
}

/* 3. Official Guarantee & Compensation Certificate Card */
.guarantee-cert-card {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #F9FBF9 100%);
  border: 2px solid #C9A24A;
  border-radius: 1.75rem;
  padding: 2rem;
  box-shadow: 0 20px 45px -12px rgba(8, 47, 41, 0.15);
  overflow: hidden;
}
.guarantee-cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #082F29 0%, #C9A24A 50%, #082F29 100%);
}
.gold-seal-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, #E5C370 0%, #B58A32 70%, #8A6626 100%);
  color: #082F29;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(181, 138, 50, 0.35), inset 0 0 0 3px #FBF3DC;
  font-weight: 900;
  text-align: center;
  flex-shrink: 0;
}

/* 4. Google Reviews Cards */
.google-review-card {
  background: #ffffff;
  border: 1px solid #E2E8E4;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.google-review-card:hover {
  transform: translateY(-4px);
  border-color: #C9A24A;
  box-shadow: 0 18px 35px -10px rgba(8, 47, 41, 0.12);
}

/* 5. Real Photo Gallery Grid */
.real-work-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .real-work-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
.gallery-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(8, 47, 41, 0.12);
  background: #082F29;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.22);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img {
  transform: scale(1.06);
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 47, 41, 0.92) 0%, rgba(8, 47, 41, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  color: #ffffff;
}

/* 6. Vertical Mobile Video Player Card */
.mobile-video-player-container {
  max-width: 380px;
  margin: 0 auto;
  border-radius: 2rem;
  background: #000000;
  border: 4px solid #1E293B;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 162, 74, 0.3);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9 / 16;
}
.video-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-controls-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 40%, rgba(0,0,0,0.6) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  z-index: 10;
}
.video-play-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(201, 162, 74, 0.9);
  color: #082F29;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(201, 162, 74, 0.6);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  z-index: 20;
}
.video-play-center:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #E5C370;
}
.video-timeline-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.video-timeline-progress {
  height: 100%;
  width: 0%;
  background: #C9A24A;
  transition: width 0.3s linear;
}

/* 7. Interactive Form Property-Type Buttons */
.property-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .property-btn-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.property-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  border: 1.5px solid #DCE4E0;
  border-radius: 1rem;
  background: #F8FAF9;
  color: #082F29;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.property-choice-btn:hover {
  border-color: #0B3B33;
  background: #EEF4F1;
}
.property-choice-btn.active {
  background: #082F29;
  border-color: #082F29;
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(8, 47, 41, 0.4);
}
.property-choice-btn.active svg,
.property-choice-btn.active .btn-icon {
  color: #C9A24A;
}



