/* ==========================================================================
   footer.css — site footer
   Depends on tokens from common.css (Outfit font, 1rem = 10px, --page-width)
   ========================================================================== */

.site-footer {
  /* --ft-bg: #121212;
  --ft-fg: #f3f1ec;
  --ft-muted: #9a958c;
  --ft-line: rgba(255, 255, 255, 0.12);
  --ft-accent: #c9a35e;    */
  --ft-radius: 1.2rem;

  position: relative;
  background: var(--ft-bg);
  color: var(--ft-fg);
  font-family: var(--font-family, "Outfit", sans-serif);
  font-size: 1.5rem;
  line-height: 1.7;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after { box-sizing: border-box; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------------- top grid */
.site-footer__top {
  display: grid;
  /* grid-template-columns: 1.6fr repeat(3, 1fr) 1.6fr; */
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 4rem 3rem;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

/* brand */
.site-footer__logo img {
  /* height: 4.2rem;
  width: auto; */
}
.site-footer__tagline {
  margin: 1.8rem 0 2rem;
  max-width: 34rem;
  color: var(--ft-muted);
  font-size: 1.45rem;
}
.site-footer__contact { margin-bottom: 2.2rem; }
.site-footer__contact li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 1.45rem;
}
.site-footer__contact span {
  flex: 0 0 4.4rem;
  font-size: 1.15rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--ft-muted);
}
.site-footer__contact a { transition: color 0.18s ease; }
.site-footer__contact a:hover { color: var(--ft-accent); }

/* social */
.site-footer__social { display: flex; gap: 1rem; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid var(--ft-line);
  color: var(--ft-fg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.site-footer__social svg { width: 1.9rem; height: 1.9rem; }
.site-footer__social a:hover {
  background: var(--ft-accent);
  border-color: var(--ft-accent);
  color: #1a1208;
  transform: translateY(-2px);
}

/* link columns */
.site-footer__col-head,
.site-footer__col-title {
  margin: 0 0 1.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: default;            /* desktop: not a real toggle */
  font-family: inherit;
}
.site-footer__col-head .footer__caret { display: none; width: 1.2rem; height: 0.8rem; transition: transform 0.25s ease; }

.site-footer__links li { margin-bottom: 0.4rem; }
.site-footer__links a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 1.45rem;
  color: var(--ft-muted);
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.site-footer__links a::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 50%;
  width: 0.6rem;
  height: 1px;
  background: var(--ft-accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.site-footer__links a:hover { color: var(--ft-fg); padding-left: 1.2rem; }
.site-footer__links a:hover::before { opacity: 1; }

/* newsletter */
.site-footer__news-text {
  margin: 0 0 1.8rem;
  color: var(--ft-muted);
  font-size: 1.45rem;
  max-width: 34rem;
}
.site-footer__news-field {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ft-line);
  border-radius: 10rem;
  padding: 0.4rem 0.4rem 0.4rem 1.8rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-footer__news-field:focus-within {
  border-color: var(--ft-accent);
  background: rgba(255, 255, 255, 0.1);
}
.site-footer__news-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.5rem;
  color: var(--ft-fg);
  padding: 1rem 0;
}
.site-footer__news-field input::placeholder { color: var(--ft-muted); }
.site-footer__news-field button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 0;
  border-radius: 50%;
  background: var(--ft-accent);
  color: #1a1208;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
.site-footer__news-field button .icon { width: 1.8rem; height: 1.8rem; }
.site-footer__news-field button:hover { background: #d8b46e; transform: scale(1.06); }

.site-footer__news-msg {
  margin: 1rem 0 0;
  font-size: 1.35rem;
}
.site-footer__news-msg.is-error { color: #ff8c8c; }
.site-footer__news-msg.is-success { color: #8fe0a4; }

/* ------------------------------------------------------------------- bottom bar */
.site-footer__bottom {
  border-top: 1px solid var(--ft-line);
  padding: 2.4rem 0;
}
.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem 3rem;
}
/* VAT inc/exc toggle (moved from header) */
.site-footer__vat {
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}
.site-footer__vat-btn {
  border: 0;
  background: transparent;
  color: var(--ft-fg);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-footer__vat-btn.is-active {
  background: var(--ft-accent);
  color: #121212;
}
.site-footer__vat-btn:not(.is-active):hover { background: rgba(255, 255, 255, 0.08); }

.site-footer__payments {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  order: 2;
}
.site-footer__pay-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  color: var(--ft-muted);
}
.site-footer__pay-secure strong { color: var(--ft-fg, inherit); font-weight: 600; }
.site-footer__pay-lock {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--ft-accent);
}
.site-footer__pay-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__pay-icon {
  display: block;
  width: 3.8rem;
  height: 2.4rem;
  border-radius: 0.4rem;
}
.site-footer__legal {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.site-footer__legal small { color: var(--ft-muted); font-size: 1.3rem; }
.site-footer__legal a { transition: color 0.18s ease; }
.site-footer__legal a:hover { color: var(--ft-accent); }
.site-footer__poweredby { color: var(--ft-muted); }
.site-footer__poweredby a { color: var(--ft-muted); }
.site-footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 0.6rem;
}
.site-footer__policies a {
  font-size: 1.3rem;
  color: var(--ft-muted);
  position: relative;
}
.site-footer__policies li:not(:last-child) a::after {
  content: "";
  position: absolute;
  right: -0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.2rem;
  background: var(--ft-line);
}
.site-footer__policies a:hover { color: var(--ft-fg); }

/* ------------------------------------------------------------------- back to top */
.site-footer__top-btn {
  position: fixed;
  right: 2.4rem;
  bottom: 2.4rem;
  width: 4.8rem;
  height: 4.8rem;
  border: 0;
  border-radius: 50%;
  background: var(--ft-accent);
  color: #1a1208;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 180;
}
.site-footer__top-btn svg { width: 1.8rem; height: 1.2rem; }
.site-footer__top-btn.is-visible { opacity: 1; transform: translateY(0); }
.site-footer__top-btn:hover { background: #d8b46e; }

/* ------------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__newsletter { grid-column: 1 / -1; }
}

@media (max-width: 749px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  .site-footer__brand { padding-bottom: 3rem; }

  /* link columns become accordions */
  .site-footer__col {
    border-top: 1px solid var(--ft-line);
  }
  .site-footer__col-head {
    cursor: pointer;
    padding: 1.8rem 0;
    margin: 0;
  }
  .site-footer__col-head .footer__caret { display: block; }
  .site-footer__col-head[aria-expanded="true"] .footer__caret { transform: rotate(180deg); }
  .site-footer__links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }
  .site-footer__links li:last-child { margin-bottom: 1.6rem; }

  .site-footer__newsletter {
    border-top: 1px solid var(--ft-line);
    padding: 3rem 0;
  }

  .site-footer__bottom-inner { justify-content: center; text-align: center; }
  .site-footer__payments { order: 1; align-items: center; }
  .site-footer__pay-icons { justify-content: center; }
  .site-footer__legal { order: 2; }
  .site-footer__policies { justify-content: center; }
  .site-footer__top-btn { right: 1.6rem; bottom: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer * { transition: none !important; }
}
