/* ==========================================================================
   Partial: Footer
   --------------------------------------------------------------------------
   Markup: Resources/Private/PageView/Partials/Footer.html
   Uses the global tokens / components (theme.css, components.css: .btn,
   typography.css: .link-arrow).

   01. Frame
   02. Columns (brand, contact, hours, call to action)
   03. Bottom bar (copyright, legal links, back to top)
   ========================================================================== */


/* ==========================================================================
   01. FRAME
   Light grey like the light sections, clearly separated from the content.
   ========================================================================== */
.site-footer {
  margin-top: var(--space-section);
  background: var(--c-tint);
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.6;
}
/* No double space when the last element already has a background or is a full-width tile */
main:has(> :last-child:is(.section--bg-light, .section--bg-dark)) + .site-footer { margin-top: 0; }

.site-footer :is(.site-footer__list, .site-footer__legal) a {
  text-decoration: none;
  text-underline-offset: 0.2em;
}
.site-footer :is(.site-footer__list, .site-footer__legal) a:hover { text-decoration: underline; }


/* ==========================================================================
   02. COLUMNS
   Smartphone: 1 column, tablet: 2, desktop: brand wider + 3 columns.
   ========================================================================== */
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 4vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 40rem) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .site-footer__inner { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
}

/* ---- Brand ---- */
.site-footer__logo {
  display: inline-block;
  width: clamp(11rem, 16vw, 13.5rem);
}
.site-footer__logo img {
  width: 100%;
  height: auto;
}
.site-footer__slogan {
  margin-top: 0.75rem;
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  line-height: 1.3;
}

.site-footer__social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.site-footer__social-link {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-text);
  font-size: 1.25rem;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}
.site-footer__social-link:hover {
  border-color: var(--c-text);
  background: var(--c-text);
  color: var(--c-white);
}

/* ---- Columns ---- */
.site-footer__title {
  margin-bottom: 1rem;
  font-family: var(--ff-base);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__address { margin-bottom: 0.75rem; }

.site-footer__list {
  padding: 0;
  list-style: none;
}
.site-footer__label {
  display: inline-block;
  min-width: 4.25rem;
  color: var(--c-muted);
}

.site-footer__hours dt { font-weight: var(--fw-medium); }

.site-footer__more {
  margin-top: 1rem;
  font-size: var(--fs-small);
}

.site-footer__text { max-width: 22rem; }
.site-footer__cta {
  margin-top: 1.25rem;
  font-size: 1rem;                              /* like the text around it */
}


/* ==========================================================================
   03. BOTTOM BAR
   ========================================================================== */
.site-footer__bottom {
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
}
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem;
}
.site-footer__copyright { color: var(--c-muted); }
.site-footer__credit { white-space: nowrap; }
.site-footer__credit a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.2em;
}
.site-footer__credit a:hover {
  color: var(--c-text);
  text-decoration: underline;
}

.site-footer__legal { margin-inline-end: auto; }
.site-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding: 0;
  list-style: none;
}
/* 24px tap target (WCAG 2.5.8) */
.site-footer__legal a,
.site-footer__top {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
}

.site-footer__top {
  gap: 0.375rem;
  text-decoration: none;
}
.site-footer__top:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__top .icon { font-size: 1.125rem; }

@media (max-width: 39.99rem) {
  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
  .site-footer__legal { margin-inline-end: 0; }
  /* Credit on its own line, without separator */
  .site-footer__credit { display: block; }
  .site-footer__sep { display: none; }
}
