/* ============================================================
   PWS homepage popup — holiday offer
   purewaternv.com · added 2 November 2026
   Self-contained. Every selector is prefixed .pwspop- so it
   cannot collide with existing site styles.
   ============================================================ */

.pwspop-overlay {
  /* Read the site's own variables where they exist; fall back so
     this file also works standalone in the preview page. */
  --pwspop-navy:   var(--navy, #0f2b46);
  --pwspop-aqua:   var(--aqua-dark, #00b4d8);
  --pwspop-white:  var(--white, #ffffff);
  --pwspop-gray:   var(--gray-500, #5a6b7a);
  --pwspop-red:    #e02020;

  /* Above site chrome (nav flyouts are 10000) but below the chat
     widget (2147483647) and the AllyAI bars (99999 / 99998), so
     nothing the visitor relies on gets covered. */
  --pwspop-z: 9500;

  position: fixed;
  inset: 0;
  z-index: var(--pwspop-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 24, 40, .66);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.pwspop-overlay.pwspop-show { opacity: 1; visibility: visible; }

/* ---------- card ---------- */
.pwspop-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--pwspop-white);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(8, 24, 40, .34);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1);
  box-sizing: border-box;
  overflow: hidden;
}
.pwspop-overlay.pwspop-show .pwspop-card { transform: none; }

/* ---------- banner ---------- */
/* The whole banner is the primary click target. */
.pwspop-banner {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  line-height: 0;        /* kills the inline-image gap */
}
.pwspop-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.pwspop-banner:focus-visible {
  outline: 3px solid var(--pwspop-aqua);
  outline-offset: -3px;
}

/* ---------- body ---------- */
.pwspop-content { padding: 22px 26px 24px; }

.pwspop-title {
  margin: 0 0 8px;
  color: var(--pwspop-navy);
  font-family: var(--font-disp, "Raleway", sans-serif);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.3;
}
.pwspop-body {
  margin: 0 0 18px;
  color: var(--pwspop-gray);
  font-family: var(--font-body, "Nunito", sans-serif);
  font-size: .94rem;
  line-height: 1.6;
}

/* ---------- buttons ---------- */
.pwspop-cta {
  display: block;
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--pwspop-aqua);
  color: #fff;
  font-family: var(--font-disp, "Raleway", sans-serif);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
  box-sizing: border-box;
}
.pwspop-cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.pwspop-cta:focus-visible { outline: 2px solid var(--pwspop-navy); outline-offset: 2px; }

/* Phone link — the number is baked into the banner image, which is
   not tappable or readable by a screen reader. This is the real one. */
.pwspop-phone {
  display: block;
  margin-top: 10px;
  padding: 13px 22px;
  border: 1.5px solid rgba(15, 43, 70, .18);
  border-radius: 8px;
  color: var(--pwspop-navy);
  font-family: var(--font-disp, "Raleway", sans-serif);
  font-size: .98rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
  box-sizing: border-box;
}
.pwspop-phone:hover { background: rgba(15, 43, 70, .05); border-color: rgba(15, 43, 70, .32); }
.pwspop-phone:focus-visible { outline: 2px solid var(--pwspop-aqua); outline-offset: 2px; }

.pwspop-dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: none;
  color: var(--pwspop-gray);
  font-family: var(--font-body, "Nunito", sans-serif);
  font-size: .82rem;
  text-decoration: underline;
  cursor: pointer;
}
.pwspop-dismiss:hover { color: var(--pwspop-navy); }
.pwspop-dismiss:focus-visible { outline: 2px solid var(--pwspop-aqua); outline-offset: 2px; border-radius: 3px; }

.pwspop-footnote {
  margin: 14px 0 0;
  color: var(--pwspop-gray);
  font-family: var(--font-body, "Nunito", sans-serif);
  font-size: .72rem;
  opacity: .85;
}

/* ---------- close ---------- */
.pwspop-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #243b50;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(8, 24, 40, .26);
  transition: background .18s ease, transform .18s ease;
}
.pwspop-close:hover { background: #fff; transform: scale(1.06); }
.pwspop-close:focus-visible { outline: 2px solid var(--pwspop-aqua); outline-offset: 2px; }

/* ---------- phones ---------- */
@media (max-width: 520px) {
  .pwspop-overlay { padding: 0; align-items: flex-end; }
  .pwspop-card {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    transform: translateY(26px);
  }
  .pwspop-content { padding: 18px 18px 20px; }
  .pwspop-title { font-size: 1.12rem; }
  .pwspop-body  { font-size: .9rem; margin-bottom: 15px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pwspop-overlay, .pwspop-card, .pwspop-cta { transition: none; }
  .pwspop-card { transform: none; }
}

@media print { .pwspop-overlay { display: none !important; } }
