/* ── Footer ───────────────────────────────────────────────
   CTA band over an aerial photo → "Let's Talk" marquee → link columns → legal bar. */
.site-footer { background: var(--msp-secondary); color: var(--msp-on-dark-muted); }

/* CTA band */
.footer-cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 9vw, 150px) clamp(56px, 6vw, 96px); color: #fff; }
.footer-cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.footer-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(8 17 25 / .74) 0%, rgb(8 17 25 / .88) 60%, var(--msp-secondary) 100%);
}
.footer-cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: clamp(32px, 5vw, 96px); }
.footer-cta__title { max-width: 14ch; margin-top: 20px; font-size: var(--msp-fs-h2-alt); line-height: 1.06; color: #fff; }
.footer-cta__lead { max-width: 52ch; margin-top: 22px; font-size: var(--msp-fs-lead); line-height: 1.6; color: rgb(255 255 255 / .82); }
.footer-cta__side { display: grid; gap: 28px; justify-items: start; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta__contact { display: grid; gap: 12px; }
.footer-cta__contact a { display: inline-flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 400; color: #fff; }
.footer-cta__contact-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / .2); border-radius: 50%; color: var(--msp-primary); transition: background-color .3s, color .3s, border-color .3s; }
.footer-cta__contact-icon .icon { width: 19px; height: 19px; }
.footer-cta__contact a:hover .footer-cta__contact-icon { background: var(--msp-primary); border-color: var(--msp-primary); color: var(--msp-secondary); }

/* Marquee */
.footer-marquee { display: block; overflow: hidden; padding-block: clamp(20px, 3vw, 40px); border-block: 1px solid var(--msp-on-dark-line); }
.footer-marquee__track { display: flex; width: max-content; animation: msp-marquee 42s linear infinite; }
.footer-marquee:hover .footer-marquee__track, .footer-marquee:focus-visible .footer-marquee__track { animation-play-state: paused; }
.footer-marquee__group {
  display: flex; align-items: center; flex: none;
  gap: clamp(24px, 3.5vw, 56px); padding-right: clamp(24px, 3.5vw, 56px);
  font-size: clamp(3.5rem, 1.5rem + 8vw, 10.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -.02em;
  white-space: nowrap; color: #fff;
}
.footer-marquee__outline { color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .55); transition: color .4s; }
.footer-marquee:hover .footer-marquee__outline { color: var(--msp-primary); -webkit-text-stroke-color: var(--msp-primary); }
.footer-marquee__star { width: .38em; height: .38em; flex: none; color: var(--msp-primary); }
@keyframes msp-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .footer-marquee__track { animation: none; } }

/* Main columns */
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px);
}
.footer-brand__logo img { width: 220px; height: auto; }
.footer-brand p { max-width: 36ch; margin-top: 22px; font-size: 15px; line-height: 1.65; }
.footer-contact { display: grid; gap: 6px; margin-top: 26px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 12px; min-height: 30px; font-size: 15px; color: #fff; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--msp-primary); }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 28px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--msp-on-dark-line); border-radius: 50%; color: #fff; transition: background-color .3s, color .3s, border-color .3s; }
.footer-social a:hover { background: var(--msp-primary); border-color: var(--msp-primary); color: var(--msp-secondary); }
.footer-social .icon { width: 18px; height: 18px; }

.footer-col h2 { margin-bottom: 22px; font-size: 18px; font-weight: 500; color: #fff; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { display: inline-block; padding-block: 4px; font-size: 15px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-brand .footer-note { margin-top: 20px; max-width: 340px; }
/* Footer links carry the same line icons as the header menu */
.footer-col a.footer-link { display: inline-flex; align-items: center; gap: 10px; }
.footer-link__icon { flex: none; width: 18px; height: 18px; color: var(--msp-primary); opacity: .9; transition: transform .3s var(--msp-ease-out), opacity .2s; }
.footer-link:hover .footer-link__icon, .footer-link:focus-visible .footer-link__icon { opacity: 1; transform: translateX(2px) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .footer-link__icon { transition: none; } .footer-link:hover .footer-link__icon { transform: none; } }
.footer-col .footer-col__more { display: inline-flex; align-items: center; gap: 6px; color: var(--msp-primary); font-weight: 500; }
.footer-col__more .icon { width: 16px; height: 16px; transition: transform .3s var(--msp-ease-out); }
.footer-col__more:hover .icon { transform: translateX(3px); }
.footer-note {
  display: flex; gap: 10px; margin-top: 22px; padding: 12px 14px;
  border: 1px solid var(--msp-on-dark-line); border-radius: var(--msp-radius-sm);
  background: rgb(255 255 255 / .03);
  font-size: 13.5px; line-height: 1.5;
}
.footer-note .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--msp-primary); }
.footer-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Bottom bar */
.footer-bottom { border-top: 1px solid var(--msp-on-dark-line); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px 14px; font-size: 14px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal a { display: inline-block; padding-block: 4px; }
.footer-legal a:hover { color: #fff; }
.footer-disclaimer { padding-bottom: 32px; font-size: 13px; line-height: 1.6; color: #8C97A1; }

/* Back to top with scroll-progress ring */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--msp-secondary); color: #fff;
  box-shadow: 0 12px 30px -8px rgb(8 17 25 / .45);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--msp-ease-out), background-color .3s, color .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--msp-primary); color: var(--msp-secondary); }
.to-top .icon { width: 20px; height: 20px; }
.to-top__ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--msp-primary); stroke-width: 2; stroke-linecap: round; }
.to-top:hover .to-top__ring circle { stroke: var(--msp-secondary); }

/* Sticky WhatsApp button (bottom left; the back-to-top button owns the right) */
.wa-float {
  position: fixed; left: 20px; bottom: 20px; z-index: 41;
  display: flex; align-items: center; gap: 0;
  height: 58px; padding: 0; border-radius: var(--msp-radius-pill);
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 14px 32px -10px rgb(8 17 25 / .55);
  transition: transform .3s var(--msp-ease-out), box-shadow .3s, background-color .3s;
}
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); background: #1EBE5A; }
.wa-float__icon { position: relative; display: grid; place-items: center; flex: none; width: 58px; height: 58px; }
.wa-float__icon .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 600; opacity: 0; transition: max-width .35s var(--msp-ease-out), opacity .25s, padding .35s var(--msp-ease-out); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 160px; padding: 0 22px 0 4px; opacity: 1; }
.wa-float__icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; animation: wa-ping 2.8s ease-out 2s infinite; }
@keyframes wa-ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float__icon::before { animation: none; } .wa-float { transition: none; } }
.has-sticky-quote .wa-float { bottom: 84px; }
@media (max-width: 767px) {
  .wa-float { left: 14px; bottom: 14px; height: 54px; }
  .wa-float__icon { width: 54px; height: 54px; }
  .wa-float__label { display: none; }
  .has-sticky-quote .wa-float { bottom: 84px; }
}
@media print { .wa-float { display: none; } }

@media (max-width: 1199px) {
  .footer-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: start; }
  .footer-brand p { margin-top: 0; }
  .footer-brand__logo, .footer-brand p { grid-column: 1; }
  .footer-contact { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .footer-social { grid-column: 1; }
}
@media (max-width: 899px) {
  .footer-cta__inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .footer-main { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { display: block; }
  .footer-brand p { margin-top: 20px; }
  .footer-contact { margin-top: 24px; }
  .footer-cta__actions .btn { flex: 1 1 100%; }
  .footer-cta__actions .btn--icon { justify-content: space-between; padding-left: 26px; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
}
