/* Site footer, shared by the React app and the pre-rendered pages.
 *
 * This file is the single source of truth for footer styling. src/main.tsx
 * imports it and the build copies it to public/theme/footer.css, which every
 * static page links. Content lives in src/data/footer.json.
 *
 * All selectors are scoped to .site-footer so nothing here can be shadowed by a
 * page-level rule; the fixed mobile bar lives outside the footer and keeps its
 * own unprefixed classes.
 */

.site-footer {
  background: #f7f6f2;
  border-top: 1px solid var(--line, #e3e8ec);
  padding: 64px 0 26px;
  font-size: 13.5px;
  color: var(--body, #3d4d59);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.85fr 0.8fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.site-footer .footer-brand img {
  width: 140px;
  height: auto;
  mix-blend-mode: multiply;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
}

.site-footer .footer-brand p {
  font-size: 13.5px;
  color: var(--muted, #5c6b79);
  line-height: 1.7;
  margin: 12px 0 0;
  max-width: 34ch;
}

.site-footer .footer-brand .footer-credit {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 34ch;
}

.site-footer .footer-credit a {
  color: var(--body, #3d4d59);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer-credit a:hover {
  color: var(--blue, #0070f3);
}

.site-footer .footer-col h3 {
  font-size: 12px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin: 0 0 14px;
  color: var(--ink, #0b2233);
}

.site-footer .footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--body, #3d4d59);
  margin-bottom: 9px;
  text-decoration: none;
}

.site-footer .footer-col a:hover {
  color: var(--blue, #0070f3);
}

.site-footer .footer-col a svg {
  color: var(--blue, #0070f3);
  flex: none;
}

.site-footer .footer-all {
  margin-top: 4px;
  font-weight: 600;
  color: var(--blue, #0070f3);
}

/* mobile-only call + offer pair, identical on every page */
.site-footer .footer-mobile-cta {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.site-footer .footer-mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.site-footer .footer-mobile-cta-call {
  background: #fff;
  border: 1px solid var(--line-strong, var(--line2, #cbd5e1));
  color: var(--ink, #0b2233);
}

.site-footer .footer-mobile-cta-offer {
  background: var(--blue, #0070f3);
  color: #fff;
}

/* social and review profiles (markup from src/components/SocialIcons.tsx) */
.site-footer .social-block {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #e3e8ec);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  align-items: flex-start;
}

.site-footer .social-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer .social-title {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5c6b79);
}

.site-footer .social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line, #e3e8ec);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0b2233);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.site-footer .social-link:hover {
  border-color: var(--blue, #0070f3);
  color: var(--blue, #0070f3);
  box-shadow: 0 4px 12px rgba(0, 112, 243, 0.1);
}

.site-footer .social-link svg {
  color: var(--ink, #0b2233);
  flex: none;
}

.site-footer .social-link:hover svg {
  color: var(--blue, #0070f3);
}

.site-footer .social-pill {
  font-weight: 500;
  color: var(--muted, #5c6b79);
  font-size: 12px;
}

.site-footer .footer-legal {
  display: block;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #e3e8ec);
}

.site-footer .footer-legal p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted, #5c6b79);
  max-width: 96ch;
  margin: 0 0 8px;
}

.site-footer .footer-legal strong {
  color: var(--ink, #0b2233);
}

.site-footer .footer-legal a {
  color: var(--muted, #5c6b79);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer-legal a:hover {
  color: var(--blue, #0070f3);
}

.site-footer .footer-nap a {
  color: var(--body, #3d4d59);
  font-weight: 500;
}

.site-footer .footer-bottom {
  border-top: 1px solid var(--line, #e3e8ec);
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted, #5c6b79);
}

/* the fixed call / offer bar, identical on every page */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 1100px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 920px) {
  .site-footer {
    padding: 40px 0 96px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer .footer-brand p,
  .site-footer .footer-brand .footer-credit {
    max-width: 52ch;
  }

  .site-footer .footer-mobile-cta {
    display: flex;
    max-width: 420px;
  }

  .site-footer .footer-col a {
    min-height: 34px;
    margin-bottom: 2px;
  }

  .site-footer .footer-col h3 {
    margin-bottom: 6px;
  }

  .site-footer .social-block {
    margin-top: 26px;
    gap: 18px 24px;
  }

  .site-footer .social-link {
    min-height: 38px;
  }

  .site-footer .footer-legal p,
  .site-footer .footer-bottom {
    font-size: 12px;
  }

  .site-footer .footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    font-size: 12px;
  }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    align-items: center;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 248, 245, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line, #e3e8ec);
  }

  .mobile-cta-call {
    width: 52px;
    height: 52px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong, var(--line2, #cbd5e1));
    border-radius: 6px;
    background: #fff;
    color: var(--blue, #0070f3);
  }

  .mobile-cta-offer {
    flex: 1;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue, #0070f3);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
  }
}

@media (max-width: 520px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-mobile-cta {
    max-width: none;
  }
}
