/* v4.5 mobile brand legibility and structured global footer */

.brand-lockup__promise--mobile {
  display: none;
}

.footer-main {
  display: block;
  padding-bottom: 64px;
}

.footer-brand-row {
  padding-bottom: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 44px clamp(48px, 6vw, 96px);
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: block;
}

.footer-brand .brand-lockup--footer {
  margin-bottom: 0;
}

.footer-brand .brand-lockup + p {
  max-width: 660px;
  margin: 24px 0 0;
  font-size: .94rem;
  line-height: 1.7;
}

.brand-lockup--footer .brand-lockup__mark {
  font-size: clamp(1.9rem, 2.35vw, 2.5rem);
}

.brand-lockup--footer .brand-lockup__title {
  font-size: .82rem;
}

.brand-lockup--footer .brand-lockup__promise {
  font-size: .59rem;
}

.footer-sales-actions {
  display: grid;
  gap: 14px;
}

.footer-quote-action {
  min-height: 58px;
  padding: 12px 18px 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  font-size: .86rem;
  font-weight: 700;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-quote-action:hover,
.footer-quote-action:focus-visible {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.footer-quote-action strong {
  min-width: 28px;
  height: 28px;
  padding-inline: 7px;
  display: inline-grid;
  place-items: center;
  color: var(--ivory);
  background: rgba(7, 9, 11, .78);
  border-radius: 999px;
  font-size: .76rem;
  line-height: 1;
}

.footer-direct-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
}

.footer-direct-actions a {
  min-height: 44px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--grey);
  font-size: .78rem;
  line-height: 1.35;
  transition: color .2s ease, background .2s ease;
}

.footer-direct-actions a + a {
  border-left: 1px solid var(--line-soft);
}

.footer-direct-actions a:hover,
.footer-direct-actions a:focus-visible {
  color: var(--ivory);
  background: rgba(197, 164, 109, .08);
}

.footer-navigation {
  padding-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 88px);
}

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

.footer-section summary {
  margin-bottom: 20px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
  list-style: none;
  cursor: default;
}

.footer-section summary::-webkit-details-marker {
  display: none;
}

.footer-links {
  display: grid;
  gap: 11px;
}

.footer-links--equipment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: clamp(28px, 4vw, 68px);
}

.footer-section:not([open]) > .footer-links {
  display: none;
}

.footer-links a {
  width: fit-content;
  max-width: 100%;
  color: var(--grey);
  font-size: .9rem;
  line-height: 1.45;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ivory);
  transform: translateX(3px);
}

.footer-bottom {
  font-size: .8rem;
}

html[data-theme='light'] .footer-brand-row,
html[data-theme='light'] .footer-direct-actions,
html[data-theme='light'] .footer-direct-actions a + a {
  border-color: rgba(255, 255, 255, .2);
}

html[data-theme='light'] .footer-direct-actions a,
html[data-theme='light'] .footer-links a {
  color: rgba(255, 255, 255, .78);
}

html[data-theme='light'] .footer-direct-actions a:hover,
html[data-theme='light'] .footer-direct-actions a:focus-visible,
html[data-theme='light'] .footer-links a:hover,
html[data-theme='light'] .footer-links a:focus-visible {
  color: #fff;
}

@media (max-width: 980px) {
  .footer-brand-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-sales-actions {
    max-width: 560px;
  }

  .footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 56px;
  }

  .footer-section--equipment {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  .brand-lockup--header .brand-lockup__promise--full {
    display: none;
  }

  .brand-lockup--header .brand-lockup__promise--mobile {
    display: block;
    font-size: .62rem;
    letter-spacing: .08em;
  }

  .brand-lockup--header .brand-lockup__title {
    font-size: .7rem;
    letter-spacing: .12em;
  }
}

@media (max-width: 580px) {
  .site-footer {
    padding-top: 52px;
  }

  .footer-main {
    padding-bottom: 34px;
  }

  .footer-brand-row {
    padding-bottom: 34px;
  }

  .footer-brand .brand-lockup + p {
    font-size: .9rem;
  }

  .brand-lockup--footer .brand-lockup__promise {
    font-size: .56rem;
    letter-spacing: .09em;
  }

  .footer-sales-actions {
    max-width: none;
  }

  .footer-direct-actions {
    grid-template-columns: 1fr;
  }

  .footer-direct-actions a + a {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  html[data-theme='light'] .footer-direct-actions a + a {
    border-top-color: rgba(255, 255, 255, .2);
  }

  .footer-navigation {
    padding-top: 0;
    display: block;
  }

  .footer-section,
  .footer-section--equipment {
    border-bottom: 1px solid var(--line-soft);
  }

  .footer-section summary {
    position: relative;
    margin: 0;
    padding: 19px 34px 19px 0;
    cursor: pointer;
  }

  .footer-section summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 2px;
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
  }

  .footer-section[open] summary::after {
    content: '\2212';
  }

  .footer-links,
  .footer-links--equipment {
    padding: 0 0 22px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 13px;
  }

  .footer-links a {
    font-size: .94rem;
  }

  .footer-bottom {
    gap: 12px;
    font-size: .78rem;
  }
}

@media (max-width: 430px) {
  .brand-lockup--header {
    max-width: calc(100vw - 104px);
    gap: 8px;
  }

  .brand-lockup--header .brand-lockup__mark {
    font-size: 1.48rem;
  }

  .brand-lockup--header .brand-lockup__divider {
    height: 30px;
  }

  .brand-lockup--header .brand-lockup__copy {
    gap: 4px;
  }

  .brand-lockup--header .brand-lockup__title {
    font-size: .64rem;
    letter-spacing: .105em;
  }

  .brand-lockup--header .brand-lockup__promise--mobile {
    font-size: .58rem;
    letter-spacing: .065em;
  }

  .nav-toggle span {
    font-size: .76rem;
  }
}
