/*
 * The home's contact popup (components/pages/contact-popup.php), as the WordPress plugin mattia-barbara-popup, whose texts
 * are in Jost (latin, served by the site; loaded only when the popup opens) and its title in Cormorant Garamond 600.
 */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bottom right; the open box goes under the button, the button centred above it (as on WordPress). */
.contact-popup {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.contact-popup__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  padding: 6px;
  background: #111111;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.25s;
}
.contact-popup__button:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2); }
.contact-popup__button:active { transform: scale(0.96); }
/* WordPress removed the focus ring: keyboard users could not see the button. */
.contact-popup__button:focus-visible { outline: 2px solid #b8923a; outline-offset: 3px; }
.contact-popup__button img { width: 100%; height: 100%; object-fit: contain; }

.contact-popup__box {
  width: 340px;
  font-family: 'Jost', sans-serif;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
}
.contact-popup__top { display: flex; justify-content: flex-end; padding: 16px 22px 12px; border-bottom: 1px solid #f0f0f0; }
.contact-popup__close {
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111111;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.contact-popup__close:hover { opacity: 0.45; }
.contact-popup__body { padding: 22px 22px 28px; }
.contact-popup__title {
  margin-bottom: 14px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
}
.contact-popup__rule { width: 24px; height: 1px; margin-bottom: 20px; background: #111111; }
.contact-popup__list { border-top: 1px solid #ebebeb; }
.contact-popup__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: #111111;
  border-bottom: 1px solid #ebebeb;
  transition: padding-left 0.2s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.contact-popup__item:hover { padding-left: 6px; }
.contact-popup__info { display: flex; flex-direction: column; gap: 3px; }
.contact-popup__label { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #999999; }
.contact-popup__value { font-size: 14px; color: #111111; }
.contact-popup__arrow { flex-shrink: 0; font-size: 16px; color: #cccccc; transition: color 0.18s, transform 0.18s; }
.contact-popup__item:hover .contact-popup__arrow { color: #111111; transform: translateX(3px); }

@media (max-width: 420px) {
  .contact-popup { right: 18px; bottom: 22px; }
  .contact-popup__box { width: calc(100vw - 36px); }
}
