/* ============================================================
   Footer v2 — three-column "navigate / identity / newsletter"
   layout. Background + ivory palette inherited from .footer in
   site.css (UNCHANGED: var(--c-deep)). Scoped under .footer-v2
   so legacy footers on un-migrated pages are unaffected.
   ============================================================ */

.footer-v2 .footer-legal { margin-top: 56px; }

.fv-inner {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  align-items: center;          /* columns vertically centered */
  gap: 56px;
}
@media (max-width: 767px) { .fv-inner { padding: 0 24px; } }

/* ---- shared column heading (elegant lowercase serif) ---- */
.fv-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--c-ivory);
  margin: 0 0 22px;
}

/* ---- shared hairline divider ---- */
.fv-rule {
  display: block;
  width: 54px;
  height: 1px;
  background: rgba(246, 246, 247, 0.28);
}

/* ============================================================
   LEFT COLUMN — navigate
   ============================================================ */
.fv-nav { justify-self: start; text-align: left; }

.fv-links {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fv-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 246, 247, 0.82);
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}
.fv-links a:hover { color: var(--c-aqua); }

/* Footer nav rows measured 16-21px tall, well under the 44px touch
   target. Pad them out on phone and tablet widths only, so the desktop
   footer keeps its tighter rhythm. Gap goes to 0 because the padding
   now supplies the spacing. */
@media (max-width: 767px) {
  .fv-links { gap: 0; }
  .fv-links a { display: block; padding: 14px 0; }
}

.fv-blog {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
  text-decoration: none;
  color: var(--c-ivory);
  transition: color 220ms var(--ease-out);
}
.fv-blog em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(246, 246, 247, 0.85);
}
.fv-blog span {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fv-blog:hover { color: var(--c-aqua); }
.fv-blog:hover em { color: var(--c-aqua); }

/* ============================================================
   CENTER COLUMN — logo + identity
   ============================================================ */
.fv-id { justify-self: center; text-align: center; }

.fv-logo { display: inline-block; }
.fv-logo img {
  height: 184px;
  width: auto;
  margin: 0 auto;
}
@media (max-width: 767px) { .fv-logo img { height: 152px; } }

.fv-tag {
  margin: 26px 0 18px;
  font-family: var(--font-display);
  color: var(--c-ivory);
  line-height: 1.4;
}
.fv-tag .up {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fv-tag em {
  font-style: italic;
  font-size: 15px;
  color: rgba(246, 246, 247, 0.7);
  letter-spacing: 0;
}

.fv-addr {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 246, 247, 0.72);
}

/* ============================================================
   RIGHT COLUMN — newsletter + social (right-aligned)
   ============================================================ */
.fv-news {
  justify-self: end;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.fv-news .fv-h { text-align: right; }
.fv-news .fv-rule { margin-bottom: 26px; }

/* Sign Up — lead CTA directly under the newsletter heading/divider */
.fv-news .fv-signup { margin-bottom: 26px; }

/* social icons reuse .socials-pill from Homepage.html */
.fv-news .socials-pill { margin-bottom: 22px; }

.fv-email {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 246, 247, 0.82);
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}
.fv-email:hover { color: var(--c-aqua); }

.fv-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.fv-signup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-deep);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--c-aqua);
  border: 1px solid var(--c-aqua);
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out),
    border-color 220ms var(--ease-out);
}
.fv-signup:hover { background: var(--c-ivory); border-color: var(--c-ivory); color: var(--c-deep); }

.fv-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 246, 247, 0.72);
  text-decoration: none;
  transition: color 220ms var(--ease-out);
}
.fv-top svg { width: 11px; height: 11px; }
.fv-top:hover { color: var(--c-aqua); }

/* ---- social chips (shared site-wide; mirrors Homepage.html) ---- */
.socials-pill {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.socials-pill li { margin: 0; }
.socials-pill a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(246, 246, 247, 0.3);
  color: var(--c-ivory);
  text-decoration: none;
  transition:
    border-color 300ms var(--ease-out),
    background-color 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .socials-pill a:hover {
    border-color: var(--c-ivory);
    background: rgba(246, 246, 247, 0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .socials-pill a { transition: none; }
}
.socials-pill a:focus-visible {
  outline: 2px solid var(--c-ivory);
  outline-offset: 2px;
}

/* ============================================================
   Responsive — stack & center
   ============================================================ */
@media (max-width: 1023px) {
  .fv-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    justify-items: center;
  }
  .fv-nav,
  .fv-news {
    justify-self: center;
    text-align: center;
    align-items: center;
  }
  .fv-news .fv-h { text-align: center; }
  /* center column first (logo leads on mobile), then nav, then newsletter */
  .fv-id   { order: 1; }
  .fv-nav  { order: 2; }
  .fv-news { order: 3; }
  .fv-links { align-items: center; }
  .fv-actions { align-items: center; }
  .fv-rule { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   Touch targets
   ============================================================
   The remaining footer links measured 20 to 33px tall, under the
   44px touch target. .fv-links is handled above; these are the
   stragglers: the blog link, the email address, back-to-top, and
   the legal row. Phone and tablet widths only, so the desktop
   footer keeps its tighter rhythm.
   ============================================================ */
@media (max-width: 767px) {
  .fv-blog,
  .fv-email,
  .fv-top {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .fv-blog { margin-top: 16px; }

  .legal-row a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
  }
  /* Give the copyright its own line so the four legal links keep a
     single row instead of orphaning "Accessibility" underneath. */
  .legal-row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0;
    /* 4 links measure 263px at 375px wide. The desktop 24px gap puts the
       row at 335px against a 327px container, orphaning "Accessibility".
       16px brings it to 311px and keeps all four on one line. */
    column-gap: 16px;
  }
  .legal-row > span:first-child {
    flex: 0 0 100%;
    text-align: center;
  }
}

/* ---------- Provider profiles under Meet the Team ----------
   The two co-owners' own pages hang off the Meet the Team row rather
   than sitting beside it as two more top-level destinations: sentence
   case, one step down, indented.

   Alpha is 0.72, not lower. Ivory at 0.62 over Deep Teal measures
   4.35:1 and misses AA at this size; 0.72 gives 5.28:1, and clears on
   --c-deep-2 too. */
.fv-sub { margin-left: 14px; }
.fv-links .fv-sub a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(246, 246, 247, 0.72);
}
