/* ==========================================================
   Flanner House – Pop-Up Banner  |  popup.css
   ========================================================== */

/* ── Overlay ──────────────────────────────────────────────── */
#fh-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#fh-popup-overlay.fh-visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Box ──────────────────────────────────────────────────── */
#fh-popup-box {
  position: relative;
  background: #f5f5f0;
  border-radius: 4px;
  max-width: 640px;
  width: 100%;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#fh-popup-overlay.fh-visible #fh-popup-box {
  transform: translateY(0) scale(1);
}

/* ── Close button ─────────────────────────────────────────── */
#fh-popup-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
  padding: 0;
}

#fh-popup-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}

/* ── Inner content ────────────────────────────────────────── */
#fh-popup-inner {
  text-align: center;
}

/* Title */
#fh-popup-title {
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: #0033cc;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

/* Body copy */
#fh-popup-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.75rem;
}

#fh-popup-content p {
  margin: 0 0 0.85rem;
}

#fh-popup-content p:last-child {
  margin-bottom: 0;
}

/* CTA Button — force display regardless of theme resets */
#fh-popup-btn {
  display: inline-block !important;
  background: #1a6b3c;
  color: #fff !important;
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  line-height: 1;
}

#fh-popup-btn:hover {
  background: #155730;
  color: #fff !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

#fh-popup-btn:active {
  transform: translateY(0);
}

/* Hidden state — used by JS instead of inline display:none */
#fh-popup-btn.fh-btn-hidden {
  display: none !important;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  #fh-popup-box {
    padding: 2.25rem 1.5rem 2rem;
  }
}
