/* ============================================================
   Techwine — Home page
   ============================================================ */

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: min(88vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: var(--color-teal-dark);
}

.hero__track {
  height: 100%;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* dot-grid over the photo, below the teal overlay text layer */
.hero__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--dotgrid-dark);
  background-size: var(--dotgrid-size);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  max-width: 640px;
  color: var(--text-light);
  padding-top: var(--header-h);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(32px, 4.6vw, 56px);
  color: var(--color-off-white);
  margin-bottom: 20px;
}

.hero__text {
  font-size: 17px;
  font-weight: 500;
  color: rgba(246, 246, 246, 0.85);
  max-width: 520px;
  margin-bottom: 34px;
}

/* Controls */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(246, 246, 246, 0.10);
  color: var(--color-off-white);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero__arrow:hover {
  background: var(--color-yellow);
  color: var(--color-teal-dark);
}

.hero__arrow svg {
  width: 20px;
  height: 20px;
}

.hero__arrow--prev { left: 28px; }
.hero__arrow--next { right: 28px; }

.hero__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(246, 246, 246, 0.35);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero__dot.is-active {
  background: var(--color-yellow);
  transform: scale(1.25);
}

/* ---------- About block ---------- */
.about-section {
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.about-section__brand {
  color: var(--color-yellow-dark);
}

.about-section__head .section-title {
  font-size: clamp(24px, 2.8vw, 34px);
}

.about-section__body p {
  font-size: 16px;
  color: var(--color-teal-light);
  margin-bottom: 20px;
  padding-left: 22px;
  border-left: 3px solid var(--color-yellow);
  border-radius: 2px;
}

.about-section__body p:last-child {
  margin-bottom: 0;
}

/* ---------- Info blocks ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Uniform white cards on the pale-teal band */
.info-grid .category-card {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 51, 52, 0.06);
}

.info-grid .category-card:hover {
  background: #fff;
}

/* ---------- Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* ---------- Featured products ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-teal-dark);
  color: var(--text-light);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--color-yellow);
  font-size: clamp(26px, 3.6vw, 42px);
  max-width: 720px;
  margin: 0 auto 16px;
}

.cta-banner p {
  color: var(--color-teal-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .info-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .categories-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__arrow--prev { left: 14px; }
  .hero__arrow--next { right: 14px; }
}

@media (max-width: 640px) {
  .info-grid,
  .featured-grid,
  .categories-grid,
  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .hero__arrow {
    display: none;
  }
  .hero {
    min-height: 520px;
  }
}
