/* ============================================================
   Footer — Columns, accreditations, legal bar
   ============================================================ */

.apoh-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
}

.apoh-footer__inner {
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
  max-width: 1280px;
}

/* --- 5-column grid --- */
.apoh-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

/* Column 1: Brand */
.apoh-footer__logo {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
}

.apoh-footer__tagline {
  font-size: 13px;
  color: var(--fg-1);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 0 18px;
}

.apoh-footer__social {
  display: flex;
  gap: 8px;
}

.apoh-footer__social a {
  display: block;
  line-height: 0;
  transition: opacity var(--dur-base);
}

.apoh-footer__social a:hover {
  opacity: 0.7;
}

/* Columns 2–5: Menu links */
.apoh-footer__heading {
  font-size: var(--fs-caption);
  color: var(--apoh-blue);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1;
}

.apoh-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.apoh-footer__links li {
  margin: 0;
}

.apoh-footer__links a {
  font-size: 14px;
  color: var(--fg-1);
  text-decoration: none;
  transition: color var(--dur-base);
}

.apoh-footer__links a:hover {
  color: var(--apoh-blue);
  text-decoration: none;
}

/* Address card */
.apoh-footer__address-card {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
}

.apoh-footer__address-label {
  display: block;
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.apoh-footer__address {
  font-size: 13px;
  color: #1F2A3D;
  line-height: 1.5;
  font-weight: 600;
  font-style: normal;
}

.apoh-footer__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-1);
}

.apoh-footer__phones a {
  color: var(--apoh-blue);
  font-weight: 700;
  text-decoration: none;
}

.apoh-footer__phones a:hover {
  text-decoration: underline;
}

/* Seal badges in accreditations */
.apoh-footer__badge--seal {
  border: none;
  padding: 0;
  overflow: visible;
  min-width: 146px;
}

.apoh-footer__badge--seal a {
  display: inline-block;
}

.apoh-footer__badge--seal img {
  height: 44px;
  width: auto;
}

/* --- Accreditations band --- */
.apoh-footer__accreditations {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: 28px 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.apoh-footer__accreditations-label {
  font-size: 11px;
  color: var(--fg-3);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apoh-footer__accreditations-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.apoh-footer__badge {
  font-size: 11px;
  color: var(--fg-1);
  letter-spacing: 0.06em;
  padding: 0;
  border: none;
  font-weight: 600;
}

.apoh-footer__badge--image {
  display: flex;
  align-items: center;
}

.apoh-footer__badge--image img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

/* --- Legal bar --- */
.apoh-footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--fs-caption);
  color: var(--fg-3);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.apoh-footer__copyright strong {
  color: var(--fg-1);
}

.apoh-footer__legal-links {
  display: flex;
  gap: 18px;
}

.apoh-footer__legal-links a {
  color: var(--fg-3);
  text-decoration: none;
}

.apoh-footer__legal-links a:hover {
  color: var(--fg-link);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .apoh-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .apoh-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .apoh-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .apoh-footer__accreditations {
    flex-direction: column;
    align-items: flex-start;
  }

  .apoh-footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .apoh-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Floating Call Button (mobile only) ── */
.apoh-floating-call {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--apoh-blue);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  align-items: center;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(31, 42, 61, 0.25);
}
.apoh-floating-call:hover { text-decoration: none; color: #fff; }

.apoh-floating-call__content {
  display: flex;
  flex-direction: column;
}

.apoh-floating-call__number {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.apoh-floating-call__hours {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.02em;
}

@media (max-width: 719px) {
  .apoh-floating-call {
    display: flex;
  }

  /* Add bottom padding to footer so content isn't hidden behind the bar */
  .apoh-footer {
    padding-bottom: 60px;
  }
}
