/* ============================================================
   ALRAHEELY — Footer
   Dark Navy · Gold · RTL · Cairo
   Tokens inherited from header.css (:root)
   ============================================================ */

/* ── Shell ─────────────────────────────────────────────────── */
.ft {
  position: relative;
  background: var(--sh-navy-deep, #071524);
  color: rgba(255,255,255,.85);
  overflow: hidden;
  font-family: "Cairo", system-ui, sans-serif;
  /* Seamlessly continues the page palette */
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Gold accent line (mirrors header) ─────────────────────── */
.ft__accent {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(201,162,77,.5) 30%,
    rgba(221,185,106,.7) 50%,
    rgba(201,162,77,.5) 70%,
    transparent 100%
  );
}

/* ── Decorative bg ──────────────────────────────────────────── */
.ft__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ft__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .28;
}
.ft__orb--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(201,162,77,.18) 0%, transparent 70%);
  inset-inline-end: -160px;
  top: -100px;
}
.ft__orb--2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(11,31,51,.9) 0%, transparent 70%);
  inset-inline-start: -100px;
  bottom: -80px;
}

.ft__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0,0,0,.55), transparent);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(0,0,0,.55), transparent);
}

/* ── Inner wrapper ─────────────────────────────────────────── */
.ft__inner {
  position: relative;
  z-index: 1;
  padding-block: 3rem 1.25rem;
}

/* ── Top grid: brand + nav ─────────────────────────────────── */
.ft__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.ft__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .ft__top {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ── Brand column ──────────────────────────────────────────── */
.ft__logo {
  display: flex;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  margin-bottom: 1.25rem;
  outline-offset: 4px;
}
.ft__logo img {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  opacity: .95;
  transition: opacity .2s;
}
.ft__logo:hover img { opacity: 1; }

.ft__desc {
  font-size: .855rem;
  line-height: 1.8;
  color: rgba(255,255,255,.62);
  margin: 0 0 1.25rem;
  max-width: 34ch;
  text-align: center;
}

/* Trust pills */
.ft__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.ft__pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
}
.ft__pill svg { color: #c9a24d; flex-shrink: 0; }

/* ── Nav columns ───────────────────────────────────────────── */
.ft__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .ft__nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Column heading */
.ft__col-title {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #c9a24d;
  margin: 0 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(201,162,77,.2);
}

/* Link list */
.ft__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.ft__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .18s ease;
  line-height: 1.5;
}
.ft__link svg {
  color: rgba(201,162,77,.5);
  flex-shrink: 0;
  transition: color .18s, transform .18s;
  /* RTL: arrow points left visually */
  transform: rotate(180deg);
}
.ft__link:hover {
  color: #c9a24d;
}
.ft__link:hover svg {
  color: #c9a24d;
  transform: rotate(180deg) translateX(-2px);
}

/* ── Contact column ────────────────────────────────────────── */
.ft__col--contact {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

/* CTA buttons */
.ft__cta {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform .16s cubic-bezier(.34,1.56,.64,1),
    box-shadow .16s ease,
    background .16s ease;
  white-space: nowrap;
}
.ft__cta:hover { transform: translateY(-2px); }
.ft__cta:active { transform: none; }
.ft__cta svg { flex-shrink: 0; }

.ft__cta--wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 3px 14px rgba(37,211,102,.2);
}
.ft__cta--wa:hover {
  background: #1da355;
  box-shadow: 0 6px 22px rgba(37,211,102,.35);
}

.ft__cta--call {
  background: #c9a24d;
  color: #071524;
  font-weight: 800;
  box-shadow: 0 3px 14px rgba(201,162,77,.22);
}
.ft__cta--call:hover {
  background: #ddb96a;
  box-shadow: 0 6px 22px rgba(201,162,77,.38);
}

.ft__hint {
  font-size: .75rem;
  line-height: 1.65;
  color: rgba(255,255,255,.42);
  margin: .25rem 0 0;
}

/* ── Bottom bar ─────────────────────────────────────────────── */
.ft__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

.ft__copy {
  margin: 0;
  font-size: .78rem;
  color: rgba(255,255,255,.38);
  font-weight: 600;
}

.ft__legal {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.ft__legal a {
  color: rgba(255,255,255,.42);
  text-decoration: none;
  transition: color .18s;
}
.ft__legal a:hover { color: #c9a24d; }

/* ── Mobile: single column nav ─────────────────────────────── */
@media (max-width: 480px) {
  .ft__nav {
    grid-template-columns: 1fr 1fr;
  }
  .ft__col--contact {
    grid-column: 1 / -1;
  }
  .ft__desc { max-width: 100%; }
}

/* ============================================================
   FIXED CTA (WhatsApp + Call)
   ============================================================ */
.fixedCta {
  position: fixed;
  inset-inline-end: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
.fixedCta.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fixedBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 99px;
  text-decoration: none;
  font-family: "Cairo", system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transition:
    transform .16s cubic-bezier(.34,1.56,.64,1),
    box-shadow .16s ease;
}
.fixedBtn:hover { transform: translateY(-2px); }
.fixedBtn:active { transform: none; }
.fixedBtn__ic { display: flex; align-items: center; }
.fixedBtn__ic svg { width: 18px; height: 18px; }
.fixedBtn__txt { font-size: .8rem; letter-spacing: -.01em; }

/* WhatsApp — green */
.fixedBtn--wa {
  background: #25d366;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(37,211,102,.3);
}
.fixedBtn--wa:hover {
  box-shadow: 0 8px 32px rgba(37,211,102,.45);
}

/* Call — gold */
.fixedBtn--call {
  background: #c9a24d;
  color: #071524;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(201,162,77,.28);
}
.fixedBtn--call:hover {
  background: #ddb96a;
  box-shadow: 0 8px 32px rgba(201,162,77,.42);
}

/* Pulse ring on WA button */
.fixedPulse {
  position: absolute;
  inset: -5px;
  border-radius: 99px;
  border: 1.5px solid rgba(37,211,102,.5);
  opacity: 0;
  transform: scale(.9);
  animation: ft-pulse 2.4s ease infinite;
  pointer-events: none;
  will-change: opacity, transform;
}
@keyframes ft-pulse {
  0%   { opacity: 0;   transform: scale(.9); }
  30%  { opacity: .4; }
  100% { opacity: 0;   transform: scale(1.22); }
}

/* Icon-only on very small screens */
@media (max-width: 360px) {
  .fixedBtn__txt { display: none; }
  .fixedBtn { padding: 13px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fixedPulse { animation: none; opacity: .2; transform: none; }
  .fixedBtn, .ft__cta, .ft__link { transition: none; }
}
