
/*
 * Mendeley.id — Premium Responsive Footer
 * File: public_html/assets/css/footer.css
 * No background images or extra libraries.
 */

.mf-footer {
  --mf-ink: #171c26;
  --mf-rose: #922b50;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;

  min-height: 0;
  padding: 126px 0 167px;

  background: var(--mf-ink);
  color: #f8f7fa;

  font-family: Outfit, Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.mf-footer *,
.mf-footer *::before,
.mf-footer *::after {
  box-sizing: border-box;
}

.mf-footer a {
  color: inherit;
  text-decoration: none;
}

.mf-footer a:focus-visible {
  outline: 3px solid #f5a9c8;
  outline-offset: 4px;
  border-radius: 4px;
}

/* KEEP THE ORIGINAL SVG WAVES */

.mf-top-wave {
  position: absolute;
  inset: -1px 0 auto;
  width: 100%;
  height: 108px;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.mf-bottom-waves {
  position: absolute;
  inset: auto 0 -1px;
  width: 100%;
  height: 150px;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* MAIN CONTAINER */

.mf-inner {
  position: relative;
  z-index: 1;

  width: min(1460px, calc(100% - 96px));
  margin-inline: auto;
}

/* BALANCED DESKTOP GRID */

.mf-main {
  display: grid;

  grid-template-columns:
    minmax(275px, 1.5fr)
    repeat(3, minmax(128px, .7fr))
    minmax(245px, 1.25fr);

  column-gap: clamp(20px, 2vw, 34px);
  row-gap: 34px;
  align-items: start;
}

.mf-brand-column,
.mf-links,
.mf-assist {
  min-width: 0;
}

/* BRAND */

.mf-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  max-width: 100%;
  white-space: nowrap;
}

.mf-mark {
  display: grid;
  place-items: center;

  width: 54px;
  height: 55px;
  flex: 0 0 54px;

  border-radius: 13px;

  background: linear-gradient(
    155deg,
    #ac345d,
    #76213f
  );
}

.mf-mark svg {
  width: 40px;
  height: 35px;
}

.mf-brand-name {
  font-family:
    'Cormorant Garamond',
    Georgia,
    serif;

  font-size: 39px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.025em;
  color: #fff;
}

.mf-brand-name span {
  color: #d25d86;
}

.mf-brand-copy {
  max-width: 335px;
  margin: 22px 0 0;

  color: #e7e9ee;
  font-size: 14.5px;
  line-height: 1.8;
}

.mf-short-rule,
.mf-head-rule {
  height: 2px;
  background: #bd4270;
  border-radius: 2px;
}

.mf-short-rule {
  width: 42px;
  margin: 21px 0;
}

.mf-independence {
  max-width: 332px;
  margin: 0;

  font-size: 12.5px;
  line-height: 1.75;
  color: #a9b2c1;
}

/* NAVIGATION COLUMNS */

.mf-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 13px;
  padding-top: 18px;
}

.mf-links h2,
.mf-assist h2 {
  margin: 0;

  font-family:
    'Cormorant Garamond',
    Georgia,
    serif;

  font-size: 29px;
  line-height: 1.1;
  font-weight: 600;

  color: #fff;
  white-space: nowrap;
}

.mf-head-rule {
  width: 39px;
  margin: 3px 0 6px;
  flex: none;
}

.mf-links a,
.mf-links .mf-not-ready {
  font-size: 14px;
  line-height: 1.65;
  color: #e0e4eb;

  transition: color .18s ease;
}

.mf-links a:hover {
  color: #f4afc8;
}

.mf-links .mf-not-ready {
  color: #abb4c0;
  cursor: default;
}

/* HELP AREA */

.mf-assist {
  margin-top: 12px;
  padding: 6px 0 0 25px;

  border-left: 1px solid rgba(
    229, 231, 238, .22
  );
}

.mf-assist h2 {
  font-size: 29px;
  white-space: normal;
}

.mf-assist > p {
  margin: 18px 0 16px;
  max-width: 305px;

  color: #e3e6ed;
  font-size: 14px;
  line-height: 1.75;
}

.mf-help-action {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;
  min-height: 52px;

  width: 100%;
  max-width: 330px;

  padding: 6px 7px 6px 15px;

  color: #262b35 !important;
  background: #fff;

  border-radius: 40px;
  font-size: 12.5px;
  font-weight: 600;
}

.mf-help-action span {
  min-width: 0;
}

.mf-help-action svg {
  flex: 0 0 39px;

  width: 39px;
  height: 39px;

  border-radius: 50%;
  padding: 11px;

  background: var(--mf-rose);
  color: #fff;

  transition: transform .18s ease;
}

.mf-help-action:hover svg {
  transform: translateX(2px);
}

.mf-assist .mf-assist-note {
  max-width: 300px;
  margin: 16px 0 0;

  color: #aab2c0;
  font-size: 12.5px;
  line-height: 1.7;
}

/* COPYRIGHT BAR */

.mf-bottom-bar {
  display: grid;

  grid-template-columns:
    minmax(220px, 1fr) auto auto;

  gap: 22px;
  align-items: center;

  margin-top: 47px;
  padding-top: 22px;

  border-top: 1px solid rgba(
    219, 224, 235, .26
  );
}

.mf-bottom-bar p {
  margin: 0;

  color: #d3d8e2;
  font-size: 12.5px;
  line-height: 1.7;
}

.mf-bottom-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 10px;

  color: #dbe0e8;
  font-size: 12.5px;
}

.mf-bottom-links a:hover {
  color: #f5b0ca;
}

/* BACK TO TOP */

.mf-back-top {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 6px;
  margin-left: 6px;

  white-space: nowrap;

  color: #dce1e9 !important;
  font-size: 11px;
  line-height: 1.4;
}

.mf-back-top span:first-child {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  border: 1px solid #68717f;
  border-radius: 50%;

  font-size: 24px;
  line-height: 1;

  transition:
    background .18s ease,
    border-color .18s ease;
}

.mf-back-top:hover span:first-child {
  background: var(--mf-rose);
  border-color: var(--mf-rose);
}

/* LARGE DESKTOPS */

@media (min-width: 1550px) {

  .mf-footer {
    padding-top: 155px;
    padding-bottom: 198px;
  }

  .mf-top-wave {
    height: 135px;
  }

  .mf-bottom-waves {
    height: 195px;
  }

  .mf-inner {
    width: min(
      1510px,
      calc(100% - 110px)
    );
  }

  .mf-main {
    column-gap: 36px;
  }
}

/* SMALLER LAPTOPS */

@media (min-width: 1081px) and
       (max-width: 1279px) {

  .mf-footer {
    padding-top: 122px;
    padding-bottom: 150px;
  }

  .mf-inner {
    width: calc(100% - 76px);
  }

  .mf-main {
    grid-template-columns:
      minmax(265px, 1.55fr)
      repeat(3, minmax(145px, .72fr));

    gap: 22px;
  }

  .mf-assist {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns:
      220px 1fr auto;

    align-items: center;
    gap: 18px;

    padding: 19px 0 0;
    margin-top: 5px;

    border-left: 0;
    border-top: 1px solid rgba(
      229, 231, 238, .17
    );
  }

  .mf-assist > p {
    margin: 0;
  }

  .mf-help-action {
    width: 235px;
  }

  .mf-assist .mf-assist-note {
    grid-column: 2;
    margin-top: -8px;
  }

  .mf-bottom-bar {
    margin-top: 32px;
  }
}

/* TABLET */

@media (max-width: 1080px) {

  .mf-footer {
    padding: 125px 0 155px;
  }

  .mf-inner {
    width: min(
      860px,
      calc(100% - 60px)
    );
  }

  .mf-main {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 35px 30px;
  }

  .mf-brand-column {
    grid-column: 1 / 3;
  }

  .mf-assist {
    grid-column: 3;
    grid-row: 1;

    margin: 0;
    padding: 5px 0 0 23px;
  }

  .mf-links {
    grid-row: 2;
    padding-top: 0;
  }

  .mf-brand-copy {
    max-width: 430px;
  }

  .mf-bottom-bar {
    grid-template-columns:
      1fr auto;

    margin-top: 43px;
  }

  .mf-bottom-links {
    grid-column: 1;
    grid-row: 2;

    justify-content: flex-start;
  }

  .mf-back-top {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* MOBILE */

@media (max-width: 680px) {

  .mf-footer {
    padding: 111px 0 125px;
  }

  .mf-inner {
    width: calc(100% - 38px);
  }

  .mf-top-wave {
    height: 95px;
  }

  .mf-bottom-waves {
    height: 117px;
  }

  .mf-main {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 30px 20px;
  }

  .mf-brand-column {
    grid-column: 1 / -1;
  }

  .mf-links {
    grid-row: auto;
    padding-top: 0;
  }

  .mf-links:nth-of-type(3) {
    grid-column: 1 / -1;
  }

  .mf-assist {
    grid-column: 1 / -1;
    grid-row: auto;

    border-left: 0;
    border-top: 1px solid rgba(
      229, 231, 238, .2
    );

    margin: 0;
    padding: 24px 0 0;
  }

  .mf-assist > p {
    margin: 12px 0 15px;
  }

  .mf-assist .mf-assist-note {
    max-width: none;
  }

  .mf-links h2,
  .mf-assist h2 {
    font-size: 26px;
  }

  .mf-links a,
  .mf-links .mf-not-ready {
    font-size: 13px;
  }

  .mf-brand-name {
    font-size: 36px;
  }

  .mf-brand-copy {
    font-size: 14px;
  }

  .mf-bottom-bar {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
    gap: 13px;

    margin-top: 38px;
  }

  .mf-bottom-links {
    justify-content: flex-start;
  }

  .mf-back-top {
    flex-direction: row;
    margin: 10px 0 0;
  }
}

/* VERY SMALL PHONES */

@media (max-width: 380px) {

  .mf-inner {
    width: calc(100% - 30px);
  }

  .mf-brand-name {
    font-size: 32px;
  }

  .mf-brand {
    gap: 9px;
  }

  .mf-mark {
    flex-basis: 49px;
    width: 49px;
    height: 50px;
  }

  .mf-links h2 {
    font-size: 24px;
  }

  .mf-links a,
  .mf-links .mf-not-ready {
    font-size: 12.5px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  .mf-footer * {
    transition: none !important;
  }
}

/* =========================================
   MENDELEY.ID — COMPACT DESKTOP FOOTER
   Reduce unnecessary vertical space
========================================= */

@media (min-width: 1081px) {

  .mf-footer {
    min-height: 0 !important;
    padding-top: 105px !important;
    padding-bottom: 76px !important;
  }

  /* Preserve the upper curve */
  .mf-top-wave {
    height: 88px !important;
  }

  /* Make the lower waves more subtle */
  .mf-bottom-waves {
    height: 78px !important;
  }

  /* Reduce space under navigation */
  .mf-bottom-bar {
    margin-top: 24px !important;
    padding-top: 15px !important;
    gap: 16px;
  }

  /* Tighter branding spacing */
  .mf-brand-copy {
    margin-top: 17px;
  }

  .mf-short-rule {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  /* Reduce vertical gaps */
  .mf-links {
    gap: 11px;
    padding-top: 15px;
  }

  .mf-assist {
    margin-top: 8px;
  }

  .mf-assist > p {
    margin-top: 14px;
    margin-bottom: 12px;
  }

  .mf-assist .mf-assist-note {
    margin-top: 11px;
  }

  /* Compact copyright row */
  .mf-bottom-bar p,
  .mf-bottom-links {
    font-size: 12px;
  }

  .mf-back-top span:first-child {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

/* Compact spacing for tablets too */

@media (min-width: 681px) and (max-width: 1080px) {

  .mf-footer {
    padding-bottom: 95px !important;
  }

  .mf-bottom-waves {
    height: 88px !important;
  }

  .mf-bottom-bar {
    margin-top: 27px;
    padding-top: 17px;
  }
}
