/* Site footer. Block: site-footer.
   Block root uses BEM. The theme strips menu-item classes off <li> (see
   my_css_attributes_filter), so menu link lists are targeted structurally
   under the block root (e.g. .site-footer__links a). Mobile-first: the top
   region stacks by default and becomes a 4-track grid at >=1024px. */

/* Block: site-footer */
.site-footer {
  background-color: var(--acu-midnight-purple);
  color: var(--acu-white);
  font-family: var(--font-sans);
}

.site-footer__inner {
  max-width: 90rem;
  margin-inline: auto;
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
}

/* --- Top region: accordions + contact columns --- */
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

/* Accordions (left) */
.site-footer__accordions {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.site-footer__accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-footer__accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
}

/* Hide the native disclosure triangle. */
.site-footer__accordion-summary::-webkit-details-marker {
  display: none;
}

/* Custom +/- marker. */
.site-footer__accordion-summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-light);
  line-height: 1;
  transition: transform var(--motion-base) var(--ease-out);
}

.site-footer__accordion[open] .site-footer__accordion-summary::after {
  content: "\2212"; /* minus sign */
}

.site-footer__accordion-summary:focus-visible {
  outline: 2px solid var(--acu-lavender-purple);
  outline-offset: 4px;
}

.site-footer__accordion-panel {
  padding: var(--space-xs) 0 var(--space-lg);
}

/* Contact columns */
.site-footer__col-heading {
  margin: 0 0 var(--space-lg);
  color: var(--acu-lavender-purple);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-style: normal;
}

.site-footer__contact-address {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

/* --- Link lists (accordion panels + ACU Resources) --- */
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Nested sub-menu links (e.g. Admissions phone numbers) render without bullets. */
.site-footer__links .sub-menu {
  margin: var(--space-2xs) 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a,
.site-footer__contact-link,
.site-footer__safety-phone {
  color: var(--acu-white);
  font-size: var(--text-md);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  width: fit-content;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__contact-link:hover,
.site-footer__contact-link:focus-visible,
.site-footer__safety-phone:hover,
.site-footer__safety-phone:focus-visible {
  text-decoration-color: currentColor;
}

/* Safety & Wellness: label with phone beneath. */
.site-footer__safety-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__safety-label {
  display: block;
  width: fit-content;
  margin-bottom: var(--space-2xs);
  color: var(--acu-white);
}

a.site-footer__safety-label {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

a.site-footer__safety-label:hover,
a.site-footer__safety-label:focus-visible {
  text-decoration-color: currentColor;
}

/* --- Middle region: logo + social --- */
.site-footer__middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
}

.site-footer__logo {
  display: inline-block;
  line-height: 0;
}

.site-footer__logo img {
  width: 16rem;
  height: auto;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  color: var(--acu-white);
  transition: background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}

.site-footer__social-link svg {
  width: 1.125rem;
  height: 1.125rem;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  background-color: var(--acu-white);
  border-color: var(--acu-white);
  color: var(--acu-midnight-purple);
}

/* --- Bottom bar: copyright + legal --- */
.site-footer__rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: var(--space-2xl) 0 var(--space-xl);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.site-footer__copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
}

.site-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal-list a {
  color: var(--acu-white);
  font-size: var(--text-xs);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.site-footer__legal-list a:hover,
.site-footer__legal-list a:focus-visible {
  text-decoration-color: currentColor;
}

/* --- Tablet: contact columns share a row --- */
@media (min-width: 768px) {
  .site-footer__top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2xl);
  }

  .site-footer__accordions {
    grid-column: 1 / -1;
  }

  .site-footer__middle {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- Desktop: accordions left, three columns right (matches comp) --- */
@media (min-width: 1024px) {
  .site-footer__inner {
    padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  }

  .site-footer__top {
    grid-template-columns: 1.9fr 1fr 1fr 1fr;
    column-gap: var(--space-3xl);
    align-items: start;
  }

  .site-footer__accordions {
    grid-column: 1;
    grid-row: 1;
  }
}
