/* ===========================================
   OpenBand Merch — Layout
   =========================================== */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(170deg, #2d3b2d 0%, #4a5d3a 40%, #8b6f47 100%);
  color: #f5f0ea;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-4xl);
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: #f5f0ea;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease 0.2s forwards;
}

.hero__cta {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s ease 0.4s forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease infinite;
  opacity: 0.6;
  color: #f5f0ea;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Categories --- */
.categories {
  background-color: var(--color-bg);
}

.categories__scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-stone) transparent;
  padding-inline: max(var(--container-padding), calc((100% - var(--container-max)) / 2 + var(--container-padding)));
  padding-bottom: var(--space-md);
}

.categories__track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
}

/* --- Featured --- */
.featured {
  background-color: var(--color-bg-section);
}

.featured__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.featured__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
}

/* --- Product Grid --- */
.products {
  background-color: var(--color-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* --- About --- */
.about {
  background-color: var(--color-forest);
  color: #f5f0ea;
}

[data-theme="dark"] .about {
  background-color: #1e2a1e;
}

.about .section-title {
  color: #f5f0ea;
}

.about__text {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: var(--space-3xl);
}

.about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.about__feature h3 {
  color: #f5f0ea;
  margin-bottom: var(--space-sm);
}

.about__feature p {
  opacity: 0.8;
  font-size: var(--fs-small);
}

.about__icon {
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

/* --- Footer --- */
.footer {
  background-color: #1a1a1a;
  color: #a09484;
  padding-block: var(--space-2xl);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: #e8e0d6;
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__links a:hover {
  color: #e8e0d6;
}

.footer__copy {
  font-size: var(--fs-small);
  width: 100%;
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===========================================
   Responsive
   =========================================== */

/* Tablet */
@media (max-width: 900px) {
  .featured__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__features {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }

  .footer__copy {
    text-align: center;
  }
}
