:root {
  --a724-contact-height: 74px;
}

html:has(.a724-contact-bar) {
  scroll-padding-bottom: calc(var(--a724-contact-height) + 12px + env(safe-area-inset-bottom, 0px));
}

body:has(.a724-contact-bar) {
  padding-bottom: calc(var(--a724-contact-height) + 8px + env(safe-area-inset-bottom, 0px));
}

.a724-contact-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px max(10px, env(safe-area-inset-right), calc((100% - 640px) / 2))
    calc(8px + env(safe-area-inset-bottom, 0px))
    max(10px, env(safe-area-inset-left), calc((100% - 640px) / 2));
  background: #171717;
  box-shadow: 0 -4px 16px #0003;
}

.a724-contact-bar > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-sizing: border-box;
  min-width: 0;
  height: 58px;
  padding: 4px 7px;
  border-radius: 8px;
  color: #fff;
  font: 700 clamp(11px, 2.7vw, 16px)/1.15 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: filter .18s ease, transform .18s ease;
}

.a724-contact-bar .a724-contact-call,
.a724-contact-bar .a724-contact-request { background: #d50000; }
.a724-contact-bar .a724-contact-location { background: #08783d; }
.a724-contact-bar > a:hover { filter: brightness(1.12); color: #fff; }
.a724-contact-bar > a:active { transform: scale(.97); }
.a724-contact-bar > a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.a724-contact-bar > a[aria-busy="true"] { cursor: progress; }

.a724-contact-bar svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.a724-contact-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.a724-promotion {
  overflow: hidden;
  background: #22232a;
  border-bottom: 1px solid #3c3d45;
}

.a724-promotion > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .65rem 1rem;
  color: #fff;
  font: 700 clamp(.75rem, 2.65vw, .95rem)/1.35 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}

.a724-promotion > a:hover { color: #fff; text-decoration: underline; }
.a724-promotion > a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.a724-promotion > a span:last-child { color: #e0e0e0; }

.a724-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

header > .a724-header-tools {
  padding: 0 max(12px, calc((100% - 1180px) / 2)) 8px;
}

.a724-header-tools > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  min-height: 40px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  font: 700 .8rem/1.2 system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.a724-header-tools > a:hover { background: #80808024; }
.a724-header-tools svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.a724-footer-services { display: block; color: inherit; }
.a724-base-footer { background: #171717; color: #fff; }
footer > .a724-footer-services { padding: 10px max(16px, calc((100% - 1180px) / 2)) 20px; }
.a724-footer-services ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
}
.a724-footer-services a { color: inherit; text-underline-offset: 3px; }
.a724-footer-services a:hover { text-decoration: underline; }
.a724-copyright {
  margin: 0;
  padding: 12px max(16px, calc((100% - 1180px) / 2));
  border-top: 1px solid #80808055;
  color: inherit;
  font-size: .78rem;
}

@media (max-width: 520px) {
  .a724-contact-bar { gap: 5px; }
  .a724-contact-bar > a { flex-direction: column; gap: 3px; padding: 4px; }
  .a724-contact-bar svg { flex-basis: 17px; width: 17px; height: 17px; }
  .masthead-actions .a724-header-tools > a span { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .a724-contact-bar > a { animation: a724-button-enter .42s ease-out backwards; }
  .a724-contact-bar > a:nth-of-type(2) { animation-delay: .06s; }
  .a724-contact-bar > a:nth-of-type(3) { animation-delay: .12s; }
  .a724-promotion > a { animation: a724-promotion-slide 1.6s ease-out both; }
}

@media (prefers-reduced-motion: reduce) {
  .a724-contact-bar > a { transition: none; }
  .a724-contact-bar > a:active { transform: none; }
}

@keyframes a724-button-enter {
  from { opacity: .35; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes a724-promotion-slide {
  from { opacity: .5; transform: translateX(18%); }
  to { opacity: 1; transform: translateX(0); }
}
