/* ============================================
   SelfEvents — Homepage Styles (portat din v1 home.css)
   Hero slider, USP strip, category cards, product
   tabs + rail, promo banner / offers slider, invite
   teaser, occasion tiles, stats, testimonials,
   how-it-works, newsletter.
   Mobile-first (≈90% trafic mobil).

   NOTĂ: blocul „announce bar" și regulile `.site-header.scrolled`
   din v1 home.css NU sunt re-copiate aici — ele trăiesc deja în
   `common.css` (vezi D47). Acest fișier conține doar clasele
   specifice paginii de homepage.
   ============================================ */

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transform: scale(1.05);
}

.hero-slide.is-active .hero-bg img {
  animation: heroZoom 8s ease-out forwards;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.14); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(108, 16, 50, 0.88) 0%,
    rgba(186, 34, 87, 0.60) 55%,
    rgba(138, 22, 62, 0.82) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Slide content entrance (only for active slide) */
.hero-slide .hero-eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-sub,
.hero-slide .hero-cta {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active .hero-eyebrow { transition-delay: 0.15s; }
.hero-slide.is-active .hero-title { transition-delay: 0.30s; }
.hero-slide.is-active .hero-sub { transition-delay: 0.45s; }
.hero-slide.is-active .hero-cta { transition-delay: 0.60s; }

.hero-slide.is-active .hero-eyebrow,
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-sub,
.hero-slide.is-active .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

/* Arrows (desktop) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.hero-arrow:hover { background: rgba(255, 255, 255, 0.32); }
.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }

/* ============================================
   USP / REASIGURARE STRIP
   ============================================ */
.usp-strip {
  padding: 0.85rem 1.5rem;
}

.usp-list {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.usp-list::-webkit-scrollbar { display: none; }

.usp-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: rgba(255, 250, 245, 0.85);
  font-size: 0.8rem;
  font-weight: 500;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .usp-list { justify-content: space-between; }
  .usp-item { font-size: 0.875rem; }
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}

.category-card img {
  transition: transform 0.7s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card .category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 41, 38, 0.78) 0%, rgba(45, 41, 38, 0.12) 60%, transparent 100%);
  transition: background 0.4s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to top, rgba(186, 34, 87, 0.78) 0%, rgba(186, 34, 87, 0.18) 60%, transparent 100%);
}

.category-card .category-text {
  transition: transform 0.4s ease;
}

.category-card:hover .category-text {
  transform: translateY(-4px);
}

.cat-tag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.cat-tag-popular { background: linear-gradient(135deg, #C9A87C, #D4BA94); }
.cat-tag-new { background: linear-gradient(135deg, #7D8B6A, #95A580); }

.cat-count {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(45, 41, 38, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.cat-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.category-card:hover .cat-link {
  opacity: 1;
  transform: translateY(0);
}

/* Touch devices have no hover → show the link */
@media (hover: none) {
  .cat-link { opacity: 1; transform: none; }
}

/* ============================================
   PRODUCT TABS + RAIL + COMMERCE CARD
   ============================================ */
.product-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.product-tab {
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7A6F68;
  background: transparent;
  border: 1px solid #E8DED4;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.product-tab:hover { color: #2D2926; border-color: #BA2257; }
.product-tab.is-active { background: #BA2257; border-color: #BA2257; color: #ffffff; }

.product-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-rail.is-hidden { display: none; }

@media (max-width: 1023px) {
  .product-rail {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.5rem;
    padding: 0 1.5rem 0.75rem;
    scrollbar-width: none;
  }
  .product-rail::-webkit-scrollbar { display: none; }
  .product-rail .product-card {
    flex: 0 0 46%;
    scroll-snap-align: start;
  }
}

@media (max-width: 400px) {
  .product-rail .product-card { flex: 0 0 60%; }
}

/* Secondary dark outline button */
.btn-outline-dark {
  border: 1px solid #2D2926;
  color: #2D2926;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background: #2D2926;
  color: #FFFAF5;
}

/* ============================================
   PROMO BANNER (oferta săptămânii)
   ============================================ */
.promo-banner {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, #8F1842 0%, #BA2257 100%);
}

.promo-media {
  position: relative;
  min-height: 220px;
}

.promo-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-body { padding: 2rem 1.5rem; }

@media (min-width: 1024px) {
  .promo-banner { grid-template-columns: 1fr 1fr; }
  .promo-media { min-height: 440px; }
  .promo-body { padding: 3.5rem 3rem; }
}

.promo-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.promo-price-new {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.promo-price-old {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
}

.promo-save {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.promo-countdown {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.cd-unit {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  padding: 0.5rem 0.7rem;
  text-align: center;
  min-width: 54px;
}

.cd-unit span {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.cd-unit small {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   OFFERS SLIDER (oferte sub hero)
   ============================================ */
.offers-slider { position: relative; overflow: hidden; }

.offers-track {
  display: flex;
  align-items: stretch;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-slide { flex: 0 0 100%; min-width: 100%; }
.offer-slide .promo-banner { height: 100%; }

.offers-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.offers-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #E8DED4;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.offers-dot.is-active { width: 26px; background: #BA2257; }

.offers-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: #8F1842;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45, 41, 38, 0.15);
  transition: background 0.25s ease;
}

.offers-arrow:hover { background: #ffffff; }
.offers-prev { left: 0.75rem; }
.offers-next { right: 0.75rem; }

@media (max-width: 1023px) {
  .offers-arrow { display: none; }
}

/* ============================================
   INVITAȚII ONLINE (teaser)
   ============================================ */
.invite-section { background: linear-gradient(180deg, #FFFAF5 0%, #F5EDE4 100%); }

.invite-card { display: block; }

.invite-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #F5EDE4;
  box-shadow: 0 10px 30px rgba(45, 41, 38, 0.08);
}

.invite-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.invite-card:hover .invite-thumb img { transform: scale(1.06); }

.invite-name {
  display: block;
  text-align: center;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #7A6F68;
  transition: color 0.25s ease;
}

.invite-card:hover .invite-name { color: #BA2257; }

/* ============================================
   OCCASION TILES
   ============================================ */
.occasion-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #E8DED4;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.occasion-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(45, 41, 38, 0.08);
  border-color: #BA2257;
}

.occasion-icon { font-size: 2rem; line-height: 1; margin-bottom: 0.4rem; }

.occasion-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2D2926;
}

.occasion-sub { font-size: 0.75rem; color: #7A6F68; }

/* ============================================
   STATS COUNTER
   ============================================ */
.stat-item { position: relative; }

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #E8DED4, transparent);
}

.stat-item:last-child::after { display: none; }

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */
.testimonial-card { position: relative; }

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  line-height: 1;
  color: #C9A87C;
  opacity: 0.25;
  pointer-events: none;
}

/* ============================================
   HOW IT WORKS STEPS
   ============================================ */
.step-connector {
  position: absolute;
  top: 36px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    #E8DED4 0px,
    #E8DED4 6px,
    transparent 6px,
    transparent 12px
  );
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-bg { position: relative; overflow: hidden; }

.newsletter-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 124, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero-slide { min-height: 88vh; }
  .hero-arrow { display: none; }
  .stat-item::after { display: none; }
  .step-connector { display: none; }
}
