/* ================================================================
   Spolton Mortgages — Final CTA + Footer + Mobile action bar
   ================================================================ */

/* ================================================================
   FINAL CTA — card on section background
   ================================================================ */

.spm-cta-final {
  background: var(--surface);
  padding: 80px 0;
}

.spm-cta-card {
  background: var(--grad-purple);
  border-radius: 28px;
  padding: 72px 64px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) {
  .spm-cta-card {
    padding: 52px 28px 44px;
    border-radius: 20px;
  }
}

.spm-cta-eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, .6);
  margin: 0 0 20px;
}

.spm-cta-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-4xl);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: balance;
}

.spm-cta-lead {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
  margin: 0 auto 36px;
}

.spm-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.spm-cta-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.spm-cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .72);
}

.spm-cta-trust-item svg {
  color: var(--purple-200);
  flex-shrink: 0;
}

.spm-cta-warning {
  margin: 24px auto 0;
  max-width: 620px;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: rgba(255, 255, 255, .6);
  text-align: center;
}

/* ================================================================
   FOOTER — shared wrapper
   ================================================================ */

.spm-footer {
  color: rgba(255, 255, 255, .82);
}

/* ================================================================
   CONTACT BAND
   ================================================================ */

.spm-footer-band {
  background: #2E1945;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.spm-footer-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 880px) {
  .spm-footer-band-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .spm-footer-band-grid {
    grid-template-columns: 1fr;
  }
}

.spm-footer-band-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 26px;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid rgba(255, 255, 255, .1);
  transition: background var(--dur-fast) var(--ease);
}

.spm-footer-band-item:last-child {
  border-right: none;
}

.spm-footer-band-item:is(a):hover {
  background: rgba(255, 255, 255, .05);
}

@media (max-width: 880px) {
  .spm-footer-band-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .spm-footer-band-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .1);
  }
  .spm-footer-band-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .spm-footer-band-item:nth-child(odd) {
    border-right: none;
  }
  .spm-footer-band-item:last-child {
    border-bottom: none;
  }
}

.spm-footer-band-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .1);
  color: var(--purple-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spm-footer-band-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 5px;
  line-height: 1;
}

.spm-footer-band-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.45;
}

/* Opening hours day-by-day list */
.spm-footer-hours {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.spm-footer-hours-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.spm-footer-hours-day {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .65);
  min-width: 76px;
  font-weight: 400;
}

.spm-footer-hours-time {
  font-size: var(--text-xs);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.spm-footer-hours-closed {
  color: rgba(255, 255, 255, .4);
  font-weight: 400;
}

/* Partner groups: stacked within the column */
.spm-footer-partners-group {
  margin-bottom: 16px;
}

.spm-footer-partners-group:last-of-type {
  margin-bottom: 0;
}

/* ================================================================
   FOOTER MAIN COLUMNS
   ================================================================ */

.spm-footer-main {
  background: #1A0F2C;
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.spm-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .spm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
}

@media (max-width: 480px) {
  .spm-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Logo with white bg so it reads on dark */
.spm-footer-logo {
  display: block;
  height: 56px;
  width: 56px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: #fff;
  padding: 6px;
}

.spm-footer-blurb {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, .68);
  margin: 0 0 22px;
  max-width: 280px;
}

/* Footer book button — solid brand, no gradient artefact on dark bg */
.spm-footer-book {
  padding: 13px 22px;
  font-size: var(--text-sm);
  margin-bottom: 20px;
  background: var(--brand);
  box-shadow: none;
}

.spm-footer-book:hover {
  background: var(--brand-strong);
  box-shadow: var(--shadow-brand);
  color: #fff;
}

.spm-footer-social {
  display: flex;
  gap: 8px;
}

.spm-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.spm-footer-social-link:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.spm-footer-nav-head {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 18px;
}

.spm-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spm-footer-nav-link {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  line-height: 1.4;
  transition: color var(--dur-fast) var(--ease);
}

.spm-footer-nav-link:hover {
  color: #fff;
}

/* ================================================================
   AMENITIES / AT-A-GLANCE (non-linkable info)
   ================================================================ */

.spm-footer-amenities {
  background: #1A0F2C;
  padding: 40px 0 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.spm-footer-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 760px) {
  .spm-footer-amenities-grid { grid-template-columns: 1fr; gap: 28px; }
}

.spm-footer-amenity .spm-footer-nav-head { margin-bottom: 14px; }

.spm-footer-amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spm-footer-amenity-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .7);
  line-height: 1.4;
}

.spm-footer-amenity-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--purple-200, #cbb6e6);
}

.spm-footer-amenity-i svg { width: 11px; height: 11px; }

/* ================================================================
   COMPLIANCE BAR
   ================================================================ */

.spm-footer-compliance {
  background: #130922;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.spm-footer-compliance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 640px) {
  .spm-footer-compliance-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.spm-footer-compliance-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 10px;
}

.spm-footer-compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.spm-footer-reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sm);
  padding: 7px 13px;
  line-height: 1.4;
}

.spm-footer-reg-badge svg {
  color: var(--purple-300);
  flex-shrink: 0;
}

.spm-footer-reg-badge--link {
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.spm-footer-reg-badge--link:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}

.spm-footer-partner-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sm);
  padding: 7px 13px;
}

.spm-footer-partner-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .32);
  margin: 9px 0 0;
}

/* ================================================================
   LEGAL STRIP
   ================================================================ */

.spm-footer-legal {
  background: #0C0618;
  /* extra bottom space so the fixed quick-links pill never covers the last line */
  padding: 32px 0 104px;
}
@media (max-width: 600px) { .spm-footer-legal { padding-bottom: 132px; } }

.spm-footer-legal-inner {
  display: grid;
  gap: 10px;
}

.spm-footer-legal-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 6px;
}

.spm-footer-legal-text {
  font-size: var(--text-xs);
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.spm-footer-legal-warnings {
  list-style: none;
  padding: 0;
}
.spm-footer-legal-warnings li + li {
  margin-top: 2px;
}

.spm-footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, .38);
  margin: 8px 0 0;
}

.spm-footer-legal-link {
  color: rgba(255, 255, 255, .58);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}

.spm-footer-legal-link:hover {
  color: rgba(255, 255, 255, .9);
}

/* ================================================================
   FLOATING QUICK-LINKS PILL (sitewide + mobile quick menu)
   ================================================================ */

.spm-quickbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 90;
  width: max-content;
  max-width: calc(100vw - 24px);
}

/* The pill itself */
.spm-quickbar-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border-radius: var(--r-pill);
  box-shadow: 0 10px 34px rgba(30, 26, 36, .22);
  padding: 7px;
}

.spm-quickbar-toggle,
.spm-quickbar-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: var(--r-pill);
  padding: 12px 20px;
  line-height: 1;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.spm-quickbar-toggle {
  background: transparent;
  color: var(--ink);
}

.spm-quickbar-toggle:hover { background: var(--surface); }

.spm-quickbar-toggle svg { color: var(--brand); }

.spm-quickbar-book {
  background: var(--brand);
  color: #fff;
}

.spm-quickbar-book:hover { background: var(--brand-strong); }

/* The pop-up menu above the pill */
.spm-quickbar-menu {
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: 0 18px 50px rgba(30, 26, 36, .26);
  padding: 18px;
  margin-bottom: 12px;
  width: 100%;
  max-width: calc(100vw - 24px);
}

.spm-quickbar-menu[hidden] { display: none; }

.spm-quickbar-menu-head {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0 0 12px;
}

.spm-quickbar-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spm-quickbar-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.spm-quickbar-link:hover {
  border-color: var(--purple-200);
  background: var(--brand-tint);
  color: var(--brand-strong);
}

.spm-quickbar-link-i {
  display: inline-flex;
  color: var(--brand);
  flex-shrink: 0;
}

.spm-quickbar-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--brand-strong);
  text-decoration: none;
}

.spm-quickbar-call:hover { background: var(--surface-2); }
.spm-quickbar-call svg { color: var(--brand); }

/* Hide the pill while the mobile nav is open */
body.nav-open .spm-quickbar { display: none; }

@media (max-width: 600px) {
  /* Compact pill: icon-only toggle, shorter book label */
  .spm-quickbar { width: calc(100vw - 24px); }
  .spm-quickbar-pill { justify-content: space-between; }
  .spm-quickbar-toggle { flex: 0 0 auto; padding: 12px 16px; }
  .spm-quickbar-book { flex: 1; padding: 12px 16px; }
  .spm-quickbar-menu { width: 100%; }
  .spm-quickbar-links { grid-template-columns: 1fr; }
  body { padding-bottom: 84px; }
}

/* Regulatory badges (FCA + ICO) */
.spm-footer-badges { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin: 22px 0 6px; }
.spm-footer-badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 11px; line-height: 1.3; font-weight: 600; color: rgba(255,255,255,.6); transition: color var(--dur-fast) var(--ease); }
.spm-footer-badge:hover { color: rgba(255,255,255,.9); }
.spm-footer-badge img { height: 34px; width: auto; display: block; }
.spm-footer-badge-ico { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 34px; padding: 0 8px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 5px; font-family: var(--font-heading); font-weight: 800; font-size: 15px; letter-spacing: .04em; color: #fff; }

/* FCA Register verify link (under the regulatory badges) */
.spm-footer-fca-link { margin: 12px 0 0; }
.spm-footer-fca-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, .78);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.spm-footer-fca-link a svg { color: var(--purple-300); flex-shrink: 0; }
.spm-footer-fca-link a:hover { color: #fff; }

/* --- Cookie consent banner -------------------------------------- */
.spm-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9000;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.spm-cookie.is-visible { opacity: 1; transform: none; }
.spm-cookie[hidden] { display: none; }

.spm-cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--container, 1160px);
  margin: 0 auto;
  padding: 16px 20px;
}
@media (max-width: 720px) {
  .spm-cookie { left: 10px; right: 10px; bottom: 10px; }
  .spm-cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
}

.spm-cookie-text {
  margin: 0;
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate);
}
.spm-cookie-text a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 2px; }

.spm-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 720px) { .spm-cookie-actions { flex-direction: column-reverse; } }
.spm-cookie-btn { white-space: nowrap; }

/* Registered Office on its own line, distinct from the company disclosure */
.spm-footer-regoffice {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Maroon FCA artwork rendered white for the dark footer */
.spm-footer-badge img.spm-logo-invert { filter: brightness(0) invert(1); }
