/**
 * Smart Epsilon site footer
 * Depends on: assets/css/globals.css
 */

/* Neutralize Genesis Block Theme footer chrome */
.site-footer::before,
.site-footer::after {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   Footer shell — exact live colors
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  clear: both;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #090714;
  color: #f0f4ff;
  padding: 5rem 0 3.5rem;
  font-family: var(--font-body);
  font-size: inherit;
  line-height: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer a:hover {
  text-decoration: none;
}

.footer-inner {
  max-width: var(--max);
  padding-inline: var(--gutter);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: end;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
  min-width: 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.95fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
}

/* ---- Contact card ---- */
.footer-contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 180px;
  justify-content: space-between;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.825rem;
  color: rgba(240, 244, 255, 0.75);
}

.site-footer .footer-contact-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: inherit;
  transition: color 0.2s;
  line-height: 1.4;
}

.site-footer .footer-contact-link svg {
  margin-top: 1px;
  flex-shrink: 0;
}

.site-footer a.footer-contact-link:visited {
  color: inherit;
}

.site-footer a.footer-contact-link:hover,
.site-footer a.footer-contact-link:visited:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.site-footer a.footer-contact-link:focus,
.site-footer a.footer-contact-link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.site-footer .footer-contact-link--static {
  cursor: default;
}

.site-footer .footer-contact-link--static:hover,
.site-footer .footer-contact-link--static:focus {
  color: inherit;
  text-decoration: none;
}

.footer-locations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.footer-locations__heading {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(240, 244, 255, 0.9);
}

.footer-locations__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a.footer-locations__link span {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240, 244, 255, 0.35);
}

.site-footer a.footer-locations__link:hover span {
  text-decoration-color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer .footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f0f4ff;
  transition: background 0.3s, border-color 0.3s;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #f0f4ff;
  outline: none;
  text-decoration: none;
}

/* ---- Link columns / accordion ---- */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Reset Genesis `button` / `button:hover` chrome (blue fill, inset glow, bold CTA weight) */
.site-footer .footer-acc-trigger,
.site-footer .footer-acc-trigger:hover,
.site-footer .footer-acc-trigger:focus,
.site-footer .footer-acc-trigger:focus-visible,
.site-footer .footer-acc-trigger:active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 244, 255, 0.4);
  text-align: left;
  cursor: default;
  transition: none;
}

.footer-acc-icons {
  display: none;
  color: rgba(240, 244, 255, 0.55);
  flex-shrink: 0;
}

.footer-icon-plus,
.footer-icon-minus {
  display: none;
}

.footer-acc-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-acc-panel a {
  font-size: 0.875rem;
  color: rgba(240, 244, 255, 0.65);
  transition: color 0.2s;
}

.footer-acc-panel a:hover,
.footer-acc-panel a:focus-visible {
  color: #ffffff;
  outline: none;
}

/* Purple accent rule under columns */
.footer-accent-line {
  height: 2px;
  width: 100%;
  background: #6b62ac;
}

/* Brand symbol */
.footer-brand-mark {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
}

.footer-brand-img {
  display: block;
  width: 280px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Bottom bar */
.footer-bottom {
  max-width: var(--max);
  padding-inline: var(--gutter);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(240, 244, 255, 0.45);
}

.footer-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-copy a:hover {
  color: rgba(240, 244, 255, 0.75);
}

.footer-copy a:focus,
.footer-copy a:focus-visible,
.footer-copy a:active {
  color: inherit;
  outline: none;
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-badges span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(240, 244, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1366px) {
  .footer-acc-panel a {
    font-size: 13px;
  }
  .footer-brand-img {
    width: 250px;
  }
  .footer-columns {
    gap: 20px;
    grid-template-columns: 1.15fr 1.25fr 1.25fr 0.75fr;
  }
}

/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .footer-brand-mark {
    width: 180px;
    justify-content: flex-start;
  }

  .footer-brand-img {
    width: 180px;
  }

  .footer-columns {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-contact-card {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Mobile — accordion with + / −
   ========================================================================== */

@media (max-width: 767px) {
  .site-footer {
    padding: 3.25rem 0 2.5rem;
  }

  .footer-inner {
    gap: 2rem;
  }

  .footer-main {
    gap: 1.75rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-contact-card {
    grid-column: auto;
    margin-bottom: 1.25rem;
    min-height: 0;
    padding: 1.5rem 1.25rem;
  }

  .footer-col {
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-footer .footer-acc-trigger,
  .site-footer .footer-acc-trigger:hover,
  .site-footer .footer-acc-trigger:focus,
  .site-footer .footer-acc-trigger:focus-visible,
  .site-footer .footer-acc-trigger:active {
    cursor: pointer;
    padding: 1rem 0;
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(240, 244, 255, 0.72);
    transition: color 0.2s;
  }

  .site-footer .footer-acc-trigger:hover,
  .site-footer .footer-col.is-open .footer-acc-trigger,
  .site-footer .footer-col.is-open .footer-acc-trigger:hover,
  .site-footer .footer-col.is-open .footer-acc-trigger:focus {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
  }

  .footer-acc-icons {
    display: grid;
    place-items: center;
  }

  .footer-icon-plus {
    display: block;
  }

  .footer-icon-minus {
    display: none;
  }

  .footer-col.is-open .footer-icon-plus {
    display: none;
  }

  .footer-col.is-open .footer-icon-minus {
    display: block;
  }

  .footer-acc-panel {
    overflow: hidden;
    height: 0;
    gap: 0;
    transition: height 0.32s var(--ease-out);
  }

  .footer-acc-panel a {
    display: block;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
  }

  .footer-acc-panel a:first-child {
    border-top: 0;
    padding-top: 0.15rem;
  }

  .footer-acc-panel a:last-child {
    padding-bottom: 1rem;
  }

  .footer-brand-mark {
    width: 120px;
    opacity: 0.85;
  }

  .footer-brand-img {
    width: 120px;
  }

  .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-copy {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .footer-badges span {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .footer-social a {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-acc-panel {
    transition: none !important;
  }
}
