/* footer — Site footer.
   Load order matters: see the <link> order in index.html. */

/* ==========================================================
   MONSTERA & CO.
   FOOTER — MATCHING REFERENCE DESIGN
========================================================== */

.mco-footer {
  position: relative;

  background:
    radial-gradient(circle at 8% 20%,
      rgba(255, 255, 255, .035),
      transparent 25%),
    radial-gradient(circle at 92% 70%,
      rgba(255, 255, 255, .025),
      transparent 28%),
    #123b29;

  color: #fff;

  overflow: hidden;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* Cream page colour cuts a double wave into the green, so the footer
   is not a hard rectangle against the section above. */
.mco-footer-wave {
  display: block;
  line-height: 0;
  pointer-events: none;
}

.mco-footer-wave svg {
  display: block;
  width: 100%;
  height: 72px;
}

.mco-footer-wave-front {
  fill: var(--cream);
}


/* ==========================================================
   WRAPPER
========================================================== */

.mco-footer-wrap {
  width: min(1200px, calc(100% - 64px));

  margin: 0 auto;

  position: relative;

  z-index: 2;
}


/* ==========================================================
   DECORATIVE LEAVES
========================================================== */

.mco-footer-leaf {
  position: absolute;

  color: rgba(255, 255, 255, .07);

  font-size: 150px;

  line-height: 1;

  pointer-events: none;

  user-select: none;

  z-index: 1;
}

.mco-footer-leaf-left {
  left: -65px;
  bottom: 55px;

  transform: rotate(-25deg);
}

.mco-footer-leaf-right {
  right: -45px;
  top: 30px;

  font-size: 175px;

  transform: rotate(25deg);
}


/* ==========================================================
   MAIN FOOTER
========================================================== */

.mco-footer-main {

  display: grid;

  grid-template-columns:
    1.45fr .9fr .9fr 1.45fr;

  padding: 28px 0 36px;
}


/* ==========================================================
   BRAND
========================================================== */

.mco-footer-brand {
  padding-right: 65px;
}


.mco-footer-logo {

  display: flex;

  align-items: center;

  gap: 0.35em;

  margin-bottom: 17px;

  font-size: 34px;
}

.mco-footer-logo span {
  font-family: 'Fraunces', serif;
  font-size: 1em;
  font-weight: 500;
  font-style: italic;
  letter-spacing: .12em;
  line-height: 1;
  color: #faf6ef;
}

.mco-footer-logo .logo-mark {
  height: 1.5em;
  width: auto;
}


.mco-footer-brand p {

  max-width: 310px;

  margin: 0;

  color: rgba(255, 255, 255, .82);

  font-size: 13px;

  line-height: 1.65;
}


/* ==========================================================
   FOOTER COLUMNS
========================================================== */

.mco-footer-column {

  border-left:
    1px dotted rgba(255, 255, 255, .23);

  padding-left: 33px;

  padding-right: 25px;
}


.mco-footer-column h3 {

  margin: 1px 0 8px;

  color: #f29bbd;

  font-size: 13px;

  font-weight: 700;

  letter-spacing: .11em;
}


/* small pink line */

.mco-footer-underline {

  width: 28px;

  height: 2px;

  background: #f29bbd;

  margin-bottom: 23px;

  border-radius: 10px;
}


/* links */

.mco-footer-column>a {

  display: flex;

  align-items: center;

  gap: 11px;

  color: rgba(255, 255, 255, .9);

  text-decoration: none;

  font-size: 14px;

  margin-bottom: 22px;

  transition:
    color .2s ease,
    transform .2s ease;
}


.mco-footer-column>a:hover {

  color: #f29bbd;

  transform: translateX(3px);
}


.mco-link-icon {

  color: #f29bbd;

  font-size: 14px;

  line-height: 1;
}


/* ==========================================================
   CONTACT
========================================================== */

.mco-contact-link {

  min-height: 40px;
}


.mco-contact-circle {

  flex: 0 0 37px;

  width: 37px;
  height: 37px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #f29bbd;

  color: #123b29;

  font-size: 16px;

  transition:
    transform .2s ease,
    background .2s ease;
}


.mco-contact-link:hover .mco-contact-circle {

  transform: scale(1.08);

  background: #fff;
}


/* ==========================================================
   BOTTOM BAR
========================================================== */

.mco-footer-bottom {

  min-height: 62px;

  border-top:
    1px solid rgba(255, 255, 255, .13);

  display: flex;

  align-items: center;

  gap: 30px;

  color: rgba(255, 255, 255, .82);

  font-size: 12px;
}


.mco-footer-copy {

  flex: 1;

  white-space: nowrap;
}


.mco-footer-bottom-item {

  display: flex;

  align-items: center;

  gap: 10px;

  white-space: nowrap;
}


.mco-bottom-icon {

  color: #f29bbd;

  font-size: 17px;

  line-height: 1;
}


/* vertical separators */

.mco-footer-bottom-divider {

  width: 1px;

  height: 23px;

  background: rgba(255, 255, 255, .18);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 950px) {

  .mco-footer-wave svg {
    height: 56px;
  }

  .mco-footer-wrap {
    width: min(100% - 42px, 760px);
  }

  .mco-footer-main {
    grid-template-columns: 1.5fr 1fr 1fr;
    row-gap: 24px;
    padding: 12px 0 28px;
  }

  .mco-footer-brand {
    grid-row: span 2;
    padding-right: 32px;
  }

  .mco-footer-column {
    padding-left: 24px;
  }

  .mco-footer-bottom {
    flex-wrap: wrap;
    min-height: 0;
    padding: 14px 0 18px;
    gap: 12px 18px;
  }

  .mco-footer-copy {
    width: 100%;
    flex-basis: 100%;
  }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 650px) {

  .mco-footer-wave svg {
    height: 40px;
  }

  .mco-footer-wrap {
    width: calc(100% - 32px);
  }

  .mco-footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 0;
    padding: 4px 0 14px;
  }

  .mco-footer-brand {
    grid-column: 1 / -1;
    padding: 0 0 14px;
  }

  .mco-footer-brand p {
    max-width: none;
    font-size: 12px;
    line-height: 1.5;
  }

  .mco-footer-logo {
    margin-bottom: 8px;
    font-size: 26px;
  }

  .mco-footer-column {
    border-left: 0;
    border-top: 1px dotted rgba(255, 255, 255, .25);
    padding: 14px 0 4px;
  }

  .mco-footer-column:last-of-type {
    grid-column: 1 / -1;
  }

  .mco-footer-column h3 {
    margin: 0 0 6px;
    font-size: 11px;
  }

  .mco-footer-underline {
    margin-bottom: 12px;
  }

  .mco-footer-column > a {
    font-size: 13px;
    margin-bottom: 10px;
    gap: 8px;
  }

  .mco-contact-circle {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .mco-contact-link span:last-child {
    overflow-wrap: anywhere;
  }

  .mco-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 0;
    gap: 8px 14px;
    padding: 12px 0 14px;
    font-size: 11px;
  }

  .mco-footer-bottom-divider {
    display: none;
  }

  .mco-footer-copy {
    flex-basis: 100%;
    white-space: normal;
    margin: 0;
  }

  .mco-footer-bottom-item {
    white-space: nowrap;
  }

  .mco-bottom-icon {
    font-size: 14px;
  }

  .mco-footer-leaf {
    display: none;
  }

}


/* ==========================================================
   SMALL PHONES
========================================================== */

@media (max-width: 400px) {

  .mco-footer-wave svg {
    height: 32px;
  }

  .mco-footer-wrap {
    width: calc(100% - 24px);
  }

  .mco-footer-logo {
    font-size: 22px;
  }

  .mco-footer-brand p {
    font-size: 11.5px;
  }

  .mco-footer-column > a {
    font-size: 12.5px;
    margin-bottom: 8px;
  }

  .mco-footer-bottom-item {
    white-space: normal;
  }

}
