/* ============================================
   SBOit Homepage Styles
   Bootstrap 5.3 companion — custom visuals only
   ============================================ */


/* --- Scroll Animation Base --- */
.hp-step,
.hp-sale-card,
.hp-category-card,
.hp-listing-card,
.hp-pricing-card,
.hp-trust__point {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hp-step.hp-visible,
.hp-sale-card.hp-visible,
.hp-category-card.hp-visible,
.hp-listing-card.hp-visible,
.hp-pricing-card.hp-visible,
.hp-trust__point.hp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.hp-step:nth-child(2),
.hp-sale-card:nth-child(2),
.hp-category-card:nth-child(2),
.hp-listing-card:nth-child(2),
.hp-pricing-card:nth-child(2),
.hp-trust__point:nth-child(2) { transition-delay: 0.08s; }

.hp-step:nth-child(3),
.hp-sale-card:nth-child(3),
.hp-category-card:nth-child(3),
.hp-listing-card:nth-child(3),
.hp-pricing-card:nth-child(3),
.hp-trust__point:nth-child(3) { transition-delay: 0.16s; }

.hp-step:nth-child(4),
.hp-category-card:nth-child(4),
.hp-listing-card:nth-child(4) { transition-delay: 0.24s; }

.hp-category-card:nth-child(5),
.hp-listing-card:nth-child(5) { transition-delay: 0.32s; }

.hp-category-card:nth-child(6),
.hp-listing-card:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .hp-step,
  .hp-sale-card,
  .hp-category-card,
  .hp-listing-card,
  .hp-pricing-card,
  .hp-trust__point {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* --- Section Header --- */
.hp-section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.hp-section-title {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hp-section-title--left {
  text-align: left;
}

.hp-section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 640px;
  margin-inline: auto;
}


/* ============================================
   HERO
   ============================================ */
.hp-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 70vh, 720px);
  display: flex;
  align-items: flex-start;
  padding: clamp(3rem, 5vw, 5rem) 0 0;
}

.hp-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

.hp-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(42, 53, 64, 0.88) 0%,
      rgba(42, 53, 64, 0.72) 25%,
      rgba(42, 53, 64, 0.45) 50%,
      rgba(42, 53, 64, 0.18) 70%,
      rgba(42, 53, 64, 0.08) 85%,
      transparent 100%
    );
}

.hp-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.hp-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74, 124, 155, 0.25);
  border: 1px solid rgba(106, 154, 184, 0.4);
  color: #c8d8e4;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hp-hero__title {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hp-hero__tagline {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0.9;
}

.hp-hero__subtitle {
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.1rem);
  color: #c0cbd4;
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hp-hero__cta {
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
}

.hp-hero__cta--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hp-hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-icon {
  font-size: 1.15em;
  line-height: 1;
}

/* Stats bar -- glassmorphism */
.hp-hero__stats {
  gap: 2rem;
  background: rgba(42, 53, 64, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.25rem 2.5rem;
  max-width: fit-content;
}

.hp-hero__stat-number {
  display: block;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hp-hero__stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.hp-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
}


/* ============================================
   CATEGORY CARDS
   ============================================ */
.hp-category-card {
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  transition: all 0.2s ease;
}

.hp-category-card:hover {
  border-color: var(--primary) !important;
  box-shadow: 0 8px 24px -4px rgba(74, 124, 155, 0.15), 0 4px 8px -2px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  color: var(--text);
}

.hp-category-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

.hp-category-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.hp-category-card:hover .hp-category-card__img img {
  transform: scale(1.05);
}

.hp-category-card__img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.hp-category-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.hp-category-card__arrow {
  font-size: 1.2rem;
  color: var(--text-light);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.hp-category-card:hover .hp-category-card__arrow {
  transform: translateX(4px);
  color: var(--primary);
}


/* ============================================
   HOW IT WORKS
   ============================================ */
.hp-how-it-works {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hp-steps {
  max-width: 680px;
}

.hp-step__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf2f6 0%, #d5e0e8 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8c8d4;
}

.hp-step__connector {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, #b8c8d4, #dce2e7);
  margin: 4px 0;
}

.hp-step__number {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.25rem;
}


/* ============================================
   SALE TYPE CARDS
   ============================================ */
.hp-sale-card {
  border-radius: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-sale-card:hover {
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.hp-sale-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-sale-card--auction .hp-sale-card__icon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}

.hp-sale-card--sealed .hp-sale-card__icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
}

.hp-sale-card--fixed .hp-sale-card__icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.hp-sale-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: #d5e0e8;
  color: #3a6580;
}

.hp-sale-card__badge--neutral {
  background: #f1f5f9;
  color: #475569;
}

.hp-sale-card__feature-item {
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid #f1f5f9;
}

.hp-sale-card__feature-item:last-child {
  border-bottom: none;
}

.hp-check {
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}


/* ============================================
   TRUST & VERIFICATION
   ============================================ */
.hp-trust {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hp-trust__point-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf2f6, #d5e0e8);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8c8d4;
}

/* Trust badge card -- dark gradient */
.hp-trust__badge-card {
  background: linear-gradient(135deg, #2a3540 0%, #3a5060 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  color: #ffffff;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 40px -12px rgba(42, 53, 64, 0.35);
}

.hp-trust__badge-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6a9ab8;
  margin-bottom: 1.25rem;
}

.hp-trust__badge-check {
  position: absolute;
  color: #34d399;
  bottom: -2px;
  right: -8px;
}

.hp-trust__badge-subtitle {
  font-size: 0.9rem;
  color: #9aabb8;
  margin-bottom: 0;
}

.hp-trust__badge-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-trust__badge-stats strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #7ab0cc;
}

.hp-trust__badge-stats span {
  font-size: 0.75rem;
  color: #6b7a87;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}


/* ============================================
   FEATURED LISTING CARDS
   ============================================ */
.hp-listing-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.hp-listing-card:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.hp-listing-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  overflow: hidden;
}

.hp-listing-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-listing-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}

.hp-listing-card__verified {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Listing type badge colors */
.listing-type-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hp-listing-badge--auction {
  background: #4a7c9b;
}

.hp-listing-badge--sealed {
  background: #7c3aed;
}

.hp-listing-badge--fixed {
  background: #059669;
}

.hp-listing-card__price {
  font-size: 1.15rem;
  color: var(--primary);
}

.hp-listing-card__timer {
  font-size: 0.78rem;
  color: var(--warning);
  font-weight: 600;
}


/* ============================================
   PRICING
   ============================================ */
.hp-pricing {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Verification fee callout */
.hp-pricing__verification {
  background: linear-gradient(135deg, #edf2f6 0%, #d5e0e8 100%);
  border: 1px solid #b8c8d4;
  border-radius: 14px;
  padding: 2rem;
  max-width: 780px;
}

.hp-pricing__verification-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg-white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8c8d4;
}

/* Pricing cards */
.hp-pricing-card {
  border-radius: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hp-pricing-card:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.hp-pricing-card--featured {
  border-color: var(--primary) !important;
  border-width: 2px;
  box-shadow: 0 8px 32px -8px rgba(74, 124, 155, 0.18);
  position: relative;
}

.hp-pricing-card__ribbon {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.75rem 0.4rem;
  border-radius: 0 0 6px 6px;
}

.hp-pricing-card__amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}

.hp-pricing-card--featured .hp-pricing-card__amount {
  color: var(--primary);
}

.hp-pricing-card__amount--sliding {
  font-size: 2rem;
  letter-spacing: -0.5px;
}


/* ============================================
   FUTURE SERVICES PILLS
   ============================================ */
.hp-pricing__service {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.hp-pricing__service-icon {
  font-size: 1.2rem;
}


/* ============================================
   CTA / NEWSLETTER
   ============================================ */
.hp-cta {
  background: linear-gradient(135deg, #2a3540 0%, #3a5060 50%, #2a3540 100%);
  color: #ffffff;
}

.hp-cta__content {
  max-width: 640px;
}

.hp-cta__heading {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hp-cta__desc {
  font-size: 1.05rem;
  color: #9aabb8;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hp-cta__btn-primary {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.15s;
}

.hp-cta__btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(74, 124, 155, 0.4);
}

.hp-cta__btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.15s;
}

.hp-cta__btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hp-cta__newsletter {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-cta__newsletter-label {
  color: #9aabb8;
}

.hp-cta__newsletter-form {
  max-width: 440px;
}

.hp-cta__newsletter-input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

.hp-cta__newsletter-input::placeholder {
  color: #6b7a87 !important;
}

.hp-cta__newsletter-input:focus {
  border-color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

.hp-cta__newsletter-note {
  font-size: 0.75rem;
  color: #506070;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* Hero mobile adjustments */
@media (max-width: 768px) {
  .hp-hero {
    min-height: clamp(440px, 60vh, 580px);
  }

  .hp-hero__image img {
    object-position: center 50%;
  }

  .hp-hero__stats {
    gap: 1.25rem;
    padding: 1rem 1.5rem;
  }

  .hp-section-title--left {
    text-align: center;
  }

  .hp-pricing__verification {
    flex-direction: column;
    text-align: center;
    align-items: center !important;
  }

  .hp-cta__newsletter-form {
    flex-direction: column !important;
  }

  .hp-cta__newsletter-form .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hp-hero {
    min-height: clamp(400px, 55vh, 500px);
  }

  .hp-hero__stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
  }

  .hp-trust__badge-card {
    max-width: none;
  }
}
