@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&amp;display=swap');

:root {
  --primary: #A50034;
  --primary-dark: #820029;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --font-sans: 'Cairo', ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  direction: rtl;
  background-color: #f9fafb;
  color: #111827;
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary);
  color: white;
}

.ltr {
  direction: ltr;
}

img {
  max-width: 100%;
  height: auto;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

.pulse-whatsapp {
  animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse-scale {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse-scale 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.navbar-inner .logo-text {
  color: #111827 !important;
}

.navbar-inner .nav-link {
  color: #374151 !important;
}

.navbar-inner .logo-sub {
  color: var(--primary) !important;
}

.navbar:not(.scrolled):not(.navbar-inner) {
  background: transparent;
}

.navbar-inner {
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
  font-weight: 700;
  transition: color 0.3s;
}

.navbar:not(.scrolled) .nav-link {
  color: white;
}

.navbar:not(.scrolled) .nav-link:hover {
  color: #e5e7eb;
}

.navbar.scrolled .nav-link,
.navbar-inner .nav-link {
  color: #374151;
}

.navbar.scrolled .nav-link:hover,
.navbar-inner .nav-link:hover {
  color: var(--primary) !important;
}

.navbar .logo-text {
  transition: color 0.3s;
}

.navbar:not(.scrolled) .logo-text {
  color: white;
}

.navbar.scrolled .logo-text,
.navbar-inner .logo-text {
  color: #111827;
}

.navbar .logo-sub {
  transition: color 0.3s;
}

.navbar:not(.scrolled) .logo-sub {
  color: #e5e7eb;
}

.navbar.scrolled .logo-sub,
.navbar-inner .logo-sub {
  color: var(--primary);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 14rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  padding: 1rem 0;
  z-index: 60;
}

.dropdown-menu.active {
  display: block;
}

#servicesDropdownWrap::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 10px;
  /* جسر بين الزر والمينيو */
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.active {
  max-height: 1000px;
  opacity: 1;
  background: white;
}

.scroll-to-top {
  position: fixed;
  bottom: 3rem;
  left: 1.5rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  background-color: #111827;
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  border: 2px solid #a1a1a1;
}

.scroll-to-top:hover {
  background-color: var(--primary);
}

.scroll-to-top.visible {
  display: flex;
}

.whatsapp-btn {
  position: fixed;
  bottom: 3rem;
  right: 1.5rem;
  z-index: 50;
  width: 4rem;
  height: 4rem;
  background-color: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.sticky-buttons {
  position: fixed;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.sticky-buttons .btn-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 200px;
  pointer-events: auto;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 2rem;
}

.faq-answer.active {
  max-height: 500px;
  opacity: 1;
  padding: 0 2rem 2rem;
}

.faq-toggle-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-toggle-icon-wrap {
  background-color: var(--primary);
  color: white;
}

.review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.review-modal-overlay.active {
  display: flex;
}

.review-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.booking-success {
  display: none;
}

.booking-success.active {
  display: flex;
}

.form-booking {
  display: block;
}

.form-booking.hidden {
  display: none;
}

.hero-stats {
  display: none;
}

footer {
  padding-bottom: 120px;
}

@media (min-width: 1024px) {
  .hero-stats {
    display: flex;
  }
}