.footer {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 100px auto 0;
  height: 889px;
  background: var(--color-foundation-white);
  overflow: hidden;
  box-sizing: border-box;
}



.footer__bg-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 889px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.footer__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  height: 889px;
  box-sizing: border-box;
  z-index: 2;
}

.footer__logo-link {
  position: absolute;
  left: 40px;
  top: 80px;
  width: 545px;
  max-width: 45%;
  height: auto;
  display: block;
}

.footer__logo {
  width: 100%;
  height: auto;
  display: block;
}

.footer__contact-card-outer {
  position: absolute;
  right: 20px;
  top: 80px;
  width: 680px;
  max-width: 48%;
  height: 637px;
  border-radius: var(--radius-200) var(--radius-20) var(--radius-200) var(--radius-20);
  box-shadow: inset 0 0 0 1px var(--color-foundation-light-beige);
}

.footer__contact-card-inner {
  position: absolute;
  left: 20px;
  top: 20px;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(var(--color-black-pure-a20), var(--color-black-pure-a20)), var(--color-primary-blue);
  border-radius: calc(var(--radius-200) - 20px) 0 calc(var(--radius-200) - 20px) 0;
}

.footer__contact-btn {
  position: absolute;
  left: 178px;
  top: 360px;
  width: 196px;
  height: 51px;
  background-color: var(--color-accent-medium-blue);
  border-radius: var(--radius-25) var(--radius-6) var(--radius-25) var(--radius-6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-foundation-white);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.footer__contact-btn:hover,
.footer__contact-btn:focus-visible {
  background-color: var(--color-accent-medium-blue-hover, #5d8199);
  color: var(--color-foundation-white);
}
.footer__contact-btn:active {
  transform: translateY(1px);
}

.footer__social-links {
  position: absolute;
  left: 178px;
  top: 461px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
}
.footer__social-link {
  color: var(--color-foundation-white);
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer__social-link:hover,
.footer__social-link:focus-visible {
  opacity: 0.8;
  transform: translateY(-2px);
}

.footer__contact-info {
  position: absolute;
  left: 178px;
  top: 201px;
  width: auto;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 37px;
  white-space: nowrap;
}
.footer__contact-icon {
  width: 20px;
  color: var(--color-foundation-light-beige);
  font-size: 18px;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}
.footer__contact-link {
  color: var(--color-foundation-white);
  text-decoration: none;
  white-space: nowrap;
  font-size: 16px;
  line-height: 25px;
  transition: opacity 0.2s ease;
}
.footer__contact-link:hover,
.footer__contact-link:focus-visible {
  opacity: 0.85;
  text-decoration: underline;
}

.footer__links-grid {
  position: absolute;
  left: 96px;
  top: 444px;
  width: 530px;
  max-width: 48%;
}

.footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(3, 40px);
  grid-auto-flow: column;
  column-gap: clamp(30px, 4vw, 60px);
  row-gap: 16px;
}

.footer__menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.footer__menu li a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-foundation-white, #ffffff);
  text-decoration: none;
  font-family: var(--font-body, "Zalando Sans", sans-serif);
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer__menu li a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 40px;
  background-color: var(--color-primary-beige, #c8b29e);
  border-radius: var(--radius-6, 6px) var(--radius-2, 2px) var(--radius-6, 6px) var(--radius-2, 2px);
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer__menu li a:hover,
.footer__menu li a:focus-visible {
  opacity: 0.85;
  transform: translateX(3px);
}

.footer__menu li a:hover::before,
.footer__menu li a:focus-visible::before {
  background-color: var(--color-foundation-white, #ffffff);
}

.footer__30years{
  position: absolute;
  left: 90px;
  top: 642px;
  width: 237px;
  height: 90px;
  object-fit: cover;
}

.footer__canada-logo {
  position: absolute;
  left: 430px;
  top: 657px;
  width: 215px;
  height: 60px;
  object-fit: cover;
}

.footer__copyright {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 50px;
  width: auto;
  max-width: calc(100% - 40px);
  color: var(--color-foundation-light-beige);
  text-align: center;
  white-space: nowrap;
}

.footer__credit-link {
  color: var(--color-foundation-white, #ffffff);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__credit-link:hover,
.footer__credit-link:focus-visible {
  color: #cddd00;
  text-decoration: none;
}

.footer__credit-link strong {
  font-weight: 700;
}

.footer__privacy-link {
  color: var(--color-foundation-white, #ffffff);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.footer__privacy-link:hover,
.footer__privacy-link:focus-visible {
  opacity: 0.8;
  color: var(--color-foundation-white, #ffffff);
  text-decoration: underline;
}

.footer__heading-wrap {
  position: absolute;
  left: 178px;
  top: 100px;
  width: 284px;
  height: 76px;
  box-shadow: inset 0 -1px 0 var(--color-primary-beige);
}
.footer__heading {
  position: absolute;
  left: 0px;
  top: 16px;
  width: 284px;
  height: 44px;
  color: var(--color-foundation-white);
  text-transform: capitalize;
  text-align: left;
}
.footer__contact-mobile-bottom,
.footer__wave-cap {
  display: none;
}

/* ==========================================================================
   Mobile Footer (< 1200px)
   ========================================================================== */

@media (max-width: 1199px) {
  .footer {
    height: auto;
    margin-top: 60px;
    padding: 50px 0 0;
    overflow: visible;
    background: var(--color-foundation-white);
  }
  .footer__bg-wrap {
    display: none !important;
  }
  .footer__inner {
    height: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer__logo-link {
    order: 1;
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto 36px;
    width: 100%;
    max-width: 260px;
    text-align: center;
  }
  .footer__logo {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  /* Navigation Links Grid */
  .footer__links-grid {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 48px;
  }
  .footer__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    grid-template-rows: none;
  }
  .footer__menu li {
    width: 100%;
    justify-content: center;
    margin: 0;
  }
  .footer__menu li a {
    color: var(--color-primary-blue, #0a2c4c);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }
  .footer__menu li a::before {
    display: none !important;
  }

  /* Get in Touch Card — full-bleed on mobile */
  .footer__contact-card-outer {
    order: 4;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: calc(100% + 40px);
    max-width: none;
    height: auto;
    margin: 0 -20px;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .footer__contact-card-inner {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    border-radius: 0;
    padding: 40px 24px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: var(--color-primary-blue);
  }

  .footer__heading-wrap {
    order: 1;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 24px;
    padding-bottom: 12px;
    box-shadow: inset 0 -1px 0 var(--color-primary-beige);
    text-align: center;
  }
  .footer__heading {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    text-align: center;
    font-size: clamp(24px, 5.5vw, 30px);
    line-height: 1.25;
  }

  .footer__contact-info {
    order: 2;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    align-items: center;
    margin: 0 auto 24px;
    gap: 12px;
  }
  .footer__contact-row {
    justify-content: center;
    font-size: 15px;
    white-space: normal;
    text-align: center;
  }
  .footer__contact-btn {
    order: 3;
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto 24px;
    width: 100%;
    max-width: 220px;
    height: 48px;
  }
  .footer__social-links {
    order: 4;
    position: relative;
    left: auto;
    top: auto;
    justify-content: center;
    margin: 0 auto;
    height: auto;
    gap: 20px;
  }

  /* Canada Logo and Copyright inside Contact Card */
  .footer__contact-mobile-bottom {
    order: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    width: 100%;
  }
  .footer__contact-mobile-30years{
    width: 150px;
    height: auto;
    display: block; object-fit: contain;
  }
  .footer__contact-mobile-canada {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
  }
  .footer__contact-mobile-copyright {
    color: var(--color-foundation-light-beige);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    opacity: 0.85;
    margin: 0;
  }
  .footer__contact-mobile-copyright a {
    color: var(--color-foundation-white);
  }

  /* Wave Cap — scaled-down echo of the desktop swoosh above "Get in Touch" */
  .footer__wave-cap {
    display: block;
    order: 3;
    position: relative;
    width: calc(100% + 40px);
    margin: 0 -20px -1px;
    /* Taller than the old 84-unit box so the fanned hairlines have room. */
    height: clamp(68px, 19vw, 108px);
    line-height: 0;
    pointer-events: none;
  }
  .footer__wave-cap svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* Hide Root Canada Logo and Copyright */
  .footer__canada-logo,
  .footer__30years,
  .footer__inner > .footer__copyright {
    display: none !important;
  }
}

