/* Storefront Home Page Styles */
.hero-banner-section {
  position: relative;
  width: 100%;
  height: fit-content;
  max-height: 900px;
  overflow: hidden;
  background: #0f172a;
}

.hero-banner-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  z-index: 1;
}

.hero-banner-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-banner-slide img {
  width: 100%;
  height: 900px;
  object-fit: cover;
  display: block;
}

.hero-banner-slide picture {
  display: block;
  width: 100%;
}

.hero-banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
}

.hero-banner-section:hover .hero-banner-btn {
  opacity: 1;
}

.hero-banner-btn:hover {
  background: var(--brand-800);
  transform: translateY(-50%) scale(1.08);
}

.hero-banner-prev { left: 1.5rem; }
.hero-banner-next { right: 1.5rem; }

.hero-banner-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-banner-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.hero-banner-dots .dot.active {
  background: #fbbf24;
  width: 24px;
  border-radius: 12px;
}

/* ═══ Desktop/Mobile Track Switching ═══ */
.hero-banner-track--mobile,
.hero-banner-dots--mobile {
  display: none;
}

@media (max-width: 767px) {
  /* When mobile track exists, hide desktop and show mobile */
  .hero-banner-section:has(.hero-banner-track--mobile) .hero-banner-track--desktop,
  .hero-banner-section:has(.hero-banner-track--mobile) .hero-banner-dots--desktop {
    display: none;
  }
  .hero-banner-track--mobile,
  .hero-banner-dots--mobile {
    display: block;
  }
  .hero-banner-dots--mobile {
    display: flex;
  }
}

/* Service commitments */
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.value-prop-card {
  min-width: 0;
  padding: 1.75rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Occasions Grid */
.occasions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.occasion-card-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  display: block;
}

.occasion-card-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.occasion-card-cell:hover img {
  transform: scale(1.06);
}

.occasion-card-cell .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.occasion-card-cell h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Process Vertical Timeline */
.process-timeline-section {
  padding: 4rem 0 5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.timeline-wrapper {
  position: relative;
  max-width: 960px;
  margin: 3.5rem auto 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-800) 0%, #b45309 100%);
  transform: translateX(-50%);
}

.timeline-step-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.timeline-step-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-900);
  color: #fbbf24;
  border: 3px solid #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(var(--brand-900-rgb),0.2);
  z-index: 2;
}

.timeline-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.timeline-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 991px) {
  .occasions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .occasions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .occasion-card-cell {
    border-radius: 10px;
  }
  .occasion-card-cell .overlay {
    padding: 0.75rem;
  }
  .occasion-card-cell h3 {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  .value-props-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .value-prop-card {
    padding: 1.25rem 0.75rem;
  }
  .value-prop-card h3 {
    font-size: 0.92rem !important;
  }
  .value-prop-card > div,
  .value-prop-card > p {
    font-size: 0.78rem !important;
  }
  .hero-banner-section {
    max-height: none;
  }
  .hero-banner-slide img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
  .timeline-line {
    left: 20px;
  }
  .timeline-badge {
    left: 20px;
  }
  .timeline-step-item {
    grid-template-columns: 1fr;
    padding-left: 50px;
    gap: 1.5rem;
  }
}

/* Media Text / WOW Gift Responsive Section */
.media-text-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Reversed layout: Media left, Content right */
.media-text-container.media-text-reverse .media-text-card {
  order: 2;
}
.media-text-container.media-text-reverse .media-text-video {
  order: 1;
}

@media (max-width: 991px) {
  .media-text-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .media-text-card {
    padding: 1.5rem !important;
  }
  /* On mobile, reset order — always content first, media second */
  .media-text-container.media-text-reverse .media-text-card {
    order: unset;
  }
  .media-text-container.media-text-reverse .media-text-video {
    order: unset;
  }
}
