/* ═══════════════════════════════════════════════════════
   🌍 PUBLIC-MAP — Final polish
   1. Hide entire certs chip bar (save vertical space)
   2. Newsletter + Footer fused as ONE big rounded blue dome
   3. Hero brand text shimmer (visible animated shine)
   ═══════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   0. FORCE STRIPE MODAL VISIBILITY (every package, same flow)
   ════════════════════════════════════════════ */
html,
body {
  max-width: 100%;
  overflow-x: clip !important;
}
@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden !important;
  }
}

#modal {
  z-index: 9500 !important;            /* above cart drawer (8800) */
}
#modal .modal-box,
#modal .modal-box * {
  /* Override ANY conflicting opacity rule from other CSS files */
}
#modal .modal-box {
  opacity: 1 !important;
  visibility: visible !important;
  animation-fill-mode: forwards !important;
  transform: none !important;          /* clear any leftover translateY/scale */
}
/* Disable ALL transitions on modal during open to prevent fade-out */
#modal[style*="display: flex"] .modal-box,
#modal[style*="display:flex"] .modal-box {
  animation: popUp .3s ease forwards !important;
}

/* ════════════════════════════════════════════
   1b. COMPACT STATIC CERTIFICATIONS GRID (below the animated carousel)
   Premium minimal · auto-wrap · horizontally aligned
   ════════════════════════════════════════════ */
.cert-static-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 24px 8px 8px;
  max-width: 1100px;
  margin: 0 auto;
}
.cert-static-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1.5px solid var(--bd, #E0EAF8);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c, #0A2540);
  /* subtle premium glow — outer + inner */
  box-shadow:
    0 2px 8px rgba(10, 37, 64, .04),
    0 0 0 0 var(--c, #1B5BFF),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .3s cubic-bezier(.2,.8,.2,1),
              box-shadow .3s ease,
              border-color .3s ease;
  white-space: nowrap;
  cursor: default;
  line-height: 1;
  position: relative;
}
.cert-static-badge:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(10, 37, 64, .10),
    0 0 0 4px color-mix(in srgb, var(--c, #1B5BFF) 12%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: var(--c, #1B5BFF);
}
.cert-static-badge .csb-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.cert-static-badge .csb-name {
  letter-spacing: .01em;
  font-weight: 700;
}
.cert-static-badge .csb-check {
  color: #34A853;
  font-weight: 900;
  font-size: 13px;
  margin-left: 2px;
}

/* Mobile: even more compact */
@media (max-width: 768px) {
  .cert-static-grid {
    gap: 7px;
    padding: 18px 4px 4px;
  }
  .cert-static-badge {
    padding: 7px 11px;
    font-size: 11px;
    border-radius: 8px;
  }
  .cert-static-badge .csb-icon { font-size: 14px; }
}

/* ════════════════════════════════════════════
   1. KEEP MARQUEE chips defiling — hide ONLY the 4-stats grid below them
   ════════════════════════════════════════════ */
/* The card stays visible — it hosts the marquee */
.cert-accred-card {
  display: block !important;
  padding-bottom: 16px !important;  /* tighter since stats are gone */
}
/* Marquee stays visible (defiling chips) */
.cert-marquee {
  display: block !important;
  max-width: 100vw !important;
  contain: paint;
}
.cert-marquee-track {
  max-width: none !important;
}
/* Hide ONLY the 4-stats grid (target by inline-style pattern, NOT :last-child
   because the new .cert-static-grid is now last child and must stay visible) */
.cert-accred-card > div[style*="grid-template-columns:repeat(4,1fr)"],
.cert-accred-card > div[style*="grid-template-columns: repeat(4, 1fr)"] {
  display: none !important;
}
/* Smaller padding around section since stats are gone */
#certifications {
  padding-bottom: 50px !important;
}

/* ════════════════════════════════════════════
   2. FUSE NEWSLETTER + FOOTER INTO ONE ROUNDED DOME
   ════════════════════════════════════════════ */
/* Newsletter section: flatten bottom, keep blue */
.nl-sec {
  background: linear-gradient(135deg, #1B5BFF 0%, #0E3FD8 50%, #003399 100%) !important;
  border-radius: 50% 50% 0 0 / 140px 140px 0 0 !important;  /* rounded TOP, square bottom */
  margin-top: 60px;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  position: relative;
  overflow: visible;
  z-index: 1;
}
/* Newsletter highlight for premium feel */
.nl-sec::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 200px;
  background: radial-gradient(ellipse at top, rgba(255,255,255,.18), transparent 70%);
  pointer-events: none;
  border-radius: 50% 50% 0 0 / 140px 140px 0 0;
}

/* Footer: now continuous with newsletter — flat top, same blue gradient */
footer.foot-bar-rounded {
  background: linear-gradient(180deg, #003399 0%, #0E3FD8 100%) !important;
  border-radius: 0 !important;  /* No top rounding — already inherited from newsletter */
  padding-top: 0 !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 1;
}
footer.foot-bar-rounded::before {
  display: none !important;  /* No extra highlight on footer — newsletter has it */
}

/* Ensure no white gap between sections */
.nl-sec + footer,
footer.foot-bar-rounded {
  margin-top: -1px !important;  /* tiny pull-up to eliminate sub-pixel gap */
}

/* Mobile: smaller curve */
@media (max-width: 768px) {
  .nl-sec {
    border-radius: 30% 30% 0 0 / 70px 70px 0 0 !important;
  }
  .nl-sec::after {
    border-radius: 30% 30% 0 0 / 70px 70px 0 0 !important;
    height: 100px;
  }
}

/* ════════════════════════════════════════════
   3. HERO TITLE — VISIBLE SHIMMER on "PUBLIC-MAP"
   ════════════════════════════════════════════ */
/* Strong, NOTICEABLE shimmer for the brand-ish lines */
.hero-h1-premium .hero-line-1,
.hero-h1-premium .hero-line-2 {
  background-size: 200% auto !important;
  animation:
    heroLineReveal 1.4s cubic-bezier(.16, 1, .3, 1) .5s forwards,
    heroShimmerStrong 4.5s linear infinite 2s !important;
}
@keyframes heroShimmerStrong {
  0%   { background-position: -100% 50%; }
  100% { background-position: 200% 50%; }
}

/* Boost the gradient to make shimmer obvious */
.hero-h1-premium .hero-line-1 {
  background: linear-gradient(
    100deg,
    #FFFFFF 0%,
    #FFFFFF 30%,
    #FFD700 45%,
    #FFFFFF 60%,
    #FFFFFF 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hero-h1-premium .hero-line-2 {
  background: linear-gradient(
    100deg,
    #6B95FF 0%,
    #4D7BFF 30%,
    #FFE0A0 45%,
    #4D7BFF 60%,
    #1B5BFF 100%
  ) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Also shimmer on the brand name in nav + footer */
.nav-brand span,
.ft-brand-name {
  background: linear-gradient(
    100deg,
    currentColor 0%,
    currentColor 35%,
    #FFE066 50%,
    currentColor 65%,
    currentColor 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroShimmerStrong 6s linear infinite;
}
