/* ==========================================================================
   Footer — World-class premium
   ========================================================================== */

.footer--premium {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 5rem) clamp(2rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, #020617 0%, #0f172a 55%, #052e1f 100%);
  color: rgba(148, 163, 184, 0.95);
  overflow: hidden;
}

.footer--premium::before,
.footer--premium::after {
  display: none;
}

.footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer__aurora {
  position: absolute;
  inset: -25%;
  opacity: 0.7;
  filter: blur(80px);
  background-image:
    radial-gradient(at 10% 90%, rgba(16, 185, 129, 0.28) 0%, transparent 50%),
    radial-gradient(at 90% 10%, rgba(251, 191, 36, 0.14) 0%, transparent 52%);
  animation: footerAurora 22s ease-in-out infinite alternate;
}

@keyframes footerAurora {
  0% { transform: translate3d(-8px, 6px, 0); }
  100% { transform: translate3d(10px, -8px, 0); }
}

.footer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
}

.footer__orb--emerald {
  width: 320px;
  height: 320px;
  left: -100px;
  bottom: -80px;
  background: rgba(16, 185, 129, 0.3);
}

.footer__orb--gold {
  width: 240px;
  height: 240px;
  right: -60px;
  top: -40px;
  background: rgba(251, 191, 36, 0.18);
}

.footer__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%2310b981' stroke-width='0.45'%3E%3Cpolygon points='36,0 72,36 36,72 0,36'/%3E%3Cpath d='M36 10v52M10 36h52'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
}

.footer__container {
  position: relative;
  z-index: 1;
}

/* Parent organization — Maskan e Pak */
.footer__parent {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(32px, 5vw, 48px);
  padding: clamp(22px, 3.5vw, 32px);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.04) 45%, rgba(251, 191, 36, 0.06) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer__parent {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: var(--space-6);
  }
}

.footer__parent-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  flex-shrink: 0;
}

.footer__parent-badge svg {
  width: 28px;
  height: 28px;
}

.footer__parent-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.85);
}

.footer__parent-name {
  display: block;
  margin-bottom: var(--space-2);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.footer--premium .footer__link--text {
  cursor: default;
}

.footer--premium .footer__link--text:hover {
  color: rgba(148, 163, 184, 0.95);
  transform: none;
}

.footer__parent-tagline {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  line-height: 1.5;
}

.footer__parent-desc {
  margin: 0 0 var(--space-5);
  max-width: 62ch;
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(203, 213, 225, 0.88);
}

.footer__parent-desc strong {
  color: #f8fafc;
  font-weight: 700;
}

.footer__parent-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.footer__parent-meta li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(203, 213, 225, 0.9);
}

.footer__parent-meta svg {
  width: 16px;
  height: 16px;
  color: #6ee7b7;
  flex-shrink: 0;
}

.footer--premium .footer__top {
  display: grid;
  gap: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(28px, 4vw, 40px);
}

@media (min-width: 1024px) {
  .footer--premium .footer__top {
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.4fr);
    align-items: start;
  }
}

.footer--premium .footer__brand {
  max-width: 400px;
  overflow: visible;
}

.footer--premium .footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  text-decoration: none;
  color: #f8fafc;
  transition: color 0.2s ease;
  overflow: visible;
}

.footer--premium .footer__logo:hover {
  color: #6ee7b7;
}

.footer--premium .footer__logo-text {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer--premium .footer__desc {
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(203, 213, 225, 0.88);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact-item:hover {
  color: #6ee7b7;
}

.footer__contact-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #6ee7b7;
}

.footer__contact-icon svg {
  width: 18px;
  height: 18px;
}

.footer--premium .footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer--premium .footer__social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: rgba(241, 245, 249, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.footer--premium .footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer--premium .footer__social-link:hover {
  transform: translateY(-3px);
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.footer--premium .footer__columns {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .footer--premium .footer__columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer--premium .footer__column-title {
  margin: 0 0 var(--space-4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8fafc;
}

.footer--premium .footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer--premium .footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer--premium .footer__link:hover {
  color: #6ee7b7;
  transform: translateX(3px);
}

.footer--premium .footer__link--btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

/* Mini CTA strip */
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: clamp(28px, 4vw, 36px);
  padding: clamp(20px, 3vw, 28px) clamp(22px, 3.5vw, 32px);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer__cta-label {
  margin: 0 0 var(--space-1);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.footer__cta-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__cta-btn--outline {
  color: #ecfdf5;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__cta-btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.45);
  color: #fff;
}

/* Quranic quote */
.footer__quote-block {
  margin: 0 0 clamp(24px, 4vw, 32px);
  padding: clamp(22px, 3vw, 28px);
  text-align: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.footer__quote-icon {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: 1.5rem;
  color: rgba(110, 231, 183, 0.5);
  line-height: 1;
}

.footer__quote-arabic {
  margin: 0 0 var(--space-3);
  font-family: var(--font-arabic, 'Amiri', serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.65;
  color: #6ee7b7;
}

.footer__quote-translation {
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.95);
  font-style: italic;
}

/* Trust row */
.footer__trust {
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 32px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
}

.footer__trust li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(203, 213, 225, 0.85);
}

.footer__trust svg {
  width: 18px;
  height: 18px;
  color: #6ee7b7;
  flex-shrink: 0;
}

.footer--premium .footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer--premium .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer--premium .footer__copyright {
  margin: 0;
  font-size: var(--text-sm);
  color: rgba(100, 116, 139, 0.95);
}

.footer--premium .footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}

.footer--premium .footer__legal a {
  font-size: var(--text-sm);
  color: rgba(148, 163, 184, 0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer--premium .footer__legal a:hover {
  color: #6ee7b7;
}

.footer--premium .footer__legal-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: var(--text-sm);
  color: rgba(148, 163, 184, 0.95);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer--premium .footer__legal-btn:hover {
  color: #6ee7b7;
}

@media (prefers-reduced-motion: reduce) {
  .footer__aurora {
    animation: none;
  }

  .footer--premium .footer__link:hover {
    transform: none;
  }

  .footer--premium .footer__social-link:hover {
    transform: none;
  }
}
