/* =============================================
   SITE FOOTER
   Measurements from Figma frame "Footer" (376:186)
   Frame: 1440 × 423 px — background #e9e9e9
   Section headings: Helvetica Neue 300/400, 20px, #5d5d5d
   Body text: Helvetica Neue 400, 13px, #202020, line-height 27px
   ============================================= */

/* ── Outer wrapper ──────────────────────────── */
.site-footer {
  background: #e9e9e9;
}

/* ── Main content grid ──────────────────────── */
.footer-inner {
  display: grid;
  /* logo | countries | contact | help | newsletter */
  grid-template-columns: 130px 1fr 210px 160px 300px;
  gap: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 55px 38px 50px;
  box-sizing: border-box;
  align-items: start;
}

/* ── Logo ───────────────────────────────────── */
.footer-logo a {
  display: block;
}

.footer-logo img {
  width: 100%;
  max-width: 131px;
  height: auto;
}

/* ── Column shared ──────────────────────────── */
.footer-col__heading {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 32px;
  color: #5d5d5d;
  letter-spacing: 0.6px;
  margin: 0 0 16px;
}

.footer-col__chevron {
  display: none; /* only shown on mobile via the ≤600px breakpoint */
}

/* ── Delivered Countries ────────────────────── */
.footer-countries {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3;
  column-gap: 0;
}

.footer-countries li {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 27px;
  color: #202020;
  letter-spacing: 0.39px;
  break-inside: avoid;
}

.footer-countries a {
  color: #202020;
  text-decoration: none;
}

.footer-countries a:hover {
  text-decoration: underline;
}

/* ── Contact ────────────────────────────────── */
.footer-contact {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 27px;
  color: #202020;
  letter-spacing: 0.39px;
  font-style: normal;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: #202020;
  text-decoration: underline;
}

.footer-contact a:hover {
  color: #000;
}

/* ── Social icons (above contact) ──────────── */
.footer-social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  color: #202020;
  transition: opacity 0.2s;
}

.footer-social__link:hover {
  opacity: 0.6;
}

/* ── Help links ─────────────────────────────── */
.footer-help-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-help-nav li {
  line-height: 27px;
}

.footer-help-nav a {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #202020;
  letter-spacing: 0.39px;
  text-decoration: none;
}

.footer-help-nav a:hover {
  text-decoration: underline;
}

/* ── Newsletter ──────────────────────────────── */
.footer-newsletter__heading {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 32px;
  color: #202020;
  letter-spacing: 0.39px;
  margin: 0 0 4px;
}

.footer-newsletter__desc {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 10px;
  font-style: italic;
  line-height: 16px;
  color: #202020;
  letter-spacing: 0.3px;
  margin: 0 0 14px;
}

.footer-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-newsletter__input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-bottom: 1px solid #202020;
  border-radius: 0;
  outline: none;
  padding: 4px 0;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #202020;
  letter-spacing: 0.39px;
  -webkit-appearance: none;
  appearance: none;
}

.footer-newsletter__input::placeholder {
  color: #9b9b9b;
}

.footer-newsletter__input:focus {
  border-bottom-color: #000;
  outline: none;
}

.footer-newsletter__btn {
  margin-top: 16px;
  width: 100%;
  height: 31px;
  background: transparent;
  color: #202020;
  border: 1px solid #202020;
  border-radius: 41px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.footer-newsletter__btn:hover {
  background: #202020;
  color: #fff;
}

.footer-newsletter__success {
  display: none;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-style: italic;
  color: #202020;
  letter-spacing: 0.3px;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-newsletter__success.is-visible {
  display: block;
}

/* ── Bottom bar ─────────────────────────────── */
.footer-bottom {
  border-top: 1px solid #c8c8c8;
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 38px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom__copy {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 32px;
  color: #202020;
  letter-spacing: 0.39px;
  margin: 0;
}

.footer-bottom__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-bottom__payment {
  height: 16px;
  width: auto;
  display: block;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 100px 1fr 190px 150px 260px;
    gap: 0 24px;
    padding: 48px 32px 40px;
  }
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 36px 32px;
    padding: 40px 24px;
  }

  .footer-logo {
    grid-column: 1 / -1;
  }

  .footer-col--newsletter {
    grid-column: 1 / -1;
  }

  /* en-gb: hide the placeholder cell on tablet/mobile so the auto-placed
     2-col grid distributes remaining columns without an empty slot.
     On desktop (≥900px) the placeholder stays visible (empty) to preserve
     the 5-track grid spacing. */
  .footer-col--placeholder {
    display: none;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 24px 0;
  }

  /* On mobile: each col (except logo + newsletter) gets a top border + toggle */
  .footer-logo {
    margin-bottom: 28px;
    grid-column: 1;
  }

  .footer-col--newsletter {
    grid-column: 1;
    padding-bottom: 32px;
  }

  /* Accordion sections on mobile */
  .footer-col--countries,
  .footer-col--contact,
  .footer-col--help {
    border-top: 1px solid #c8c8c8;
  }

  .footer-col__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 0;
    padding: 18px 0;
    user-select: none;
  }

  .footer-col__chevron {
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  .footer-col__heading[aria-expanded="true"] .footer-col__chevron {
    transform: rotate(180deg);
  }

  .footer-col__body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  .footer-col__body.is-open {
    max-height: 2000px;
    opacity: 1;
    padding-bottom: 24px;
  }

  .footer-countries {
    columns: 3;
    column-gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
  }
}
