/* Belle Allure pop-ups (bp-). Shared by every public page. */

.bp-pop[hidden] { display: none !important; }
.bp-pop, .bp-pop * { box-sizing: border-box; }
.bp-pop { font-family: 'Figtree', system-ui, sans-serif; color: #3D3D3D; }

.bp-card {
  position: relative;
  background: #FBF7F1;
  border: 1px solid #E3E8E0;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(31, 31, 31, 0.16), 0 6px 16px rgba(31, 31, 31, 0.08);
  padding: 30px 26px 22px;
  overflow: hidden;
}
.bp-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: #F5DCCB;
}

.bp-eyebrow {
  font: 600 11px/1 'Figtree', system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4F6754;
  margin: 0 0 12px;
}
.bp-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  color: #2C2C2C;
  margin: 0 0 10px;
  padding-right: 28px;
}
.bp-text {
  font-size: 15px;
  line-height: 1.6;
  color: #3D3D3D;
  margin: 0 0 20px;
}

.bp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: #4F6754;
  color: #FFFFFF;
  font: 600 15px/1 'Figtree', system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(79, 103, 84, 0.25);
  transition: background 0.2s, transform 0.2s;
}
.bp-btn:hover { background: #3D5A46; color: #FFFFFF; text-decoration: none; transform: translateY(-1px); }
.bp-btn:focus-visible { outline: 3px solid #A9C2AE; outline-offset: 2px; }

.bp-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 24px;
  border: 1.5px solid #5E7A65;
  border-radius: 999px;
  color: #4F6754;
  font: 600 14px/1 'Figtree', system-ui, sans-serif;
  text-decoration: none;
  transition: background 0.2s;
}
.bp-ghost:hover { background: rgba(94, 122, 101, 0.07); text-decoration: none; }
.bp-ghost:focus-visible { outline: 3px solid #A9C2AE; outline-offset: 2px; }

.bp-dismiss {
  display: block;
  margin: 12px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  font: 500 13px/1 'Figtree', system-ui, sans-serif;
  color: #4F6754;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bp-dismiss:focus-visible { outline: 3px solid #A9C2AE; outline-offset: 2px; }

.bp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #3D3D3D;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}
.bp-close:hover { transform: scale(1.08); }
.bp-close:focus-visible { outline: 3px solid #A9C2AE; outline-offset: 2px; }

/* Corner cards: welcome, blog, visit */
.bp-pop--welcome,
.bp-pop--blog,
.bp-pop--visit {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 8000;
  width: 360px;
  max-width: calc(100vw - 32px);
  animation: bpRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bp-pop--welcome .bp-title,
.bp-pop--blog .bp-title,
.bp-pop--visit .bp-title { font-size: 24px; }

/* Exit intent: centered modal */
.bp-pop--exit {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(40, 40, 40, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: bpFade 0.3s ease both;
}
.bp-pop--exit .bp-card {
  width: min(400px, 90vw);
  max-height: 85vh;
  padding: 36px 28px 24px;
  overflow: auto;
  animation: bpPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bp-pop--exit .bp-card > * {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* Keep the close button clear of the eyebrow in the exit modal */
.bp-pop--exit .bp-card { position: relative; padding-top: 52px; }
.bp-pop--exit .bp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  /* Prevent the card's overflow:auto from clipping it */
  margin: 0;
}
.bp-pop--exit .bp-eyebrow { margin-bottom: 12px; margin-top: 0; }
.bp-pop--exit .bp-title { font-size: 28px; margin-bottom: 12px; padding-right: 0; }
.bp-pop--exit .bp-text { font-size: 15px; margin-bottom: 22px; }
.bp-pop--exit .bp-btn { max-width: 320px; min-height: 48px; font-size: 15px; }
.bp-pop--exit .bp-ghost { max-width: 320px; min-height: 44px; font-size: 14px; }
.bp-pop--exit .bp-dismiss { margin-top: 14px; }

/* Service pages: tall vertical card on the right edge */
.bp-pop--service {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 8000;
  width: 340px;
  max-width: calc(100vw - 32px);
  animation: bpRise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bp-pop--service .bp-card {
  padding: 40px 26px 22px;
}
.bp-pop--service .bp-title { font-size: 26px; }
.bp-pop--service .bp-text { margin-bottom: 22px; }
.bp-pop--service .bp-dismiss { margin-top: 6px; }

@keyframes bpRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes bpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bpPop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .bp-pop--welcome,
  .bp-pop--blog,
  .bp-pop--visit { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .bp-pop--service { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .bp-title, .bp-pop--service .bp-title { font-size: 24px; }
  .bp-card { padding: 28px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bp-pop, .bp-pop * { animation: none !important; transition: none !important; }
}
