/* ==========================================================================
   Press & Media page — howtolaunder.com/press-media/
   Values derived from the live Elementor post-59 stylesheet.
   Loaded after main.css; refines/overrides the shared press classes there.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — "Press & Publications"
   -------------------------------------------------------------------------- */
.press-hero {
  background-color: var(--color-offwhite);
  min-height: 50vh;
  padding: 15rem 4rem 6rem;
  display: flex;
  justify-content: center;
}
.press-hero .container {
  width: 100%;
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.press-hero-title {
  margin: 0;
  width: 80%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 700;
  line-height: 1.3em;
  letter-spacing: -3px;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Logo strip — black infinite marquee (was an Elementor/Swiper carousel with
   linear timing; 5 logos visible, 90px spacing, black background)
   -------------------------------------------------------------------------- */
.press-logos {
  background-color: var(--color-primary);
  padding: 10px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.press-logos .container {
  width: 90%;
  max-width: var(--container);
  display: block;
  overflow: hidden;
}
.press-marquee-track {
  display: flex;
  width: max-content;
  animation: press-marquee 30s linear infinite;
}
.press-marquee-group {
  display: flex;
  align-items: center;
  gap: 90px;
  padding-right: 90px;
  flex-shrink: 0;
}
.press-logos img {
  display: block;
  width: 133px;
  height: auto;
  max-width: none;
  filter: none;
  opacity: 1;
}
@keyframes press-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .press-marquee-track { animation: none; }
}

/* --------------------------------------------------------------------------
   Press items
   -------------------------------------------------------------------------- */
.press-item,
.press-item:nth-of-type(even) {
  background-color: var(--color-white);
}
.press-item {
  border-top: 0;
  border-bottom: 1px solid #E9E9E9;
  margin-top: 2rem;
  padding: 3rem 4rem;
  justify-content: center;
}
.press-item-inner {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
}
.press-media-col {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.press-media-col img { width: 100%; height: auto; }
.press-media-col .press-caption {
  margin: 0;
  padding-top: 5px;
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.3em;
  letter-spacing: 0;
  color: var(--color-text);
}
.press-detail {
  width: 50%;
  padding-left: 3rem;
  justify-content: center;
  gap: 1rem;
}
.press-date {
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5em;
  letter-spacing: 1.5px;
  color: var(--color-secondary);
}
.press-title {
  margin: 0;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 35px;
  font-weight: 700;
  line-height: 1.3em;
  letter-spacing: -2.7px;
  color: var(--color-text);
}
.press-summary {
  padding-left: 0;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-text);
}
.press-summary p:last-child { margin-bottom: 0; }
.press-ctas { column-gap: 1rem; }
.press-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 14.4px;
  color: var(--color-accent);
  padding: 1rem 1rem 1rem 0;
}
.press-cta:hover,
.press-cta:focus { color: var(--color-secondary); }

/* --------------------------------------------------------------------------
   Anchor links row (Expert Commentary / Seen In / Authored Article)
   -------------------------------------------------------------------------- */
.press-anchor-links {
  padding: 4rem 4rem 2rem;
  display: flex;
  justify-content: center;
}
.press-anchor-links .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
}
.press-anchor-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2em;
  letter-spacing: 0;
  color: var(--color-accent);
  background-color: var(--color-white);
  padding: 12px 24px;
}
.press-anchor-link:hover,
.press-anchor-link:focus { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   Book Launch heading
   -------------------------------------------------------------------------- */
.press-launch {
  padding: 4rem;
  display: flex;
  justify-content: center;
}
.press-launch .container { width: 100%; max-width: var(--container); }

/* --------------------------------------------------------------------------
   Book Launch gallery (live page: justified gallery, ~250px rows, 5px gap)
   -------------------------------------------------------------------------- */
.press-gallery {
  padding: 4rem 4rem 5rem;
  display: flex;
  justify-content: center;
}
.press-gallery .container {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 5px;
}
.press-gallery a { display: block; overflow: hidden; }
.press-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   News loop + filter
   -------------------------------------------------------------------------- */
.press-news {
  padding: 4rem 4rem 5rem;
  display: flex;
  justify-content: center;
}
.press-news-inner {
  display: flex;
  width: 100%;
  max-width: var(--container);
}
.press-news-filter { width: 25%; flex-shrink: 0; }
.press-news-filter .filter-sticky {
  position: sticky;
  top: 81px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.filter-item {
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.5em;
  color: #807F7F;
  padding: 8px;
}
.filter-item:hover,
.filter-item:focus,
.filter-item[aria-pressed="true"] { color: var(--color-secondary); }

.press-news-grid {
  width: 75%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px 30px;
}
.news-card {
  background-color: var(--color-offwhite);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}
.news-card-logo {
  margin: 0;
  padding-bottom: 1rem;
  text-align: center;
}
.news-card-logo img {
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}
.news-card-title {
  margin: 0;
  padding-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1em;
  color: var(--color-primary);
}
.news-card-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
}
.news-card-text p { margin: 0; }
.news-card-cta a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: 1rem 2rem 1rem 0;
}
.news-card-cta a:hover,
.news-card-cta a:focus { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   Responsive — tablet (<=1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .press-hero {
    padding: 3rem 2rem 2rem;
  }
  .press-hero-title {
    width: 100%;
    font-size: 4rem;
    padding-bottom: 1rem;
  }

  .press-item {
    flex-direction: row;
    padding: 2rem;
  }
  .press-item-inner { justify-content: flex-end; }
  .press-media-col { width: 50%; }
  .press-detail {
    width: 50%;
    padding: 0 0 0 3rem;
  }
  .press-summary { font-size: 1rem; padding-top: 1rem; }

  .press-launch { padding: 2rem 1rem; }
  .press-gallery { padding: 2rem 1rem; }
  .press-gallery .container {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
    gap: 4px;
  }
  .press-news { padding: 2rem 1rem; }
}

/* --------------------------------------------------------------------------
   Responsive — mobile (<=767px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .press-hero {
    min-height: 65vh;
    padding: 3rem 1rem 2rem;
  }
  .press-hero-title { font-size: 12.3vw; padding-bottom: 0; }

  .press-logos img { width: 26vw; }
  .press-marquee-group { gap: 40px; padding-right: 40px; }

  .press-item { padding: 2rem 1rem; }
  .press-item-inner { flex-direction: column; }
  .press-media-col { width: 100%; }
  .press-detail {
    width: 100%;
    padding: 2rem 0 0;
  }
  .press-title { font-size: 26px; letter-spacing: -1.7px; }
  .press-summary { padding-top: 0; }

  .press-anchor-links { padding: 3rem 1rem 1rem; }
  .press-anchor-links .container { grid-template-columns: 1fr; }

  .press-launch { padding: 3rem 1rem 2rem; }
  .press-gallery { padding: 2rem 0 3rem; }
  .press-gallery .container {
    grid-template-columns: 1fr;
    grid-auto-rows: 223px;
    gap: 5px;
  }

  .press-news { padding: 2rem 1rem 3rem; }
  .press-news-inner { flex-direction: column; }
  .press-news-filter { width: 100%; }
  .press-news-filter .filter-sticky {
    position: static;
    flex-direction: row;
    padding-bottom: 1rem;
  }
  .press-news-grid { width: 100%; grid-template-columns: 1fr; }
}
