/* ============================================================
   PRO SECURE DOORS 101 — COMING SOON POPUP & BANNER
   K Highway Windows & Doors Ltd
   
   Color Palette:
     Navy:  #0c1a3a  (dark background)
     White: #ffffff  (text / card)
     Gold:  #c9a84c  (accents, CTA)
   
   Files: css/kh-prosecure-promo.css  +  js/kh-prosecure-promo.js
   To remove: delete both files and the 2 link/script tags in index.html
   ============================================================ */

/* ---- Announcement Banner ---- */
.prosecure-banner {
  background: linear-gradient(135deg, #0c1a3a 0%, #162850 100%);
  color: #ffffff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100; /* above header (z-index: 1000) */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  animation: prosecureBannerSlide 0.6s ease forwards;
}

.prosecure-banner__gold {
  color: #c9a84c;
  font-weight: 700;
}

.prosecure-banner__divider {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 0.6rem;
  vertical-align: middle;
}

@keyframes prosecureBannerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Push header & everything below it down when banner is visible */
body.prosecure-banner-active header {
  top: 36px; /* banner height approx */
}

body.prosecure-banner-active .free-shipping-announcement {
  top: calc(72px + 36px); /* header height + banner */
}

body.prosecure-banner-active .hero {
  padding-top: 166px; /* original 130px + 36px banner */
}


/* ---- Modal Overlay ---- */
.prosecure-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.prosecure-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Lock body scroll when modal is open */
body.prosecure-modal-open {
  overflow: hidden;
}


/* ---- Modal Card ---- */
.prosecure-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 168, 76, 0.15);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.prosecure-overlay.is-visible .prosecure-modal {
  transform: translateY(0) scale(1);
}


/* ---- Modal Header (Navy bar) ---- */
.prosecure-modal__header {
  background: linear-gradient(135deg, #0c1a3a 0%, #162850 100%);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

/* Decorative gold line at bottom of header */
.prosecure-modal__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
  border-radius: 2px;
}

.prosecure-modal__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.prosecure-modal__shield {
  font-size: 1.6rem;
  line-height: 1;
}

.prosecure-modal__title {
  color: #c9a84c;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  margin: 0;
}

.prosecure-modal__subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}


/* ---- Modal Body ---- */
.prosecure-modal__body {
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.prosecure-modal__body p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.prosecure-modal__body p:last-of-type {
  margin-bottom: 0;
}

.prosecure-modal__highlight {
  font-weight: 600;
  color: #0c1a3a;
}


/* ---- Modal Footer / CTA ---- */
.prosecure-modal__footer {
  padding: 0 2rem 2rem;
  text-align: center;
}

.prosecure-modal__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #c9a84c 0%, #b8943e 100%);
  color: #0c1a3a;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border: none;
  border-radius: 50px;
  cursor: default;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: prosecurePulse 2.5s ease-in-out infinite;
}

@keyframes prosecurePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35); }
  50%      { transform: scale(1.03); box-shadow: 0 6px 22px rgba(201, 168, 76, 0.5); }
}

.prosecure-modal__company {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}


/* ---- Close Button ---- */
.prosecure-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  z-index: 1;
}

.prosecure-modal__close:hover,
.prosecure-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: rotate(90deg);
}

.prosecure-modal__close:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}


/* ---- Responsive ---- */
@media (max-width: 768px) {
  .prosecure-banner {
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
    line-height: 1.4;
  }

  .prosecure-banner__divider {
    display: none;
  }

  /* Adjust offset for smaller banner on mobile */
  body.prosecure-banner-active header {
    top: 44px;
  }

  body.prosecure-banner-active .free-shipping-announcement {
    top: calc(72px + 44px);
  }

  body.prosecure-banner-active .hero {
    padding-top: 174px;
  }

  .prosecure-modal {
    max-width: 92vw;
    border-radius: 12px;
  }

  .prosecure-modal__header {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .prosecure-modal__title {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .prosecure-modal__body {
    padding: 1.5rem 1.25rem 1rem;
  }

  .prosecure-modal__body p {
    font-size: 0.88rem;
  }

  .prosecure-modal__footer {
    padding: 0 1.25rem 1.5rem;
  }

  .prosecure-modal__cta {
    font-size: 0.85rem;
    padding: 0.75rem 1.8rem;
  }
}

@media (max-width: 400px) {
  .prosecure-modal__title {
    font-size: 0.95rem;
  }

  .prosecure-modal__subtitle {
    font-size: 0.82rem;
  }

  .prosecure-modal__shield {
    font-size: 1.3rem;
  }
}
