/* Footer and mobile bottom bars */

.bottom-nav,
.mobile-whatsapp {
  display: none;
}

.site-footer {
  background: #0d2c24;
  padding-block: 60px 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: var(--text-16);
  letter-spacing: 0.02em;
}

.footer-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-14);
  line-height: 1.6;
}

.footer-brand p {
  max-width: 260px;
}

.footer-grid a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-action {
  color: var(--gold-soft) !important;
  font-weight: 600;
}

.footer-contact {
  display: block;
  color: var(--gold-soft);
  font-size: var(--text-14);
}

.footer-legal {
  display: flex;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-13);
}

.footer-legal a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-14);
}

.footer-bottom strong {
  color: #f2d58d;
}

.site-footer {
  border-top: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: auto;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.footer-grid a {
  transition: color 0.2s ease, transform 0.2s var(--ease);
}

.site-footer::before,
.site-footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.site-footer::before {
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='white' stroke-opacity='.05'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.site-footer::after {
  display: none;
  width: 460px;
  height: 460px;
  right: -140px;
  bottom: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 211, 137, 0.14), transparent 68%);
}

.site-footer,
.site-footer span,
.site-footer small,
.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255, 255, 255, 0.92);
}

.site-footer h2,
.site-footer h3,
.site-footer strong {
  color: #fff;
}

@media (hover: none) {
  .footer-grid a:hover {
    transform: none;
  }

}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

}

@media (max-width: 760px) {
  .footer-grid,
  .footer-bottom {
    display: block;
  }

  .footer-grid > div {
    margin-bottom: 18px;
  }

  .footer-grid > div:last-child {
    margin-bottom: 0;
  }

  .mobile-whatsapp {
    position: fixed;
    z-index: 45;
    transition: opacity 0.2s ease;
  }

  .mobile-whatsapp a {
    display: flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--surface-lowest) 30%, transparent);
    color: var(--surface-lowest);
    font-family: var(--font-head);
    font-size: var(--text-md);
    font-weight: 600;
  }

  .mobile-whatsapp small {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.14);
    font-size: var(--text-12);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 56px;
  }

  .bottom-nav a.is-active,
  .bottom-nav a:nth-child(3) {
    color: var(--primary);
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-whatsapp a {
    border-radius: 16px;
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  }

  .site-footer {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .footer-grid a {
    padding-block: 4px;
  }

  .mobile-whatsapp a {
    min-height: 52px;
    padding: 8px 14px;
    gap: 10px;
    justify-content: flex-start;
  }

  .mobile-whatsapp small {
    display: none;
  }

  .bottom-nav {
    min-height: 68px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0;
    background: rgba(255, 255, 255, 0.88);
    border-top: 1px solid rgba(15, 54, 45, 0.08);
    box-shadow: 0 -10px 30px rgba(15, 54, 45, 0.1);
  }

  .bottom-nav a {
    position: relative;
    gap: 3px;
    padding-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav .mobile-urdu {
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
  }

  .bottom-nav .material-symbols-outlined {
    display: grid;
    place-items: center;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    font-size: 23px;
    vertical-align: baseline;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  }

  .bottom-nav a:active .material-symbols-outlined {
    transform: scale(0.92);
  }

  .bottom-nav a.is-active {
    color: var(--primary);
  }

  .bottom-nav a.is-active .material-symbols-outlined {
    background: var(--primary-soft);
    color: var(--primary-2);
    font-variation-settings: 'FILL' 1;
  }

  .bottom-nav a:nth-child(3) {
    color: var(--primary);
  }

  .bottom-nav a:nth-child(3) .material-symbols-outlined {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
  }

  .mobile-whatsapp {
    left: 12px;
    right: 164px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer::after {
    width: 260px;
    height: 260px;
  }

  .bottom-nav,
  .mobile-whatsapp {
    display: none !important;
  }

}

@media (max-width: 380px) {
  .mobile-whatsapp {
    right: 76px;
  }

}
