/**
 * Editorial trust footer.
 *
 * The footer uses a warm charcoal rather than pure black so it closes the
 * light editorial pages without becoming a disconnected visual block.
 */

.footer.footer--editorial {
  --footer-bg: #242321;
  --footer-surface: #2c2a28;
  --footer-text: #f4f1ec;
  --footer-muted: rgba(244, 241, 236, 0.68);
  --footer-subtle: rgba(244, 241, 236, 0.48);
  --footer-border: rgba(244, 241, 236, 0.17);
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin: 0;
  padding: clamp(88px, 8vw, 132px) 0 0;
  scroll-margin-top: var(--header-h, 72px);
  border-top: 0;
  color: var(--footer-text);
  background:
    radial-gradient(circle at 88% 8%, rgba(141, 58, 62, 0.1), transparent 29%),
    linear-gradient(145deg, #282624 0%, var(--footer-bg) 58%, #1f2021 100%);
}

.footer.footer--editorial::before {
  content: "MYAJO";
  position: absolute;
  z-index: -1;
  right: -0.045em;
  top: -0.18em;
  font-family: var(--serif);
  font-size: clamp(140px, 22vw, 360px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.07em;
  color: rgba(244, 241, 236, 0.024);
  pointer-events: none;
}

.footer--editorial a {
  color: inherit;
}

.footer--editorial .footer-trust {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  gap: clamp(58px, 9vw, 150px);
  align-items: end;
}

.footer-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-subtle);
}

.footer-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.footer-tagline {
  margin: 0;
  font-size: clamp(46px, 6.2vw, 94px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.035em;
  text-wrap: balance;
}

.footer-intro {
  width: min(100%, 44em);
  margin: clamp(32px, 4vw, 54px) 0 0;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 2.05;
  color: var(--footer-muted);
}

.footer-trust__actions {
  padding-top: 24px;
  border-top: 1px solid var(--footer-border);
}

.footer-trust__lead {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.9;
  color: rgba(244, 241, 236, 0.84);
}

.footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 0 24px;
  border: 1px solid var(--footer-border);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.035em;
  transition: color 260ms ease, background-color 260ms ease, border-color 260ms ease;
}

.footer--editorial .footer-action--primary {
  color: #18191a;
  background: var(--footer-text);
}

.footer--editorial .footer-action--primary:hover,
.footer--editorial .footer-action--primary:focus-visible {
  color: var(--footer-text);
  border-color: rgba(244, 241, 236, 0.72);
  background: transparent;
}

.footer-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 22px;
}

.footer-action-links a,
.footer-legal a,
.footer-page-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 12px;
  color: var(--footer-muted);
}

.footer-action-links a::after,
.footer-legal a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 260ms ease;
}

.footer-action-links a:hover::after,
.footer-action-links a:focus-visible::after,
.footer-legal a:hover::after,
.footer-legal a:focus-visible::after {
  transform: scaleX(1);
}

.footer--editorial .footer-assurances {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 8vw, 116px);
  border-top: 1px solid var(--footer-border);
  border-bottom: 1px solid var(--footer-border);
}

.footer-assurances span {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(14px, 2vw, 28px);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--footer-muted);
}

.footer-assurances span + span {
  border-left: 1px solid var(--footer-border);
}

.footer--editorial .footer-directory {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(52px, 8vw, 128px);
  align-items: start;
  padding-top: clamp(68px, 7vw, 104px);
}

.footer--editorial .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: auto;
  text-align: left;
}

.footer--editorial .footer-logo-link {
  display: inline-flex;
  margin: 0;
}

.footer--editorial .footer-logo-image {
  width: min(230px, 24vw);
  height: auto;
  filter: invert(0.95) sepia(0.08);
}

.footer-brand__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--footer-subtle);
}

.footer--editorial .footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 70px);
  width: 100%;
  margin: 0;
}

.footer-nav__group {
  min-width: 0;
}

.footer-nav__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 26px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-nav__heading-en {
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--footer-subtle);
}

.footer--editorial .footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer--editorial .footer-nav__item {
  margin: 0;
}

.footer--editorial .footer-nav__item a {
  position: relative;
  display: block;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--footer-muted);
  transition: color 220ms ease, transform 220ms ease;
}

.footer--editorial .footer-nav__item a:hover,
.footer--editorial .footer-nav__item a:focus-visible {
  color: var(--footer-text);
  transform: translateX(4px);
}

.footer--editorial .footer-offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  position: relative;
  margin-top: clamp(64px, 7vw, 104px);
  background: var(--footer-border);
  border: 1px solid var(--footer-border);
}

.footer-office {
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
  background: rgba(36, 35, 33, 0.96);
}

.footer-office__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-office__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.footer-office__head span {
  font-family: var(--serif);
  font-size: 10px;
  font-style: italic;
  letter-spacing: 0.12em;
  color: var(--footer-subtle);
}

.footer--editorial .footer-address {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 24px 0 0;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
  color: var(--footer-muted);
}

.footer-office__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--footer-subtle);
}

.footer-office__contact a {
  color: var(--footer-text);
}

.footer-hours {
  position: absolute;
  right: 0;
  bottom: -36px;
  margin: 0;
  font-size: 11px;
  color: var(--footer-subtle);
}

.footer-hours span {
  color: var(--footer-muted);
}

.footer--editorial .footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: end;
  width: auto;
  max-width: none;
  margin: clamp(86px, 8vw, 126px) auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--footer-border);
  text-align: left;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.footer--editorial .footer-copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--footer-subtle);
}

.footer--editorial .footer-copy a {
  display: inline-flex;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-page-top {
  justify-self: end;
  gap: 10px;
  letter-spacing: 0.1em;
}

.footer-page-top span {
  transition: transform 220ms ease;
}

.footer-page-top:hover span,
.footer-page-top:focus-visible span {
  transform: translateY(-4px);
}

.footer--editorial a:focus-visible {
  outline: 2px solid var(--footer-text);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .footer.footer--editorial {
    padding-top: 92px;
  }

  .footer--editorial .footer-trust,
  .footer--editorial .footer-directory {
    grid-template-columns: 1fr;
  }

  .footer--editorial .footer-trust {
    gap: 54px;
  }

  .footer-trust__actions {
    width: min(100%, 560px);
  }

  .footer--editorial .footer-assurances {
    margin-top: 76px;
  }

  .footer--editorial .footer-directory {
    gap: 54px;
    padding-top: 72px;
  }

  .footer--editorial .footer-logo-image {
    width: min(220px, 42vw);
  }

  .footer--editorial .footer-nav {
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .footer.footer--editorial {
    padding-top: 84px;
  }

  .footer.footer--editorial::before {
    top: 0.05em;
    font-size: 42vw;
  }

  .footer-tagline {
    font-size: clamp(42px, 12.4vw, 54px);
  }

  .footer-intro {
    font-size: 13px;
    line-height: 1.95;
  }

  .footer-trust__lead br {
    display: none;
  }

  .footer-action {
    min-height: 64px;
    padding-inline: 20px;
  }

  .footer-action-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer--editorial .footer-assurances {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .footer-assurances span {
    min-height: 52px;
    padding-inline: 0;
  }

  .footer-assurances span + span {
    border-top: 1px solid var(--footer-border);
    border-left: 0;
  }

  .footer--editorial .footer-directory {
    padding-top: 62px;
  }

  .footer--editorial .footer-nav {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-nav__heading {
    margin-bottom: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--footer-border);
  }

  .footer--editorial .footer-nav__item a {
    min-height: 44px;
    padding: 12px 0;
  }

  .footer--editorial .footer-offices {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }

  .footer-office {
    padding: 24px 20px 28px;
  }

  .footer-hours {
    position: static;
    padding: 18px 20px;
    background: rgba(36, 35, 33, 0.96);
    border-top: 1px solid var(--footer-border);
  }

  .footer--editorial .footer-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 62px;
    padding: 24px 0 28px;
  }

  .footer--editorial .footer-copy {
    order: 3;
  }

  .footer-page-top {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer--editorial a,
  .footer--editorial a::after,
  .footer-page-top span {
    transition: none !important;
  }
}
