/* =========================================================
   GLOBAL 02: EMARK FOOTER
   File: /assets/css/footer.css
   ========================================================= */

:root {
  --footer-blue: #083E7F;
  --footer-navy: #031A35;
  --footer-navy-mid: #052543;
  --footer-green: #00A86B;
  --footer-green-light: #8FE8C6;
  --footer-white: #FFFFFF;
  --footer-text: rgba(255, 255, 255, 0.68);
  --footer-muted: rgba(255, 255, 255, 0.46);
  --footer-line: rgba(255, 255, 255, 0.10);
  --footer-max: 1220px;
}

.emark-footer {
  position: relative;
  color: var(--footer-white);
  background: var(--footer-navy);
}

.emark-footer__top {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  background:
    radial-gradient(circle at 92% 12%, rgba(0,168,107,0.08), transparent 24%),
    linear-gradient(180deg, var(--footer-navy-mid) 0%, var(--footer-navy) 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(
    90deg,
    var(--footer-blue) 0%,
    var(--footer-blue) 78%,
    var(--footer-green) 78%,
    var(--footer-green) 100%
  ) 1;
}

.emark-footer__top::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -175px;
  bottom: -190px;
  border: 1px solid rgba(255,255,255,0.045);
  border-radius: 50%;
  pointer-events: none;
}

.emark-footer__container {
  width: min(calc(100% - 40px), var(--footer-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.7fr);
  gap: 78px;
  align-items: start;
}

.emark-footer__brand {
  max-width: 390px;
}

.emark-footer__logo {
  width: fit-content;
  display: inline-flex;
  line-height: 0;
}

.emark-footer__logo img {
  width: 182px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.emark-footer__brand > p {
  max-width: 360px;
  margin: 24px 0 0;
  color: var(--footer-text);
  font-size: 0.91rem;
  line-height: 1.72;
}

.emark-footer__contact {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--footer-line);
}

.emark-footer__contact > div {
  display: grid;
  grid-template-columns: 11px 1fr;
  gap: 12px;
  align-items: start;
}

.emark-footer__contact-dot {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: var(--footer-green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0,168,107,0.08);
}

.emark-footer__contact small,
.emark-footer__contact strong {
  display: block;
}

.emark-footer__contact small {
  margin-bottom: 3px;
  color: var(--footer-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.emark-footer__contact strong,
.emark-footer__contact a {
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.emark-footer__contact a:hover,
.emark-footer__contact a:focus-visible {
  color: var(--footer-green-light);
}

.emark-footer__nav {
  display: grid;
  grid-template-columns: 0.65fr 1.05fr 1.3fr;
  gap: 36px;
}

.emark-footer__column h2 {
  white-space: nowrap;
}

.emark-footer__column h2 {
  margin: 0 0 17px;
  color: var(--footer-white);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.085em;
  line-height: 1.35;
  text-transform: uppercase;
}

.emark-footer__column h2::after {
  content: "";
  width: 22px;
  height: 2px;
  display: block;
  margin-top: 10px;
  background: var(--footer-green);
  border-radius: 999px;
}

.emark-footer__column a {
  width: fit-content;
  display: block;
  position: relative;
  margin-top: 10px;
  padding-right: 14px;
  color: var(--footer-text);
  font-size: 0.80rem;
  font-weight: 590;
  line-height: 1.55;
  text-decoration: none;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.emark-footer__column a::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--footer-green-light);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.emark-footer__column a:hover,
.emark-footer__column a:focus-visible {
  color: var(--footer-white);
  transform: translateX(2px);
}

.emark-footer__column a:hover::after,
.emark-footer__column a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.emark-footer__bottom {
  background: #02152A;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.emark-footer__container--bottom {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.emark-footer__container--bottom p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.emark-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.emark-footer__legal a {
  color: var(--footer-muted);
  font-size: 0.72rem;
  font-weight: 650;
  text-decoration: none;
}

.emark-footer__legal a:hover,
.emark-footer__legal a:focus-visible {
  color: var(--footer-white);
}

.emark-footer a:focus-visible {
  outline: 3px solid rgba(143,232,198,0.34);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .emark-footer__container {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .emark-footer__brand {
    max-width: 520px;
  }

  .emark-footer__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .emark-footer__top {
    padding: 58px 0 44px;
  }

  .emark-footer__container {
    width: min(calc(100% - 28px), var(--footer-max));
  }

  .emark-footer__logo img {
    width: 164px;
  }

  .emark-footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
  }

  .emark-footer__column:last-child {
    grid-column: 1 / -1;
  }

  .emark-footer__container--bottom {
    min-height: 0;
    display: grid;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .emark-footer__legal {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .emark-footer__nav {
    grid-template-columns: 1fr;
  }

  .emark-footer__column:last-child {
    grid-column: auto;
  }

  .emark-footer__brand > p {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emark-footer__column a,
  .emark-footer__column a::after {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 700px) {
  .emark-footer__column h2 {
    max-width: none !important;
    width: 100%;
    white-space: nowrap;
    font-size: 0.68rem;
    letter-spacing: 0.055em;
    overflow-wrap: normal;
    word-break: normal;
  }
}

/* =========================================================
   FOOTER - ADDRESS
   ========================================================= */

.emark-footer__address {
  margin: 0;

  color: inherit;

  font: inherit;
  font-size: inherit;

  line-height: 1.6;

  font-style: normal;
}