/* ════════════════════════════════════════════════════════════════
   PITTCH — awards.css
   The polish layer. Loaded after main.css + woocommerce.css.
   Purely additive: refines motion, typography and micro-interaction
   without touching any functional selector or JS hook.
   Palette: brown #37210B · cream #EFEDE6 — nothing else introduced.
════════════════════════════════════════════════════════════════ */

:root {
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-lift: 0 18px 40px -18px rgba(55, 33, 11, 0.35);
}

/* ── Global finish ───────────────────────────────────────────── */
::selection { background: var(--pittch-brown); color: var(--pittch-cream); }

* { scrollbar-width: thin; scrollbar-color: rgba(55,33,11,0.35) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--pittch-bg); }
::-webkit-scrollbar-thumb { background: rgba(55,33,11,0.3); border-radius: 5px; border: 2px solid var(--pittch-bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(55,33,11,0.55); }

:focus-visible {
  outline: 2px solid var(--pittch-brown);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Gentle page-enter fade — CSS-only so it never depends on JS */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pittch-page-in 0.5s ease both; }
  @keyframes pittch-page-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Nav: frosted glass once scrolled ────────────────────────── */
@supports (backdrop-filter: blur(1px)) {
  .nav-wrapper.is-scrolled,
  .home .nav-wrapper.is-scrolled,
  .single-product .nav-wrapper {
    background: rgba(239, 237, 230, 0.86);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
  }
  .nav-wrapper.is-scrolled .nav-subnav,
  .home .nav-wrapper.is-scrolled .nav-subnav { background: transparent; }
}

/* Underline-draw on subnav categories */
.nav-cat-item a { position: relative; }
.nav-cat-item a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-expo);
}
.nav-cat-item a:hover::after,
.nav-cat-item a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* ════════════════════════════════════════════════════════════
   HERO — cinematic open
════════════════════════════════════════════════════════════ */

/* Slow settle on the hero image + scroll parallax via --hero-y (JS) */
.hero__img {
  transform: translateY(var(--hero-y, 0px)) scale(var(--hero-scale, 1));
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: pittch-hero-settle 2.4s var(--ease-expo) both; }
  @keyframes pittch-hero-settle {
    from { transform: translateY(var(--hero-y, 0px)) scale(1.07); filter: brightness(1.12); }
    to   { transform: translateY(var(--hero-y, 0px)) scale(var(--hero-scale, 1)); filter: brightness(1); }
  }
}

/* Cinematic vignette + soft top gradient for nav legibility */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(30, 16, 7, 0.42), transparent 26%),
    linear-gradient(to top,    rgba(30, 16, 7, 0.38), transparent 32%),
    radial-gradient(ellipse at center, transparent 58%, rgba(30, 16, 7, 0.3) 100%);
}
/* Fine film grain — barely-there texture, the "expensive" finish */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content, .hero__scroll { z-index: 2; }

/* Word-by-word masked rise (markup from hero.php; CSS-only) */
.hero__word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.hero__word > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* The block-level rise from main.css is replaced by per-word reveals */
  .hero__tagline.has-words { animation: none; opacity: 1; }
  .hero__tagline.has-words .hero__word > span {
    transform: translateY(112%);
    animation: pittch-word-up 0.9s var(--ease-expo) both;
    animation-delay: calc(0.12s + var(--wi, 0) * 0.07s);
  }
  @keyframes pittch-word-up {
    to { transform: translateY(0); }
  }
  /* Re-time the rest of the stack to follow the words */
  .hero__sub   { animation-delay: 0.66s; }
  .hero__pills { animation-delay: 0.8s;  }
  .hero__trust { animation-delay: 0.94s; }
}

/* Scroll cue: line draws downward on repeat instead of blinking */
.hero__scroll-line {
  animation: none;
  position: relative;
  overflow: hidden;
  background: rgba(239, 237, 230, 0.2);
}
.hero__scroll-line::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--pittch-cream);
  animation: pittch-scroll-draw 2.2s var(--ease-smooth) infinite;
}
@keyframes pittch-scroll-draw {
  0%   { transform: translateY(-100%); }
  45%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* Hero pills — cream sweep fill, text flips to brown */
.hero-pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-smooth), border-color 0.35s, transform 0.35s var(--ease-expo);
}
.hero-pill::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--pittch-cream);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-expo);
}
.hero-pill:hover {
  color: var(--pittch-brown);
  border-color: var(--pittch-cream);
  background: rgba(239, 237, 230, 0.15);
}
.hero-pill:hover::before { transform: translateY(0); }

/* ════════════════════════════════════════════════════════════
   EDITORIAL MARQUEE STRIP
════════════════════════════════════════════════════════════ */
.pittch-marquee {
  overflow: hidden;
  padding: 56px 0;
  background: var(--pittch-cream);
  border-top: 1px solid var(--pittch-border);
  border-bottom: 1px solid var(--pittch-border);
}
.pittch-marquee__track {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  width: max-content;
  white-space: nowrap;
  animation: pittch-marquee 36s linear infinite;
  will-change: transform;
}
.pittch-marquee:hover .pittch-marquee__track { animation-play-state: paused; }
@keyframes pittch-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.pittch-marquee__item {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 700;
  color: var(--pittch-brown);
  line-height: 1;
  flex-shrink: 0;
}
.pittch-marquee__item--ghost {
  font-weight: 400;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(55, 33, 11, 0.45);
}
.pittch-marquee__dot {
  width: 0.16em; height: 0.16em;
  align-self: center;
  border-radius: 50%;
  background: var(--pittch-brown);
  opacity: 0.5;
  flex-shrink: 0;
  font-size: clamp(40px, 6.5vw, 96px);
}
@media (prefers-reduced-motion: reduce) {
  .pittch-marquee__track { animation: none; }
}

/* ════════════════════════════════════════════════════════════
   STATS — editorial numbers
════════════════════════════════════════════════════════════ */
.pittch-stats__number {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════════════════════════════════
   PRODUCT CARDS — lift, zoom, drawn underline
════════════════════════════════════════════════════════════ */
.product-card-img {
  transition: box-shadow 0.5s var(--ease-smooth);
}
.product-card-link:hover .product-card-img { box-shadow: var(--shadow-lift); }

.product-img-primary,
.product-img-secondary {
  transition: opacity 0.38s ease, transform 1.1s var(--ease-expo);
}
.product-card-link:hover .product-img-primary,
.product-card-link:hover .product-img-secondary { transform: scale(1.05); }

.product-card-name { position: relative; }
.product-card-link .product-card-name {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.45s var(--ease-expo);
}
.product-card-link:hover .product-card-name { background-size: 100% 1px; }

/* ── Mega menu cards: slight image zoom ── */
.mega-menu-card-img img { transition: transform 0.9s var(--ease-expo); }
.mega-menu-card:hover .mega-menu-card-img img { transform: scale(1.06); }

/* ════════════════════════════════════════════════════════════
   BRAND INTRO / SHOP YOUR WAY
════════════════════════════════════════════════════════════ */
.pittch-inline-features li span {
  display: inline-block;
  transition: transform 0.35s var(--ease-expo);
}
.pittch-inline-features li:hover span { transform: translate(3px, -3px); }

.pittch-syw-tile {
  transition: transform 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-smooth);
}
.pittch-syw-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

/* Brand intro link — arrow nudges, underline draws */
.pittch-brand-intro__link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 0.45s var(--ease-expo);
}
.pittch-brand-intro__link:hover {
  background-size: 0% 1px;
  background-position: 100% 100%;
}

/* ════════════════════════════════════════════════════════════
   EDITORIAL SPLIT — deeper, slower zoom + richer scrim
════════════════════════════════════════════════════════════ */
.pittch-ed-panel__bg { transition: transform 1.4s var(--ease-expo); }
.pittch-ed-panel:hover .pittch-ed-panel__bg { transform: scale(1.07); }
.pittch-ed-panel__content {
  background: linear-gradient(to top, rgba(30, 16, 7, 0.72), rgba(30, 16, 7, 0.35));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ════════════════════════════════════════════════════════════
   BUTTONS — sheen sweep + press feedback
════════════════════════════════════════════════════════════ */
.pittch-btn,
.sp-atc-btn,
.pittch-footer__nl-form button,
.pittch-newsletter__form button {
  position: relative;
  overflow: hidden;
}
.pittch-btn::after,
.sp-atc-btn::after,
.pittch-footer__nl-form button::after,
.pittch-newsletter__form button::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(239, 237, 230, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-smooth);
  pointer-events: none;
}
.pittch-btn:hover::after,
.sp-atc-btn:hover::after,
.pittch-footer__nl-form button:hover::after,
.pittch-newsletter__form button:hover::after { left: 130%; }

.pittch-btn:active,
.sp-atc-btn:active,
.hero-pill:active { transform: scale(0.98); }

/* ════════════════════════════════════════════════════════════
   PRODUCT PAGE
════════════════════════════════════════════════════════════ */

/* Gallery — cursor-following zoom (class + origin set by awards.js) */
@media (hover: hover) and (pointer: fine) {
  .sp-image-slide { overflow: hidden; cursor: zoom-in; }
  .sp-image-slide img {
    transition: transform 0.55s var(--ease-expo);
    transform-origin: var(--zx, 50%) var(--zy, 50%);
  }
  .sp-image-slide.is-zooming img { transform: scale(1.55); }
}

/* Swatches — soft pop on select */
.sp-swatch { transition: transform 0.3s var(--ease-expo), border-color 0.25s, box-shadow 0.3s; }
.sp-swatch:hover:not(:disabled) { transform: scale(1.08); }
@media (prefers-reduced-motion: no-preference) {
  .sp-swatch.is-selected { animation: pittch-swatch-pop 0.4s var(--ease-expo); }
  @keyframes pittch-swatch-pop {
    0% { transform: scale(0.92); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
  }
}

/* Size buttons */
.sp-size-btn { transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-expo); }
.sp-size-btn:hover:not(:disabled) { transform: translateY(-2px); }

/* ATC — lift on hover, label pulse when added */
.sp-atc-btn { transition: background 0.3s var(--ease-smooth), transform 0.3s var(--ease-expo), box-shadow 0.3s; }
.sp-atc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(30, 16, 7, 0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .sp-atc-btn.is-added .sp-atc-label { animation: pittch-added 0.5s var(--ease-expo); }
  @keyframes pittch-added {
    0% { transform: translateY(8px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
  }
}

/* Accordions — icon rotates, body eases in */
.sp-acc-icon { transition: transform 0.45s var(--ease-expo); }
.sp-acc-item.is-open .sp-acc-icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .sp-acc-item.is-open .sp-acc-body,
  .pittch-faq__item.is-open .pittch-faq__body {
    animation: pittch-acc-in 0.45s var(--ease-expo);
  }
  @keyframes pittch-acc-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Feature rows — hairline draws across on hover */
.pittch-feature-row { position: relative; }
.pittch-feature-row::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 1px;
  background: var(--pittch-brown);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--ease-expo);
}
.pittch-feature-row:hover::after { transform: scaleX(1); }

/* Sticky cart — frosted, with shadow */
.pittch-sticky-cart {
  background: rgba(239, 237, 230, 0.88);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 -8px 30px rgba(55, 33, 11, 0.12);
  transition: transform 0.5s var(--ease-expo);
}

/* ════════════════════════════════════════════════════════════
   REVIEWS
════════════════════════════════════════════════════════════ */
.pittch-rev-card {
  transition: transform 0.5s var(--ease-expo), box-shadow 0.5s var(--ease-smooth);
}
.pittch-rev-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.pittch-rev-photo img { transition: transform 1.1s var(--ease-expo); }
.pittch-rev-photo:hover img { transform: scale(1.05); }

/* ════════════════════════════════════════════════════════════
   NEWSLETTER + FOOTER
════════════════════════════════════════════════════════════ */
.pittch-newsletter__input,
.pittch-footer__nl-form input {
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pittch-newsletter__input:focus,
.pittch-footer__nl-form input:focus {
  box-shadow: 0 0 0 3px rgba(239, 237, 230, 0.12);
}

/* Footer links — drawn underline */
.pittch-footer__col a {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.4s var(--ease-expo), color 0.25s;
}
.pittch-footer__col a:hover { background-size: 100% 1px; }

/* Watermark — parallax rise driven by --wm-y (awards.js) */
.pittch-footer__watermark {
  transform: translateY(var(--wm-y, 0.18em));
  transition: transform 0.1s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .pittch-footer__watermark { transform: none; transition: none; }
}

/* ════════════════════════════════════════════════════════════
   REDUCED MOTION — kill every decorative animation
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .hero__img,
  .hero__scroll-line::after,
  .pittch-marquee__track { animation: none !important; }
  .hero__word > span { transform: none !important; }
  .product-card-link:hover .product-img-primary,
  .product-card-link:hover .product-img-secondary,
  .pittch-ed-panel:hover .pittch-ed-panel__bg,
  .sp-image-slide.is-zooming img { transform: none !important; }
}
