/* AMME — site footer */
/* ------------------------------------------------------------------
   FOOTER
-------------------------------------------------------------------*/
.footer {
  position: relative;
  isolation: isolate;
  min-height: 997px;
  padding-block: 140px 120px;
  overflow: hidden;
}
.footer__bg { position: absolute; inset: 0; z-index: -1; }
.footer__bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 100%; }
.footer__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--white) 15%, rgba(var(--white-rgb), 0) 58%);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 750fr) minmax(0, 395fr) minmax(0, 356fr);
  align-items: start;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; padding-right: 40px; }
.footer__brand h2 { font-size: var(--fs-display); line-height: 1; font-weight: 400; letter-spacing: -0.03em; }
.footer__brand h2 strong { font-weight: 700; display: block; }
.footer__brand p { font-size: var(--fs-md); line-height: 24px; }
.footer__col { padding-top: 7px; font-size: var(--fs-md); line-height: 24px; }
.footer__col h3 { font-size: var(--fs-lead); font-weight: 700; margin-bottom: 30px; }
.footer__col ul { display: flex; flex-direction: column; gap: 15px; }
.footer__col a:hover { color: var(--purple); }
.footer__col a[aria-current="page"] { font-weight: 700; }
.footer__col address { font-style: normal; display: flex; flex-direction: column; gap: 15px; }
.footer__col .mail { text-decoration: underline; text-underline-position: from-font; word-break: break-word; }

/* follow us: white round icons under the address */
.footer__social { margin-top: 60px; }
.footer__social h3 { margin-bottom: 20px; }
.footer__social ul { flex-direction: row; flex-wrap: wrap; gap: 16px; }
.footer__social a {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); color: var(--black);
  box-shadow: 0 0 0 1px rgba(var(--black-rgb), .06), 0 6px 18px rgba(var(--black-rgb), .08);
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.footer__social a:hover { background: var(--ink); color: var(--white); transform: translateY(-3px); }
.footer__social svg { display: block; }

/* copyright bar: dark glass strip sitting on the bottom edge */
.footer__bar {
  position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(-50%);
  width: var(--container);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 25px 25px 20px 25px; border-radius: 24px 24px 0 0;
  background: var(--black);
  color: #b5b5b5; font-size: 13px; line-height: 1.3; letter-spacing: -0.02em;
}
.footer__legal { display: flex; gap: 20px; }
.footer__bar a { transition: color .2s ease; }
.footer__bar a:hover, .footer__bar a[aria-current="page"] { color: var(--white); }

/* responsive */
@media (max-width: 900px) {
  /* tablets + phones: text first on white, then the illustration below it at full width (bottom, centred, natural height) */
  .footer { min-height: 0; padding-block: 64px 0; display: flex; flex-direction: column; background: var(--white); }   /* own white backdrop: some pages tint the body while scrolling */
  .footer__grid { order: 1; position: relative; z-index: 1; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__bg { order: 2; position: relative; inset: auto; z-index: 0; margin-top: 12px; }
  .footer__bg img { position: relative; inset: auto; display: block; width: 100%; height: auto; object-fit: initial; }
  .footer__bg::after { background: linear-gradient(to bottom, var(--white) 0%, rgba(var(--white-rgb), 0) 45%); }
  .footer__brand { grid-column: 1 / -1; padding-right: 0; gap: 16px; }
  .footer__brand h2 { font-size: clamp(30px, 8vw, 44px); }
  .footer__brand p { font-size: 15px; line-height: 1.45; }
  .footer__col { padding-top: 0; font-size: 15px; line-height: 1.4; }
  .footer__col h3 { font-size: 16px; margin-bottom: 14px; }
  .footer__col ul { gap: 9px; }
  .footer__col address { gap: 9px; }
  .footer__social { margin-top: 28px; }
  .footer__social h3 { margin-bottom: 12px; }
  .footer__social ul { gap: 12px; }
  .footer__social a { width: 44px; height: 44px; }
  .footer__social svg { transform: scale(.9); }
  /* phones: the bar sits under the image (not on it), edge to edge */
  .footer__bar { order: 3; position: relative; left: auto; bottom: auto; transform: none; width: 100%; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 0; font-size: 12px; text-align: center; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
