/* As Sunnah Footer Experience v1.0.2 — premium footer, scoped to .elementor-location-footer */
.elementor-location-footer { --asf-gold: #E8C96D; --asf-gold-deep: #C9A227; --asf-green: #0D2017; }

/* ---------- headings: gold underline accent ---------- */
.elementor-location-footer .elementor-widget-heading .elementor-heading-title::after {
  content: ""; display: block; width: 44px; height: 3px;
  background: #E8C96D; border-radius: 2px; margin-top: 8px;
}
.elementor-location-footer .elementor-widget-heading { margin-bottom: 10px !important; }

/* ---------- tighter vertical rhythm (less empty dark space) ---------- */
.elementor-location-footer .elementor-widget-text-editor { margin-bottom: 8px !important; }
.elementor-location-footer .elementor-widget-icon-list { margin-bottom: 6px !important; }
.elementor-location-footer .elementor-widget-social-icons { margin-bottom: 4px !important; }

/* ---------- quick links: clean rows instead of separate dark boxes ---------- */
.elementor-location-footer .elementor-widget-elementskit-page-list .elementor-icon-list-item > a {
  box-shadow: none !important;
  display: flex !important; align-items: center; gap: 8px;
  padding: 8px 2px !important;
  border-bottom: 1px solid rgba(255,255,255,.09);
  transition: transform .2s ease, color .2s ease;
}
.elementor-location-footer .elementor-widget-elementskit-page-list .elementor-icon-list-item > a::before {
  content: "›"; color: #E8C96D; font-size: 20px; line-height: 1; font-weight: 700;
}
.elementor-location-footer .elementor-widget-elementskit-page-list .elementor-icon-list-item {
  line-height: 1.55 !important;
}
.elementor-location-footer .elementor-widget-elementskit-page-list .elementor-icon-list-item > a:hover {
  transform: translateX(4px);
}
.elementor-location-footer .elementor-widget-elementskit-page-list .elementor-icon-list-item:last-child > a {
  border-bottom: none;
}

/* two-column link grid on phones — shorter, easier to scan */
@media (max-width: 767px) {
  .elementor-location-footer .elementor-widget-elementskit-page-list .elementor-icon-list-itemsfg,
  .elementor-location-footer .elementor-widget-elementskit-page-list .elementor-icon-list-items {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px;
  }
}

/* ---------- contact rows: icon + text stay aligned, long email wraps cleanly ---------- */
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-text {
  overflow-wrap: anywhere;
}
.elementor-location-footer .elementor-widget-icon-list .elementor-icon-list-item > a {
  align-items: flex-start;
}

/* ---------- social icons: centred row on phones, comfortable tap targets ----------
   (Elementor's elementor-grid-0 renders this wrapper as inline-block, not a grid,
   so justify-content alone does nothing — force a real one-row grid here.) ---------- */
@media (max-width: 767px) {
  .elementor-location-footer .elementor-widget-social-icons .elementor-social-icons-wrapper.elementor-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: auto !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100% !important;
    word-spacing: normal !important;
    text-align: center !important;
  }
  .elementor-location-footer .elementor-widget-social-icons .elementor-social-icons-wrapper .elementor-grid-item {
    display: block !important;
    margin: 0 !important;
  }
}
.elementor-location-footer .elementor-widget-social-icons a {
  transition: transform .2s ease;
}
.elementor-location-footer .elementor-widget-social-icons a:hover {
  transform: translateY(-3px);
}

/* ---------- copyright bar: never hidden under the back-to-top button ---------- */
.elementor-location-footer .elementor-widget-elementskit-heading .ekit-heading--title {
  font-size: 13px !important; line-height: 1.7 !important;
}
.elementor-location-footer .elementor-widget-elementskit-heading {
  padding-bottom: 30px !important;
}

/* ---------- back-to-top button: brand gold, dark arrow, raised clear of the copyright ---------- */
#ast-scroll-top {
  background-color: #C9A227 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.35) !important;
}
#ast-scroll-top .ast-arrow-svg path { fill: #0D2017 !important; }
@media (max-width: 767px) {
  #ast-scroll-top { bottom: 96px !important; }
}
@media (min-width: 768px) {
  #ast-scroll-top { bottom: 80px !important; }
}

/* ---------- gentle scroll-reveal (added by JS; no-JS stays fully visible) ---------- */
.elementor-location-footer .asf-reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.elementor-location-footer .asf-reveal.asf-visible {
  opacity: 1; transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .elementor-location-footer .asf-reveal { opacity: 1; transform: none; transition: none; }
}
