/* Site footer (templates/_layouts/footer.twig). Loaded on every page except /referral. */

/* iOS Safari paints the area under its toolbars with the page background colour,
   which showed as a white strip below the footer. While the footer is on screen
   (footer.twig sets .site-footer-in-view) that colour is navy; the body is still
   painted white by its background image. */
html.site-footer-in-view,
html.site-footer-in-view body {
  background-color: #0F1937;
}

body {
  background-image: linear-gradient(#ffffff, #ffffff);
}

#site-footer {
  margin-top: 100px; /* same gap above the footer as the old #footer */
  background: #0F1937;
  color: #ffffff;
  font-family: "Roboto Slab", serif;
}

#site-footer * {
  box-sizing: border-box;
}

/* Reset page-specific element styles (e.g. .page-checkout h2 adds a border) */
#site-footer p,
#site-footer h2,
#site-footer ul,
#site-footer li {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  float: none;
  text-align: left;
  letter-spacing: normal;
  color: #ffffff;
}

#site-footer p {
  font-size: 13px;
  line-height: 20px;
  font-weight: 300;
}

#site-footer a {
  color: #ffffff;
}

#site-footer a:hover {
  text-decoration: underline;
}

#site-footer .footer-main {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding: 64px 80px;
}

#site-footer .footer-brand {
  width: 280px;
  flex-shrink: 0;
}

#site-footer .footer-logo {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

#site-footer .footer-columns {
  display: flex;
  gap: 64px;
}

#site-footer .footer-column {
  width: 180px;
}

#site-footer .footer-column-connect {
  width: 220px;
}

#site-footer .footer-heading {
  padding-bottom: 12px;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

#site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

#site-footer ul a {
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 300;
}

#site-footer .footer-email {
  font-weight: 700;
  text-decoration: underline;
}

#site-footer .footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

#site-footer .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #E8A756;
  transition: opacity 0.3s ease;
}

#site-footer .footer-socials a:hover {
  opacity: 0.8;
}

#site-footer .footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 80px;
}

/* Inset divider above the bottom bar */
#site-footer .footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 87px;
  right: 87px;
  height: 1px;
  background: #ffffff;
}

#site-footer .footer-bottom p {
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 1100px) {
  #site-footer .footer-main {
    flex-direction: column;
    gap: 40px;
    padding: 48px 24px;
  }

  #site-footer .footer-columns {
    flex-wrap: wrap;
    gap: 40px;
  }

  #site-footer .footer-bottom {
    padding: 0 24px;
  }

  #site-footer .footer-bottom::before {
    left: 24px;
    right: 24px;
  }
}

/* Large tablet: logo with description and all columns in one row */
@media (min-width: 1024px) and (max-width: 1100px) {
  #site-footer .footer-main {
    flex-direction: row;
  }

  #site-footer .footer-brand {
    width: 240px;
  }

  #site-footer .footer-columns {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  #site-footer .footer-brand {
    width: auto;
  }

  #site-footer .footer-main {
    padding: 40px 16px;
  }

  #site-footer .footer-bottom {
    padding: 16px;
  }

  #site-footer .footer-bottom::before {
    left: 16px;
    right: 16px;
  }
}
