/* ============================================
   AMINTOYS — HOME PAGE
   "Factory of Wonder"
   ============================================ */

/* ---- HERO SLIDER ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--clr-navy);
}
.hero__slider {
  display: flex;
  transition: transform 0.7s var(--ease-out);
}
.hero__slide {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  padding: var(--sp-16) 0;
}

/* Bold, saturated factory gradients */
.hero__slide:nth-child(1) {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8E5E 40%, #FFCE00 100%);
}
.hero__slide:nth-child(2) {
  background: linear-gradient(135deg, #151B2B 0%, #1E263A 40%, #2B8FFF 100%);
}
.hero__slide:nth-child(3) {
  background: linear-gradient(135deg, #FFCE00 0%, #FF6B35 50%, #FF3D4F 100%);
}

/* Conveyor belt diagonal stripe pattern overlay */
.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,0.03) 20px,
    rgba(255,255,255,0.03) 22px
  );
  z-index: 1;
}
/* Bottom factory floor fade */
.hero__slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(21,27,43,0.15), transparent);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--clr-navy);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-yellow);
  margin-bottom: var(--sp-5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-3d-navy);
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0,0,0,0.15);
}
.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--sp-8);
  line-height: var(--lh-relaxed);
  max-width: 500px;
  font-weight: var(--fw-normal);
}
.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero__actions .btn { font-size: var(--fs-md); padding: 16px 32px; }

/* Decorative shapes */
.hero__decor { position: absolute; z-index: 1; pointer-events: none; }
.hero__decor--dots {
  right: 6%;
  top: 10%;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
  background-size: 16px 16px;
}
.hero__decor--circle {
  right: 3%;
  bottom: 8%;
  width: 300px;
  height: 300px;
  border: 4px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}

/* Slider controls */
.hero__dots {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--sp-2);
}
.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all var(--dur-normal) ease;
  border: none;
}
.hero__dot.active {
  background: var(--clr-yellow);
  width: 36px;
  box-shadow: var(--shadow-3d-sm);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  transition: all var(--dur-fast) ease;
  cursor: pointer;
  box-shadow: var(--shadow-3d-sm);
}
.hero__arrow:hover { background: rgba(255,255,255,0.25); transform: translateY(calc(-50% - 2px)); }
.hero__arrow:active { transform: translateY(calc(-50% + 2px)); box-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.hero__arrow--prev { left: var(--sp-6); }
.hero__arrow--next { right: var(--sp-6); }

/* ---- CATEGORIES GRID ---- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-5);
}
.category-card {
  text-align: center;
  padding: var(--sp-6) var(--sp-3);
  border-radius: var(--radius-xl);
  background: var(--clr-white);
  border: 2px solid var(--clr-gray-200);
  box-shadow: var(--shadow-3d-sm);
  transition: all var(--dur-fast) ease;
  cursor: pointer;
  position: relative;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.08), 0 12px 30px rgba(21,27,43,0.1);
  border-color: var(--clr-yellow);
}
.category-card:active { transform: translateY(-1px); box-shadow: 0 2px 0 rgba(0,0,0,0.08); }

.category-card__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--clr-yellow-bg);
  transition: all var(--dur-normal) var(--ease-bounce);
}
.category-card:hover .category-card__icon {
  transform: scale(1.15) rotate(-5deg);
  background: var(--clr-yellow);
  box-shadow: 0 4px 12px rgba(255,206,0,0.3);
}
.category-card__name {
  font-family: var(--ff-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--clr-navy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) { .categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .categories-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); } }
@media (max-width: 480px)  {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { padding: var(--sp-4) var(--sp-2); }
  .category-card__icon { width: 48px; height: 48px; font-size: 1.4rem; }
}

/* ---- NEW ARRIVALS SCROLL ---- */
.arrivals-scroll {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-4) var(--sp-2);
  scrollbar-width: none;
}
.arrivals-scroll::-webkit-scrollbar { display: none; }

/* ---- PRODUCT CARD — 3D toy box style ---- */
.product-card {
  flex: 0 0 270px;
  scroll-snap-align: start;
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--clr-gray-200);
  box-shadow: 0 3px 0 var(--clr-gray-200), var(--shadow-card);
  transition: all var(--dur-fast) ease;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 0 var(--clr-gray-200), var(--shadow-card-hover);
  border-color: var(--clr-blue);
}
.product-card:active { transform: translateY(-2px); }

.product-card__image {
  position: relative;
  height: 210px;
  background: var(--clr-gray-100);
  overflow: hidden;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.product-card:hover .product-card__image img { transform: scale(1.08); }

.product-card__badges {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
}
.product-card__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.product-card__name {
  font-family: var(--ff-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  color: var(--clr-navy);
  margin-bottom: var(--sp-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__article {
  font-size: var(--fs-xs);
  color: var(--clr-gray-500);
  margin-bottom: var(--sp-3);
  font-family: var(--ff-mono, var(--ff-body));
  letter-spacing: 0.03em;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__cta {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--clr-orange);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: gap var(--dur-normal) ease;
}
.product-card:hover .product-card__cta { gap: var(--sp-2); color: var(--clr-orange-dark); }

/* ---- ABOUT SECTION ---- */
.about-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.about-home__content h2 { margin-bottom: var(--sp-6); }
.about-home__content p { color: var(--clr-text-light); line-height: var(--lh-relaxed); }

.about-home__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.stat-card {
  text-align: center;
  padding: var(--sp-5);
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  border: 2px solid var(--clr-gray-200);
  box-shadow: var(--shadow-3d-sm);
  transition: all var(--dur-fast) ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  border-color: var(--clr-orange);
}
.stat-card__number {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  color: var(--clr-orange);
  line-height: 1;
}
.stat-card__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  margin-top: var(--sp-1);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-home__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--clr-gray-200);
}
.about-home__image img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }

@media (max-width: 768px) {
  .about-home { grid-template-columns: 1fr; gap: var(--sp-8); }
  .about-home__image { order: -1; }
  .about-home__image img { min-height: 240px; }
}

/* ---- WHY CHOOSE US — feature cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}
.feature-card {
  text-align: center;
  padding: var(--sp-8) var(--sp-5);
  border-radius: var(--radius-xl);
  background: var(--clr-white);
  border: 2px solid var(--clr-gray-200);
  box-shadow: var(--shadow-3d-sm);
  transition: all var(--dur-fast) ease;
  position: relative;
  overflow: hidden;
}
/* Colored top bar — like toy packaging labels */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--clr-yellow);
  transition: height var(--dur-normal) ease;
}
.feature-card:nth-child(1)::before { background: var(--clr-orange); }
.feature-card:nth-child(2)::before { background: var(--clr-blue); }
.feature-card:nth-child(3)::before { background: var(--clr-green); }
.feature-card:nth-child(4)::before { background: var(--clr-red); }

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 0 rgba(0,0,0,0.05), var(--shadow-card-hover);
  border-color: var(--clr-yellow);
}
.feature-card:hover::before { height: 6px; }

.feature-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  margin: 0 auto var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all var(--dur-normal) var(--ease-bounce);
}
/* Color-coded icon backgrounds to match top bar */
.feature-card:nth-child(1) .feature-card__icon { background: var(--clr-orange-light); }
.feature-card:nth-child(2) .feature-card__icon { background: var(--clr-blue-light); }
.feature-card:nth-child(3) .feature-card__icon { background: var(--clr-green-light); }
.feature-card:nth-child(4) .feature-card__icon { background: var(--clr-red-light); }

.feature-card:hover .feature-card__icon { transform: scale(1.1) rotate(5deg); }

.feature-card__title {
  font-family: var(--ff-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--clr-navy);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.feature-card__text {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  line-height: var(--lh-relaxed);
}

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

/* ---- VIDEO SECTION ---- */
.video-section__player {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  max-width: 880px;
  margin: 0 auto var(--sp-8);
  background: var(--clr-gray-800);
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--clr-gray-300);
}
.video-section__player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity var(--dur-normal) ease;
}
.video-section__player:hover img { opacity: 0.55; }
.video-section__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--clr-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  box-shadow: var(--shadow-3d-red), 0 0 0 8px rgba(255,61,79,0.15);
  transition: all var(--dur-fast) ease;
  cursor: pointer;
}
.video-section__play:hover {
  transform: translate(-50%, calc(-50% - 3px));
  box-shadow: var(--shadow-3d-red), 0 0 0 14px rgba(255,61,79,0.1);
}
.video-section__play:active {
  transform: translate(-50%, calc(-50% + 2px));
  box-shadow: 0 1px 0 #CC2233;
}

.video-thumbs {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}
.video-thumb {
  width: 150px;
  height: 85px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--clr-gray-200);
  transition: all var(--dur-fast) ease;
  opacity: 0.5;
  box-shadow: var(--shadow-3d-sm);
}
.video-thumb.active, .video-thumb:hover {
  border-color: var(--clr-red);
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 4px 0 rgba(0,0,0,0.08);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- PARTNERS ---- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-5);
  margin-bottom: var(--sp-10);
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--clr-gray-200);
  box-shadow: var(--shadow-3d-sm);
  transition: all var(--dur-fast) ease;
  min-height: 90px;
}
.partner-logo:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.06);
  border-color: var(--clr-orange);
}
.partner-logo span {
  font-family: var(--ff-body);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-lg);
  color: var(--clr-navy);
  text-transform: uppercase;
}

/* ---- NEWS CARDS ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.news-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--clr-white);
  border: 2px solid var(--clr-gray-200);
  box-shadow: 0 3px 0 var(--clr-gray-200), var(--shadow-card);
  transition: all var(--dur-fast) ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 0 var(--clr-gray-200), var(--shadow-card-hover);
  border-color: var(--clr-blue);
}
.news-card__image { height: 190px; overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.news-card:hover .news-card__image img { transform: scale(1.06); }
.news-card__body { padding: var(--sp-5); }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--clr-gray-500);
  margin-bottom: var(--sp-3);
}
.news-card__tag {
  background: var(--clr-navy);
  color: var(--clr-yellow);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-bold);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.news-card__title {
  font-family: var(--ff-body);
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--clr-navy);
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--dur-fast) ease;
}
.news-card:hover .news-card__title { color: var(--clr-blue); }
.news-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

@media (max-width: 768px) { .news-grid { grid-template-columns: 1fr; } }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--clr-navy);
  border-radius: var(--radius-2xl);
  padding: var(--sp-12) var(--sp-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--clr-navy-light);
}
/* Conveyor stripe accent */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-toyshelf);
}
/* Gear decoration */
.cta-banner::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  border: 8px solid rgba(255,206,0,0.06);
  border-radius: 50%;
}
.cta-banner__content { position: relative; z-index: 1; }
.cta-banner__title { font-size: var(--fs-2xl); color: var(--clr-white); margin-bottom: var(--sp-3); }
.cta-banner__text { color: rgba(255,255,255,0.6); font-size: var(--fs-md); margin-bottom: 0; }
.cta-banner__action { position: relative; z-index: 1; flex-shrink: 0; }

@media (max-width: 768px) {
  .cta-banner { flex-direction: column; text-align: center; padding: var(--sp-8) var(--sp-6); }
}

/* ---- HERO RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero__slide { min-height: 420px; padding: var(--sp-10) 0; }
  .hero__actions .btn { padding: 12px 24px; font-size: var(--fs-sm); }
  .hero__arrow { width: 36px; height: 36px; }
  .hero__decor--dots, .hero__decor--circle { display: none; }
}
@media (max-width: 480px) { .hero__slide { min-height: 380px; } }
