/* ==========================================================================
   Morrison & Barnes — footer redesign (Concept 1)
   Navy continuation of the site, four columns, contained conversion card,
   service-area row, understated legal close.

   Every selector below already exists in the theme's markup — the only markup
   change was adding .footer-cta-btn inside .footer-col--cta. Nothing here
   removes a link.
   ========================================================================== */

/* ---------- Shell: navy, layered, with a thin lit seam at the top -------- */
.site-footer {
  position: relative;
  background:
    radial-gradient(120% 75% at 50% 0%, rgba(42, 39, 233, 0.20), transparent 62%),
    linear-gradient(180deg, #081434 0%, #050c22 58%);
  border-top: 1px solid rgba(124, 122, 255, 0.18);
  /* was clamp(3.5rem, 7vw, 6rem) — the old footer had a dead zone up top */
  padding-top: clamp(2.75rem, 5vw, 4.25rem);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 122, 255, 0.85), transparent);
  pointer-events: none;
}

.footer-grid { padding-bottom: clamp(2rem, 3.5vw, 3rem); }
/* The card carries a 12-character phone number at display size; the theme's
   1.3fr left it at 270px and the number broke onto three lines. */
@media (min-width: 1025px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1.5fr; }
}

/* ---------- Column headings: small blue label, not a serif headline ------ */
.footer-title {
  font-family: var(--font-body, inherit);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.9rem;
}
.footer-title a { color: inherit; }
.footer-title--gap { margin-top: 1.4rem; }

/* ---------- Office block: pin + clock, thin rules like the reference ----- */
.footer-col address,
.footer-col address + .footer-title + p {
  color: var(--grey-300);
  font-style: normal;
  line-height: 1.55;
}
.footer-col address a,
.footer-col .footer-title--gap + p {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--grey-300);
}
.footer-col address a::before,
.footer-col .footer-title--gap + p::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  background-repeat: no-repeat;
  background-size: contain;
}
.footer-col address a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4af0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.5s7-6 7-11.5a7 7 0 1 0-14 0c0 5.5 7 11.5 7 11.5Z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");
}
.footer-col .footer-title--gap + p::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4af0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.4V12l3.1 1.9'/%3E%3C/svg%3E");
}
.footer-col address { padding-bottom: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.footer-firmlinks { padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.09); }

/* ---------- Link rows: text left, small blue chevron right --------------- */
.footer-col ul { gap: 0.15rem; }
.footer-col li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  color: var(--grey-300);
}
.footer-col li a::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid var(--blue-400);
  border-top: 1.6px solid var(--blue-400);
  transform: rotate(45deg);
  opacity: 0.75;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.footer-col li a:hover { color: var(--white); }
.footer-col li a:hover::after { opacity: 1; transform: rotate(45deg) translate(2px, -2px); }

/* ---------- The conversion card ----------------------------------------- */
.footer-col--cta {
  text-align: center;
  align-self: start;
  padding: clamp(1.5rem, 2.2vw, 2rem);
  border: 1px solid rgba(124, 122, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(31, 52, 118, 0.55), rgba(11, 26, 72, 0.38));
  box-shadow:
    0 18px 46px rgba(3, 8, 25, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.footer-kicker { font-size: 1.05rem; color: var(--grey-300); }
.footer-recovery {
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  margin-bottom: 0;
  color: var(--white);
}
/* the thin divider under "We Win!" */
.footer-col--cta .footer-title {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--grey-500);
}
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  white-space: nowrap;
}
.footer-phone::before {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(124, 122, 255, 0.55);
  background-color: rgba(42, 39, 233, 0.18);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24 11.4 11.4 0 0 0 3.6.58 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .58 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

.footer-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 52px;
  margin-top: 1.25rem;
  padding: 0 1rem;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--blue-400), var(--blue-500));
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(42, 39, 233, 0.38);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.footer-cta-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(42, 39, 233, 0.5); }
.footer-cta-btn:active { transform: translateY(0); }

/* ---------- Service-area row -------------------------------------------- */
.footer-areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  line-height: 1.9;
}
.footer-areas span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
  color: var(--blue-400);
  font-weight: 600;
}
.footer-areas span::before {
  content: "";
  width: 15px;
  height: 15px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4af0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21.5s7-6 7-11.5a7 7 0 1 0-14 0c0 5.5 7 11.5 7 11.5Z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");
}
.footer-areas a { margin-right: 0; padding-inline: 0.55rem; }
/* Trailing separator, not a leading border: a leading border becomes a stray
   rule at the start of every wrapped line. This one wraps with its own city. */
.footer-areas a:not(:last-of-type)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  margin-left: 1.1rem;
  background: rgba(255, 255, 255, 0.18);
  vertical-align: -1px;
}

/* ---------- Legal close -------------------------------------------------- */
.footer-legal {
  grid-template-columns: minmax(230px, 0.9fr) 2fr;
  align-items: start;
  gap: 0 2.25rem;
  padding-block: 1.5rem;
  font-size: 0.74rem;
  color: #6f7a91;
}
.footer-legal p:last-child {
  padding-left: 2.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-col--cta { grid-column: 1 / -1; text-align: center; }
  .footer-legal { grid-template-columns: 1fr; gap: 0.85rem; }
  .footer-legal p:last-child { padding-left: 0; border-left: 0; }
}

@media (max-width: 720px) {
  /* Requested order: firm, conversion card, office, practice areas. */
  .footer-brand              { order: 1; }
  .footer-col--cta           { order: 2; }
  .footer-grid > div:nth-of-type(2) { order: 3; }
  .footer-grid > div:nth-of-type(3) { order: 4; }

  .site-footer { padding-top: clamp(2.25rem, 6vw, 3rem); }
  .footer-grid { gap: 2rem; }
  .footer-areas { line-height: 2.1; }
  .footer-areas a { padding-inline: 0.4rem; }
  .footer-areas a:not(:last-of-type)::after { margin-left: 0.75rem; }
  .footer-phone { font-size: 1.65rem; }

  /* The dock bar is 62px, but the call button and back-to-top float above it:
     14 + 62 + 14 + 64 + 18 + 46 = 218px of cluster. Pad past all of it so the
     legal text can be scrolled completely clear of the floating controls. */
  body { padding-bottom: calc(224px + env(safe-area-inset-bottom)) !important; }
}
