/* =============================================================
   FOOTER 2026 — Al-Jawad Cleaning  (Mobile-First)
   ============================================================= */

/* ── FOOTER OFFSET for mobile bottom bar ─────────────────────── */
@media (max-width: 1023px) {
  body {
    padding-bottom: 0 !important;
  }
  .ajf-footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }
}

/* ── PRE-FOOTER CTA BANNER ─────────────────────────────────── */
.ajf-pre-footer {
  background: linear-gradient(135deg, #061a2b 0%, #0b3557 60%, #0c5b7c 100%);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ajf-pre-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(11,154,167,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(194,135,90,.12) 0%, transparent 50%);
  pointer-events: none;
}
.ajf-pre-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.ajf-pre-footer h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.3;
}
.ajf-pre-footer p {
  color: rgba(255,255,255,.78);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 28px;
}
.ajf-pre-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.ajf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e6b858, #c2875a);
  color: #061a2b;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  transition: all .3s ease;
  box-shadow: 0 6px 20px rgba(194,135,90,.35);
}
.ajf-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(194,135,90,.45);
  color: #061a2b;
}
.ajf-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #087e64;
  color: #fff;
  padding: 13px 28px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: all .3s ease;
}
.ajf-btn-wa:hover {
  background: #065c49;
  transform: translateY(-2px);
  color: #fff;
}

/* ── MAIN FOOTER ────────────────────────────────────────────── */
.ajf-footer {
  background: #061a2b;
  color: rgba(255,255,255,.7);
  border-top: 3px solid #0b9aa7;
  position: relative;
}

.ajf-footer-body {
  padding: 56px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop 4-column grid */
@media (min-width: 1024px) {
  .ajf-cols {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 48px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ajf-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .ajf-cols {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
}

/* ── BRAND COLUMN ───────────────────────────────────────────── */
.ajf-brand-col {}
.ajf-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}
.ajf-brand-logo-wrap img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(11,154,167,.4);
}
.ajf-brand-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}
.ajf-brand-tagline {
  color: #0b9aa7;
  font-size: .78rem;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}
.ajf-brand-desc {
  font-size: .9rem;
  line-height: 1.8;
  color: rgba(255,255,255,.58);
  margin-bottom: 24px;
}

/* Social */
.ajf-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ajf-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .95rem;
  text-decoration: none;
  transition: all .3s ease;
}
.ajf-social a:hover {
  background: #0b9aa7;
  border-color: #0b9aa7;
  color: #fff;
  transform: translateY(-3px);
}

/* Rating badge */
.ajf-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,184,88,.1);
  border: 1px solid rgba(230,184,88,.25);
  border-radius: 10px;
  padding: 10px 16px;
}
.ajf-rating-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #e6b858;
  line-height: 1;
}
.ajf-rating-info span {
  display: block;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}
.ajf-rating-stars {
  color: #fbbf24;
  font-size: .8rem;
  letter-spacing: 2px;
}

/* ── ACCORDION COLUMNS (mobile) ─────────────────────────────── */
.ajf-col {
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 768px) {
  .ajf-col {
    border-bottom: none;
  }
}

.ajf-col-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  cursor: pointer;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  font-family: inherit;
  text-align: right;
}
.ajf-col-trigger .ajf-col-arrow {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,.35);
  transition: transform .3s ease;
  flex-shrink: 0;
}
.ajf-col[data-open="true"] .ajf-col-arrow {
  transform: rotate(180deg);
}
@media (min-width: 768px) {
  .ajf-col-trigger {
    cursor: default;
    padding: 0 0 16px 0;
    pointer-events: none;
  }
  .ajf-col-trigger .ajf-col-arrow {
    display: none;
  }
}

.ajf-col-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
@media (min-width: 768px) {
  .ajf-col-body {
    max-height: none !important;
    overflow: visible;
  }
}
.ajf-col[data-open="true"] .ajf-col-body {
  max-height: 600px;
}

/* Links inside columns */
.ajf-links {
  list-style: none;
  padding: 0 0 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (min-width: 768px) {
  .ajf-links { padding: 0; }
}
.ajf-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.58);
  font-size: .92rem;
  text-decoration: none;
  padding: 6px 0;
  transition: color .25s ease, padding-right .25s ease;
  border-radius: 4px;
}
.ajf-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0b9aa7;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .25s, transform .25s;
}
.ajf-links a:hover {
  color: #fff;
  padding-right: 4px;
}
.ajf-links a:hover::before {
  opacity: 1;
  transform: scale(1.5);
}



/* ── CONTACT COLUMN ─────────────────────────────────────────── */
.ajf-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.ajf-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(11,154,167,.15);
  color: #0b9aa7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ajf-contact-item a,
.ajf-contact-item span {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color .25s;
  display: block;
}
.ajf-contact-item a:hover { color: #fff; }

/* Work hours mini-table */
.ajf-hours {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
}
.ajf-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ajf-hours-row:last-child { border-bottom: none; }
.ajf-hours-emergency {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: .8rem;
  color: #4ade80;
  font-weight: 700;
}

/* ── LOCAL AREAS ROW ────────────────────────────────────────── */
.ajf-local-row {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.ajf-local-row-inner {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .ajf-local-row {
    padding: 28px 24px;
  }
  .ajf-local-row-inner {
    flex-direction: row;
    gap: 48px;
  }
  .ajf-local-row-inner > .ajf-col {
    flex: 1;
  }
}

/* ── FOOTER BOTTOM BAR ──────────────────────────────────────── */
.ajf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.ajf-copyright {
  font-size: .82rem;
  color: rgba(255,255,255,.38);
}
/* ── DEV CREDITS ────────────────────────────────────────────── */
.ajf-footer-dev {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 24px 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.ajf-footer-dev a {
  color: #e6b858;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s ease;
  padding: 0 4px;
}
.ajf-footer-dev a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(230,184,88,.5);
}
.ajf-utility-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.ajf-utility-links a {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.ajf-utility-links a:hover { color: rgba(255,255,255,.7); }

/* ── MOBILE ACTION BAR — ENHANCEMENTS ──────────────────────── */
@media (min-width: 1024px) {
  .mobile-action-bar {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .mobile-action-bar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 10px !important;
    bottom: calc(15px + env(safe-area-inset-bottom)) !important;
  }
  .mobile-action-bar a {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
  }
}

/* ── BACK TO TOP POSITION ADJUSTMENT ───────────────────────── */
.back-to-top {
  bottom: calc(80px + env(safe-area-inset-bottom)) !important;
}
@media (min-width: 1024px) {
  .back-to-top {
    bottom: 24px !important;
  }
}

/* ── REDUCED MOTION SUPPORT ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ajf-footer *, .ajf-pre-footer *, .ajf-local-row *, .mobile-action-bar * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── FLOATING BACK BUTTON HIDE ON MOBILE ───────────────────── */
@media (max-width: 767px) {
  .floating-back-btn {
    display: none !important;
  }
}

/* ── FOCUS STATES ───────────────────────────────────────────── */
.ajf-col-trigger:focus-visible {
  outline: 2px solid #0b9aa7;
  outline-offset: 2px;
}
.ajf-links a:focus-visible,
.ajf-chips a:focus-visible {
  outline: 2px solid #0b9aa7;
  outline-offset: 2px;
  border-radius: 4px;
}
