/* Homepage Brand Signature Footer
   Scoped to the homepage only. */

.home-page .footer-address span,
.home-page .footer-mail,
.home-page .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.home-page .footer-address span::before,
.home-page .footer-mail::before,
.home-page .footer-social-link::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.home-page .footer-address span::before {
  width: 15px;
  height: 20px;
  background-image: url("../icons/contact/icon-location.svg");
}

.home-page .footer-mail::before {
  background-image: url("../icons/contact/icon-email.svg");
}

.home-page .footer-social-link::before {
  width: 17px;
  height: 17px;
  border-radius: 0;
  box-shadow: none;
  background: url("../icons/contact/icon-instagram.svg") center / contain no-repeat;
}

.home-page .footer-mail,
.home-page .footer-social-link {
  margin: 0;
}

@media (min-width: 1024px) {
  .home-page .footer {
    width: min(calc(100% - clamp(84px, 11vw, 190px)), 1160px);
    max-width: 1160px;
    margin: clamp(46px, 6vw, 78px) auto 30px;
    padding: 0;
    border: 1px solid rgba(222, 209, 190, .82);
    border-radius: 34px;
    background:
      radial-gradient(circle at 16% -16%, rgba(207, 232, 221, .48), transparent 35%),
      radial-gradient(circle at 102% 112%, rgba(217, 201, 255, .24), transparent 34%),
      linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(255, 249, 239, .84));
    box-shadow: 0 26px 74px rgba(22, 20, 18, .07);
    overflow: hidden;
  }

  .home-page .footer::before {
    inset: 0 0 auto;
    width: auto;
    height: 4px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg,
      var(--blue) 0 16%,
      var(--coral) 16% 27%,
      var(--sage) 27% 38%,
      rgba(222, 209, 190, .74) 38% 100%);
    opacity: .86;
    transform: none;
  }

  .home-page .footer::after {
    right: 42px;
    bottom: 30px;
    width: 78px;
    height: 78px;
    border: 1px solid rgba(49, 87, 213, .08);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(49, 87, 213, .05), rgba(255, 255, 255, 0));
    transform: rotate(-8deg);
    opacity: .62;
  }

  .home-page .footer-shell {
    display: grid;
    grid-template-columns: minmax(330px, .9fr) minmax(160px, .42fr) minmax(230px, .58fr);
    grid-template-areas:
      "brand nav guides"
      "brand contact contact";
    column-gap: clamp(30px, 4vw, 54px);
    row-gap: 28px;
    padding: 46px clamp(40px, 4.6vw, 58px) 30px;
    align-items: start;
  }

  .home-page .footer-brand {
    grid-area: brand;
    max-width: 380px;
    min-height: 100%;
    gap: 20px;
    padding-right: clamp(30px, 3.4vw, 46px);
    border-right: 1px solid rgba(22, 20, 18, .1);
  }

  .home-page .footer-logo-link {
    width: fit-content;
  }

  .home-page .footer-logo {
    display: block;
    height: 50px;
    width: auto;
  }

  .home-page .footer-lead {
    max-width: 330px;
    margin: 0;
    color: #342f2a;
    font-size: clamp(16px, 1.05vw, 18px);
    font-weight: 650;
    line-height: 1.68;
  }

  .home-page .footer-shell > .footer-column:nth-child(2) {
    grid-area: nav;
  }

  .home-page .footer-shell > .footer-column:nth-child(3) {
    grid-area: guides;
  }

  .home-page .footer-title {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .19em;
    line-height: 1;
  }

  .home-page .footer-nav {
    gap: 7px;
  }

  .home-page .footer-nav a {
    width: fit-content;
    min-height: 0;
    padding: 4px 0;
    color: #2d2924;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.28;
  }

  .home-page .footer-nav a:hover,
  .home-page .footer-mail:hover,
  .home-page .footer-social-link:hover {
    color: var(--blue);
  }

  .home-page .footer-contact {
    grid-area: contact;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    min-width: 0;
    padding: 23px 0 0;
    border: 0;
    border-top: 1px solid rgba(22, 20, 18, .1);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-page .footer-contact .footer-title {
    display: none;
  }

  .home-page .footer-address {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    margin: 0;
    min-width: 0;
  }

  .home-page .footer-address span,
  .home-page .footer-mail,
  .home-page .footer-social-link {
    color: #342f2a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  .home-page .footer-social-link {
    width: fit-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-page .footer-btn {
    min-height: 42px;
    padding-inline: 18px;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgba(49, 87, 213, .16);
  }

  .home-page .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 0;
    padding: 17px clamp(40px, 4.6vw, 58px) 22px;
    border-top: 1px solid rgba(22, 20, 18, .1);
    background: rgba(255, 255, 255, .28);
  }

  .home-page .footer-bottom p {
    margin: 0;
    color: #514a42;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .home-page .footer {
    width: min(calc(100% - 48px), 1100px);
  }

  .home-page .footer-shell {
    grid-template-columns: minmax(280px, .88fr) minmax(132px, .38fr) minmax(190px, .55fr);
    column-gap: 28px;
    padding: 42px 34px 28px;
  }

  .home-page .footer-brand {
    padding-right: 28px;
  }

  .home-page .footer-contact {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-page .footer-bottom {
    padding-inline: 34px;
  }
}

@media (max-width: 700px) {
  .home-page .footer {
    margin: 20px 14px 28px;
    padding: 0;
    border-radius: 32px;
    border-color: rgba(222, 209, 190, .86);
    background:
      radial-gradient(circle at 10% -6%, rgba(207, 232, 221, .42), transparent 34%),
      radial-gradient(circle at 112% 108%, rgba(217, 201, 255, .28), transparent 34%),
      linear-gradient(90deg, rgba(22, 20, 18, .035) 1px, transparent 1px),
      linear-gradient(180deg, rgba(22, 20, 18, .028) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 249, 239, .9));
    background-size: auto, auto, 38px 38px, 38px 38px, auto;
    box-shadow: 0 22px 58px rgba(22, 20, 18, .09);
  }

  .home-page .footer::before {
    inset: 0 0 auto;
    width: auto;
    height: 4px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg,
      var(--blue) 0 18%,
      var(--coral) 18% 32%,
      var(--sage) 32% 46%,
      rgba(222, 209, 190, .68) 46% 100%);
    opacity: .9;
    transform: none;
  }

  .home-page .footer::after {
    right: -28px;
    bottom: 130px;
    width: 130px;
    height: 130px;
    border: 0;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(49, 87, 213, .08), transparent 68%);
    opacity: .9;
    transform: none;
  }

  .home-page .footer-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 30px 18px 18px;
    text-align: left;
  }

  .home-page .footer-brand {
    order: 1;
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: none;
    padding: 0 0 17px;
    border-bottom: 1px solid rgba(22, 20, 18, .09);
    text-align: center;
  }

  .home-page .footer-logo-link {
    display: grid;
    justify-items: center;
    gap: 7px;
    width: fit-content;
    margin-inline: auto;
    text-align: center;
  }

  .home-page .footer-logo-link::after {
    content: "tetoura";
    color: var(--ink);
    font-size: 17px;
    font-weight: 950;
    letter-spacing: .22em;
    line-height: 1;
    text-transform: uppercase;
  }

  .home-page .footer-logo {
    height: 38px;
  }

  .home-page .footer-lead {
    max-width: 32rem;
    margin: 0 auto;
    color: #3b352f;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.55;
    text-align: center;
  }

  .home-page .footer-contact {
    order: 2;
    display: grid;
    justify-items: stretch;
    width: 100%;
    justify-self: stretch;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(49, 87, 213, .16);
    border-radius: 24px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 16px 42px rgba(22, 20, 18, .06);
    text-align: left;
  }

  .home-page .footer-contact .footer-title {
    margin-bottom: 0;
    text-align: left;
    justify-self: start;
  }

  .home-page .footer-address {
    display: grid;
    justify-items: stretch;
    width: 100%;
    gap: 10px;
    margin: 0;
    font-style: normal;
  }

  .home-page .footer-address span,
  .home-page .footer-mail,
  .home-page .footer-social-link {
    display: inline-flex;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    color: #2d2924;
    font-size: 13.5px;
    font-weight: 820;
    line-height: 1.25;
    text-align: left;
  }

  .home-page .footer-address span::before,
  .home-page .footer-mail::before,
  .home-page .footer-social-link::before {
    width: 16px;
    height: 16px;
  }

  .home-page .footer-address span::before {
    width: 14px;
    height: 18px;
  }

  .home-page .footer-social-link {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .home-page .footer-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border-radius: 999px;
    font-size: 15px;
    box-shadow: 0 16px 34px rgba(49, 87, 213, .18);
  }

  .home-page .footer-shell > .footer-column:nth-child(2) {
    order: 3;
  }

  .home-page .footer-shell > .footer-column:nth-child(3) {
    order: 4;
  }

  .home-page .footer-column {
    text-align: left;
  }

  .home-page .footer-title {
    margin: 0 0 10px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .2em;
    line-height: 1;
    text-align: left;
  }

  .home-page .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-page .footer-nav a {
    display: flex;
    align-items: center;
    min-height: 42px;
    width: auto;
    padding: 9px 11px;
    border: 1px solid rgba(222, 209, 190, .82);
    border-radius: 16px;
    background: rgba(255, 255, 255, .64);
    color: #332e29;
    font-size: 12.2px;
    font-weight: 820;
    line-height: 1.18;
    text-align: left;
  }

  .home-page .footer-shell > .footer-column:nth-child(3) .footer-nav a {
    min-height: 48px;
  }

  .home-page .footer-bottom {
    display: grid;
    gap: 6px;
    margin-top: 0;
    padding: 15px 18px 18px;
    border-top: 1px solid rgba(22, 20, 18, .09);
    background: rgba(255, 255, 255, .32);
    text-align: left;
  }

  .home-page .footer-bottom p {
    margin: 0;
    color: #514a42;
    font-size: 12.3px;
    font-weight: 700;
    line-height: 1.38;
  }
}
