/**
 * Product Header paragraph (e.g. iNap landing).
 * Two-column hero on desktop (>=992px); stacks + reorders on mobile (see the
 * inline JS in paragraph--product-header.html.twig that clones the visual
 * under the stats row at <=768px).
 */

.product-header {
  position: relative;
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, #f6f1ff 0%, #ffffff 100%);
  overflow: hidden;
}
.product-header .container { position: relative; z-index: 2; }

/* === Left column === */
.product-header__content { max-width: 540px; }

.product-header .stats-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.product-header .stat-item {
  flex: 1 1 0;
  min-width: 140px;
}
.product-header .stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: #9e48ec;
}
.product-header .stat-item.secondary .stat-number { color: #111; }
.product-header .stat-number .field { display: inline; }
.product-header .stat-text {
  font-size: 0.875rem;
  color: #555;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.product-header .product-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5rem;
}
.product-header .product-title .field,
.product-header .product-title p { display: inline; margin: 0; }

.product-header .product-subtitle:empty { display: none; }
.product-header .product-subtitle {
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  margin: 0 0 0.75rem;
}

.product-header .product-description {
  color: #444;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.product-header .product-description h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}
.product-header .product-description p { margin: 0.5rem 0 0; color: #555; }

.product-header .cta-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.product-header .cta-buttons a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-header .cta-primary a {
  background: #9e48ec;
  color: #fff;
}
.product-header .cta-primary a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(158, 72, 236, .35);
}
.product-header .cta-secondary a {
  background: #fff;
  color: #9e48ec;
  border: 1px solid #9e48ec;
}
.product-header .cta-secondary a:hover {
  background: #9e48ec;
  color: #fff;
}

/* === Right column === */
.product-header__visual {
  position: relative;
  text-align: center;
  min-height: 300px;
}
.product-header .product-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.product-header .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.product-header .play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #9e48ec;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform .15s ease;
}
.product-header .play-btn:hover { transform: scale(1.08); }
/* Drupal renders internal:# / empty link as href="" — hide a useless play btn. */
.product-header .play-btn[href=""],
.product-header .play-btn[href="#"] { display: none; }

.product-header .testimonial {
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  position: absolute;
  bottom: -10px;
  right: 0;
  max-width: 320px;
  z-index: 2;
}
.product-header .testimonial__text {
  font-size: 0.95rem;
  color: #333;
  font-style: italic;
  line-height: 1.4;
}
.product-header .testimonial__text p { margin: 0; }
.product-header .testimonial__author {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9e48ec;
  margin-top: 0.5rem;
}
.product-header .testimonial__stats {
  font-size: 0.78rem;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  line-height: 1.4;
}

/* === Tablet: Bootstrap col-lg-* already stacks at <992px === */
@media (max-width: 991.98px) {
  .product-header { padding: 2.5rem 0; }
  .product-header__content { max-width: none; }
  .product-header__visual { margin-top: 2rem; }
  .product-header .testimonial {
    position: static;
    margin: 1.5rem auto 0;
    max-width: 480px;
  }
}

/* === Mobile (<=768px): JS clones .product-header__visual into the content
   column under .stats-row and adds .mobile-reorganized to .product-header.
   The cloned visual lives inside .product-header__content. === */
@media (max-width: 768px) {
  .product-header { padding: 2rem 0; }
  .product-header .product-title { font-size: 1.6rem; }
  .product-header .product-description h4 { font-size: 1.15rem; }
  .product-header .stats-row { gap: 1rem; margin-bottom: 1.25rem; }
  .product-header .stat-number { font-size: 1.6rem; }

  .product-header.mobile-reorganized .product-header__content .product-header__visual {
    position: static;
    margin: 1rem 0 1.25rem;
    min-height: 0;
  }
  .product-header.mobile-reorganized .product-header__content .product-image img {
    max-width: 70%;
  }
  .product-header.mobile-reorganized .product-header__content .testimonial {
    position: static;
    max-width: none;
    margin: 1rem 0 0;
  }
  .product-header.mobile-reorganized .product-header__content .play-button { display: none; }

  .product-header .cta-buttons a { width: 100%; text-align: center; }
}
