/* =====================================================================
   WHNext — landing "Homepage 2026" · the festival and the perfect score
   (2026-10-29). Loaded only by page-template/page-homepage2026.php, after
   css/whx-landing.css, whose tokens (--wl-*), eyebrow and reveals it uses.
   1. Buttons · 2. The 35th Merano WineFestival · 3. 100/100 Platinum Award
   4. Smaller screens. rem everywhere (whnext.css scales html above 1920px).
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. BUTTONS — rectangular, gilded, never a capsule
   --------------------------------------------------------------------- */
.wl-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.1rem;
  padding: .85rem 1.55rem;
  border: 1px solid rgba(176, 170, 126, .55);
  border-radius: 6px;
  color: var(--wl-cream);
  text-decoration: none;
  font-family: var(--whx-sans);
  font-size: .7rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  line-height: 1.2;
  transition: background .35s, border-color .35s, color .35s, transform .45s var(--wl-ease);
}
.wl-cta:hover, .wl-cta:focus-visible { background: rgba(176, 170, 126, .14); border-color: var(--wl-sage-light); color: var(--wl-cream); transform: translateY(-2px); outline: none; }
.wl-cta--gold { background: var(--wl-sage); border-color: var(--wl-sage); color: var(--wl-ink); }
.wl-cta--gold:hover, .wl-cta--gold:focus-visible { background: var(--wl-sage-light); border-color: var(--wl-sage-light); color: var(--wl-ink); }

/* ---------------------------------------------------------------------
   2. THE 35th MERANO WINEFESTIVAL — wordmark, countdown, days, numbers
   --------------------------------------------------------------------- */
.wl-mwf {
  position: relative;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--wl-gutter) clamp(4rem, 10vh, 6.5rem);
  border-top: 1px solid var(--wl-line);
  background:
    radial-gradient(56rem 34rem at 78% 24%, rgba(176, 170, 126, .10), transparent 66%),
    radial-gradient(60rem 40rem at 12% 70%, rgba(120, 47, 64, .42), transparent 64%),
    linear-gradient(180deg, rgba(42, 16, 24, .55) 0%, rgba(26, 12, 16, .35) 60%, rgba(18, 10, 12, 0) 100%);
}
.wl-mwf-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  align-items: center;
  column-gap: clamp(2.5rem, 6vw, 7rem);
  max-width: 88rem;
  margin: 0 auto;
}
.wl-mwf-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.wl-mwf-copy .wl-eyebrow { display: flex; justify-content: center; }
.wl-mwf h2.wl-mwf-mark { margin: clamp(1.4rem, 3vh, 2.2rem) 0 0; width: clamp(16rem, 27vw, 26rem); line-height: 0; }
.wl-mwf-mark a { display: block; transition: transform .6s var(--wl-ease); }
.wl-mwf-mark a:hover { transform: translateY(-3px); }
.wl-mwf-mark img { display: block; width: 100%; height: auto; }
.wl-mwf-where {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.1rem;
  margin: clamp(1.4rem, 3vh, 2rem) 0 0;
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--wl-sage-light);
}
.wl-mwf-count {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .85rem;
  border-radius: 6px;
  background: var(--wl-claret);
  color: var(--wl-cream);
  letter-spacing: .2em;
  box-shadow: 0 10px 26px -10px rgba(120, 47, 64, .9);
}
.wl-mwf-count::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--wl-sage-light); }
.wl-mwf-lead {
  max-width: 36rem;
  margin: clamp(1.4rem, 3vh, 2rem) 0 0;
  font-family: var(--whx-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 1.45vw, 1.5rem); line-height: 1.45;
  color: var(--wl-cream-70);
  text-wrap: balance;
}
.wl-mwf-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin: clamp(1.8rem, 4vh, 2.6rem) 0 0; }

.wl-mwf-photo {
  position: relative;
  justify-self: center;
  width: 100%; max-width: 30rem;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 50px 90px -34px rgba(0, 0, 0, .95), 0 0 0 1px rgba(176, 170, 126, .28);
}
.wl-mwf-photo::after {                      /* a gilded hairline inside the frame */
  content: ""; position: absolute; inset: .7rem;
  border: 1px solid rgba(214, 209, 176, .38);
  border-radius: 4px;
  pointer-events: none;
}
.wl-mwf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.wl .wl-mwf-days {                         /* .wl ol (0,1,1) zeroes list margins: the prefix outranks it */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 1.5vw, 1.6rem);
  max-width: 88rem;
  margin: clamp(3.5rem, 8vh, 5.5rem) auto 0;
}
.wl-mwf-day {
  display: flex; flex-direction: column;
  background: rgba(18, 10, 12, .72);
  border: 1px solid var(--wl-line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .4s, background .4s;
}
.wl-mwf-day:hover { border-color: rgba(176, 170, 126, .45); background: rgba(120, 47, 64, .16); }
.wl-mwf-when { margin: 0; padding: 1.7rem 1.7rem 0; font-size: .7rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--wl-sage); }
.wl-mwf h3.wl-mwf-title {
  margin: .8rem 0 0; padding: 0 1.7rem;
  font-family: var(--whx-serif); font-weight: 600;
  font-size: clamp(1.6rem, 2vw, 2.15rem); line-height: 1.08;
  letter-spacing: 0; text-transform: none;
  color: var(--wl-cream);
}
.wl-mwf-hours { margin: .55rem 0 0; padding: 0 1.7rem; font-size: .82rem; letter-spacing: .04em; color: var(--wl-cream-70); }
.wl .wl-mwf-items { margin: 1.3rem 0 1.7rem; padding: 0 1.7rem; display: flex; flex-direction: column; gap: .5rem; }
.wl-mwf-items li {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--whx-serif); font-size: 1.12rem; font-weight: 500; line-height: 1.3;
  color: var(--wl-cream);
}
.wl-mwf-items li::before {                  /* a small gilded lozenge */
  content: ""; position: absolute; left: 0; top: .55em;
  width: .38rem; height: .38rem;
  background: var(--wl-sage);
  transform: rotate(45deg);
}
.wl-mwf-foot, .wl-pf-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: auto;
  padding: 1rem 1.7rem;
  border-top: 1px solid var(--wl-line);
  color: var(--wl-sage);
  text-decoration: none;
  font-size: .66rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase;
  transition: background .35s, color .35s;
}
.wl-mwf-foot svg, .wl-pf-foot svg { flex: none; transition: transform .45s var(--wl-ease); }
.wl-mwf-foot:hover, .wl-mwf-foot:focus-visible { background: var(--wl-claret); color: var(--wl-cream); outline: none; }
.wl-mwf-foot:hover svg, .wl-mwf-foot:focus-visible svg { transform: translateX(5px); }

.wl .wl-mwf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 88rem;
  margin: clamp(2.6rem, 6vh, 4rem) auto 0;
  border-top: 1px solid var(--wl-line);
  border-bottom: 1px solid var(--wl-line);
}
.wl-mwf-stats li { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 1.6rem .8rem; text-align: center; }
.wl-mwf-stats li + li { border-left: 1px solid var(--wl-line); }
.wl-mwf-stats strong {
  font-family: var(--whx-serif); font-weight: 600;
  font-size: clamp(2.1rem, 3.4vw, 3.3rem); line-height: 1;
  background: linear-gradient(120deg, #F4EFE6 0%, #D6D1B0 50%, #B0AA7E 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.wl-mwf-stats span { font-size: .64rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--wl-cream-70); }

/* ---------------------------------------------------------------------
   3. 100/100 PLATINUM AWARD — four equal stages ("100/100" is static text)
   --------------------------------------------------------------------- */
.wl-pf {
  position: relative;
  padding: clamp(4.5rem, 11vh, 7.5rem) var(--wl-gutter) clamp(4.5rem, 10vh, 7rem);
  border-top: 1px solid var(--wl-line);
  background:
    radial-gradient(60rem 28rem at 50% 0%, rgba(214, 209, 176, .11), transparent 70%),
    linear-gradient(180deg, rgba(8, 5, 6, .55) 0%, rgba(13, 8, 9, .2) 100%);
}
.wl-pf-head { max-width: 54rem; margin: 0 auto; text-align: center; }
.wl-pf-head .wl-eyebrow { display: flex; justify-content: center; }
.wl-pf-kicker { margin: 1.3rem 0 0; font-family: var(--whx-serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 1.8vw, 1.75rem); color: var(--wl-sage-light); }
.wl h2.wl-pf-title { margin: .6rem 0 0; font-family: var(--whx-serif); font-weight: 600; line-height: .95; }
.wl-pf-score {
  display: block;
  font-size: clamp(4.4rem, 11vw, 10rem);
  letter-spacing: -.02em;
  background: linear-gradient(120deg, #F4EFE6 0%, #D6D1B0 45%, #B0AA7E 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.wl-pf-name { display: block; margin-top: .35rem; font-style: italic; font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.4rem); color: var(--wl-cream); }
.wl-pf-lead { max-width: 46rem; margin: clamp(1.4rem, 3vh, 2rem) auto 0; font-size: 1.02rem; line-height: 1.75; color: var(--wl-cream-70); text-wrap: pretty; }

.wl .wl-pf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.8rem);
  max-width: 88rem;
  margin: clamp(3rem, 7vh, 4.5rem) auto 0;
}
.wl-pf-item { display: flex; }
.wl-pf-link {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--wl-cream);
  background: linear-gradient(180deg, rgba(244, 239, 230, .05) 0%, rgba(244, 239, 230, .015) 100%);
  border: 1px solid var(--wl-line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .45s, background .45s, transform .6s var(--wl-ease), box-shadow .6s var(--wl-ease);
}
.wl-pf-link:hover, .wl-pf-link:focus-visible {
  border-color: rgba(176, 170, 126, .55);
  background: linear-gradient(180deg, rgba(244, 239, 230, .08) 0%, rgba(120, 47, 64, .14) 100%);
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -34px rgba(0, 0, 0, .95);
  outline: none;
}
.wl-pf-stage {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  width: 100%;
  height: clamp(18rem, 26vw, 25.5rem);
  padding: 2.4rem 1rem 3.3rem;               /* the bottle stands above the seal, never behind it */
  background: radial-gradient(closest-side at 50% 42%, rgba(244, 239, 230, .17), rgba(244, 239, 230, .04) 62%, transparent 100%);
}
.wl-pf-stage::after {                       /* the floor the bottle stands on */
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 2.85rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
}
.wl-pf-stage img {
  position: relative; z-index: 1;
  display: block;
  height: 100%; width: auto; max-width: 72%;
  object-fit: contain;
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, .55));
  transition: transform .8s var(--wl-ease);
}
.wl-pf-link:hover .wl-pf-stage img { transform: translateY(-6px); }
.wl-pf-seal {                               /* static text, never counted up */
  position: relative; z-index: 2;
  display: grid; place-items: center;
  width: 4.7rem; height: 4.7rem;
  margin: -2.35rem 0 0;
  border-radius: 50%;
  background: var(--wl-ink);
  border: 1px solid var(--wl-sage);
  box-shadow: inset 0 0 0 3px var(--wl-ink), inset 0 0 0 4px rgba(176, 170, 126, .5), 0 12px 26px -8px rgba(0, 0, 0, .8);
  font-family: var(--whx-serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  color: var(--wl-sage-light);
}
.wl-pf-wine { display: block; margin: 1.15rem 0 0; padding: 0 1.2rem; font-family: var(--whx-serif); font-weight: 600; font-size: clamp(1.15rem, 1.35vw, 1.4rem); line-height: 1.2; text-wrap: balance; }
.wl-pf-producer { display: block; margin: .75rem 0 0; padding: 0 1rem; font-size: .68rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--wl-sage); }
.wl-pf-place { display: block; margin: .45rem 0 1.5rem; padding: 0 1rem; font-size: .82rem; color: var(--wl-cream-45); }
.wl-pf-foot { width: 100%; padding: 1rem 1.3rem; }
.wl-pf-link:hover .wl-pf-foot, .wl-pf-link:focus-visible .wl-pf-foot { background: var(--wl-claret); color: var(--wl-cream); }
.wl-pf-link:hover .wl-pf-foot svg, .wl-pf-link:focus-visible .wl-pf-foot svg { transform: translateX(5px); }

.wl-pf-end { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; max-width: 50rem; margin: clamp(2.6rem, 6vh, 3.8rem) auto 0; text-align: center; }
.wl-pf-ceremony { margin: 0; font-family: var(--whx-serif); font-style: italic; font-weight: 500; font-size: clamp(1.15rem, 1.4vw, 1.4rem); line-height: 1.45; color: var(--wl-cream-70); text-wrap: balance; }
.wl-pf-ceremony strong { font-weight: 600; color: var(--wl-cream); }

@media (prefers-reduced-motion: reduce) {
  .wl-cta, .wl-mwf-mark a, .wl-pf-link, .wl-pf-stage img, .wl-mwf-foot svg, .wl-pf-foot svg { transition: none; }
  .wl-cta:hover, .wl-mwf-mark a:hover, .wl-pf-link:hover, .wl-pf-link:hover .wl-pf-stage img { transform: none; }
}

/* ---------------------------------------------------------------------
   4. SMALLER SCREENS
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .wl .wl-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
  .wl-pf-stage { height: clamp(18rem, 46vw, 24rem); }
}
@media (max-width: 960px) {
  .wl-mwf-stage { grid-template-columns: 1fr; row-gap: 3rem; }
  .wl-mwf-photo { max-width: 34rem; aspect-ratio: 4 / 3; }
  .wl-mwf-photo img { object-position: 50% 32%; }
  .wl .wl-mwf-days { grid-template-columns: 1fr; max-width: 40rem; }
  .wl .wl-mwf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 40rem; }
  .wl-mwf-stats li:nth-child(3) { border-left: 0; }
  .wl-mwf-stats li:nth-child(n+3) { border-top: 1px solid var(--wl-line); }
}
@media (max-width: 640px) {
  .wl-mwf h2.wl-mwf-mark { width: min(19rem, 78vw); }
  .wl-mwf-where { letter-spacing: .22em; }
  .wl-mwf-ctas { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 24rem; }
  .wl-mwf-ctas .wl-cta--gold { grid-column: 1 / -1; }
  .wl-mwf-when { padding: 1.4rem 1.3rem 0; }
  .wl-mwf h3.wl-mwf-title, .wl-mwf-hours, .wl .wl-mwf-items { padding-left: 1.3rem; padding-right: 1.3rem; }
  .wl-mwf-foot { padding: .95rem 1.3rem; }
  .wl .wl-pf-grid { gap: .7rem; }
  .wl-pf-stage { height: clamp(14rem, 62vw, 18rem); padding: 1.6rem .6rem 2.8rem; }
  .wl-pf-stage::after { bottom: 2.35rem; }
  .wl-pf-seal { width: 4rem; height: 4rem; margin-top: -2rem; font-size: .92rem; }
  .wl-pf-wine { padding: 0 .7rem; font-size: 1.02rem; }
  .wl-pf-producer { padding: 0 .5rem; font-size: .6rem; letter-spacing: .18em; }
  .wl-pf-place { padding: 0 .5rem; font-size: .74rem; }
  .wl-pf-foot { padding: .9rem .8rem; font-size: .58rem; letter-spacing: .18em; }
}
