/* AeroPresent Phase 3 — canonical shared footer. */
.ap-shell-footer {
  margin-top: 0;
  padding: 0;
  color: var(--ap-color-text);
  border-top: 1px solid var(--ap-color-border);
  background: var(--ap-color-surface-accent);
}

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

.ap-shell-footer-contact-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr auto;
  align-items: start;
  gap: var(--ap-space-8);
  padding: var(--ap-space-10) 0 var(--ap-space-8);
  border-bottom: 1px solid var(--ap-color-border);
}

.ap-shell-footer-brand-lockup {
  display: block;
  width: 100%;
  max-width: 280px;
  margin-bottom: var(--ap-space-2);
}

.ap-shell-footer-brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.ap-shell-footer-brand p,
.ap-shell-footer-address p {
  max-width: 320px;
  margin: 0;
  color: var(--ap-color-text-muted);
  font-size: var(--ap-font-size-body-small);
  line-height: 1.65;
}

.ap-shell-footer-address p,
.ap-shell-footer-phone {
  display: flex;
  align-items: flex-start;
  gap: var(--ap-space-2);
}

.ap-shell-footer-address .ap-shell-icon,
.ap-shell-footer-phone .ap-shell-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--ap-color-brand);
}

.ap-shell-footer-label {
  display: block;
  margin-bottom: var(--ap-space-3);
  color: var(--ap-color-text-muted);
  font-size: 10px;
  font-weight: var(--ap-font-weight-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ap-shell-footer-contact a {
  width: fit-content;
  display: flex;
  margin-top: var(--ap-space-2);
  color: var(--ap-color-text-muted);
  font-size: var(--ap-font-size-body-small);
}

.ap-shell-footer-contact .ap-shell-footer-phone {
  margin-top: 0;
  color: var(--ap-color-text);
  font-size: var(--ap-font-size-body-large);
  font-weight: var(--ap-font-weight-bold);
}

.ap-shell-footer-contact a:hover,
.ap-shell-footer-contact a:focus,
.ap-shell-footer-nav-section a:hover,
.ap-shell-footer-nav-section a:focus,
.ap-shell-footer-bottom a:hover,
.ap-shell-footer-bottom a:focus {
  color: var(--ap-color-brand-hover);
}

.ap-shell-footer-socials {
  display: flex;
  gap: var(--ap-space-2);
}

.ap-shell-footer-socials a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--ap-color-brand-hover);
  border: 1px solid var(--ap-color-border-strong);
  border-radius: var(--ap-radius-md);
  background: var(--ap-color-surface);
  transition: color var(--ap-transition-fast), border-color var(--ap-transition-fast), background-color var(--ap-transition-fast);
}

.ap-shell-footer-socials a:hover,
.ap-shell-footer-socials a:focus {
  color: #fff;
  border-color: var(--ap-color-brand);
  background: var(--ap-color-brand);
}

.ap-shell-footer-socials .ap-shell-icon {
  width: 20px;
  height: 20px;
}

.ap-shell-footer-socials span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ap-shell-footer-nav-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--ap-space-10);
  padding: var(--ap-space-8) 0;
}

.ap-shell-footer-nav-section {
  min-width: 0;
}

.ap-shell-footer-nav-section summary {
  margin-bottom: var(--ap-space-4);
  color: var(--ap-color-text);
  font-size: var(--ap-font-size-body-small);
  font-weight: var(--ap-font-weight-bold);
  letter-spacing: .08em;
  list-style: none;
  text-transform: uppercase;
}

.ap-shell-footer-nav-section summary::-webkit-details-marker,
.ap-shell-footer-nav-section summary .ap-shell-icon {
  display: none;
}

.ap-shell-footer-nav-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-shell-footer-catalog ul {
  columns: 2;
  column-gap: var(--ap-space-8);
}

.ap-shell-footer-nav-section li {
  break-inside: avoid;
  margin-bottom: var(--ap-space-2);
}

.ap-shell-footer-nav-section a {
  color: var(--ap-color-text-muted);
  font-size: var(--ap-font-size-body-small);
  line-height: 1.5;
}

.ap-shell-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--ap-space-5);
  padding: var(--ap-space-5) 0 calc(var(--ap-space-5) + env(safe-area-inset-bottom, 0px));
  color: var(--ap-color-text-muted);
  border-top: 1px solid var(--ap-color-border);
  font-size: 11px;
}

.ap-shell-footer-bottom p {
  margin: 0;
}

@media (min-width: 768px) {
  .ap-shell-footer-nav-section:not([open]) > ul {
    display: block;
  }
}

@media (max-width: 991px) {
  .ap-shell-footer-contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ap-space-6);
  }

  .ap-shell-footer-nav-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--ap-space-6);
  }
}

@media (max-width: 767px) {
  .ap-shell-footer-brand-lockup {
    max-width: 250px;
  }

  .ap-shell-footer-contact-row {
    grid-template-columns: 1fr;
    gap: var(--ap-space-5);
    padding: var(--ap-space-8) 0 var(--ap-space-6);
  }

  .ap-shell-footer-nav-grid {
    display: block;
    padding: var(--ap-space-2) 0 var(--ap-space-6);
  }

  .ap-shell-footer-nav-section {
    border-bottom: 1px solid var(--ap-color-border);
  }

  .ap-shell-footer-nav-section summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ap-space-3);
    margin: 0;
    cursor: pointer;
  }

  .ap-shell-footer-nav-section summary .ap-shell-icon {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform var(--ap-transition-fast);
  }

  .ap-shell-footer-nav-section[open] summary .ap-shell-icon {
    transform: rotate(180deg);
  }

  .ap-shell-footer-nav-section ul,
  .ap-shell-footer-catalog ul {
    columns: 1;
    padding: 0 0 var(--ap-space-4);
  }

  .ap-shell-footer-nav-section a {
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .ap-shell-footer-bottom {
    display: block;
    padding-bottom: calc(var(--ap-mobile-bottom-nav-height) + var(--ap-space-5) + env(safe-area-inset-bottom, 0px));
  }

  .ap-shell-footer-bottom a {
    display: inline-block;
    margin-top: var(--ap-space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap-shell-footer-nav-section summary .ap-shell-icon {
    transition: none;
  }
}
