/* ===================================================
   Footer Section - Luxury Responsive Styles
   =================================================== */

.footer {
  background-color: var(--color-charcoal, #1A1A1A);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 130px 0;
  border-top: 4px solid var(--color-primary, #8A1551);
  direction: rtl;
  text-align: right;
  position: relative;
  overflow: hidden;
}

body.has-sticky-bottom-bar .footer {
  padding-bottom: 145px !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--color-white, #ffffff);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand .logo .brand-logo-img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-brand .logo .brand-text,
.footer .brand-text,
#footerBrandText {
  font-family: var(--font-sans, system-ui, sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  border-right: 2.5px solid rgba(255, 255, 255, 0.2);
  padding-right: 12px;
  margin-right: 4px;
  white-space: nowrap;
}

.footer-desc-wrap {
  min-height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer-desc-spinner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 12px;
}

.footer-spinner-ring {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--color-gold, #D4AF37);
  border-radius: 50%;
  animation: footerSpin 0.75s linear infinite;
  flex-shrink: 0;
}

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

.footer-spinner-text {
  font-size: 12px;
  color: rgba(212, 175, 55, 0.85);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.footer-brand-desc,
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 440px;
  margin: 0;
  animation: footerDescFadeIn 0.4s ease forwards;
}

@keyframes footerDescFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.footer-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9) !important;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.footer-social-btn svg {
  width: 20px;
  height: 20px;
  color: inherit;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.footer-social-btn:hover {
  transform: translateY(-4px) scale(1.06);
}

.footer-social-btn:hover svg {
  transform: scale(1.1);
}

/* Facebook Specific */
.footer-social-btn.facebook:hover {
  background: linear-gradient(135deg, #1877F2 0%, #0d5fcc 100%);
  border-color: rgba(24, 119, 242, 0.6);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.45);
}

/* Instagram Specific */
.footer-social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: rgba(220, 39, 67, 0.6);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(214, 36, 159, 0.45);
}

/* WhatsApp Specific */
.footer-social-btn.whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* Footer Links Columns */
.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links h4 {
  font-family: var(--font-serif, serif);
  color: var(--color-white, #ffffff);
  font-size: 16.5px;
  font-weight: 800;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: 0.3px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  width: 28px;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--color-gold, #D4AF37);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--color-gold, #D4AF37);
  transform: translateX(-4px);
}

/* Footer Bottom Sub-bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  padding-bottom: 20px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ===================================================
   Responsive Mobile & Tablet Styles
   =================================================== */

@media (max-width: 900px) {
  .footer {
    padding: 50px 0 130px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 40px 0 135px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    margin-bottom: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand .logo .brand-text,
  .footer .brand-text,
  #footerBrandText {
    display: inline-block !important;
    font-size: 14px !important;
    color: #ffffff !important;
  }

  .footer-brand p {
    font-size: 12.5px;
    margin-bottom: 16px;
    line-height: 1.6;
  }

  .footer-links h4 {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .footer-links a {
    font-size: 12.5px;
    padding: 2px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 11.5px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
