/* =============================================================================
   Site footer — structure ported from the RevBorn footer handoff (three stacked
   bands: trust band, link columns, bottom bar). Namespace: .ft

   Colour and type are NOT the handoff's. Every colour token is bound to Astra's
   global palette (--ast-global-color-*) or derived from white with alpha, and the
   typeface inherits Astra's body/heading fonts. Change the palette in the
   Customizer and the footer follows.
   ========================================================================== */

/* ---------- 0. Tokens ----------------------------------------------------- */
.ft {
  --ft-bg:           var(--ast-global-color-8, #222222);   /* footer ground   */
  --ft-band-bg:      var(--ast-global-color-3, #4a4a4a);   /* trust band      */
  --ft-hairline:     rgba(255, 255, 255, .08);
  --ft-hairline-2:   rgba(255, 255, 255, .10);
  --ft-text:         var(--ast-global-color-5, #ffffff);
  --ft-text-soft:    rgba(255, 255, 255, .90);              /* USP labels      */
  --ft-muted:        rgba(255, 255, 255, .70);              /* blurbs          */
  --ft-muted-2:      rgba(255, 255, 255, .64);              /* fine print      */
  --ft-link:         rgba(255, 255, 255, .82);
  --ft-accent:       var(--ast-global-color-0, #dca54a);
  --ft-accent-dark:  var(--ast-global-color-1, #d09a40);
  --ft-accent-ink:   var(--ast-global-color-2, #0f172a);   /* text on accent  */
  --ft-link-hover:   var(--ft-accent);
  --ft-social:       rgba(255, 255, 255, .45);
  --ft-social-hover: var(--ft-text);
  --ft-font:         inherit;                               /* Astra body font */
  --ft-container:    var(--alstoma-content-width, 1240px);
  --ft-gutter:       20px;
  --ft-radius:       0;                                     /* square, like the theme's buttons */

  position: relative;
  overflow-x: hidden;
  background: var(--ft-bg);
  color: var(--ft-text);
  font-family: var(--ft-font);
  font-size: 15px;
  line-height: 28px;
  font-weight: 400;
}
.ft *, .ft *::before, .ft *::after { box-sizing: border-box; }

.ft a {
  color: var(--ft-link);
  text-decoration: none;
  transition: color .2s ease;
}
.ft a:hover, .ft a:focus-visible { color: var(--ft-link-hover); }
.ft a:focus-visible { outline: 2px solid var(--ft-accent); outline-offset: 2px; }

.ft__container {
  max-width: var(--ft-container);
  margin: 0 auto;
  padding-left: var(--ft-gutter);
  padding-right: var(--ft-gutter);
}
.ft ul { list-style: none; margin: 0; padding: 0; }

/* Astra's heading font applies to h2/h4 on its own; we only size them. */
.ft h2, .ft h4 { color: var(--ft-text); letter-spacing: 0; }

/* ---------- 1. Trust band -------------------------------------------------- */
.ft__band {
  background: var(--ft-band-bg);
  border-bottom: 1px solid var(--ft-hairline);
}
.ft__band .ft__container {
  padding-top: 54px;
  padding-bottom: 54px;
  text-align: center;
}
.ft__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* Brand */
.ft__brand { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ft__logo { display: inline-flex; align-items: center; }
.ft__logo img { display: block; height: 40px; width: auto; max-width: 200px; }
/* The site logo is drawn for a light header; this renders it white on the dark
   ground. Drop the modifier via the config if a light logo file is supplied. */
.ft__logo--invert img { filter: brightness(0) invert(1); }
.ft__brand-name { font-size: 22px; font-weight: 800; letter-spacing: .02em; line-height: 1; color: var(--ft-text); }

/* CTA — sits in the handoff's newsletter slot */
.ft__cta { width: 100%; max-width: 480px; margin: 0; text-align: center; }
.ft__cta-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}
.ft__cta-text { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--ft-muted); }
/* Selectors carry the .ft prefix so they outrank the generic `.ft a` / `.ft a:hover`
   link rules above; without it the button text took the link colours - light at
   rest and gold on hover, on a gold background. */
.ft .ft__cta-button {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid var(--ft-accent);
  border-radius: var(--ft-radius);
  background: var(--ft-accent);
  color: var(--ft-accent-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.ft .ft__cta-button:hover, .ft .ft__cta-button:focus-visible {
  background: var(--ft-accent-dark);
  border-color: var(--ft-accent-dark);
  color: var(--ft-accent-ink);
}
.ft__cta-fine { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--ft-muted-2); }
.ft__cta-fine a { color: var(--ft-text-soft); text-decoration: underline; text-underline-offset: .15em; }
.ft__cta-fine a:hover, .ft__cta-fine a:focus-visible { color: var(--ft-accent); }

/* USP strip */
.ft__usps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--ft-hairline);
}
.ft__usps li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ft-text-soft);
  white-space: nowrap;
}
.ft__usp-icon { display: inline-flex; flex: 0 0 auto; color: var(--ft-accent); }
.ft__usp-icon svg { display: block; width: 20px; height: 20px; }

@media (max-width: 768px) {
  .ft__top { gap: 34px; }
  .ft__usps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    width: 100%;
    align-items: start;
  }
  .ft__usps li { font-size: 12.5px; white-space: normal; align-items: flex-start; text-align: left; }
  .ft__usp-icon { margin-top: 1px; }
}

/* ---------- 2. Link columns ----------------------------------------------- */
.ft__widgets { padding: 70px 0; }
/* Two link columns plus one column per clinic - five today. auto-fit keeps them on
   one row on desktop and lets the count change without touching the CSS. */
.ft__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px 40px;
  align-items: start;
}
@media (min-width: 960px) { .ft__columns { max-width: 1180px; } }
.ft__col { min-width: 0; text-align: left; }

.ft__heading {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}
.ft__heading--spaced { margin-top: 24px; }
.ft__col p { margin: 0 0 5px; }
.ft__col li { margin: 0; }
.ft__col strong { color: var(--ft-text); font-weight: 700; }
.ft__col .ft__addr { display: block; color: var(--ft-muted); font-size: 14px; line-height: 1.6; }
.ft__col .ft__entry { margin: 0 0 12px; }
.ft__col .ft__entry:last-child { margin-bottom: 0; }
.ft__hours { display: block; font-variant-numeric: tabular-nums; }
.ft__hours-days { display: inline-block; min-width: 2.6em; font-weight: 600; color: var(--ft-text); }
.ft__label { display: block; margin-bottom: 2px; font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--ft-muted); }
.ft__tel { color: var(--ft-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ft__tel:hover, .ft__tel:focus-visible { color: var(--ft-accent); }
.ft__map { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--ft-muted); text-decoration: underline; text-underline-offset: .15em; }
.ft__map:hover, .ft__map:focus-visible { color: var(--ft-accent); }
.ft__pending { color: var(--ft-muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 959px) {
  .ft__widgets { padding: 56px 0; }
  .ft__columns { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
}
@media (max-width: 480px) {
  .ft__columns { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 3. Bottom bar --------------------------------------------------- */
.ft__bottom { border-top: 1px solid var(--ft-hairline-2); }
.ft__bottom .ft__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 30px;
  padding-bottom: 20px;
  text-align: center;
}
.ft__copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  margin: 0;
}
.ft__copytext { color: var(--ft-text); }
.ft__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.ft__legal a { color: var(--ft-muted); font-size: 14px; }

/* Social */
.ft__social { display: flex; align-items: center; justify-content: center; gap: 6px; }
.ft__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--ft-social);
  transition: color .3s ease-in-out;
}
.ft__social a:hover, .ft__social a:focus-visible { color: var(--ft-social-hover); }
.ft__social svg { width: 15px; height: 15px; display: block; fill: currentColor; }

@media (prefers-reduced-motion: reduce) {
  .ft a, .ft__cta-button, .ft__social a { transition: none; }
}
