/* ================================================================
   شركة المهر السريع — Premium Footer + Sticky CTA CSS
   Standalone · RTL · No Bootstrap · Brand-aligned
   ================================================================ */

/* ================================================================
   FOOTER — BASE SHELL
   ================================================================ */
.almahr-footer {
  position: relative;
  background: var(--ah-navy, #0D1B2A);
  direction: rtl;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  color: rgba(247, 244, 238, 0.72);
}

/* ── Wave top transition (page → footer) ── */
.almahr-footer__wave {
  line-height: 0;
  margin-bottom: -1px;
}
.almahr-footer__wave svg {
  width: 100%;
  height: 55px;
  display: block;
}

/* ── Thin gold accent line below wave ── */
.almahr-footer__accent {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--ah-gold, #C28A3A) 30%,
    var(--ah-gold, #C28A3A) 70%,
    transparent 100%
  );
}

/* ================================================================
   MAIN FOOTER GRID
   ================================================================ */
.almahr-footer__body {
  padding: 0 0 8px;
}

.almahr-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 28px 48px;
  border-bottom: 1px solid rgba(194, 138, 58, 0.15);
}

/* ================================================================
   BRAND COLUMN
   ================================================================ */
.almahr-footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Logo */
.almahr-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  align-self: flex-start;
}
.almahr-footer__logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Description */
.almahr-footer__desc {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(247, 244, 238, 0.6);
  margin: 0;
  max-width: 340px;
}

/* Contact list */
.almahr-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.almahr-footer__contacts a,
.almahr-footer__contacts span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(247, 244, 238, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.almahr-footer__contacts a:hover { color: var(--ah-gold, #C28A3A); }
.almahr-footer__contacts i {
  color: var(--ah-gold, #C28A3A);
  font-size: 13px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* Social icons */
.almahr-footer__social {
  display: flex;
  gap: 8px;
}
.almahr-footer__social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(194, 138, 58, 0.25);
  color: rgba(247, 244, 238, 0.5);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.22s ease;
}
.almahr-footer__social a:hover {
  background: var(--ah-gold, #C28A3A);
  border-color: var(--ah-gold, #C28A3A);
  color: #fff;
  transform: translateY(-2px);
}

/* ================================================================
   LINK COLUMNS
   ================================================================ */
.almahr-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Column heading */
.almahr-footer__heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--ah-cream, #F7F4EE);
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ah-gold, #C28A3A);
  display: inline-block;
  align-self: flex-start;
}

/* Link list */
.almahr-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.almahr-footer__links li a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(247, 244, 238, 0.62);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s, gap 0.2s;
}
.almahr-footer__links li a i {
  color: var(--ah-gold, #C28A3A);
  font-size: 11px;
  transition: transform 0.2s;
}
.almahr-footer__links li a:hover {
  color: var(--ah-cream, #F7F4EE);
  gap: 11px;
}
.almahr-footer__links li a:hover i { transform: translateX(-3px); }

/* Service areas text */
.almahr-footer__areas {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(247, 244, 238, 0.48);
  margin: 0;
}

/* ================================================================
   BOTTOM BAR
   ================================================================ */
.almahr-footer__bar {
  background: rgba(0, 0, 0, 0.25);
}
.almahr-footer__bar-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.almahr-footer__copy,
.almahr-footer__credit {
  font-size: 12.5px;
  color: rgba(247, 244, 238, 0.38);
  margin: 0;
  line-height: 1.5;
}
.almahr-footer__copy a {
  color: rgba(247, 244, 238, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.almahr-footer__copy a:hover { color: var(--ah-gold, #C28A3A); }
.almahr-footer__credit span { color: var(--ah-gold, #C28A3A); font-weight: 700; }

/* ================================================================
   STICKY CTA BAR
   ================================================================ */

/* Container */
.almahr-stickycta {
  position: fixed;
  z-index: 1040;
  display: flex;
  gap: 10px;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.38s ease;
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
}

.almahr-stickycta.ah-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Mobile (< 1024px): bottom-center horizontal bar ── */
@media (max-width: 1023px) {
  .almahr-stickycta {
    bottom: 18px;
    left: 50%;
    translate: -50% 0;
    width: calc(100% - 32px);
    max-width: 420px;
  }

  .almahr-stickycta__btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

/* ── Desktop (≥ 1024px): right-side vertical stack ── */
@media (min-width: 1024px) {
  .almahr-stickycta {
    bottom: 80px;
    right: 20px;
    flex-direction: column;
    gap: 8px;
    width: auto;
  }
}

/* Shared button */
.almahr-stickycta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 50px;
  font-family: 'Fustat', 'Harmattan', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
              background 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
  direction: rtl;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.almahr-stickycta__btn i { font-size: 16px; flex-shrink: 0; }

/* WhatsApp — gold fill */
.almahr-stickycta__btn--wa {
  background: var(--ah-gold, #C28A3A);
  border-color: var(--ah-gold, #C28A3A);
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(194, 138, 58, 0.4);
  animation: almahr-wa-pulse 2.8s ease-in-out infinite;
}

.almahr-stickycta__btn--wa:hover {
  background: var(--ah-gold-h, #D4A050);
  border-color: var(--ah-gold-h, #D4A050);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(194, 138, 58, 0.5);
  animation: none;
}

/* Phone — navy fill */
.almahr-stickycta__btn--phone {
  background: var(--ah-navy, #0D1B2A);
  border-color: rgba(247, 244, 238, 0.28);
  color: var(--ah-cream, #F7F4EE) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.almahr-stickycta__btn--phone:hover {
  background: #162436;
  border-color: rgba(247, 244, 238, 0.55);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* WhatsApp attention pulse */
@keyframes almahr-wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(194,138,58,.4); }
  50%      { box-shadow: 0 4px 28px rgba(194,138,58,.65), 0 0 0 6px rgba(194,138,58,.12); }
}

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .almahr-stickycta { transition: none; }
  .almahr-stickycta__btn--wa { animation: none; }
}

/* ================================================================
   FOOTER RESPONSIVE
   ================================================================ */

/* Tablet (768–1023px) */
@media (max-width: 1023px) {
  .almahr-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 44px 22px 40px;
  }

  .almahr-footer__col--brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
  }

  .almahr-footer__desc { max-width: 400px; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .almahr-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 18px 32px;
  }

  .almahr-footer__col--brand {
    flex-direction: column;
    gap: 16px;
  }

  .almahr-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px;
  }

  /* Extra bottom padding so sticky CTA doesn't cover content */
  body { padding-bottom: 80px; }
}

/* ================================================================
   NEUTRALISE OLD floating buttons CSS  (legacy override)
   ================================================================ */
.footer-contact-btns { display: none !important; }
