/* ==========================================================================
   RIVAL Shoes - Home Page
   ========================================================================== */

/* ---- Hero Landing (top section) ---- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero--landing {
  height: 100vh;
  min-height: 600px;
}

.hero__landing-bg {
  position: absolute;
  inset: 0;
  background: var(--color-black);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: var(--space-md);
}

.hero__title {
  color: var(--color-white);
  font-weight: var(--fw-light);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  font-weight: var(--fw-light);
  max-width: 500px;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  opacity: 0.7;
  z-index: 2;
  transition: opacity var(--duration-fast) var(--ease-out);
  animation: bounceArrow 2s ease-in-out infinite;
}

.hero__scroll-arrow:hover {
  opacity: 1;
}

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

/* White outline button variant */
.btn--white-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--color-white);
}
.btn--white-outline:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

/* ---- Hero Slideshow ---- */

.slideshow {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
}

.slideshow__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.slideshow__slide--active {
  opacity: 1;
  z-index: 1;
}

/* Ken Burns zoom effect */
.slideshow__slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: none;
}

.slideshow__slide--kenburns .slideshow__slide-img {
  animation: kenBurns 7s ease-out forwards;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.slideshow__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

.slideshow__text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  color: var(--color-white);
  max-width: 700px;
  /* Text entrance animation */
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slideshow__text--visible {
  opacity: 1;
}

.slideshow__text--visible .slideshow__heading {
  animation: slideTextIn 0.9s ease-out both;
}

.slideshow__text--visible .slideshow__desc {
  animation: slideTextIn 0.9s 0.2s ease-out both;
}

@keyframes slideTextIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slideshow__heading {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: var(--fw-light);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  color: var(--color-white);
  background: rgba(205, 128, 19, 0.85);
  padding: 0.3em 0.5em;
}

.slideshow__desc {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: var(--fw-light);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
  max-width: 600px;
}

/* Slide progress dots */
.slideshow__progress {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 12px;
}

.slideshow__dot {
  width: 40px;
  height: 3px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background var(--duration-fast) var(--ease-out);
}

.slideshow__dot--active {
  background: var(--color-white);
}

.slideshow__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* ---- Sticky Side CTA ---- */

.side-cta {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-cta__link {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 1.25rem 0.6rem;
  font-family: var(--font-primary);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.side-cta__link--learn {
  background: var(--color-accent);
  color: var(--color-white);
}

.side-cta__link--learn:hover {
  background: var(--color-accent-hover);
  padding-right: 0.9rem;
}

.side-cta__link--contact {
  background: var(--color-black);
  color: var(--color-white);
}

.side-cta__link--contact:hover {
  background: var(--color-gray-600);
  padding-right: 0.9rem;
}

/* ---- Hero background for other pages ---- */

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

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* ---- Services Grid Section ---- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.service-card {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
  transition: all var(--duration-normal) var(--ease-out);
}

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

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  color: var(--color-accent);
}

.service-card__icon svg,
.service-card__icon img {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  color: var(--color-black);
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--color-gray-400);
  line-height: 1.7;
  font-weight: var(--fw-light);
  margin-bottom: var(--space-sm);
}

.service-card__link {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.service-card__link:hover {
  color: var(--color-black);
}

/* ---- Stats Band ---- */

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

.stat__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-light);
  color: var(--color-white);
  line-height: 1;
}

.stat__suffix {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-light);
  color: var(--color-accent);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gray-300);
  margin-top: 0.5rem;
  font-weight: var(--fw-light);
}

/* ---- Brands Ticker ---- */

.brands-ticker {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.brands-ticker__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: brandScroll 25s linear infinite;
}

.brands-ticker:hover .brands-ticker__track {
  animation-play-state: paused;
}

.brands-ticker__item {
  flex-shrink: 0;
  padding: 0 var(--space-lg);
}

.brands-ticker__item img {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.45;
  transition: all var(--duration-normal) var(--ease-out);
}

.brands-ticker__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes brandScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---- CTA Band ---- */

.cta-band {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-band p {
  color: var(--color-gray-300);
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-weight: var(--fw-light);
}

/* ---- Responsive ---- */

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

@media (max-width: 768px) {
  .hero--landing {
    min-height: 500px;
  }

  .slideshow {
    height: 70vh;
    min-height: 400px;
  }

  .slideshow__text {
    padding: var(--space-md) var(--space-sm) var(--space-xl);
  }

  .slideshow__heading {
    font-size: 1.5rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

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

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

  .brands-ticker__item {
    padding: 0 var(--space-md);
  }

  .brands-ticker__item img {
    width: 90px;
  }

  .cta-band {
    padding: var(--space-lg) 0;
  }

  /* Side CTA smaller on mobile */
  .side-cta__link {
    font-size: 0.6rem;
    padding: 0.8rem 0.4rem;
  }
}

@media (max-width: 480px) {
  .side-cta {
    display: none;
  }
}
