/* ============================================================
   FOOTER
   ============================================================ */

/* Deep maroon footer with muted cream text. */
.site-footer {
  background: var(--maroon-950);
  color: rgba(249, 241, 228, .75);
  padding: 56px 0 24px;
  position: relative;
}

/* Three-column layout: wider brand column on the left, two link columns on the right. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

/* Wider column gap on tablets and up.
   !important overrides the shorthand `gap` above for the column axis only. */
@media (min-width:641px) {
  .footer-grid {
    column-gap: 48px !important;
  }
}

/* Two columns on medium screens. */
@media (max-width:760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Single column on phones. */
@media (max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Brand blurb under the logo. */
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 10px;
  color: rgba(249, 241, 228, .6);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

/* Round icon button for each social link. */
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(249, 241, 228, .8);
}

/* The <i> icon is Font Awesome — just centre it inside the circle. */
.footer-social a i {
  font-size: 14px;
  line-height: 1;
}


/* Column heading — small uppercase gold label. */
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Shared style for all footer links, buttons and plain text items.
   Reset to look alike so <a>, <button> and <span> render identically. */
.footer-col a,
.footer-col button,
.footer-col .fitem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  padding: 6px 0;
  color: rgba(249, 241, 228, .72);
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--white);
}

/* Small gold "Soon" badge next to a not-yet-available item. */
.soon-badge {
  font-size: 9.5px;
  font-weight: 700;
  background: var(--gold);
  color: var(--maroon-950);
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 6px;
}

/* Bottom strip: copyright on the left, tagline on the right. */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 12.5px;
  color: rgba(249, 241, 228, .5);
  flex-wrap: wrap;       /* stack onto two lines on narrow screens */
  gap: 8px;
}

.footer-bottom em {
  font-style: italic;
}

/* Floating action buttons column, pinned bottom-right.
   align-items: flex-end keeps the buttons right-aligned inside the column. */
.footer-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 80;
}

/* Slightly closer to the screen edges on phones. */
@media (max-width:480px) {
  .footer-fab {
    right: 16px;
    bottom: 16px;
  }
}

/* Shared round style for both FABs (back-to-top and chat). */
.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--maroon-950);
  border: 2px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-pop);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
  position: relative;
  flex: none;
}

.fab-btn:hover {
  background: var(--maroon-800);
}

/* Back-to-top FAB is hidden by default; JS adds .is-visible once the
   user scrolls down, so it fades/slides in and only then accepts clicks
   (pointer-events: none prevents accidentally clicking the invisible button). */
.fab-top {
  opacity: 0;
  transform: translateY(10px) scale(.9);
  pointer-events: none;
}

.fab-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat FAB uses the inverted palette (gold fill, maroon border). */
.fab-chat {
  background: var(--gold);
  border-color: var(--maroon-950);
  color: var(--maroon-950);
}

.fab-chat:hover {
  background: var(--gold-light);
}

/* Small green dot pinned to the top-right corner of the chat button,
   hinting that there's a live assistant. */
.fab-chat .fab-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #3FAE5C;
  border: 2px solid var(--paper-bg);
}

/* Expanding ring behind the dot, animated forever. */
.fab-chat .fab-ping::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #3FAE5C;
  opacity: .6;
  animation: fabPing 2.2s ease-out infinite;
}

/* Grows outward and fades to zero — a classic "notification pulse". */
@keyframes fabPing {
  0% {
    transform: scale(.6);
    opacity: .7;
  }

  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}