/* Footer -------------------------------------------------------------------
   MEASURED off the reference: maroon ground, bone text, a giant logotype across
   the top, a newsletter block on the left and three link columns on the right.
   The previous light-grey footer was the single biggest colour mismatch on the
   page.
   -------------------------------------------------------------------------- */
.ftr {
  background: var(--brand);
  color: #f0efea;
  margin-top: var(--section-gap);
  overflow: hidden;
}
.ftr a { color: #f0efea; }

/* Giant wordmark. The reference logotype is 960 x 290 - about half the
   container width - so it is sized off the container, not the viewport. */
.ftr__mark {
  padding-top: 64px;
  container-type: inline-size;
}
.ftr__word {
  --hero-ratio: 4.41;             /* the same measured ratio as the hero */
  display: flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: calc(50cqw / var(--hero-ratio));
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: normal;
  color: #f0efea;
  white-space: nowrap;
}
.ftr__bloom {
  display: inline-block;
  width: 0.357em;
  height: 0.769em;
  margin-inline: 0.012em;
  flex: none;
}
.ftr__bloom img { width: 100%; height: 100%; object-fit: contain; }

.ftr__top {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 1.6fr;
  gap: 60px;
  padding-block: 40px 64px;
}

/* Newsletter --------------------------------------------------------------- */
/* MEASURED: Tenor Sans 20px weight 500; the input is transparent with a bone
   rule and 47px tall; submit is a 47px square. */
.ftr__news-head {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #f0efea;
  margin-bottom: 14px;
}
.ftr__blurb { margin: 0 0 22px; color: #ded2ce; max-width: 40ch; }

.ftr__news { display: flex; align-items: stretch; max-width: 420px; }
.ftr__news input {
  flex: 1;
  height: 47px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(240, 239, 234, 0.45);
  color: #f0efea;
  font: inherit;
  padding: 0 4px;
}
.ftr__news input::placeholder { color: rgba(240, 239, 234, 0.65); }
.ftr__news input:focus { outline: none; border-bottom-color: #f0efea; }
.ftr__news button {
  width: 47px; height: 47px;
  flex: none;
  display: grid;
  place-items: center;
  color: #f0efea;
  border-bottom: 1px solid rgba(240, 239, 234, 0.45);
  transition: color var(--dur) var(--ease);
}
.ftr__news button:hover { color: #fff; }
.ftr__news-note { font-size: 12px; color: #ded2ce; margin: 10px 0 0; min-height: 1em; }

.ftr__contact { display: grid; gap: 8px; margin-top: 26px; }
.ftr__contact a:hover { text-decoration: underline; }

.ftr__social { display: flex; gap: 18px; margin-top: 22px; }
.ftr__social a {
  font-size: 14px;
  letter-spacing: normal;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.ftr__social a:hover { border-color: #f0efea; }

/* Link columns ------------------------------------------------------------- */
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* MEASURED: Tenor Sans 18px weight 600 on desktop, 14px weight 600 on a phone. */
.ftr__head {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #f0efea;
  margin-bottom: 18px;
}
/* The heading is a real button so the mobile accordion is operable by keyboard
   and announced correctly. On desktop it is inert-looking plain text. */
.ftr__toggle {
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
  cursor: default;
}
.ftr__col ul { display: grid; gap: 11px; }
/* MEASURED: Nunito 14px, weight 500, uppercase, bone. */
.ftr__col a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #ded2ce;
}
.ftr__col a:hover { color: #fff; }

.ftr__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid rgba(240, 239, 234, 0.2);
  color: #ded2ce;
  font-size: 14px;
}
.ftr__bar p { margin: 0; }

@media (max-width: 991px) {
  .ftr__top { grid-template-columns: 1fr; gap: 46px; }
  .ftr__word { font-size: calc(90cqw / var(--hero-ratio)); }
}
@media (max-width: 575px) {
  .ftr__mark { padding-top: 44px; }
  .ftr__word { font-size: calc(100cqw / var(--hero-ratio)); }
  .ftr__cols { grid-template-columns: 1fr; gap: 28px; }
  .ftr__bar { justify-content: flex-start; }
}

/* Floating WhatsApp ------------------------------------------------------- */
.wa-float {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 70;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform var(--dur) var(--ease), bottom var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
@media (max-width: 575px) {
  .wa-float { left: 16px; bottom: 16px; width: 48px; height: 48px; }
}

/* Footer columns as accordions ----------------------------------------------
   MEASURED: on a phone the reference collapses INFORMATION / MY ACCOUNT /
   QUICK LINKS behind "+" toggles - the lists measure 0 tall - and drops the
   headings to 14px. Expanded columns made this footer several screens long. */
@media (max-width: 991px) {
  .ftr__cols { grid-template-columns: 1fr; gap: 0; }
  .ftr__col { border-bottom: 1px solid rgba(240, 239, 234, 0.2); }
  .ftr__head { font-size: 14px; margin-bottom: 0; }
  .ftr__toggle {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 30px 16px 0;
    min-height: 44px;
    cursor: pointer;
  }
  .ftr__toggle::after {
    content: "+";
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    line-height: 1;
  }
  .ftr__toggle[aria-expanded="true"]::after { content: "−"; }

  .ftr__col ul { display: none; padding-bottom: 16px; }
  .ftr__col.is-open ul { display: grid; }

  /* MEASURED: the copyright line is centred on a phone. */
  .ftr__bar { justify-content: center; text-align: center; }
  .ftr__pay { width: 100%; }
}

/* Back to top --------------------------------------------------------------
   MEASURED off the reference: a 36px circle, ground #f6f6f4, maroon arrow,
   fixed in the bottom-RIGHT corner. It appears once the page has scrolled
   past a screen and fades out again at the top. */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 70;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: #f6f6f4;
  color: var(--brand);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              bottom var(--dur) var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { color: #f0efea; background: var(--brand); }
@media (max-width: 575px) {
  .to-top { right: 16px; bottom: 16px; }
}
