/* ============================================
   Awards List — 1:1 Figma spec (dorEYMOa6pFm)
   ============================================ */

.awards-list {
  padding-top: clamp(20px, 2.0833333333vw, 40px);
  padding-bottom: clamp(40px, 5.2083333333vw, 100px);
  position: relative;
}

.awards-list__subtitle {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: rgba(47, 54, 36, 0.7);
  margin-bottom: 30px;
}

/* ---------- Year filter strip (pills #fafaf9) ---------- */
.awards-list__years {
  list-style: none;
  margin: 0 auto clamp(60px, 6.25vw, 120px);
  max-width: 1670px;
  padding: 36px clamp(20px, 4.1666666667vw, 80px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 15px;
}
.awards-list__years > li {
  list-style: none;
}
.awards-list__year-btn {
  background: #fafaf9;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-family: "trajan-pro-3", serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #2f3624;
  padding: 20px 15px;
  line-height: 19.5px;
  position: relative;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.awards-list__year-btn:hover {
  background: #f0eee8;
}
.awards-list__year-btn.is-active {
  background: #2f3624;
  color: #fafaf9;
  border-color: #2f3624;
}

/* ---------- Awards cards wrapper + vertical line ---------- */
.awards-list__items {
  display: flex;
  flex-direction: column;
  gap: clamp(50px, 4.7916666667vw, 92px);
  position: relative;
  max-width: 1592px;
  margin: 0 auto;
  padding-left: clamp(20px, 1.6666666667vw, 32px);
  padding-right: clamp(20px, 1.6666666667vw, 32px);
}
/* Vertical line — runs through center of year badges, gradient fade per Figma
   Top: rgba(47,54,36,0.40) → Bottom: transparent (fades around last card row) */
.awards-list__items::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 0;
  /* Badge is 64px wide, line at center → 32px from left padding */
  left: calc(clamp(20px, 1.6666666667vw, 32px) + 32px);
  width: 1px;
  background: linear-gradient(
    to bottom,
    rgba(47, 54, 36, 0.4) 0%,
    rgba(47, 54, 36, 0.2) 60%,
    rgba(47, 54, 36, 0.05) 85%,
    rgba(47, 54, 36, 0) 100%
  );
  pointer-events: none;
}
.awards-card {
  scroll-margin-top: 140px;
  position: relative;
}

/* Card header — badge + (competition + year) — Figma gap 18, height 91 */
.awards-card__header {
  margin-bottom: clamp(40px, 4.1666666667vw, 80px);
  display: flex;
  align-items: stretch;
  gap: 18px;
  min-height: 91px;
}
.awards-card__badge {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(47, 54, 36, 0.4);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "trajan-pro-3", serif;
  font-size: 17px;
  font-weight: 400;
  color: #2f3624;
  letter-spacing: -0.34px;
  line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(39, 47, 15, 0.25);
  align-self: center;
  position: relative;
  z-index: 1;
}
.awards-card__heading {
  flex: 1;
  border-bottom: 1px solid rgba(47, 54, 36, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 91px;
  padding: 4px 0 12px;
}
.awards-card__competition {
  font-family: "trajan-pro-3", serif;
  font-size: 10.8px;
  letter-spacing: 3.52px;
  line-height: 16.5px;
  text-transform: uppercase;
  color: rgba(47, 54, 36, 0.6);
  margin: 0 0 4px 0;
  font-weight: 700;
}
.awards-card__year {
  font-family: "trajan-pro-3", serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1.92px;
  line-height: 48px;
  color: #2f3624;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  margin: 0;
}

/* ---------- Wine grid — Figma: 4 cards × 287, gap 32, offset 82px right of badge column ---------- */
.awards-card__wines {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Shift right of badge column (64 badge + 18 gap = 82px) */
  margin-left: calc(64px + 18px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 287px));
  gap: 32px;
  justify-content: start;
}

/* Wine card */
.awards-wine {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.awards-wine__image {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(360px, 25.6770833333vw, 493px);
  margin: 0;
}
.awards-wine__image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.18));
  transition: transform 0.45s ease;
}
.awards-wine:hover .awards-wine__image img {
  transform: translateY(-6px);
}
.awards-wine__image a {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.awards-wine__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding-top: 20px;
  border-top: 2px solid #9ea1a7;
  text-align: center;
}

/* Meta row: "crno vino · 2024" — Jost 12px #999 */
.awards-wine__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #999999;
  line-height: 15px;
  margin: 0;
}
.awards-wine__meta > span + span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1px;
  background: #999999;
  margin-right: 9px;
  vertical-align: middle;
}
.awards-wine__category {
  color: #999999;
}
.awards-wine__year {
  color: #999999;
  font-weight: 400;
}

/* Wine name — Trajan Pro 3 22px, mixed case */
.awards-wine__name {
  font-family: "trajan-pro-3", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #2f3624;
  margin: 0;
  line-height: 22px;
}
.awards-wine__name a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.awards-wine__name a:hover {
  opacity: 0.7;
}

/* Vintage — Jost 13px */
.awards-wine__vintage {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(47, 54, 36, 0.7);
  margin: 0;
  line-height: 19px;
}

/* Medal label — Trajan Pro 3 10px (NOT a pill, just text) */
.awards-wine__label {
  font-family: "trajan-pro-3", serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #796220;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: inline-block;
  line-height: 15px;
}

/* Description (cuvée) — Jost 12px */
.awards-wine__description {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(47, 54, 36, 0.65);
  margin: 0;
  line-height: 17px;
}

/* Cart button — uses site's existing .filled__button class.
   Local overrides only for layout (smaller padding to fit card width). */
.awards-wine__cart {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.awards-wine__cart-btn.filled__button {
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 2px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.awards-wine__cart-btn.filled__button svg {
  width: 14px;
  height: 14px;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 1200px) {
  .awards-card__wines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media only screen and (max-width: 991px) {
  .awards-card__wines {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 60px;
  }
  .awards-list__years {
    gap: 10px 12px;
  }
}
@media only screen and (max-width: 767px) {
  .awards-card__wines {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 0;
    gap: 24px 18px;
  }
  .awards-card__header {
    gap: 14px;
    min-height: 72px;
  }
  .awards-card__badge {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
  .awards-card__year {
    font-size: 36px;
    line-height: 36px;
  }
  .awards-list__items::before {
    left: 30px;
  }
  .awards-list__items {
    padding-left: 0px;
    padding-right: 0px;
  }
  .awards-list__years {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 24px 16px;
  }
  .awards-list__year-btn {
    white-space: nowrap;
    padding: 14px 12px;
  }
}
@media only screen and (max-width: 480px) {
  .awards-list__items::before {
    display: none;
  }
  .awards-card__wines {
    grid-template-columns: 1fr 1fr;
  }
}
