/* Wins / social proof gallery */

.wins-page {
  --wins-max: 1200px;
  color: #2c2118;
}

.wins-hero {
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(98, 131, 57, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(198, 117, 17, 0.06), transparent 50%),
    #fff;
  border-bottom: 1px solid #d9c9a8;
  padding: 2rem 0 2.25rem;
}

.wins-wrap {
  max-width: var(--wins-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .wins-wrap {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.wins-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c67511;
  margin: 0 0 0.65rem;
}

.wins-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.35rem;
  max-width: 18ch;
}

.wins-hero-sub {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #628339;
  line-height: 1.25;
}

.wins-hero-lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #5c4a3a;
}

.wins-hero-count {
  margin: 1.35rem 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #c67511; /* brand orange — matches kickers / social-proof accent */
}

/* In normal page flow (not sticky) so it doesn't eat mobile viewport while browsing cards */
.wins-toolbar {
  position: relative;
  background: #f8f4eb;
  border-bottom: 1px solid rgba(217, 201, 168, 0.85);
  padding: 0.75rem 0 0.9rem;
}

.wins-toolbar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Search */
.wins-search-wrap {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto 0.15rem;
}
.wins-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
}
.wins-search-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.72rem 3.15rem 0.72rem 1rem;
  border: 1.5px solid rgba(98, 131, 57, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #2c2118;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  outline: none;
  box-shadow: 0 1px 0 rgba(44, 33, 24, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.wins-search-input::-webkit-search-decoration,
.wins-search-input::-webkit-search-cancel-button,
.wins-search-input::-webkit-search-results-button,
.wins-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.wins-search-input::-ms-clear,
.wins-search-input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}
.wins-search-input::placeholder {
  color: #8a7a68;
  font-weight: 450;
  opacity: 0.9;
}
.wins-search-input:focus {
  border-color: #628339;
  box-shadow: 0 0 0 3px rgba(98, 131, 57, 0.16);
}
.wins-search-clear {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #628339;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.wins-search-clear svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}
.wins-search-clear.is-visible {
  display: inline-flex;
}
.wins-search-clear:hover {
  color: #4f6a2e;
  background: rgba(98, 131, 57, 0.1);
}
@media (min-width: 768px) {
  .wins-search-wrap {
    max-width: 28rem;
    margin-left: 0;
    margin-right: 0;
  }
  .wins-search-input {
    font-size: 0.95rem;
    padding: 0.62rem 3.05rem 0.62rem 1rem;
  }
}

.wins-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.wins-filter-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7a68;
}

.wins-filter-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5c4a3a;
}

/* Filter chips: All is always first (left); row scrolls horizontally */
.wins-filters-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.wins-filters-scroller {
  position: relative;
  min-width: 0;
  padding-inline: 3.1rem;
}
.wins-filter-arrow {
  display: inline-flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3.15rem;
  height: 3.15rem;
  border: 1.75px solid #d9c9a8;
  border-radius: 999px;
  background: #fff;
  color: #2c2118;
  box-shadow: 0 8px 20px rgba(44, 33, 24, 0.12);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.wins-filter-arrow svg {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
}
.wins-filter-arrow:hover:not(:disabled) {
  background: #628339;
  border-color: #628339;
  color: #fff;
}
.wins-filter-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.wins-filter-arrow--prev { left: 0; }
.wins-filter-arrow--next { right: 0; }
@media (min-width: 700px) {
  .wins-filters-scroller {
    padding-inline: 3.6rem;
  }
  .wins-filter-arrow {
    width: 3.45rem;
    height: 3.45rem;
  }
  .wins-filter-arrow svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}

.wins-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  direction: ltr;
  width: 100%;
  min-width: 0;
  padding: 0.2rem 0.05rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  /* Hide native scrollbar — we draw a permanent custom one below */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.wins-filters::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

/* Always-visible custom scrollbar track (mobile + desktop) */
.wins-scroll-bar {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(98, 131, 57, 0.18);
  border: 1px solid rgba(98, 131, 57, 0.28);
  box-shadow: inset 0 1px 2px rgba(44, 33, 24, 0.06);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* Make it obvious this is a scrubber for the chips */
  cursor: pointer;
  touch-action: none;
}

.wins-scroll-thumb {
  position: absolute;
  top: 2px;
  left: 0;
  height: calc(100% - 4px);
  min-width: 28%;
  border-radius: 999px;
  background: linear-gradient(180deg, #7a9e4a 0%, #628339 55%, #4f6a2e 100%);
  box-shadow: 0 1px 3px rgba(44, 33, 24, 0.2);
  transition: left 0.05s linear;
  pointer-events: none;
}

@media (max-width: 767px) {
  .wins-scroll-bar {
    height: 18px; /* big, always-on mobile target */
  }
  .wins-scroll-thumb {
    min-width: 32%;
  }
}

.wins-scroll-hint {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #8a7a68;
  letter-spacing: 0.02em;
  text-align: left;
  padding-left: 0.1rem;
}

.wins-scroll-hint[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .wins-scroll-hint {
    display: none !important; /* desktop: bar alone is enough */
  }
}

.wins-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #d9c9a8;
  background: #fff;
  color: #3f2a1d;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.8rem 0.42rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.wins-chip:hover {
  border-color: #628339;
  color: #628339;
}

.wins-chip.is-active {
  background: #628339;
  border-color: #628339;
  color: #fff;
  box-shadow: 0 4px 12px rgba(98, 131, 57, 0.25);
}

.wins-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(44, 33, 24, 0.08);
  color: inherit;
}

.wins-chip.is-active .wins-chip-count {
  background: rgba(255, 255, 255, 0.22);
}

.wins-clear-filter {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #628339;
  background: #fff;
  color: #628339;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  min-height: 2.85rem;
  box-shadow: 0 2px 8px rgba(44, 33, 24, 0.06);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.wins-clear-filter:hover {
  background: #628339;
  color: #fff;
  border-color: #628339;
}

.wins-clear-filter:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .wins-clear-filter {
    width: 100%;
    font-size: 1.05rem;
    padding: 0.85rem 1.25rem;
    min-height: 3.15rem;
  }
}

.wins-section {
  padding: 1.75rem 0 4rem;
}

/* Masonry columns */
.wins-masonry {
  column-count: 1;
  column-gap: 1rem;
}
@media (min-width: 560px) {
  .wins-masonry {
    column-count: 2;
    column-gap: 1.15rem;
  }
}
@media (min-width: 900px) {
  .wins-masonry {
    column-count: 3;
    column-gap: 1.25rem;
  }
}
@media (min-width: 1200px) {
  .wins-masonry {
    column-count: 4;
  }
}

.wins-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 1.1rem;
  background: #1c1c1e;
  border: 1px solid rgba(44, 33, 24, 0.1);
  border-radius: 0.95rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(44, 33, 24, 0.06);
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  padding: 0;
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  font: inherit;
}

.wins-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(44, 33, 24, 0.12);
}

.wins-card.is-featured {
  box-shadow:
    0 0 0 2px rgba(98, 131, 57, 0.35),
    0 10px 28px rgba(44, 33, 24, 0.1);
}

.wins-card img,
.wins-card video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  background: #111;
}

.wins-card-meta {
  background: #fff;
  padding: 0.65rem 0.8rem 0.75rem;
  border-top: 1px solid #efe6d4;
}

.wins-card-name {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2c2118;
  letter-spacing: -0.01em;
}
.wins-card-name.is-anonymous {
  font-weight: 600;
  font-style: italic;
  color: #5c4a3a;
}

.wins-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wins-card-tags li {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #628339;
  background: rgba(98, 131, 57, 0.1);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.wins-card-excerpt {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5c4a3a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wins-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #5c4a3a;
}

.wins-empty h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.wins-empty p {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.wins-sentinel {
  height: 2rem;
  margin-top: 0.5rem;
}

.wins-status {
  text-align: center;
  font-size: 0.88rem;
  color: #8a7a68;
  margin: 1rem 0 0;
  min-height: 1.25rem;
}

/* Lightbox */
.wins-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 14, 10, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  backdrop-filter: blur(4px);
}

.wins-lightbox.is-open {
  display: flex;
}

.wins-lightbox-inner {
  position: relative;
  max-width: min(920px, 100%);
  max-height: min(90vh, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wins-lightbox-inner img,
.wins-lightbox-inner video {
  max-width: 100%;
  max-height: min(78vh, 100%);
  width: auto;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #111;
}

.wins-lightbox-caption {
  color: rgba(248, 244, 235, 0.9);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
  max-width: 36rem;
  margin: 0;
}

.wins-lightbox-close {
  position: absolute;
  top: -0.65rem;
  right: -0.65rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #2c2118;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 5;
}

.wins-lightbox-close svg {
  display: block;
}

/* Mobile: float close above the screenshot so it never covers review text */
@media (max-width: 767px) {
  .wins-lightbox {
    align-items: flex-start;
    padding: 0.65rem 0.75rem 1.25rem;
    padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wins-lightbox-inner {
    width: 100%;
    max-height: none;
    margin-top: 3.25rem; /* clear the floating X */
    padding-top: 0;
  }

  .wins-lightbox-inner img,
  .wins-lightbox-inner video {
    max-height: min(72vh, 100%);
  }

  .wins-lightbox-close {
    position: fixed;
    top: calc(0.55rem + env(safe-area-inset-top, 0px));
    right: calc(0.55rem + env(safe-area-inset-right, 0px));
    width: 3rem;
    height: 3rem;
    z-index: 210;
  }
}

.wins-cta-band {
  background: #2c2118;
  color: #f8f4eb;
  padding: 3.5rem 0;
  text-align: center;
}

.wins-cta-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e7da69;
}

.wins-cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.wins-cta-band p {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  color: rgba(248, 244, 235, 0.78);
  line-height: 1.55;
}

.wins-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.wins-btn-on-dark {
  border-color: rgba(248, 244, 235, 0.45) !important;
  color: #f8f4eb !important;
  background: transparent !important;
}

.wins-btn-on-dark:hover {
  background: rgba(248, 244, 235, 0.12) !important;
  color: #fff !important;
  border-color: rgba(248, 244, 235, 0.7) !important;
}
