/* ============================================================
   MIRA HOME — Footer Styles
   ============================================================ */

/* ------------------------------------------------------------
   1. FOOTER WRAPPER
   ------------------------------------------------------------ */
.mira-footer {
  position: relative;
  background-color: var(--bg-page);
  margin-top: auto;
}


/* ------------------------------------------------------------
   2. WAVE DIVIDER
   ------------------------------------------------------------ */
.footer-wave {
  line-height: 0;
  overflow: hidden;
  margin-bottom: -1px;
}

.footer-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}


/* ------------------------------------------------------------
   3. FOOTER BODY (dark section)
   ------------------------------------------------------------ */
.footer-body {
  background-color: var(--bg-dark);
  padding: var(--space-16) 0 var(--space-12);
  /* FIX (direct user ask: "little space in right side always in mobile
     view... I can outzoom it") — .row.g-5 below carries Bootstrap's
     3rem gutter (-24px margin each side), but this site's .container
     only pads 16px each side, so the row's own box bled 8px past the
     container's edge on every page (footer is a shared partial).
     overflow-x:hidden on html normally guards against this, but pinch-
     zoom can still reveal genuinely-laid-out content past the initial
     viewport even when scrolling to it is blocked. Clipped right here,
     scoped to just the footer, instead of shrinking g-5's gutter (which
     would visibly tighten the gap between footer columns) or widening
     .container's padding sitewide (which would shift every page's edge
     margins) — neither of those was needed to fix this. */
  overflow-x: hidden;
}


/* ------------------------------------------------------------
   4. BRAND BLOCK
   ------------------------------------------------------------ */
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  text-decoration: none;
  margin-bottom: var(--space-2);
}

.footer-brand-mira {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.06em;
  line-height: 1;
  transition: color var(--transition-base);
}

.footer-brand-dash {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--color-primary);
  margin: 0 2px;
  line-height: 1;
}

.footer-brand-e {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  line-height: 1;
  transition: color var(--transition-base);
}

.footer-brand:hover .footer-brand-mira {
  color: var(--color-primary-light);
}

.footer-brand-tagline {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-brown-light);
  margin-bottom: var(--space-5);
}

.footer-desc {
  font-size: var(--fs-sm);
  color: var(--color-stone);
  line-height: var(--lh-relaxed);
  max-width: 300px;
  margin-bottom: var(--space-6);
}


/* ------------------------------------------------------------
   5. SOCIAL LINKS
   ------------------------------------------------------------ */
.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-stone);
  font-size: 1rem;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.social-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-charcoal);
  transform: translateY(-3px);
}


/* ------------------------------------------------------------
   6. FOOTER LINK COLUMNS
   ------------------------------------------------------------ */
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: var(--space-5);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links li a {
  font-size: var(--fs-sm);
  color: var(--color-stone);
  text-decoration: none;
  transition: color var(--transition-base), padding-left var(--transition-base);
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--color-primary-light);
  padding-left: var(--space-2);
}


/* ------------------------------------------------------------
   7. CONTACT LIST
   ------------------------------------------------------------ */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-contact-list li i {
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-list li span,
.footer-contact-list li a {
  font-size: var(--fs-sm);
  color: var(--color-stone);
  line-height: var(--lh-snug);
  text-decoration: none;
  transition: color var(--transition-base);
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.footer-contact-list li a:hover {
  color: var(--color-primary-light);
}


/* ------------------------------------------------------------
   8. AR FEATURE BADGE
   ------------------------------------------------------------ */
.footer-ar-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background-color: rgba(200, 168, 130, 0.10);
  border: 1px solid rgba(200, 168, 130, 0.20);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-2);
  transition: background-color var(--transition-base), border-color var(--transition-base);
  cursor: default;
}

.footer-ar-badge:hover {
  background-color: rgba(200, 168, 130, 0.16);
  border-color: rgba(200, 168, 130, 0.35);
}

.footer-ar-badge > i {
  font-size: 1.6rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-ar-badge div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-ar-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-cream);
  line-height: 1;
}

.footer-ar-sub {
  font-size: var(--fs-xs);
  color: var(--color-stone);
  line-height: 1;
}


/* ------------------------------------------------------------
   9. FOOTER BOTTOM BAR
   ------------------------------------------------------------ */
.footer-bottom {
  background-color: var(--bg-dark-mid);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--space-5) 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--color-brown-light);
  margin: 0;
  line-height: 1.5;
}


/* ------------------------------------------------------------
   10. PAYMENT PILLS
   ------------------------------------------------------------ */
.footer-payments {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.payment-label {
  font-size: var(--fs-xs);
  color: var(--color-brown-light);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--color-stone);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.payment-pill i {
  font-size: 0.75rem;
  color: var(--color-primary);
}

.payment-pill.powered {
  border-color: rgba(200, 168, 130, 0.25);
  color: var(--color-primary-light);
}

.payment-pill.powered i {
  color: var(--color-primary-light);
}


/* ------------------------------------------------------------
   11. LEGAL LINKS
   ------------------------------------------------------------ */
.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-legal a {
  font-size: var(--fs-xs);
  color: var(--color-brown-light);
  text-decoration: none;
  transition: color var(--transition-base);
  white-space: nowrap;
}

.footer-legal a:hover {
  color: var(--color-primary-light);
}

.footer-legal-dot {
  font-size: var(--fs-xs);
  color: var(--color-brown-light);
  opacity: 0.4;
}

/* "Staff & Admin sign in": shown by public/js/pwa.js only inside the installed app (it carries `hidden` in the markup). */
.footer-app-only {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-app-only[hidden] { display: none; }

/* The only way into the panels from inside the app, so a real tap size (the other legal links stay as they are). */
.footer-app-only a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}


/* ------------------------------------------------------------
   12. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .footer-body {
    padding: var(--space-12) 0 var(--space-10);
  }

  .footer-desc {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .footer-wave svg {
    height: 40px;
  }

  .footer-body {
    padding: var(--space-10) 0 var(--space-8);
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .footer-payments {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .footer-legal {
    flex-wrap: wrap;
  }

  /* the in-app sign-in link gets its own line (no bullet in front of a wrapped line) */
  .footer-app-only {
    flex-basis: 100%;
  }

  .footer-app-only .footer-legal-dot {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .footer-brand-mira,
  .footer-brand-dash,
  .footer-brand-e {
    font-size: 1.45rem;
  }

  .footer-socials {
    flex-wrap: wrap;
  }
}
