/**
 * @file
 * Global footer region chrome (region--footer.html.twig).
 */

/* Footer follows </main> per stable9 page.html.twig; flex column fills short pages. */
[data-barba="wrapper"] {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

#page-wrapper.layout-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

main.page-wrapper__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.footer__drupal-region.footer__area {
  --footer-fs-cta: 1rem;
  --footer-fs-heading: 0.9375rem;
  --footer-fs-link: 0.9375rem;
  --footer-fs-meta: 0.6875rem;
  --footer-lh-tight: 1.25;
  --footer-lh-body: 1.5;
  --footer-lh-meta: 1.35;
  --footer-heading-color: #fff;
  --footer-strong-color: #fff;
  --footer-text-color: rgba(255, 255, 255, 0.72);
  --footer-link-color: rgba(255, 255, 255, 0.72);
  --footer-link-hover-color: var(--color-accent);
  --footer-rule-color: rgba(255, 255, 255, 0.12);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(
    180deg,
    var(--surface-glow-mid) 0%,
    var(--surface-glow-strong) 100%
  );
  color: var(--footer-text-color);
}

.footer-commerce {
  --footer-commerce-link-color: var(--footer-link-color);
  --footer-commerce-link-hover-color: var(--footer-link-hover-color);
  --footer-commerce-rule-color: var(--footer-rule-color);
  --footer-commerce-accordion-pad-inline: clamp(1rem, 4vw, 1.35rem);
  max-width: 80rem;
  margin-inline: auto;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.footer-commerce__masthead {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.footer-commerce__brand {
  text-align: center;
}

.footer-commerce__brand .logo {
  margin-bottom: 0.85rem;
}

.footer-commerce__brand .logo__wrapper-img {
  margin-right: 0;
}

.footer-commerce__brand .small-caps {
  color: var(--color-accent);
  line-height: var(--footer-lh-tight);
}

.footer-commerce__brand .small-caps + .small-caps {
  margin-top: 0.15rem;
}

.footer-commerce__brand .footer-commerce__social {
  margin-top: 1.1rem;
  text-align: inherit;
}

.footer-commerce__cta {
  margin-bottom: 0.85rem !important;
}

.footer-commerce__cta a {
  color: var(--footer-strong-color);
  font-size: var(--footer-fs-cta);
  font-weight: 500;
  line-height: var(--footer-lh-tight);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-commerce__cta a:hover,
.footer-commerce__cta a:focus-visible {
  color: var(--footer-link-hover-color);
}

.footer-commerce__social .social {
  display: flex;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-commerce__brand .footer-commerce__social .social {
  justify-content: center;
}

.footer-commerce__social .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--footer-strong-color);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.footer-commerce__heading {
  margin: 0;
  font-size: var(--footer-fs-heading);
  line-height: var(--footer-lh-tight);
  font-weight: 600;
  color: var(--footer-heading-color);
}

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

.footer-commerce__accordion-toggle {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.footer-commerce__accordion-toggle::-webkit-details-marker {
  display: none;
}

.footer-commerce__accordion-toggle::after {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  flex-shrink: 0;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.2s ease;
}

.footer-commerce__accordion[open] > .footer-commerce__accordion-toggle::after {
  transform: rotate(180deg);
}

.footer-commerce__accordion > :not(summary) {
  margin-top: 0.65rem;
}

.footer-commerce__accordion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.footer-commerce__nav-grid.footer-commerce__nav-grid--static {
  display: contents;
}

.footer-commerce__nav-grid,
.footer-commerce__product-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.footer-commerce__nav-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.footer-commerce__column {
  min-width: 0;
  text-align: left;
}

.footer-commerce__column-nav {
  margin-top: 0.65rem;
}

.footer-commerce__menu,
.footer-commerce__legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-commerce__menu {
  display: grid;
  gap: 0.35rem;
  line-height: var(--footer-lh-body);
}

.footer-commerce__menu > li {
  display: block;
  margin: 0;
  line-height: var(--footer-lh-body);
}

.footer-commerce__menu a,
.footer-commerce__legal-menu a,
.footer-commerce__powered a {
  display: inline;
  min-height: 0;
  color: var(--footer-link-color);
  font-size: var(--footer-fs-link);
  line-height: var(--footer-lh-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-commerce__menu a:hover,
.footer-commerce__menu a:focus-visible,
.footer-commerce__legal-menu a:hover,
.footer-commerce__legal-menu a:focus-visible,
.footer-commerce__powered a:hover,
.footer-commerce__powered a:focus-visible,
.footer-commerce__social .social a:hover,
.footer-commerce__social .social a:focus-visible {
  color: var(--footer-link-hover-color);
}

.footer-commerce__social .social a:hover,
.footer-commerce__social .social a:focus-visible {
  border-color: rgba(212, 165, 95, 0.56);
  background-color: var(--color-accent-soft);
}

.footer-commerce__menu a:focus-visible,
.footer-commerce__legal-menu a:focus-visible,
.footer-commerce__powered a:focus-visible,
.footer-commerce__social .social a:focus-visible,
.footer-commerce__cta a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 0.18em;
}

.footer-commerce__meta {
  margin-top: clamp(1.25rem, 2vw, 1.65rem);
  padding-top: clamp(0.75rem, 1.5vw, 1rem);
  border-top: 1px solid var(--footer-rule-color);
  color: var(--footer-text-color);
}

.footer-commerce__meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.footer-commerce__copyright-text {
  margin: 0;
  font-size: var(--footer-fs-meta);
  font-weight: 400;
  color: var(--footer-text-color);
  text-align: left;
  line-height: var(--footer-lh-meta);
  letter-spacing: 0.02em;
}

.footer-commerce__powered {
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--footer-text-color);
  font-size: var(--footer-fs-meta);
  line-height: var(--footer-lh-meta);
  letter-spacing: 0.02em;
}

.footer-commerce__powered .block-system-powered-by-block {
  font-size: inherit;
  line-height: var(--footer-lh-tight);
}

.footer-commerce__powered a {
  font-size: inherit;
  color: var(--footer-link-color);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-commerce__powered .block-system-powered-by-block > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em;
}

.footer-commerce__powered .drupal-logo {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 0.2em;
}

.footer-commerce__powered svg,
.footer-commerce__powered .fa-drupal {
  width: 0.65rem;
  height: auto;
  font-size: 0.65rem;
  line-height: 1;
}

.footer-commerce__legal {
  display: flex;
  justify-content: flex-end;
}

.footer-commerce__legal-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem 0.75rem;
  line-height: var(--footer-lh-meta);
}

.footer-commerce__legal-menu a {
  font-size: var(--footer-fs-meta);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--footer-link-color);
  text-decoration: none;
}

.footer-commerce__legal-menu a:hover,
.footer-commerce__legal-menu a:focus-visible {
  color: var(--footer-link-hover-color);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 0.18em;
}

.footer-commerce__legal-menu > li {
  margin: 0;
  line-height: var(--footer-lh-meta);
}

@media (min-width: 992px) {
  .footer-commerce__accordion > .footer-commerce__accordion-toggle {
    pointer-events: none;
    cursor: default;
  }

  .footer-commerce__accordion > .footer-commerce__accordion-toggle::after {
    content: none;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .footer-commerce__meta-grid {
    grid-template-columns: minmax(0, 1.35fr) auto minmax(0, 1fr);
    gap: 0.75rem;
  }

  .footer-commerce__legal-menu {
    gap: 0.3rem 0.7rem;
  }
}

@media (max-width: 991.98px) {
  .footer-commerce__brand {
    text-align: center;
  }

  .footer-commerce__brand .footer-commerce__social .social {
    justify-content: center;
  }

  .footer-commerce__social .social a {
    width: 2.75rem;
    height: 2.75rem;
  }

  .footer-commerce__accordion-list {
    margin-inline: 0;
  }

  .footer-commerce__nav-grid .footer-commerce__accordion,
  .footer-commerce__product-grid .footer-commerce__accordion,
  .footer-commerce__nav-grid--static .footer-commerce__column--static {
    padding: 0;
  }

  .footer-commerce__nav-grid .footer-commerce__accordion:not(:last-child),
  .footer-commerce__product-grid .footer-commerce__accordion:not(:last-child),
  .footer-commerce__nav-grid--static .footer-commerce__column--static:not(:last-child) {
    border-bottom: 0;
  }

  .footer-commerce__accordion-toggle {
    min-height: 2.75rem;
  }

  .footer-commerce__accordion[open] > :not(summary) {
    padding-bottom: 0.35rem;
  }

  .footer-commerce__meta-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
  }

  .footer-commerce__copyright {
    order: 1;
    width: 100%;
  }

  .footer-commerce__legal {
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .footer-commerce__powered {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0.1rem;
  }

  .footer-commerce__copyright-text {
    text-align: center;
  }

  .footer-commerce__legal-menu {
    width: 100%;
    justify-content: center;
    gap: 0.55rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .footer__drupal-region.footer__area {
    padding-top: 2rem;
    padding-bottom: 1.75rem;
    padding-inline: 1.5rem;
  }

  .footer-commerce {
    padding: 1.15rem;
  }
}
