/* Brand styling layered on top of Bootstrap 5. */

.hero {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.captcha-img {
  background: #f1f5f9;
}

/* Make the country-code select sit neatly in the input group. */
#countryCode {
  max-width: 9.5rem;
}

section[id] {
  scroll-margin-top: 70px; /* offset for the sticky navbar on anchor jumps */
}

/* Home-page solution illustrations */
.solution-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.12);
}

/* Product cards */
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f1f5f9;
}

.product-img-placeholder {
  border-bottom: 1px solid #dee2e6;
}

/* Superadmin per-page crawl toggle bar */
.admin-crawl-bar {
  background: #fff3cd;
  border-bottom: 1px solid #ffe69c;
  color: #664d03;
}
.admin-crawl-bar .form-check-input { cursor: pointer; }

/* Product card hover overlay (reveals product information) */
.product-card {
  transition: box-shadow .25s ease, transform .25s ease;
  will-change: transform;
}
.product-card.has-info { cursor: pointer; }
.product-card.has-info:hover,
.product-card.has-info:focus,
.product-card.has-info:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.22) !important;
}
.product-media { overflow: hidden; }
/* Image gently zooms behind the overlay on hover. */
.product-media .product-img {
  transition: transform .4s ease;
}
.product-card.has-info:hover .product-img,
.product-card.has-info:focus-within .product-img {
  transform: scale(1.08);
}
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 43, 92, 0.92);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  overflow: auto;
  display: flex;
  align-items: flex-start;
}
.product-card:hover .product-overlay,
.product-card:focus .product-overlay,
.product-card:focus-within .product-overlay { opacity: 1; visibility: visible; }
/* Content slides up and fades in as the overlay appears. */
.product-overlay-inner {
  padding: 1rem 1.1rem;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .35s ease .05s, opacity .35s ease .05s;
}
.product-card:hover .product-overlay-inner,
.product-card:focus .product-overlay-inner,
.product-card:focus-within .product-overlay-inner {
  transform: translateY(0);
  opacity: 1;
}
.product-info-content { font-size: .9rem; }
.product-info-content p:last-child { margin-bottom: 0; }
.product-info-content a { color: #cfe2ff; }

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-media .product-img,
  .product-overlay,
  .product-overlay-inner { transition: none; }
  .product-card.has-info:hover,
  .product-card.has-info:focus-within { transform: none; }
  .product-card.has-info:hover .product-img { transform: none; }
}

/* WYSIWYG editor */
.wysiwyg-editor {
  min-height: 8rem;
  max-height: 20rem;
  overflow-y: auto;
  height: auto;
}
.wysiwyg-editor:empty::before {
  content: attr(data-placeholder);
  color: #adb5bd;
}
