/* ============================================================================
   Waystar Studio - site footer
   ----------------------------------------------------------------------------
   The canonical footer, lifted from the landing page and shared by every page
   so the chrome is identical site-wide.

   Load order on every page:
       <link rel="stylesheet" href="/assets/css/cta-buttons.css">
       <link rel="stylesheet" href="/assets/css/header.css">
       <link rel="stylesheet" href="/assets/css/footer.css">
       <style> ...page styles... </style>

   Every rule is scoped under `footer` for two reasons:
     1. it outranks whatever the page's own <style> block says, so the footer
        can't drift again;
     2. `.rev-badge` and friends are also used OUTSIDE the footer (the landing
        page hero has Google/Trustpilot badges), so an unscoped rule here would
        restyle those too.

   Colours are namespaced (--wsf-*) so the footer renders identically no matter
   what a page calls its own palette variables.
   ========================================================================== */

:root {
  --wsf-ink:        #17160F;
  --wsf-body:       rgba(23,22,15,0.80);
  --wsf-muted:      rgba(23,22,15,0.74);
  --wsf-dim:        rgba(23,22,15,0.70);
  --wsf-link:       rgba(23,22,15,0.84);
  --wsf-violet:     #5B21B6;
  --wsf-line:       rgba(23,22,15,0.10);
  --wsf-line-soft:  rgba(23,22,15,0.08);
  --wsf-font:       'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

footer {
  background: #FFFFFF;
  color: var(--wsf-body);
  padding: 76px 0 28px;
  border-top: 1px solid var(--wsf-line-soft);
  font-family: var(--wsf-font);
  line-height: 1.5;
}

/* container - matches the landing page's `.wrap`, restated here so pages that
   size `.wrap` differently (or don't define it at all) still line up */
footer > .wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 640px) { footer > .wrap { padding: 0 20px; } }

/* zero-specificity resets - neutralise a page's global a/img/ul styling
   without outranking the component rules below */
:where(footer) :where(a) { color: inherit; text-decoration: none; }
:where(footer) :where(img) { display: block; max-width: 100%; }
:where(footer) :where(ul) { list-style: none; margin: 0; padding: 0; }
:where(footer) :where(p) { margin: 0; }

footer a.is-soon { cursor: pointer; }

/* ---------------------------------------------------------------------------
   Brand row
   ------------------------------------------------------------------------- */
footer .footer-brand {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--wsf-line);
}
footer .footer-brand .footer-bcopy { max-width: 460px; }
footer .footer-logo { margin-bottom: 16px; }
footer .footer-logo img { height: 36px; width: auto; display: block; filter: brightness(0); }
footer .footer-brand p { font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
footer .footer-contact a {
  color: var(--wsf-link);
  font-size: 13.5px;
  line-height: 1.9;
  transition: color 0.15s ease;
}
footer .footer-contact a:hover { color: var(--wsf-violet); }

footer .footer-social { display: flex; gap: 10px; align-self: center; }
footer .footer-social a {
  display: inline-flex;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(23,22,15,0.04);
  border: 1px solid var(--wsf-line);
  align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700;
  color: var(--wsf-link);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
footer .footer-social a:hover {
  background: rgba(109,40,217,0.14);
  border-color: rgba(220,165,0,0.4);
  color: var(--wsf-violet);
}
@media (max-width: 700px) {
  footer .footer-brand { grid-template-columns: 1fr; gap: 18px; }
}

/* ---------------------------------------------------------------------------
   Link columns
   ------------------------------------------------------------------------- */
footer .footer-cols {
  display: grid;
  grid-template-columns: 1.15fr 1.35fr 1.35fr 1.2fr 0.95fr 1.05fr;
  gap: 24px 30px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--wsf-line);
}
@media (max-width: 1040px) { footer .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 32px 26px; } }
@media (max-width: 680px)  { footer .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { footer .footer-cols { grid-template-columns: 1fr; gap: 26px; } }

footer .footer-col h4 {
  font-family: var(--wsf-font);
  font-size: 12.5px; font-weight: 700;
  /* pinned: pages set their own h1-h4 line-height and it used to leak in here */
  line-height: 1.08;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--wsf-ink);
  margin: 0 0 16px;
}
footer .footer-col ul { display: grid; gap: 11px; }
footer .footer-col ul a {
  font-size: 13.5px;
  color: var(--wsf-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}
footer .footer-col ul a:hover { color: var(--wsf-violet); }
footer .footer-col ul a.see-all { color: var(--wsf-ink); font-weight: 700; }

/* the landing page sizes .arrow-icon globally; restated here so the footer
   arrows match on pages that don't define it (e.g. /get-quote/) */
footer .arrow-icon {
  width: 18px; height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
@media (max-width: 1040px) { footer .footer-col ul a { white-space: normal; } }

/* ---------------------------------------------------------------------------
   Locations + review badges
   ------------------------------------------------------------------------- */
footer .footer-locations {
  padding: 36px 0;
  border-bottom: 1px solid var(--wsf-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
footer .footer-loc-main { flex: 1; min-width: 0; }
footer .footer-locations h4 {
  font-family: var(--wsf-font);
  font-size: 12.5px; font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--wsf-ink);
  margin: 0 0 18px;
}
footer .footer-loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 700px) { footer .footer-loc-grid { grid-template-columns: 1fr; gap: 18px; } }
footer .nap-block .city { font-size: 13px; font-weight: 700; color: var(--wsf-ink); margin-bottom: 4px; }
footer .nap-block .addr { font-size: 12.5px; line-height: 1.6; color: var(--wsf-dim); }

footer .footer-loc-reviews { display: flex; flex-direction: row; gap: 10px; flex-shrink: 0; }
@media (max-width: 900px) {
  footer .footer-locations { flex-direction: column; align-items: stretch; gap: 28px; }
  footer .footer-loc-reviews { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  footer .footer-loc-reviews { flex-direction: column; align-items: stretch; }
}

footer .rev-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px 9px 12px;
  background: #FFFFFF;
  border: 1px solid rgba(23,22,15,0.12);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(23,22,15,0.05);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
footer .rev-badge:hover { border-color: rgba(23,22,15,0.22); transform: translateY(-1px); }
footer .rev-logo {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--wsf-line-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
footer .rev-text { display: flex; flex-direction: column; line-height: 1.15; }
footer .rev-top {
  font-family: var(--wsf-font);
  font-size: 12px; font-weight: 700;
  color: rgba(23,22,15,0.78);
  letter-spacing: 0.01em;
}
footer .rev-bot { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
footer .rev-score {
  font-family: var(--wsf-font);
  font-size: 14px; font-weight: 800;
  color: var(--wsf-ink);
}
footer .rev-stars { color: #FBBC05; font-size: 13px; letter-spacing: 0.5px; }
footer .rev-stars.tp { color: #00B67A; }

/* ---------------------------------------------------------------------------
   Bottom bar
   ------------------------------------------------------------------------- */
footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
footer .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer .footer-legal a { color: var(--wsf-dim); transition: color 0.15s ease; }
footer .footer-legal a:hover { color: var(--wsf-ink); }

@media (max-width: 600px) {
  footer { padding: 56px 0 28px; }
  footer .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
  footer .footer-legal { justify-content: center; gap: 6px 16px; }
}
