/**
 *	MIXIN: RANGE
 *
 *	@version 1.1
 *	@date    2026-03-11
 *	@author  michael@mdg.agency
 *
 *	This SASS mixin creates a media query for one or more predefined ranges of
 *	screen widths. It requires a map of named ranges with min and/or max values (in
 *	pixels). Example:
 *
 *		$ranges: (
 *			small:   (max: 500),
 *			medium:  (min: 501, max: 768),
 *			large:   (min: 769)
 *		);
 *
 *	Bootstrap ranges are created by default, but may be overwritten in your
 *	stylesheet after this file is included. It was designed to be used on documents
 *	with at least one finite range (with both min and max), but should work equally
 *	well with a mobile-first design.
 *
 *	Use examples:
 *
 *		@include range.query(small) { ... }
 *
 *		@include range.query(small, medium) { ... }
 *
 *		@include range.query(medium, large) { ... }
 *
 *		@include range.query(alpha, bravo, charlie) { ... }
 *
 *	Argument order does not matter. The ranges are merged inclusively, meaning each
 *	included range can only expand the total scope of the final media query, not
 *	contract it. This means that if ANY included range has a "null" max or min, the
 *	final media query will not have a max-width or min-width constraint,
 *	respectively. It also means that if there are gaps between the included ranges,
 *	they will be ignored, since both min and max will have been provided.
 *
 *	A more sophisticated version of this mixin would detect gaps in the included
 *	ranges and output multiple media queries.

*/
.footer-inner {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto;
  margin-right: auto;
  padding-block: calc(2 * var(--wp--context--gap));
  padding-inline: var(--wp--context--gap);
  container-type: inline-size;
}

.footer {
  margin: 0;
  --wp--context--background-color: var(--wp--custom--context--primary--background-color);
  --wp--context--foreground-color: var(--wp--custom--context--primary--foreground-color);
  --wp--context--muted-color: color-mix( in srgb, var(--wp--context--foreground-color), var(--wp--context--background-color) 33% );
  --wp--context--faint-color: color-mix( in srgb, var(--wp--context--foreground-color), var(--wp--context--background-color) 80% );
  --wp--context--heading-text-color: var(--wp--custom--context--primary--heading-text-color);
  --wp--context--link-text-color: var(--wp--custom--context--primary--link-text-color);
  --wp--context--link-hover-color: var(--wp--custom--context--primary--link-hover-color);
  --wp--context--link-text-decoration: var(--wp--custom--context--primary--link-text-decoration);
  --wp--context--button-base-color: var(--wp--custom--context--primary--button-base-color);
  --wp--context--button-hover-color: var(--wp--custom--context--primary--button-hover-color);
  --wp--context--button-text-color: var(--wp--custom--context--primary--button-text-color);
  --wp--context--button-hover-text-color: var(--wp--custom--context--primary--button-hover-text-color);
  --wp--context--input-background-color: var(--wp--custom--context--primary--input-background-color);
  --wp--context--input-foreground-color: var(--wp--custom--context--primary--input-foreground-color);
  --wp--context--input-border-color: var(--wp--custom--context--primary--input-border-color);
  background-color: var(--wp--context--background-color);
  color: var(--wp--context--foreground-color);
  --wp--context--link-text-decoration: none;
}

.footer-logo {
  display: block;
  height: 4rem;
}

.footer-inner {
  max-width: var(--wp--style--global--wide-size);
  font-size: var(--wp--preset--font-size--40);
  display: flex;
  flex-direction: column;
  gap: var(--wp--context--gap);
}

.footer-columns {
  display: flex;
  align-items: flex-start;
  gap: var(--wp--context--gap);
}
@media screen and (max-width: 767px) {
  .footer-columns {
    flex-direction: column;
    gap: 3rem;
  }
}
@media screen and (min-width: 768px) {
  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-columns > * {
    flex: 1 1 0;
  }
}

.footer-column-title {
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--wp--custom--color--teal);
  margin: 0 0 1.5rem;
}

.footer-menu .menu, .footer-menu .menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media screen and (max-width: 767px) {
  .footer-menu .menu, .footer-menu .menu > ul {
    justify-content: center;
  }
}
@media screen and (min-width: 768px) {
  .footer-menu .menu, .footer-menu .menu > ul {
    justify-content: flex-start;
  }
}
.social-menu .menu, .social-menu .menu > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  font-size: var(--wp--preset--font-size--50);
}
.social-menu .menu-label {
  display: none;
}
.social-menu a {
  display: block;
  width: 2.5rem;
  aspect-ratio: 1/1;
  background-color: var(--wp--custom--color--green);
  color: var(--wp--custom--color--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  line-height: 1;
}

.footer-contact {
  margin-block-start: 1rem;
  font-size: 0.875rem;
  color: var(--wp--custom--color--teal);
  --wp--context--link-text-color: currentColor;
}

.footer-text {
  margin-block-start: 2rem;
  border-top: 1px solid var(--wp--custom--color--teal);
  padding-block-start: 1rem;
  font-size: 0.875rem;
}