/* ============================================================
   FOOTER — Chhabra Lawyers Associates
   Multi-column footer, legal links, FAB buttons.
   ============================================================ */

/* ── Footer ───────────────────────────────────────────────── */
/* ── Enhanced Footer with Background Image & Visual Accents ─── */
.site-footer {
  position: relative;
  background-color: var(--clr-midnight, #0B1D26);
  background-image: 
    linear-gradient(180deg, rgba(11, 29, 38, 0.95) 0%, rgba(11, 29, 38, 0.98) 100%),
    url('../images/chambers/law-library-hero.webp');
  background-size: cover;
  background-position: center bottom;
  background-attachment: scroll;
  color: var(--clr-text-on-dark, #E8E4DC);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  border-top: 3px solid var(--clr-gold, #B8944F);
}

@media (max-width: 768px) {
  .site-footer {
    background-image: 
      linear-gradient(180deg, rgba(11, 29, 38, 0.95) 0%, rgba(11, 29, 38, 0.98) 100%),
      url('../images/chambers/law-library-hero-mobile.webp');
  }
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-gold, #B8944F), transparent);
}

.site-footer a {
  color: var(--clr-text-on-dark, #E8E4DC);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--clr-gold, #B8944F);
}

/* 24/7 Emergency / Consultation Available Banner */
.footer__availability-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: rgba(184, 148, 79, 0.12);
  border: 1px solid rgba(184, 148, 79, 0.35);
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer__availability-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer__availability-pulse {
  position: relative;
  width: 14px;
  height: 14px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer__availability-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.4);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.footer__availability-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #FFFFFF;
  letter-spacing: 0.03em;
}

.footer__availability-desc {
  font-size: 0.8125rem;
  color: rgba(232, 228, 220, 0.85);
  margin-top: 2px;
}

.footer__availability-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--clr-gold, #B8944F);
  color: #FFFFFF !important;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(184, 148, 79, 0.25);
  border: none;
}

.footer__availability-btn:hover {
  background: #FFFFFF;
  color: var(--clr-midnight, #0B1D26) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

.footer__availability-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__availability-banner { flex-direction: column; align-items: flex-start; }
}

/* ── Footer Columns ───────────────────────────────────────── */
.footer__heading {
  font-family: var(--ff-display, 'EB Garamond', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--clr-gold, #B8944F);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.footer__heading svg {
  width: 18px;
  height: 18px;
  fill: var(--clr-gold, #B8944F);
  flex-shrink: 0;
}

.footer__heading-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--clr-gold, #B8944F);
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.footer__about-text {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(232, 228, 220, 0.82);
  margin-bottom: 18px;
}

.footer__badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer__badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 148, 79, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.725rem;
  color: var(--clr-gold, #B8944F);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer__badge-pill svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(232, 228, 220, 0.85);
  transition: all 0.2s ease;
}

.footer__link svg {
  width: 12px;
  height: 12px;
  fill: var(--clr-gold, #B8944F);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.footer__link:hover {
  color: var(--clr-gold, #B8944F);
  transform: translateX(4px);
}

.footer__link:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

/* ── Footer Contact Items ─────────────────────────────────── */
.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--clr-gold, #B8944F);
  border-radius: 6px;
  padding: 12px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__contact-card:hover {
  background: rgba(184, 148, 79, 0.08);
  border-color: rgba(184, 148, 79, 0.4);
}

.footer__contact-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer__contact-header svg {
  width: 15px;
  height: 15px;
  fill: var(--clr-gold, #B8944F);
  flex-shrink: 0;
}

.footer__contact-label {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__contact-address {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(232, 228, 220, 0.78);
  margin-bottom: 6px;
}

.footer__contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--clr-gold, #B8944F);
}

.footer__contact-phone:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer__contact-phone svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* ── Footer Disclaimer Bar ────────────────────────────────── */
.footer__disclaimer {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__disclaimer-text {
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgba(232, 228, 220, 0.65);
  max-width: 920px;
  text-align: center;
  margin-inline: auto;
}

.footer__disclaimer-text strong {
  color: var(--clr-gold, #B8944F);
}

/* ── Footer Bottom Bar ────────────────────────────────────── */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0 32px;
  padding-right: 80px; /* Safe padding so legal links are never obscured by floating action buttons */
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(232, 228, 220, 0.75);
}

.footer__legal-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.footer__legal-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(232, 228, 220, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  display: inline-block;
  padding: 4px 0;
}

.footer__legal-link:hover {
  color: var(--clr-gold, #B8944F);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .footer__bottom {
    padding-right: 0;
    padding-bottom: 90px; /* Space above mobile FABs */
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .footer__legal-links {
    justify-content: center;
    gap: 12px 16px;
  }
}

/* ── Floating Action Buttons (FAB) ────────────────────────── */
.fab-group {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  z-index: var(--z-fab);
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: transform var(--duration-normal) var(--ease-default),
              box-shadow var(--duration-normal) var(--ease-default);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.fab:focus-visible {
  outline: 2px solid var(--clr-white);
  outline-offset: 2px;
}

.fab svg {
  width: 24px;
  height: 24px;
  fill: var(--clr-white);
}

.fab--whatsapp {
  background-color: #25D366;
}

.fab--phone {
  background-color: var(--clr-gold);
}

.fab--top {
  background-color: var(--clr-navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-default),
              visibility var(--duration-normal) var(--ease-default),
              transform var(--duration-normal) var(--ease-default);
}

.fab--top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 480px) {
  .fab-group {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
    gap: 10px;
  }
  .fab {
    width: 44px;
    height: 44px;
  }
  .fab svg {
    width: 20px;
    height: 20px;
  }
}

/* ── Reading Progress Bar ─────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  z-index: calc(var(--z-sticky) + 1);
  transition: width 50ms linear;
}
