/* ==========================================================================
   Pre-footer + footer — Figma 252:1224 (frame-y 8480→9608)
   Caddie photograph 1440x748 with a pull-quote over it, then the dark panel.
   ========================================================================== */

.gw-foot {
  position: relative;
  background: var(--gw-white);
  container-type: inline-size;
  /* The photograph begins 78 above where the FAQ ends — the comp overlaps them.
     That overlap is a fact about the HOMEPAGE, where the FAQ's last answer sits
     over the picture's blank sky. On any other page there is nothing to overlap
     and the pull-up just eats the bottom of the content, so it is scoped. */
  margin-top: 0;
  z-index: 0;
}

/* ---- the caddie block (252:1223 over 222:312) ---------------------------- */
.home .gw-foot { margin-top: calc(-78 * min(1px, calc(100cqw / 1440))); }

.gw-foot__caddie {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  height: calc(748 * var(--u));
  --u: min(1px, calc(100cqw / 1440));
}
.gw-foot__caddie-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.gw-foot__pitch {
  position: absolute;
  top: calc(267 * var(--u));
  left: calc(194 * var(--u));
  width: calc(510 * var(--u));
}
.gw-foot__quote {
  display: flex;
  flex-direction: column;
  font-family: var(--gw-font-display);
  font-weight: 400;
  font-size: calc(32 * var(--u));
  line-height: calc(44.8 * var(--u));
}
.gw-foot__quote-a { color: var(--gw-violet); }
.gw-foot__quote-b { color: #2D2D2D; }

/* 252:1218 — 291x76, label at 25 in, 26 icon against the far padding */
.gw-foot__cta {
  margin-top: calc(48 * var(--u));
  width: calc(291 * var(--u));
  height: calc(76 * var(--u));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: calc(25 * var(--u));
  background: #000000;
  border: 1px solid #D9D9D9;
  color: var(--gw-white);
  transition: background var(--gw-dur) var(--gw-ease);
}
.gw-foot__cta:hover { background: #1a1a1a; }
.gw-foot__cta-label {
  font-family: var(--gw-font-display);
  font-weight: 400;
  font-size: calc(20 * var(--u));
  line-height: calc(26 * var(--u));
}
.gw-foot__cta-icon {
  flex: none;
  display: block;
  /* Figma's 26 box holds an 18.42x21.67 glyph (252:1222); our icon is a tight
     crop, so 26 would render it ~40% oversized */
  width: calc(18.42 * var(--u));
  height: calc(21.67 * var(--u));
}

@media (max-width: 1023px) {
  .gw-foot { margin-top: 0; }
  .gw-foot__caddie { height: auto; --u: 1px; }
  .gw-foot__caddie-img { position: static; height: auto; aspect-ratio: 1440 / 748; }
  .gw-foot__pitch {
    position: static;
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem) var(--gw-gutter) clamp(2rem, 5vw, 3rem);
  }
  .gw-foot__quote { font-size: clamp(1.25rem, 3.4vw, 2rem); line-height: 1.4; }
  .gw-foot__cta { margin-top: 1.5rem; width: 100%; max-width: 291px; height: 64px; }
  .gw-foot__cta-label { font-size: 1.0625rem; line-height: 1.4; }
  .gw-foot__cta-icon { width: 16px; height: 19px; }
}

.gw-foot__panel { background: var(--gw-footer-bg); padding-block: 80px 49px; }

.gw-foot__inner { width: 1240px; max-width: calc(100% - var(--gw-gutter) * 2); margin-inline: auto; }

.gw-foot__top { display: flex; justify-content: space-between; gap: 48px; }

.gw-foot__brand { width: 320px; }
.gw-foot__logo { display: block; width: 292px; height: 54px; color: var(--gw-white); }
.gw-foot__logo svg { width: 100%; height: 100%; }
.gw-foot__desc {
  margin-top: 24px;
  font-size: var(--gw-t-body-sm);
  line-height: 22px;
  color: var(--gw-gray-400);
}

.gw-foot__links { display: flex; gap: 80px; }
.gw-foot__coltitle {
  font-family: var(--gw-font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 18.2px;
  color: var(--gw-white);
}
.gw-foot__list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.gw-foot__list li { line-height: 16.9px; }
.gw-foot__list a {
  font-size: var(--gw-t-body-sm);
  line-height: 16.9px;
  color: var(--gw-gray-400);
  transition: color var(--gw-dur-fast) var(--gw-ease);
}
.gw-foot__list a:hover { color: var(--gw-white); }

.gw-foot__social { margin-top: 16px; display: flex; gap: 12px; }
.gw-foot__sbtn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--gw-white);
  transition: background var(--gw-dur-fast) var(--gw-ease);
}
.gw-foot__sbtn:hover { background: rgb(255 255 255 / 0.14); }
.gw-foot__sbtn svg { width: 16px; height: 16px; }

.gw-foot__bottom {
  margin-top: 48px;
  padding-top: 47px;
  border-top: 1px solid rgb(255 255 255 / 0.10);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.gw-foot__copy,
.gw-foot__legal a {
  font-size: var(--gw-t-body-sm);
  line-height: 16.9px;
  color: var(--gw-gray-500);
}
.gw-foot__legal { display: flex; gap: 24px; }
.gw-foot__legal li,
.gw-foot__legal a { display: block; line-height: 16.9px; }
.gw-foot__legal a { transition: color var(--gw-dur-fast) var(--gw-ease); }
.gw-foot__legal a:hover { color: var(--gw-white); }

@media (max-width: 1023px) {
  .gw-foot__panel { padding-block: 56px 24px; }
  .gw-foot__top { flex-direction: column; gap: 40px; }
  .gw-foot__links { gap: 48px; flex-wrap: wrap; }
  .gw-foot__brand { width: auto; max-width: 360px; }
  .gw-foot__logo { width: 220px; height: auto; }
  .gw-foot__bottom { margin-top: 36px; padding-top: 32px; flex-direction: column; align-items: flex-start; gap: 16px; }
}
