/* ============================================================
   Salon-style News & Articles · wave173
   Split charcoal/white · overlapping cards · heavy animation
   ============================================================ */

.pw-news-pro {
  position: relative;
  padding: 0 0 clamp(64px, 9vw, 88px);
  overflow: hidden;
  background: #fff;
}

/* Top dark band — salon "Blog Posts" area */
.pw-news-pro__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(220px, 32vw, 320px);
  background: linear-gradient(180deg, #2D3238 0%, #374151 100%);
  z-index: 0;
}

.pw-news-pro__top::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(201, 168, 110, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 70% at 85% 30%, rgba(201, 168, 110, 0.08), transparent 50%);
  pointer-events: none;
}

/* Floating gold particles */
.pw-news-pro__spark {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.pw-news-pro__spark span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(201, 168, 110, 0.55);
  animation: pwNewsSpark 8s ease-in-out infinite;
}

.pw-news-pro__spark span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.pw-news-pro__spark span:nth-child(2) { top: 28%; right: 18%; animation-delay: -2.5s; width: 4px; height: 4px; }
.pw-news-pro__spark span:nth-child(3) { top: 12%; left: 55%; animation-delay: -5s; width: 5px; height: 5px; }

@keyframes pwNewsSpark {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-18px) scale(1.3); opacity: 0.9; }
}

.pw-news-pro .container {
  position: relative;
  z-index: 2;
}

/* Header on dark band */
.pw-news-pro__head {
  text-align: center;
  padding: clamp(48px, 8vw, 72px) 20px clamp(32px, 5vw, 48px);
}

.pw-news-pro__label {
  display: block;
  margin: 0 0 14px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C9A86E;
  animation: pwNewsLabelIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pw-news-pro__title {
  margin: 0;
  font-family: "Libre Baskerville", "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.22;
  color: #fff;
  animation: pwNewsTitleIn 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes pwNewsLabelIn {
  from { opacity: 0; transform: translateY(16px); letter-spacing: 0.35em; }
  to { opacity: 1; transform: none; letter-spacing: 0.22em; }
}

@keyframes pwNewsTitleIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Card grid — cards overlap split line */
.pw-news-pro__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
  margin-top: -8px;
}

.pw-news-pro__card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--news-delay, 0ms);
}

.pw-news-pro__grid.is-visible .pw-news-pro__card,
.pw-news-pro__card.is-inview {
  opacity: 1;
  transform: none;
}

/* Media + date badge */
.pw-news-pro__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #E8EAED, #F5F0E6);
  box-shadow: 0 20px 48px rgba(45, 50, 56, 0.18);
  transition: box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pw-news-pro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

/* Per-card smart crop */
.pw-news-pro__media--guide img {
  object-position: center center;
}

.pw-news-pro__media--faq img {
  object-position: center 35%;
}

.pw-news-pro__media--work img {
  object-position: center 30%;
}

/* Stress / dark images — moody but clear */
.pw-news-pro__media--stress img {
  filter: saturate(0.92) contrast(1.08) brightness(0.92);
}

.pw-news-pro__media--stress::before {
  background: rgba(45, 50, 56, 0.12);
  mix-blend-mode: multiply;
  opacity: 0.7;
}

.pw-news-pro__media--stress::after {
  background: linear-gradient(
    180deg,
    rgba(45, 50, 56, 0.15) 0%,
    transparent 40%,
    transparent 50%,
    rgba(45, 50, 56, 0.35) 100%
  );
}

.pw-news-pro__card:hover .pw-news-pro__media--stress img {
  filter: saturate(0.98) contrast(1.1) brightness(0.96);
}

/* Warm gold unify overlay */
.pw-news-pro__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(45, 50, 56, 0.08) 0%,
    transparent 35%,
    transparent 55%,
    rgba(45, 50, 56, 0.22) 100%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pw-news-pro__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(201, 168, 110, 0.06);
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.pw-news-pro__date {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #B89558, #C9A86E);
  color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 8px 20px rgba(184, 149, 88, 0.45);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.pw-news-pro__date em {
  font-style: normal;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

/* White body box — salon overlap */
.pw-news-pro__body {
  position: relative;
  margin: -28px 16px 0;
  padding: 22px 20px 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(45, 50, 56, 0.1);
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.pw-news-pro__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A86E, transparent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pw-news-pro__card h3 {
  margin: 0 0 10px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 700;
  line-height: 1.35;
  color: #374151;
  transition: color 0.3s ease;
}

.pw-news-pro__card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: #6B7280;
}

.pw-news-pro__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #374151;
  transition: color 0.3s ease, gap 0.35s ease;
}

.pw-news-pro__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover — lift, zoom, shine */
.pw-news-pro__card:hover .pw-news-pro__media {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(45, 50, 56, 0.22);
}

.pw-news-pro__card:hover .pw-news-pro__media img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.06) brightness(1.05);
}

.pw-news-pro__card:hover .pw-news-pro__media::after {
  opacity: 0.95;
}

.pw-news-pro__card:hover .pw-news-pro__media::before {
  opacity: 0.55;
}

.pw-news-pro__card:hover .pw-news-pro__date {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(184, 149, 88, 0.55);
  animation: pwNewsBadgePop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwNewsBadgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1.08); }
}

.pw-news-pro__card:hover .pw-news-pro__body {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(45, 50, 56, 0.14);
}

.pw-news-pro__card:hover .pw-news-pro__body::before {
  transform: scaleX(1);
}

.pw-news-pro__card:hover h3 {
  color: #B89558;
}

.pw-news-pro__card:hover .pw-news-pro__more {
  color: #B89558;
  gap: 12px;
}

.pw-news-pro__card:hover .pw-news-pro__more svg {
  transform: translateX(4px);
}

/* Stagger shine sweep on card enter */
.pw-news-pro__card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
  z-index: 10;
  transition: none;
}

.pw-news-pro__grid.is-visible .pw-news-pro__card.is-inview::after {
  animation: pwNewsShine 1.2s ease 0.3s both;
  animation-delay: calc(var(--news-delay, 0ms) + 400ms);
}

@keyframes pwNewsShine {
  from { left: -100%; }
  to { left: 150%; }
}

/* Bottom fade line */
.pw-news-pro__foot {
  margin-top: clamp(40px, 6vw, 56px);
  text-align: center;
}

.pw-news-pro__foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid #B89558;
  color: #374151;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.pw-news-pro__foot a:hover {
  background: linear-gradient(135deg, #B89558, #C9A86E);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .pw-news-pro__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .pw-news-pro__top {
    height: clamp(200px, 38vw, 280px);
  }
}

@media (max-width: 640px) {
  .pw-news-pro__body {
    margin-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pw-news-pro__spark span,
  .pw-news-pro__label,
  .pw-news-pro__title,
  .pw-news-pro__card::after {
    animation: none !important;
  }

  .pw-news-pro__card {
    opacity: 1;
    transform: none;
  }
}
