/* OEM/ODM page — aligned with WSTTE site (styles.css tokens & patterns) */

.oem-wstte {
  color: var(--fg-on-light);
  line-height: 1.55;
}

.oem-wstte__section {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(16px, 4vw, 40px);
  background: #fff;
  border-top: 1px solid #eef0f3;
}

.oem-wstte__section--mint {
  background: #fafafa;
}

.oem-wstte__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.oem-wstte__heading {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-on-light);
}

.oem-wstte__subheading {
  margin: 0 auto 2rem;
  max-width: 42rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Hero — carousel-style overlay */
.oem-wstte-hero {
  position: relative;
  min-height: clamp(260px, 38vw, 400px);
  background: #111 center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  border-top: none;
}

.oem-wstte-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(30, 64, 175, 0.55) 100%
  );
}

.oem-wstte-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(16px, 4vw, 40px);
  color: #fff;
}

.oem-wstte-hero__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}

.oem-wstte-hero__years {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.oem-wstte-hero__years-num {
  font-size: clamp(4.75rem, 12vw, 6.75rem);
  line-height: 1;
  color: #fff;
}

.oem-wstte-hero__years-label {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  max-width: 11rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
}

.oem-wstte-hero__odm {
  text-align: right;
}

.oem-wstte-hero__odm-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.oem-wstte-hero__certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.oem-wstte-hero__cert {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.08);
}

.oem-wstte-hero__stats {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .oem-wstte-hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.oem-wstte-hero__stat strong {
  display: block;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  margin-bottom: 0.2rem;
}

.oem-wstte-hero__stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Intro */
.oem-wstte-intro {
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}

.oem-wstte-intro .product-grid-section__head {
  margin-bottom: 1rem;
}

.oem-wstte-intro .static-page {
  text-align: center;
  margin-bottom: 2rem;
}

.oem-wstte-intro__tagline {
  margin: 0 auto 1.5rem;
  color: var(--muted);
  max-width: 40rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.55;
}

.oem-wstte-value-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .oem-wstte-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oem-wstte-value-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid #eef0f3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.oem-wstte-value-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.oem-wstte-value-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-on-light);
}

.oem-wstte-value-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
}

/* Media / process / news cards */
.oem-wstte-card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .oem-wstte-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .oem-wstte-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oem-wstte-card-grid--2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oem-wstte-media-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eef0f3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.oem-wstte-media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.oem-wstte-media-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e5e7eb;
}

img[data-lazy-src]:not([src]) {
  background: #e5e7eb;
}

.oem-wstte-feature__img[data-lazy-src]:not([src]) {
  aspect-ratio: 4 / 3;
}

.oem-wstte-certs img[data-lazy-src]:not([src]) {
  aspect-ratio: 3 / 4;
}

.oem-wstte-media-card__body {
  padding: 1rem 1.15rem 1.2rem;
}

.oem-wstte-media-card__step {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.oem-wstte-media-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-on-light);
  letter-spacing: -0.01em;
}

.oem-wstte-media-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
}

/* Logo cloud */
.oem-wstte-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
}

.oem-wstte-logos li {
  font-size: 0.95rem;
  font-weight: 600;
  color: #9ca3af;
}

/* Metrics */
.oem-wstte-metrics {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 640px) {
  .oem-wstte-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oem-wstte-metrics strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.oem-wstte-metrics span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Reviews */
.oem-wstte-reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .oem-wstte-reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .oem-wstte-reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oem-wstte-review {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.15rem;
  border: 1px solid #eef0f3;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.oem-wstte-review__flag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 1.2rem;
  line-height: 1;
}

.oem-wstte-review__stars {
  color: #f59e0b;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.oem-wstte-review p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
}

.oem-wstte-review cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-on-light);
}

/* Feature cards */
.oem-wstte-feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .oem-wstte-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.oem-wstte-feature {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eef0f3;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.oem-wstte-feature__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.oem-wstte-feature__body {
  padding: 1.15rem;
}

.oem-wstte-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg-on-light);
}

.oem-wstte-feature p {
  margin: 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
}

/* FAQ */
.oem-wstte-faq {
  max-width: 52rem;
  margin: 0 auto;
}

.oem-wstte-faq details {
  border-bottom: 1px solid #eef0f3;
  padding: 0.9rem 0;
}

.oem-wstte-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg-on-light);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.oem-wstte-faq summary::-webkit-details-marker {
  display: none;
}

.oem-wstte-faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
}

.oem-wstte-faq details[open] summary::after {
  content: "−";
}

.oem-wstte-faq details p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Certificates */
.oem-wstte-certs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .oem-wstte-certs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.oem-wstte-certs li {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid #eef0f3;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.oem-wstte-certs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* News links */
.oem-wstte-news-card .oem-wstte-media-card__body a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.oem-wstte-news-card .oem-wstte-media-card__body a:hover {
  text-decoration: underline;
}

.oem-wstte-news-card time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* CTA — matches site inquiry / product CTA */
.oem-wstte-cta {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(16px, 4vw, 40px);
  background: #fafafa;
  border-top: 1px solid #eef0f3;
}

.oem-wstte-cta__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}

.oem-wstte-cta__inner h2 {
  margin: 0 auto 1.25rem;
  max-width: 40rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-on-light);
  line-height: 1.35;
}

/* Dark theme */
html[data-theme="dark"] .oem-wstte__section {
  background: #0f1419;
  border-top-color: #1f2937;
}

html[data-theme="dark"] .oem-wstte__section--mint,
html[data-theme="dark"] .oem-wstte-cta {
  background: #111923;
}

html[data-theme="dark"] .oem-wstte__heading,
html[data-theme="dark"] .oem-wstte-media-card h3,
html[data-theme="dark"] .oem-wstte-feature h3,
html[data-theme="dark"] .oem-wstte-value-card h3,
html[data-theme="dark"] .oem-wstte-faq summary,
html[data-theme="dark"] .oem-wstte-review cite,
html[data-theme="dark"] .oem-wstte-cta__inner h2 {
  color: #f3f4f6;
}

html[data-theme="dark"] .oem-wstte__subheading,
html[data-theme="dark"] .oem-wstte-intro__tagline,
html[data-theme="dark"] .oem-wstte-metrics span {
  color: #9ca3af;
}

html[data-theme="dark"] .oem-wstte-value-card,
html[data-theme="dark"] .oem-wstte-media-card,
html[data-theme="dark"] .oem-wstte-review,
html[data-theme="dark"] .oem-wstte-feature,
html[data-theme="dark"] .oem-wstte-certs li {
  background: #141c28;
  border-color: #1f2937;
}

html[data-theme="dark"] .oem-wstte-value-card p,
html[data-theme="dark"] .oem-wstte-media-card p,
html[data-theme="dark"] .oem-wstte-feature p,
html[data-theme="dark"] .oem-wstte-review p,
html[data-theme="dark"] .oem-wstte-faq details p {
  color: #cbd5e1;
}

html[data-theme="dark"] .oem-wstte-faq details {
  border-bottom-color: #1f2937;
}

html[data-theme="dark"] .oem-wstte-media-card__img,
html[data-theme="dark"] .oem-wstte-feature__img {
  background: #1f2937;
}
