/* ==========================================================================
   JP Management - Custom Styles (shared across all pages)
   Rebuilt 2026-07 for the redesign: contains only generic, design-system-
   independent helpers. Page layout lives in css/jp-site.css.
   ========================================================================== */

/* --- GTM / Tracking noscript elements --- */
.gtm-noscript-iframe {
  display: none;
  visibility: hidden;
}

/* --- Text & layout utilities --- */
.u-text-center { text-align: center; }
.u-color-white { color: #ffffff; }

/* --- Scroll-reveal animation base (triggered by js/jp-site.js) ---
   Rise + slight scale with an expo ease-out: starts fast, lands gently -
   reads as premium, not bouncy. Respect reduced-motion. */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Staggered reveals for card grids */
.reveal-stagger:nth-child(1) { transition-delay: 0s; }
.reveal-stagger:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger:nth-child(4) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Generic responsive video helpers (used by legacy embeds) --- */
.video-reset {
  border: none;
  padding: 0;
}

.responsive-video {
  width: 100%;
  height: auto;
  max-width: 640px;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

/* ==========================================================================
   Cookie Consent Banner
   GDPR-compliant, minimal, matches JP Management design
   ========================================================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.2em 1.5em;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  border-top: 1px solid rgba(255, 170, 207, 0.3);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
  display: flex;
}

.cookie-banner__text {
  color: #ccc;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 680px;
  flex: 1 1 300px;
}

.cookie-banner__text a {
  color: #ffaacf;
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: 0.6em;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  padding: 0.55em 1.4em;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.cookie-banner__btn:hover {
  transform: translateY(-1px);
}

.cookie-banner__btn--accept {
  background: linear-gradient(135deg, #e3aede, #ffaacf);
  color: #1a1a1a;
}

.cookie-banner__btn--accept:hover {
  box-shadow: 0 4px 16px rgba(255, 170, 207, 0.4);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: #999;
  border: 1px solid #444;
}

.cookie-banner__btn--reject:hover {
  border-color: #888;
  color: #ccc;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    text-align: left;
    padding: 0.6em 0.8em;
    gap: 0.5em;
  }
  .cookie-banner__text {
    font-size: 0.7rem;
    line-height: 1.3;
    flex: 1 1 0;
    min-width: 0;
  }
  .cookie-banner__buttons {
    flex-shrink: 0;
    gap: 0.4em;
    flex-wrap: nowrap;
  }
  .cookie-banner__btn {
    padding: 0.4em 0.8em;
    font-size: 0.7rem;
    min-width: auto;
    white-space: nowrap;
  }
}
