/* ==========================================
   PROFESSIONAL LUXURY THEME (Didot + EB Garamond)
========================================== */
body {
  font-family: 'Didot', serif;
}

/* ==========================================
   PROFESSIONAL MODERN THEME (Playfair Display + Source Sans Pro)
========================================== */
.modern-theme {
  font-family: 'Playfair Display', serif;
}

.modern-theme input,
.modern-theme button,
.modern-theme .btn {
  font-family: 'Source Sans Pro', sans-serif;
}

/* --- STICKY CONTACT BAR --- */
.sticky-contact-bar {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
  /* Higher than zoom result but lower than modals */
}

.contact-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Call Button - Gold/Dark Theme */
.call-btn {
  background-color: #0088f8 !important;
  color: white !important;
}

/* WhatsApp Button - Brand Green */
.whatsapp-btn {
  background-color: #25D366;
}

/* Hover Effects */
.contact-icon:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: white !important;
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
}

.call-btn:hover {
  background-color: #0088f8 !important;
  color: white !important;
}

/* ----------------- GLOBAL TOAST STYLING ----------------- */
.toast,
.swal2-popup.zayyora-premium-toast,
.swal2-toast {
  background: #062037 !important;
  color: #ffffff !important;
}

.toast {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 24px !important;
  transform: translateX(-50%) !important;
  max-width: clamp(280px, 92vw, 520px) !important;
  width: auto !important;
  padding: 14px 24px !important;
  border-radius: 26px !important;
  text-align: center !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  z-index: 99999 !important;
}

.toast.show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
  pointer-events: auto !important;
}

.toast .toast-msg {
  color: #ffffff !important;
}

.swal2-container.swal2-bottom,
.swal2-container.swal2-bottom-end,
.swal2-container.swal2-bottom-start {
  justify-content: center !important;
  align-items: flex-end !important;
  padding-bottom: 24px !important;
}

.swal2-popup.zayyora-premium-toast {
  background: #062037 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18) !important;
  border-radius: 24px !important;
  max-width: clamp(280px, 92vw, 520px) !important;
}

.swal2-timer-progress-bar {
  background: rgba(255, 255, 255, 0.65) !important;
}

/* Hide when background is blurred (during popups) */
.blur-content~.sticky-contact-bar {
  filter: blur(5px);
  opacity: 0.3;
  pointer-events: none;
}

/* -----------------loader ----------------------------- */

.luxury-loader-wrapper {
  position: fixed;
  inset: 0;
  background: #fdfaf6;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.luxury-loader-wrapper.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.ring-orbit-container {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
}

.ring-track {
  fill: none;
  stroke: #e8ddd0;
  stroke-width: 1.5;
}

.ring-arc-gold {
  fill: none;
  stroke: #c9a84c;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 180 188;
  animation: spinGold 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform-origin: center;
}

.ring-arc-rose {
  fill: none;
  stroke: #d4956a;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 80 288;
  animation: spinRose 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
  transform-origin: center;
}

.ring-arc-thin {
  fill: none;
  stroke: #b8965a;
  stroke-width: 0.5;
  stroke-dasharray: 40 320;
  animation: spinGold 3s linear infinite;
  transform-origin: center;
}

@keyframes spinGold {
  0% {
    stroke-dashoffset: 0;
    transform: rotate(0deg);
  }

  50% {
    stroke-dashoffset: -60;
  }

  100% {
    stroke-dashoffset: 0;
    transform: rotate(360deg);
  }
}

@keyframes spinRose {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.ring-center-img {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #062037;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px #e8ddd0, 0 4px 20px rgba(201, 168, 76, 0.15);
  animation: centerPulse 2s ease-in-out infinite;
}

@keyframes centerPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #c9a84c;
  border-radius: 50%;
  top: 58px;
  left: 58px;
  animation: sparkleOrbit 1.8s linear infinite;
  transform-origin: 2px 2px;
}

.sparkle:nth-child(2) {
  animation-delay: -0.6s;
  background: #d4956a;
}

.sparkle:nth-child(3) {
  animation-delay: -1.2s;
  background: #b8965a;
}

@keyframes sparkleOrbit {
  0% {
    transform: rotate(0deg) translateX(54px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: rotate(360deg) translateX(54px);
    opacity: 0;
  }
}

.loader-text-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.loader-brand {
  font-family: 'Playfair Display', 'Palatino Linotype', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 10px;
  color: #2c1f0e;
}

.loader-line-container {
  width: 160px;
  height: 1px;
  background: #e8ddd0;
  overflow: hidden;
}

.loader-line-progress {
  height: 100%;
  background: linear-gradient(90deg, #c9a84c, #d4956a, #c9a84c);
  background-size: 200% 100%;
  animation: shimmerLine 1.6s ease-in-out infinite;
}

@keyframes shimmerLine {
  0% {
    width: 0%;
    background-position: 0%;
  }

  50% {
    width: 80%;
    background-position: 100%;
  }

  100% {
    width: 0%;
    background-position: 0%;
  }
}

.loader-status {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a08b6e;
  margin: 0;
  animation: fadeStatus 3s ease-in-out infinite;
}

@keyframes fadeStatus {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

/* ========== RESPONSIVE — TABLET (max-width: 768px) ========== */
@media (max-width: 768px) {
  .loader-inner {
    gap: 24px;
  }

  .ring-orbit-container {
    width: 120px;
    height: 120px;
  }

  .loader-ring-svg {
    width: 120px;
    height: 120px;
  }

  .ring-center-img {
    width: 64px;
    height: 64px;
  }

  .ring-center-img img {
    width: 42px !important;
    height: 42px !important;
  }

  .sparkle {
    width: 3px;
    height: 3px;
    top: 46px;
    left: 46px;
    transform-origin: 1.5px 1.5px;
  }

  .loader-brand {
    font-size: 18px;
    letter-spacing: 7px;
  }

  .loader-line-container {
    width: 130px;
  }

  .loader-status {
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .loader-text-area {
    gap: 8px;
  }
}

/* Sparkle orbit radius for tablet */
@media (max-width: 768px) {
  @keyframes sparkleOrbit {
    0% {
      transform: rotate(0deg) translateX(43px);
      opacity: 0;
    }

    10% {
      opacity: 1;
    }

    90% {
      opacity: 1;
    }

    100% {
      transform: rotate(360deg) translateX(43px);
      opacity: 0;
    }
  }
}

/* ========== RESPONSIVE — MOBILE (max-width: 480px) ========== */
@media (max-width: 480px) {
  .loader-inner {
    gap: 18px;
  }

  .ring-orbit-container {
    width: 100px;
    height: 100px;
  }

  .loader-ring-svg {
    width: 100px;
    height: 100px;
  }

  .ring-center-img {
    width: 52px;
    height: 52px;
  }

  .ring-center-img img {
    width: 34px !important;
    height: 34px !important;
  }

  .sparkle {
    width: 3px;
    height: 3px;
    top: 38px;
    left: 38px;
    transform-origin: 1.5px 1.5px;
  }

  .sparkle:nth-child(2) {
    animation-delay: -0.6s;
  }

  .sparkle:nth-child(3) {
    animation-delay: -1.2s;
  }

  .loader-brand {
    font-size: 15px;
    letter-spacing: 5px;
  }

  .loader-line-container {
    width: 110px;
  }

  .loader-status {
    font-size: 8px;
    letter-spacing: 2px;
  }

  .loader-text-area {
    gap: 7px;
  }
}

/* Sparkle orbit radius for mobile */
@media (max-width: 480px) {
  @keyframes sparkleOrbit {
    0% {
      transform: rotate(0deg) translateX(35px);
      opacity: 0;
    }

    10% {
      opacity: 1;
    }

    90% {
      opacity: 1;
    }

    100% {
      transform: rotate(360deg) translateX(35px);
      opacity: 0;
    }
  }
}

/* --- STICKY CONTACT BAR --- */
.sticky-contact-bar {
  position: fixed;
  bottom: 30px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.contact-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.call-btn {
  background-color: #0088f8 !important;
  color: white !important;
}

.whatsapp-btn {
  background-color: #25D366;
}

.contact-icon:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:hover {
  background-color: #1ebe57;
}

.call-btn:hover {
  background-color: #0088f8 !important;
  color: white !important;
}

.blur-content~.sticky-contact-bar {
  filter: blur(5px);
  opacity: 0.3;
  pointer-events: none;
}

/* ── RESPONSIVE: contact bar ─────────────────────────────── */
@media (max-width: 768px) {
  .sticky-contact-bar {
    bottom: 18px;
    right: 12px;
    gap: 10px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .sticky-contact-bar {
    bottom: 14px;
    right: 10px;
    gap: 8px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}

/* Phone & WhatsApp — hide on mobile/tablet except home page */
@media (max-width: 1024px) {
  .sticky-contact-bar.home-only-bar {
    display: none;
  }

  .sticky-contact-bar.home-only-bar.show-on-home {
    display: flex;
  }
}