/* ===================== FOOTER (compact, logo-background) ===================== */
.site-footer {
  position: relative;
  /* Blends seamlessly out of the navy CTA band above it: the gradient STARTS at
     the exact CTA-band colour, then deepens; accents sit low so the top edge has
     no visible seam. */
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(216, 173, 94, 0.14) 0%, rgba(216, 173, 94, 0) 55%),
    radial-gradient(70% 60% at 6% 100%, rgba(1, 168, 186, 0.16) 0%, rgba(1, 168, 186, 0) 60%),
    linear-gradient(180deg, var(--color-footer-cta) 0%, var(--color-footer-bg-deep) 100%);
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
  flex-shrink: 0; /* never let the flex column collapse the footer */
  overflow: hidden;
}
/* Prominent brand shield watermark — the "logo background" */
.site-footer::before {
  content: '';
  position: absolute;
  right: 2%; top: 50%;
  transform: translateY(-50%);
  width: 300px; height: 300px;
  background: url('/assets/logos/gastro-surgeon-nepal-logo-icon.png') no-repeat center / contain;
  opacity: 0.08;
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  padding: 2.25rem 0 1.9rem;
}

.footer-brand-col { max-width: 330px; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.footer-brand-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.footer-brand-icon img { width: 26px; height: 26px; }
.footer-brand .brand-wordmark { color: #fff; }
.footer-brand .brand-wordmark span { color: var(--color-teal); }
.footer-text { font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.9rem; }

.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  transition: var(--transition-smooth);
}
.footer-social a:hover { background-color: var(--color-teal); border-color: var(--color-teal); }

/* Inline nav */
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: rgba(255, 255, 255, 0.78); font-size: 0.95rem; font-weight: 500; transition: var(--transition-smooth); }
.footer-nav a:hover { color: #fff; }

/* Contact + book */
.footer-contact-col { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.footer-contact-link { display: flex; align-items: center; gap: 0.55rem; color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }
.footer-contact-link:hover { color: #fff; }
.footer-contact-link .icon { color: var(--color-teal); flex-shrink: 0; }
.footer-book-btn { margin-top: 0.35rem; padding: 0.6rem 1.3rem; font-size: 0.9rem; }

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.95rem 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal a { color: rgba(255, 255, 255, 0.55); margin-left: 1.15rem; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: #fff; }

@media (max-width: 767px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.9rem 0 1.4rem;
  }
  .footer-nav { gap: 0.35rem 1.25rem; }
  .footer-book-btn { width: 100%; justify-content: center; }
  .footer-contact-col { width: 100%; }
  .site-footer::before { width: 190px; height: 190px; right: -10px; top: 22%; opacity: 0.06; }
  .footer-bottom .container { text-align: center; }
  .footer-legal a:first-child { margin-left: 0; }
}

/* ===================== WHATSAPP FAB ===================== */
.whatsapp-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--whatsapp-green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1050;
  transition: var(--transition-smooth);
}
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
.whatsapp-fab .icon { width: 28px; height: 28px; }

@media (max-width: 575px) {
  .whatsapp-fab { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .whatsapp-fab .icon { width: 23px; height: 23px; }
}
