/* ============================================
   NATIONAL DENT — Temporary Storm Popup
   Self-contained styles for the campaign popup.
   To remove the popup entirely: delete this file,
   delete js/storm-popup.js, and remove the two
   <link>/<script> tags from the page <head>/footer.
   To disable without deleting: set enabled:false in
   the STORM_CAMPAIGN config at the top of storm-popup.js.
   ============================================ */

/* Backdrop — full viewport, sits beneath the card */
.storm-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.storm-popup-overlay.is-open { display: block; }

/* Card */
.storm-popup {
  position: fixed;
  z-index: 1210;
  top: 50%;
  right: clamp(24px, 6vw, 96px);
  transform: translateY(-50%);
  width: 540px;
  max-width: calc(100vw - 48px);
  background: var(--accent);
  color: #000;
  border-radius: 14px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), 0 8px 24px rgba(0, 0, 0, 0.22);
  animation: stormPopupRise 200ms var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
@keyframes stormPopupRise {
  from { opacity: 0; transform: translateY(calc(-50% + 12px)); }
  to   { opacity: 1; transform: translateY(-50%); }
}

/* Eyebrow row with standalone icon */
.storm-popup__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #000;
  margin-bottom: 14px;
}
.storm-popup__icon { width: 18px; height: 18px; display: block; flex-shrink: 0; }

.storm-popup__headline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #000;
  margin-bottom: 12px;
}
.storm-popup__body {
  color: rgba(0, 0, 0, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* CTA — black button, matches site button typography */
.storm-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  background: #000;
  color: #f5f5f7;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease, ease), box-shadow 0.2s var(--ease, ease);
}
.storm-popup__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.storm-popup__cta:focus-visible { outline: 3px solid #000; outline-offset: 3px; }

/* Close button — 40x40 hit area, standalone black X */
.storm-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  transition: background 0.2s var(--ease, ease);
}
.storm-popup__close:hover { background: rgba(0, 0, 0, 0.10); }
.storm-popup__close:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.storm-popup__close svg { width: 20px; height: 20px; display: block; }

/* Mobile — compact bottom sheet */
@media (max-width: 600px) {
  .storm-popup {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    transform: none;
    padding: 24px;
    animation: stormPopupSheetRise 200ms var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) both;
  }
  .storm-popup__cta { width: 100%; }
}
@keyframes stormPopupSheetRise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .storm-popup { animation: none; }
}
