/* =================================================================
   Footer (Figma "Group 1618868883", 1440×687 @ y=4533)
   5 columns × 164 (gap 80) · logo 314×104 · socials · Call Center · legal · pink bar.
   ================================================================= */
.s-footer {
  --ft-bg: var(--surface-4);
  --ft-ink: var(--ink);
  --ft-ink-2: var(--ink-2);
  position: relative;
  background: var(--ft-bg);
  color: var(--ft-ink-2);
}
.s-footer .ft-inner {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 104px var(--gutter) 69.9px;
}

/* ---------------- Link columns ---------------- */
.s-footer .ft-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 164px));
  justify-content: space-between;
  column-gap: 32px;
  align-items: start;
  min-height: 362px;
}
.s-footer .ft-col--stack { display: flex; flex-direction: column; gap: 30px; }
.s-footer .ft-group { position: relative; min-width: 0; }
.s-footer .ft-h {
  font-size: 16px;
  line-height: 21px; /* Figma box 16 × 1.3 → 21 */
  font-weight: var(--fw-semibold);
  color: var(--ft-ink);
}
.s-footer .ft-toggle { display: none; }
.s-footer .ft-links { margin-top: 12px; }
.s-footer .ft-link {
  display: inline-block;
  max-width: 100%;
  font-size: 13px;
  line-height: 2;
  font-weight: var(--fw-regular);
  color: var(--ft-ink-2);
  transition: color var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
/* animated underline (grows from the left on hover) */
.s-footer .ft-link span {
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px;
  padding-bottom: 1px;
  transition: background-size 320ms var(--ease-out);
}
.s-footer .ft-link:focus-visible { outline-offset: 2px; border-radius: 4px; }

/* ---------------- Bottom: logo + contact ---------------- */
.s-footer .ft-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  min-height: 137.12px;
}
.s-footer .ft-logo {
  flex: none;
  display: block;
  margin: 20.79px 0 0 -0.5px;
  border-radius: 8px;
  transition: transform var(--t-med) var(--ease-out);
}
.s-footer .ft-logo img { width: 315.4px; height: 104.85px; max-width: none; }

.s-footer .ft-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
}
.s-footer .ft-social { display: flex; align-items: center; gap: 12px; margin-right: 2px; }
.s-footer .ft-social__label {
  font-size: 14px;
  line-height: 1.3;
  font-weight: var(--fw-semibold);
  color: var(--ft-ink-2);
  white-space: nowrap;
}
.s-footer .ft-social__list { display: flex; align-items: center; gap: 4.31px; }
.s-footer .ft-social__list > li:first-child { margin-right: -1.84px; }
.s-footer .ft-social__list > li:last-child { margin-left: -1.86px; }
.s-footer .ft-soc {
  position: relative;
  display: grid;
  place-items: center;
  width: 27.69px;
  height: 27.69px;
  border-radius: 50%;
  background: var(--gsb-pink);
  color: #fff;
  isolation: isolate;
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-out);
}
.s-footer .ft-soc::before {
  /* brand gradient that fades in on hover */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gsb-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--t-med) var(--ease-out);
}
.s-footer .ft-soc svg { width: 17.22px; height: 17.22px; transition: transform var(--t-med) var(--ease-spring); }
.s-footer .ft-soc:focus-visible { outline-offset: 2px; border-radius: 50%; }
.s-footer .ft-soc:active { transform: scale(0.94); }

.s-footer .ft-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 26.89px 0 10.07px; /* Figma text box is 41.27 tall, glyphs sit at its top */
  font-size: 24px;
  line-height: 1.3;
  font-weight: var(--fw-semibold);
  color: var(--ft-ink-2);
  white-space: nowrap;
  border-radius: 10px;
  transition: color var(--t-med) var(--ease-out);
}
.s-footer .ft-call b { font-weight: var(--fw-bold); }
.s-footer .ft-call__ic {
  display: none; /* not in the desktop design; shown on touch layouts */
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gsb-pink-tint);
  color: var(--gsb-pink);
}
.s-footer .ft-call__txt { position: relative; }
.s-footer .ft-call__txt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--gsb-gradient);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 360ms var(--ease-out);
}

.s-footer .ft-legal {
  display: flex;
  align-items: flex-start;
  gap: 70px;
  margin-top: 17.31px;
  margin-right: 2px;
}
.s-footer .ft-legal__links { display: flex; gap: 12px; margin-top: 5.84px; }
.s-footer .ft-link--legal { display: block; font-size: 12px; line-height: 18px; white-space: nowrap; }
.s-footer .ft-copy {
  font-size: 14px;
  line-height: 1.3;
  font-weight: var(--fw-semibold);
  color: var(--ft-ink-2);
  white-space: nowrap;
}
.s-footer .ft-copy__c { position: relative; top: -4px; font-size: 11px; line-height: 0; margin-right: 1px; }

.s-footer .ft-bar { height: 14.65px; background: var(--gsb-pink); }

/* ---------------- Hover ---------------- */
@media (hover: hover) {
  .s-footer .ft-link:hover { color: var(--gsb-pink); }
  .s-footer .ft-link:hover span { background-size: 100% 1px; background-position: 0 100%; }
  .s-footer .ft-soc:hover { transform: translateY(-3px); box-shadow: 0 8px 16px -6px rgba(237, 0, 140, 0.55); }
  .s-footer .ft-soc:hover::before { opacity: 1; }
  .s-footer .ft-soc:hover svg { transform: scale(1.08); }
  .s-footer .ft-call:hover { color: var(--gsb-pink); }
  .s-footer .ft-call:hover .ft-call__txt::after { transform: scaleX(1); transform-origin: 0 50%; }
  .s-footer .ft-logo:hover { transform: translateY(-2px); }
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1279px) {
  .s-footer .ft-inner { padding-top: 88px; }
  .s-footer .ft-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 28px; min-height: 0; }
  .s-footer .ft-bottom { margin-top: 64px; }
  .s-footer .ft-logo img { width: 280px; height: auto; }
  .s-footer .ft-legal { gap: 40px; }
}

/* Tablet: 2 columns of groups, contact block beside the logo */
@media (max-width: 1023px) {
  .s-footer .ft-inner { padding: 64px var(--gutter) 48px; }
  .s-footer .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 36px; }
  .s-footer .ft-col,
  .s-footer .ft-col--stack { display: contents; }
  .s-footer .ft-group { order: var(--o, 0); }
  .s-footer .ft-bottom { flex-direction: column; align-items: stretch; gap: 32px; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
  .s-footer .ft-logo { align-self: flex-start; margin: 0; }
  .s-footer .ft-logo img { width: 240px; }
  .s-footer .ft-contact { align-items: flex-start; gap: 20px; }
  .s-footer .ft-social { margin: 0; }
  .s-footer .ft-call { margin: 0; }
  .s-footer .ft-legal { margin: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
  .s-footer .ft-social__list > li:first-child,
  .s-footer .ft-social__list > li:last-child { margin: 0; }
  .s-footer .ft-social__list { gap: 8px; }
  .s-footer .ft-soc { width: 40px; height: 40px; }
  .s-footer .ft-soc svg { width: 20px; height: 20px; }
}

/* Phone: accordions, centered contact */
@media (max-width: 767px) {
  .s-footer .ft-inner { padding: 24px var(--gutter) 32px; }
  .s-footer .ft-cols { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .s-footer .ft-group { order: 0; }
  .s-footer .ft-group { border-bottom: 1px solid var(--line-2); }
  .s-footer .ft-h { display: flex; align-items: center; min-height: 56px; padding-right: 40px; font-size: 16px; }
  .s-footer.is-accordion .ft-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 56px;
    padding-right: 4px;
    color: var(--ink-4);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }
  .s-footer.is-accordion .ft-toggle:focus-visible { outline-offset: -2px; }
  .s-footer .ft-toggle__ic { transition: transform 320ms var(--ease-out); }
  .s-footer .ft-toggle[aria-expanded="true"] .ft-toggle__ic { transform: rotate(180deg); }
  .s-footer .ft-toggle[aria-expanded="true"] { color: var(--gsb-pink); }
  .s-footer.is-accordion .ft-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 360ms var(--ease-out), visibility 0s linear 360ms;
    visibility: hidden;
  }
  .s-footer.is-accordion .ft-group.is-open .ft-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 360ms var(--ease-out), visibility 0s;
  }
  .s-footer.is-accordion .ft-panel > .ft-links { min-height: 0; overflow: hidden; }
  .s-footer .ft-links { margin: 0; padding-bottom: 0; }
  .s-footer .ft-links li:last-child { padding-bottom: 14px; }
  .s-footer .ft-link { font-size: 14px; line-height: 44px; display: block; }
  .s-footer.is-accordion .ft-links { opacity: 0; transform: translateY(-4px); transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-out); }
  .s-footer.is-accordion .ft-group.is-open .ft-links { opacity: 1; transform: none; transition-delay: 60ms; }

  .s-footer .ft-bottom { align-items: center; text-align: center; border-top: 0; padding-top: 0; margin-top: 32px; gap: 28px; }
  .s-footer .ft-logo { align-self: center; }
  .s-footer .ft-logo img { width: 220px; }
  .s-footer .ft-contact { align-items: center; gap: 20px; width: 100%; }
  .s-footer .ft-social { flex-direction: column; gap: 12px; }
  .s-footer .ft-social__label { transform: none; }
  .s-footer .ft-social__list { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .s-footer .ft-soc { width: 44px; height: 44px; }
  .s-footer .ft-call {
    gap: 12px;
    padding: 6px 20px 6px 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), inset 0 0 0 1px var(--line);
    font-size: 20px;
    line-height: 1.3;
  }
  .s-footer .ft-call__ic { display: grid; }
  .s-footer .ft-call__txt::after { display: none; }
  .s-footer .ft-call:active { transform: scale(0.97); }
  .s-footer .ft-legal { flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
  .s-footer .ft-legal__links { gap: 20px; }
  .s-footer .ft-link--legal { line-height: 36px; font-size: 13px; }
  .s-footer .ft-copy { font-size: 13px; white-space: normal; }
  .s-footer .ft-bar { height: 8px; }
}
