/*
 * footer.css - site footer (footer.php), all pages. Loaded after ui.css.
 * Layout from the 2026 redesign; the address block keeps the map picture, the phone block keeps its old look
 * on the card blue used by the news cards on the homepage (#0e1520).
 *
 * Everything is scoped to .hp-footer. The footer id is #site-footer, so the old "#footer" rules in ui.css
 * ([S11], [S24]) and the old .footer-phone-block / .bg-blue-* skin no longer apply to it.
 */

.hp-footer {
  --hpf-line: #1a212c;
  --hpf-text: #e8edf3;
  --hpf-text-2: #aab4c3;
  --hpf-muted: #8793a3;
  --hpf-legal: #6f7b8b;
  --hpf-accent: #f39433;
  --hpf-accent-hover: #ffb266;
  --hpf-card: #0e1520;
  --hpf-card-2: #142033;
  --hpf-card-line: #1f2a38;

  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 56px) var(--v3b-m, 20px) 32px; /* the side margin of the pages (css/v3b.css, .v3b-wrap) */
  border-top: 1px solid var(--hpf-line);
  background: rgba(6, 7, 9, 0.5);
  color: var(--hpf-text-2);
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hp-footer *,
.hp-footer *::before,
.hp-footer *::after {
  box-sizing: border-box;
}

.hp-footer a,
.hp-footer a:hover,
.hp-footer a:focus {
  text-decoration: none;
}

.hp-footer a {
  color: var(--hpf-accent);
  transition: color 0.2s;
}

.hp-footer a:hover {
  color: var(--hpf-accent-hover);
}

.hp-footer a:focus-visible {
  outline: 2px solid var(--hpf-accent);
  outline-offset: 3px;
}

.hp-footer img {
  display: block;
  max-width: 100%;
}

.hp-footer__inner {
  max-width: calc(var(--v3b-w) - 2 * var(--v3b-m)); /* the content width of the pages: .v3b-wrap less its two margins */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hp-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

/* Logo + social */
.hp-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-footer__logo-link {
  align-self: flex-start;
}

.hp-footer__logo {
  height: 34px;
  width: auto;
}

.hp-footer__social {
  display: flex;
  gap: 18px;
  font-size: 28px;
  line-height: 1;
}

.hp-footer .hp-footer__social a {
  color: var(--hpf-muted);
}

.hp-footer .hp-footer__social a:hover {
  color: var(--hpf-accent);
}

/* Address + map */
.hp-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-footer .hp-footer__title {
  margin: 0;
  color: var(--hpf-text) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.hp-footer__place {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hp-footer__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hp-footer__pin {
  flex: none;
  margin-top: 2px;
}

.hp-footer__address-text {
  color: var(--hpf-text-2);
}

.hp-footer__address-text a {
  text-underline-offset: 3px;
}

.hp-footer__map {
  flex: none;
  line-height: 0;
}

.hp-footer__map img {
  width: 190px;
  height: auto;
}

/* Phone block: same shape as before (icon box + numbers), on the blue of the homepage cards */
.hp-footer__call {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.hp-phone {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--hpf-card-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--hpf-card);
}

.hp-phone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 68px;
  background: var(--hpf-card-2);
}

.hp-phone__numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  padding: 22px 28px;
  font-size: 22px;
  line-height: 1.3;
}

.hp-footer .hp-phone__numbers a {
  color: var(--hpf-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.hp-footer .hp-phone__numbers a:hover {
  color: var(--hpf-accent-hover);
}

.hp-phone__numbers b,
.hp-phone__numbers strong {
  font-weight: 700;
}

.hp-phone__sep {
  color: var(--hpf-muted);
}

/* Legal */
.hp-footer__legal {
  padding-top: 24px;
  border-top: 1px solid var(--hpf-line);
  color: var(--hpf-legal);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .hp-footer__top {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-footer__call {
    align-items: stretch;
  }

  .hp-phone__numbers {
    flex: 1;
    padding: 18px 20px;
    font-size: 20px;
  }
}
