﻿/* =============================================================================
   FOOTER - the dark area at the bottom of every page
   (logo, menu, phone numbers, addresses, Careers button, social links, yellow bar)
   The HTML for it is copied at the bottom of every page (<footer class="site-footer">).
   ============================================================================= */

.site-footer {
  position: relative;
  isolation: isolate;               /* keeps the photo below behind the text but on top of the black */
  padding: 3.09cqw 6.98cqw 3.16cqw;
  background-color: var(--black);
  color: var(--off-white);
  overflow: hidden;
}

/* background photo */
.site-footer__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer__logo {
  display: block;
  width: 21.05cqw;
  height: 7.03cqw;
}
.site-footer__logo img { width: 100%; height: 100%; object-fit: cover; }

/* thin yellow line under the logo */
.site-footer__line {
  margin: 0;
  border: 0;
  border-top: 0.8px solid var(--yellow);
}

/* the four columns: Menu | Phone | Address | Join our team */
.site-footer__columns {
  display: grid;
  grid-template-columns: 21.21cqw 21.26cqw 27.14cqw 16.59cqw;
  margin-top: 60px;   /* fixed gaps (px) stay the same size on every screen, like the original */
  margin-left: -0.16cqw;
}

.site-footer__column { max-width: 19.74cqw; }
.site-footer__column:last-child { max-width: none; }

.site-footer h2 {
  font-size: 1.738cqw;
  line-height: 1.4;
  color: var(--white);
  text-transform: uppercase;
}

.site-footer p {
  font-size: 1.112cqw;
  line-height: 2;
}
.site-footer h2 + * { margin-top: 16px; }

.site-footer a:hover { text-decoration: underline; }

.site-footer .button {
  width: 160px;
  height: 45px;
  margin-top: 1.58cqw;
}

.site-footer__social-title { margin-top: 0.79cqw; }

/* Facebook / LinkedIn / YouTube icons */
.social-links {
  display: flex;
  gap: 1.27cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .social-links { margin-top: 0.84cqw; }
.social-links img { width: 1.99cqw; height: 1.99cqw; object-fit: contain; }
.social-links a:hover { opacity: 0.8; }

/* the yellow bar along the bottom */
.site-footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  margin-top: 30px;
  padding: 0 1.5cqw 0 1.58cqw;
  border-radius: 0.8045cqw;
  background-color: var(--yellow);
  font-family: "Wix Madefor Display", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
}
.site-footer .site-footer__bar p { font-size: inherit; line-height: inherit; }


/* ---------- Tablet: two columns ------------------------------------------ */
@media (max-width: 1000px) {
  .site-footer { padding: 5.31cqw 5.2cqw 5.08cqw; }

  .site-footer__logo { width: 29.49cqw; height: 9.83cqw; }
  .site-footer__line { margin-top: 0.15cqw; }

  .site-footer__columns {
    grid-template-columns: 46.33cqw 43.16cqw;
    row-gap: 3.16cqw;
    margin-top: 2.45cqw;
    margin-left: 0;
  }
  .site-footer__column { max-width: 43.16cqw; }

  .site-footer h2 { font-size: 1.864cqw; }
  .site-footer p { font-size: 1.731cqw; }
  .site-footer h2 + * { margin-top: 1.81cqw; }

  .site-footer .button {
    width: 16.95cqw;
    height: 4.86cqw;
    margin-top: 2.71cqw;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-size: 1.812cqw;
  }
  .site-footer .button::after { width: 20px; height: 20px; }
  .site-footer__social-title { margin-top: 4.97cqw; }
  .site-footer .social-links { margin-top: 1.92cqw; gap: 1.13cqw; }
  .social-links img { width: 2.03cqw; height: 2.03cqw; }

  .site-footer__bar {
    height: 5.65cqw;
    margin-top: 2.27cqw;
    padding: 0 1.58cqw;
    font-size: 13px;
  }
}


/* ---------- Phone: one column -------------------------------------------- */
@media (max-width: 750px) {
  .site-footer { padding: 7.73cqw 7.73cqw 7.47cqw; }

  .site-footer__logo { width: 63.2cqw; height: 21.07cqw; }
  .site-footer__line { margin-top: 5.18cqw; }

  .site-footer__columns {
    grid-template-columns: 1fr;
    row-gap: 7.4cqw;
    margin-top: 8.38cqw;
  }
  .site-footer__column { max-width: none; }

  .site-footer h2 { font-size: 4.294cqw; }
  .site-footer p { font-size: 3.737cqw; }
  .site-footer h2 + * { margin-top: 4.1cqw; }

  .site-footer .button { width: 45.33cqw; height: 10.67cqw; margin-top: 4cqw; font-size: 13px; }
  .site-footer__social-title { margin-top: 4cqw; }
  .site-footer .social-links { margin-top: 4cqw; gap: 1.33cqw; }
  .social-links img { width: 6.67cqw; height: 6.67cqw; }

  /* the two lines of the bar sit on top of each other, centred */
  .site-footer__bar {
    flex-direction: column;
    justify-content: center;
    height: 16.27cqw;
    margin-top: 8cqw;
    padding: 0;
    border-radius: 2.68cqw;
    font-size: 13px;
    text-align: center;
  }
  .site-footer__bar p:first-child { font-weight: 700; }
}
