/* Section: footer — dark full-bleed footer with newsletter + link columns,
   a thin divider, and a bottom strip with locale / copyright / payments.
   Floating back-to-top button anchors to the viewport edge. */

.site-footer {
  background: var(--color-navy-deep);
  color: var(--color-white);
  position: relative;
  padding-top: clamp(var(--sp-8), 7vw, var(--sp-10));
}

.footer__inner {
  padding-inline: clamp(var(--sp-5), 5vw, var(--sp-9));
  max-width: 1600px;
  margin: 0 auto;
}

/* ——— Top: signup + link columns ——— */
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(var(--sp-5), 4vw, var(--sp-8));
  padding-bottom: clamp(var(--sp-7), 6vw, var(--sp-9));
}
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__signup { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

.footer__signup-title {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 var(--sp-3);
  color: var(--color-white);
}
.footer__signup-copy {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 var(--sp-5);
  max-width: 42ch;
}

/* email form */
.footer__form {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.footer__form:focus-within { border-color: var(--color-white); }
.footer__form-icon {
  color: var(--color-white);
  display: inline-flex;
}
.footer__form-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--color-white);
  caret-color: var(--color-white);
}
.footer__form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.footer__form button {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--color-white);
  padding: 8px;
  display: inline-flex;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.footer__form button:hover {
  color: var(--color-gold);
  transform: translateX(2px);
}
.footer__form button svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* socials */
.footer__socials {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: var(--sp-6);
}
.footer__socials a {
  color: var(--color-white);
  opacity: 0.88;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  display: inline-flex;
}
.footer__socials a:hover { opacity: 1; transform: translateY(-2px); }
.footer__socials svg { width: 20px; height: 20px; fill: currentColor; }

/* link columns */
.footer__col-title {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  margin: 0 0 var(--sp-5);
  color: var(--color-white);
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--color-white); }

/* ——— Bottom bar ——— */
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--sp-5) 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}
@media (max-width: 780px) {
  .footer__bar {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: var(--sp-4);
  }
  .footer__payments { justify-self: center; }
  .footer__locale { justify-self: center; }
}

.footer__locale {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  opacity: 0.8;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.footer__locale:hover { opacity: 1; }
.footer__locale svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
}

.footer__copy {
  text-align: center;
  margin: 0;
}
.footer__copy a {
  color: var(--color-white);
  text-decoration: none;
}
.footer__copy a:hover { color: var(--color-gold); }

.footer__payments {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-self: end;
}
.footer__payments svg {
  width: 36px;
  height: 24px;
  display: block;
  border-radius: 3px;
}

/* ——— Back to top ——— */
.footer__to-top {
  position: fixed;
  right: clamp(var(--sp-3), 2vw, var(--sp-5));
  bottom: clamp(var(--sp-3), 2vw, var(--sp-5));
  z-index: 40;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-red);
  color: var(--color-white);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease-out),
              visibility 0s linear var(--dur-med),
              transform var(--dur-med) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.footer__to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.footer__to-top:hover { background: var(--color-red-deep); }
.footer__to-top svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
