/*
  Exact footer implementation from provided Figma HTML specs
  Desktop frame: 1440 x 562
  Mobile frame: 440 x 875.05
*/

html,
body {
  overflow-x: hidden;
}

.site-footer {
  margin-top: 0 !important;
  padding-top: 0;
  background: var(--colorgreen, #dcdcd0);
  overflow: hidden;
}

/* ============================
   DESKTOP (from provided spec)
   ============================ */
.site-footer .footer-layout {
  position: relative;
  width: 100%;
  max-width: none;
  height: 482px; /* black block bottom at y=50+432 */
  margin: 0;
  display: block !important;
}

.site-footer .footer-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 480px;
  height: 386px;
  background: #f9f4f2;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 136px 0 0 160px;
  z-index: 2;
}

.site-footer .footer-left h4 {
  margin: 0 0 15px;
  color: #000;
  font-family: 'Jost', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.site-footer .footer-left p,
.site-footer .footer-left a {
  margin: 0;
  color: #000;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.site-footer .footer-left p + p {
  margin-top: 0;
}

.site-footer .footer-left p[style] {
  margin-top: 0 !important;
}

.site-footer .footer-right {
  position: absolute;
  left: 406px;
  top: 50px;
  right: 0;
  width: auto;
  height: 432px;
  background: #000;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  padding: 0;
}

.site-footer .footer-right-top {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block !important;
}

/* Newsletter card: x=541,y=108,w=453 in 1440 frame => local x=135,y=58 */
.site-footer .footer-newsletter {
  position: absolute;
  left: 135px;
  top: 58px;
  width: 453px;
  padding: 28px 32px;
  border-radius: 8px;
  border: 2px solid #504f4f;
}

.site-footer .footer-newsletter h4 {
  margin: 0 0 24px;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.site-footer .footer-newsletter input {
  width: 100%;
  height: 48px;
  padding: 16px 24px;
  margin: 0 0 12px;
  border: 2px solid #504f4f;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  outline: none;
}

.site-footer .footer-newsletter input::placeholder {
  color: #fff;
  opacity: 1;
}

.site-footer .footer-newsletter .btn-pill {
  margin-top: 12px;
  margin-left: auto;
  min-width: 208px;
  height: 43px;
  border: 2px solid #f9f4f2;
  border-radius: 44px;
  background: transparent;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-transform: uppercase;
}

/* Right nav column: x=1053,y=104.5 => local x=647,y=54.5 */
.site-footer .footer-right-col {
  position: absolute;
  left: 647px;
  top: 54px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
}

.site-footer .footer-menu {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer .footer-menu a {
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
}

.site-footer .footer-menu.footer-menu-bold {
  margin-top: 24px !important;
  flex-direction: row;
  gap: 16px;
}

.site-footer .footer-menu.footer-menu-bold a {
  color: #f9f4f2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Social row: y=353 => local y=303 */
.site-footer .footer-social {
  margin-top: 28px;
  gap: 19px;
}

.site-footer .footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 2px solid #504f4f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer .footer-social svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Bottom bar block: x=160,y=506,w=1122,pb=24 */
.site-footer .footer-bottom {
  width: min(1122px, calc(100% - 320px));
  margin: 24px auto 0;
  padding: 0 0 24px;
  background: transparent !important;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .footer-bottom p,
.site-footer .footer-bottom a {
  margin: 0;
  color: #504f4f;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.site-footer .footer-legal {
  display: flex;
  gap: 20px;
}

/* ============================
   LAPTOP / SMALL DESKTOP
   Keep 1440 design proportions but fluid below 1440px
   ============================ */
@media (max-width: 1439px) and (min-width: 1024px) {
  .site-footer {
    --footer-left-panel-width: clamp(360px, 34vw, 480px);
    --footer-right-start: clamp(300px, calc(var(--footer-left-panel-width) - 64px), 406px);
  }

  .site-footer .footer-left {
    width: var(--footer-left-panel-width);
    padding-left: clamp(40px, 8vw, 160px);
  }

  .site-footer .footer-right {
    left: var(--footer-right-start);
    width: calc(100% - var(--footer-right-start));
    min-width: 0;
  }

  .site-footer .footer-newsletter {
    left: clamp(24px, 5vw, 135px);
    width: min(453px, calc(100% - 360px));
    min-width: 320px;
  }

  .site-footer .footer-right-col {
    left: auto;
    right: clamp(24px, 3vw, 48px);
  }

  .site-footer .footer-menu.footer-menu-bold {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .site-footer .footer-bottom {
    width: calc(100% - 80px);
  }
}

/* ============================
   TABLET / SMALL DESKTOP
   Keep footer inside viewport below 1440px and add top offset
   ============================ */
@media (max-width: 1023px) and (min-width: 992px) {
  .site-footer {
    --footer-left-panel-width: min(40vw, 480px);
    --footer-right-start: calc(var(--footer-left-panel-width) - 74px);
    margin-top: 120px !important;
  }

  .site-footer .footer-left {
    width: var(--footer-left-panel-width);
    padding-left: clamp(48px, 10vw, 160px);
  }

  .site-footer .footer-right {
    left: var(--footer-right-start);
    width: calc(100% - var(--footer-right-start));
    min-width: 0;
  }

  .site-footer .footer-newsletter {
    left: clamp(24px, 5vw, 135px);
    width: min(56%, 453px);
    min-width: 320px;
  }

  .site-footer .footer-right-col {
    left: auto;
    right: clamp(24px, 3vw, 48px);
    top: 120px;
  }

  .site-footer .footer-menu.footer-menu-bold {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .site-footer .footer-bottom {
    width: calc(100% - 80px);
    height: 84px;
    margin: 0 auto;
    padding: 0;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
}

/* ============================
   MOBILE (from provided spec)
   ============================ */
@media (max-width: 991px) {
  .site-footer {
    padding-top: 0;
  }

  .site-footer .footer-layout {
    position: relative;
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 771px; /* black block bottom in provided frame */
    margin: 0 auto;
    display: block !important;
  }

  .site-footer .footer-left {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: 184px;
    padding: 40px 0 0 27px;
    margin: 100px 0 0;
    border-top-right-radius: 7.93px;
    border-bottom-right-radius: 7.93px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    z-index: 2;
  }

  .site-footer .footer-left h4 {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
  }

  .site-footer .footer-left p,
  .site-footer .footer-left a {
    font-size: 16px;
    line-height: 28px;
  }

  .site-footer .footer-right {
    position: relative;
    left: 0;
    top: 0;
    margin-top: -61px; /* overlap without reserving extra layout space below */
    width: 100%;
    height: 648px;
    border-radius: 0;
    padding: 88px 26px 0;
  }

  .site-footer .footer-right-top {
    position: static;
    height: auto;
    display: block !important;
  }

  .site-footer .footer-newsletter {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 388.47px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 7.93px;
    border-width: 1.98px;
  }

  .site-footer .footer-newsletter h4 {
    margin-bottom: 23.78px;
    font-size: 24px;
    line-height: 28px;
  }

  .site-footer .footer-newsletter input {
    height: 48px;
    margin-bottom: 11.89px;
    padding: 15.86px 23.78px;
    border-radius: 7.93px;
    border-width: 1.98px;
    font-size: 16px;
    line-height: 16px;
  }

  .site-footer .footer-newsletter .btn-pill {
    width: 100% !important;
    min-width: 0;
    height: 42.61px;
    margin-top: 23.78px;
    margin-left: 0;
    border-radius: 43.6px;
    border-width: 1.98px;
    font-size: 15.86px;
    line-height: 16px;
  }

  .site-footer .footer-right-col {
    position: static;
    width: 100%;
    margin-top: 34px;
    align-items: center;
  }

  .site-footer .footer-menu {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    column-gap: 32px;
    row-gap: 24px;
  }

  .site-footer .footer-menu a {
    font-size: 16px;
    line-height: 16px;
  }

  .site-footer .footer-menu:not(.footer-menu-bold) a:nth-child(1) {
    grid-column: 1;
  }

  .site-footer .footer-menu:not(.footer-menu-bold) a:nth-child(2) {
    grid-column: 2;
  }

  .site-footer .footer-menu:not(.footer-menu-bold) a:nth-child(3) {
    grid-column: 1;
  }

  .site-footer .footer-menu:not(.footer-menu-bold) a:nth-child(4) {
    grid-column: 2;
  }

  .site-footer .footer-menu:not(.footer-menu-bold) a:nth-child(5) {
    grid-column: 3;
  }

  .site-footer .footer-menu.footer-menu-bold {
    margin-top: 24px !important;
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 56px;
    row-gap: 0;
  }

  .site-footer .footer-menu.footer-menu-bold a {
    font-size: 16px;
    font-weight: 700;
  }

  .site-footer .footer-social {
    margin-top: 32px;
    justify-content: center;
    gap: 32px;
  }

  .site-footer .footer-social a {
    width: 37.66px;
    height: 37.66px;
    border-radius: 7.93px;
    border-width: 1.98px;
  }

  .site-footer .footer-social svg {
    width: 19px;
    height: 19px;
  }

  .site-footer .footer-bottom {
    width: 388.47px;
    max-width: calc(100% - 40px);
    height: 84px;
    margin: 0 auto;
    padding: 0;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .site-footer .footer-bottom p,
  .site-footer .footer-bottom a {
    font-size: 14px;
    line-height: 20px;
  }

  .site-footer .footer-legal {
    justify-content: center;
    gap: 19.82px;
    flex-wrap: wrap;
  }
}

@media (max-width: 460px) {
  .site-footer .footer-layout {
    max-width: 100%;
  }

  .site-footer .footer-left {
    width: 100%;
  }

  .site-footer .footer-right {
    padding-left: 16px;
    padding-right: 16px;
    height: auto;
    min-height: 648px;
  }

  .site-footer .footer-newsletter {
    max-width: 100%;
  }

  .site-footer .footer-bottom {
    width: calc(100% - 40px);
  }
}
