/* ==========================================================================
   footer.css — site footer (shared by every page)
   ========================================================================== */

.site-footer {
  padding-block: clamp(3rem, 5vw, 4.5rem) var(--sp-6);
  background: var(--paper);
  border-top: 1px solid var(--paper-edge);
}

/* Full window width with a gutter each side, matching the header bar */
.site-footer .page-width { max-width: none; }

/* One shared grid so the bottom row lines up under the top columns. Brand
   takes the flexible first column; the three contact columns are content-sized
   and pushed to the right. Both rows read the same tracks via subgrid. */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  column-gap: clamp(4rem, 8vw, 7rem);
}

.site-footer__top,
.site-footer__legal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}

.site-footer__top {
  align-items: start;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--paper-edge);
}

.site-footer__brand { max-width: 34ch; }

/* Explore's links sit in two columns so the footer isn't one tall stack */
.footer-explore {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) clamp(1.25rem, 2.5vw, 2.5rem);
}

.footer-explore ul {
  display: grid;
  gap: var(--sp-2);
  align-content: start;
}

.site-footer .wordmark { margin-right: 0; }

.site-footer__blurb {
  margin-top: var(--sp-3);
  max-width: 34ch;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: var(--sp-3);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.footer-col a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.18s var(--ease);
}

.footer-col a:hover { color: var(--red-deep); }

.footer-col strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Phone number with the same red icon and tilt as the call buttons */
.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}

.footer-phone svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}

.footer-phone:hover svg { transform: rotate(-12deg) scale(1.06); }

.footer-phone:hover strong { color: var(--red-deep); }

.footer-phone strong { transition: color 0.18s var(--ease); }

/* Copyright under the brand, in-shop under Visit, serving under Talk. */
.site-footer__legal {
  align-items: baseline;
  margin-top: var(--sp-5);
  font-size: 0.75rem;
  color: var(--ink-mute);
}

.site-footer__note--a { grid-column: 2; }

/* Serving line spans the right columns and right-aligns to the divider edge,
   so it doesn't stretch the Talk column — Talk stays flush right. */
.site-footer__note--b {
  grid-column: 3 / -1;
  justify-self: end;
  text-align: right;
}

@media (max-width: 860px) {
  /* Drop the shared grid: brand full width, columns wrap, notes stack left */
  .site-footer__grid { display: block; }

  .site-footer__top {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6);
  }

  .site-footer__brand { max-width: none; flex-basis: 100%; }

  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: var(--sp-2) var(--sp-5);
  }

  .site-footer__note--a,
  .site-footer__note--b { grid-column: auto; }
}

@media (max-width: 560px) {
  .footer-explore { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
