/**
 * Premium directory footer — RTL-first, AA contrast, 44px targets.
 * Flat ThemeForest layout: brand strip + equal text columns (no widget cards).
 */
body.prowpsite-has-premium-footer .site-footer:not(.prowpsite-site-footer) {
  display: none !important;
}

body.prowpsite-has-premium-footer-dark .prowpsite-site-footer {
  --psf-bg: #070b14;
  --psf-surface: #0f1624;
  --psf-text: #f8fafc;
}

.prowpsite-site-footer {
  --psf-bg: #0b1220;
  --psf-surface: #101827;
  --psf-text: #f8fafc;
  --psf-muted: #cbd5e1;
  --psf-faint: #94a3b8;
  /*
   * Never inherit brand --primary / --prowpsite-primary here: many sites set those
   * to near-black (#0f172a). On this dark footer that made link:hover invisible.
   * Keep a light accent (≥ AA on --psf-bg) for hover + focus.
   */
  --psf-accent: #93c5fd;
  --psf-link-hover: #ffffff;
  --psf-border: rgba(241, 245, 249, 0.14);
  --psf-link: #e2e8f0;
  background: var(--psf-bg);
  color: var(--psf-text);
  margin-block-start: 0;
  padding-block: clamp(2.5rem, 4.5vw, 3.75rem) 0;
  overflow-x: clip;
  max-width: 100%;
  border-block-start: 1px solid var(--psf-border);
  font-family: var(--font, Cairo, Tajawal, system-ui, sans-serif);
}

.prowpsite-site-footer--gold {
  --psf-accent: #f0c14b;
  --psf-link-hover: #fff7d6;
  --psf-bg: #0a0c10;
  --psf-surface: #12161e;
}

.prowpsite-site-footer__inner {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.prowpsite-site-footer__brand-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-block-end: clamp(1.75rem, 3vw, 2.25rem);
  padding-block-end: 1.35rem;
  border-block-end: 1px solid var(--psf-border);
}

.prowpsite-site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.prowpsite-site-footer__col {
  min-width: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

.prowpsite-site-footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--psf-text);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.prowpsite-site-footer__logo {
  margin: 0;
}

.prowpsite-site-footer__logo img {
  display: block;
  max-height: 2.5rem;
  width: auto;
}

.prowpsite-site-footer__tagline {
  margin: 0;
  color: var(--psf-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1 1 16rem;
  max-width: 42rem;
}

.prowpsite-site-footer__heading {
  margin: 0 0 0.95rem;
  padding-block-end: 0.55rem;
  color: var(--psf-text);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.35;
  border-block-end: 2px solid color-mix(in srgb, var(--psf-accent) 55%, transparent);
}

.prowpsite-site-footer__list,
.prowpsite-site-footer__social,
.prowpsite-site-footer__partners-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prowpsite-site-footer__list li {
  margin: 0;
}

.prowpsite-site-footer__list a,
.prowpsite-site-footer__social a,
.prowpsite-site-footer__partners-list a,
.prowpsite-site-footer__more {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding-block: 0.1rem;
  color: var(--psf-link);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-radius: 0.35rem;
}

.prowpsite-site-footer__list a:hover,
.prowpsite-site-footer__social a:hover,
.prowpsite-site-footer__partners-list a:hover,
.prowpsite-site-footer__more:hover,
.prowpsite-site-footer__copy a:hover,
.prowpsite-site-footer__brand:hover {
  color: var(--psf-link-hover, #ffffff);
}

.prowpsite-site-footer a:focus-visible {
  outline: 2px solid var(--psf-accent);
  outline-offset: 3px;
}

.prowpsite-site-footer__list--dense {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
  column-gap: 1.25rem;
  row-gap: 0;
}

.prowpsite-site-footer__grid--cols-3 .prowpsite-site-footer__list--dense,
.prowpsite-site-footer__grid--cols-4 .prowpsite-site-footer__list--dense {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prowpsite-site-footer__list--dense > li {
  min-width: 0;
}

.prowpsite-site-footer__list--dense a {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .prowpsite-site-footer--cols-1 .prowpsite-site-footer__list--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .prowpsite-site-footer--cols-1 .prowpsite-site-footer__brand-panel {
    margin-block-end: 1.5rem;
  }

  .prowpsite-site-footer--cols-1 .prowpsite-site-footer__list--dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prowpsite-site-footer__more {
  margin-block-start: 0.25rem;
  color: var(--psf-accent);
  font-weight: 600;
}

.prowpsite-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-block-start: 1rem;
}

.prowpsite-site-footer__partners {
  margin-block-start: 2rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--psf-border);
}

.prowpsite-site-footer__partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.prowpsite-site-footer__bar {
  margin-block-start: clamp(1.75rem, 3vw, 2.25rem);
  padding-block: 1.15rem 1.35rem;
  border-block-start: 1px solid var(--psf-border);
  color: var(--psf-faint);
  font-size: 0.85rem;
}

.prowpsite-site-footer__copy,
.prowpsite-site-footer__copy p {
  margin: 0;
  color: var(--psf-faint);
  line-height: 1.7;
}

.prowpsite-site-footer__copy a {
  color: var(--psf-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.prowpsite-site-footer__copy a:hover {
  color: var(--psf-accent);
}

.prowpsite-site-footer .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 640px) {
  .prowpsite-site-footer__grid--cols-2,
  .prowpsite-site-footer__grid--cols-3,
  .prowpsite-site-footer__grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .prowpsite-site-footer__grid {
    grid-template-columns: repeat(var(--psf-cols, 3), minmax(0, 1fr));
  }

  .prowpsite-site-footer__grid--cols-1 {
    grid-template-columns: 1fr;
  }

  .prowpsite-site-footer__grid--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prowpsite-site-footer__grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prowpsite-site-footer__grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.prowpsite-site-footer__expand-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.prowpsite-site-footer__expand-less {
  display: none;
}

.prowpsite-site-footer__expand {
  display: none;
}

@media (max-width: 639px) {
  .prowpsite-site-footer__inner {
    width: min(72rem, calc(100% - 1.5rem));
  }

  .prowpsite-site-footer__list--dense {
    grid-template-columns: 1fr;
  }

  .prowpsite-site-footer__partners-list {
    flex-direction: column;
  }

  .prowpsite-site-footer__col--dense .prowpsite-site-footer__list > li:nth-child(n + 7) {
    display: none;
  }

  .prowpsite-site-footer__col--dense:has(.prowpsite-site-footer__expand-toggle:checked) .prowpsite-site-footer__list > li:nth-child(n + 7) {
    display: list-item;
  }

  .prowpsite-site-footer__col--dense:has(.prowpsite-site-footer__expand-toggle:checked) .prowpsite-site-footer__expand-more {
    display: none;
  }

  .prowpsite-site-footer__col--dense:has(.prowpsite-site-footer__expand-toggle:checked) .prowpsite-site-footer__expand-less {
    display: inline;
  }

  .prowpsite-site-footer__expand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block-start: 0.35rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--psf-border);
    border-radius: 0.5rem;
    background: color-mix(in srgb, var(--psf-surface) 80%, transparent);
    color: var(--psf-accent);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
  }

  .prowpsite-site-footer__expand:hover {
    border-color: color-mix(in srgb, var(--psf-accent) 45%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prowpsite-site-footer *,
  .prowpsite-site-footer *::before,
  .prowpsite-site-footer *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
