/* Floating contact widget. All selectors are scoped to .fc-contact-widget. */
.fc-contact-widget {
  --fc-ink: #08090b;
  --fc-lime: #e3fd64;
  --fc-paper: #f5f5ef;
  position: fixed;
  z-index: 40;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  font-family: inherit;
}

body:has(dialog[open]) .fc-contact-widget,
html.menu-open .fc-contact-widget {
  display: none;
}

.fc-contact-toggle,
.fc-contact-close,
.fc-contact-primary {
  -webkit-tap-highlight-color: transparent;
}

.fc-contact-toggle {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--fc-lime);
  border-radius: 999px;
  color: var(--fc-ink);
  background: var(--fc-lime);
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 22%);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.fc-contact-toggle:hover {
  transform: translateY(-2px);
  color: var(--fc-lime);
  background: var(--fc-ink);
}

.fc-contact-toggle:focus-visible,
.fc-contact-close:focus-visible,
.fc-contact-panel a:focus-visible {
  outline: 2px solid var(--fc-lime);
  outline-offset: 3px;
}

.fc-contact-glyph {
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.fc-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(330px, calc(100vw - 2rem));
  padding: 1.5rem;
  color: var(--fc-paper);
  background: var(--fc-ink);
  border: 1px solid rgb(245 245 239 / 18%);
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 34%);
}

.fc-contact-panel[hidden] {
  display: none;
}

.fc-contact-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--fc-paper);
  background: transparent;
  cursor: pointer;
}

.fc-contact-close:hover {
  color: var(--fc-lime);
  background: rgb(245 245 239 / 10%);
}

.fc-contact-eyebrow {
  margin: 0 0 0.7rem;
  color: var(--fc-lime);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fc-contact-panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.fc-contact-copy {
  margin: 0.55rem 0 1.25rem;
  color: rgb(245 245 239 / 72%);
  font-size: 0.95rem;
}

.fc-contact-email {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--fc-paper);
  font-size: 0.95rem;
  text-underline-offset: 0.2em;
}

.fc-contact-email:hover {
  color: var(--fc-lime);
}

.fc-contact-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.8rem 0.95rem;
  color: var(--fc-ink);
  background: var(--fc-lime);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.fc-contact-primary:hover {
  background: var(--fc-paper);
}

@media (max-width: 480px) {
  .fc-contact-toggle {
    width: 3.25rem;
    height: 3.25rem;
  }

  .fc-contact-panel {
    right: -0.25rem;
    width: min(330px, calc(100vw - 1.5rem));
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-contact-toggle {
    transition: none;
  }
}
