/**
 * OEM/ODM Services Page — SF-SPEC v4.6 compliant
 * Prefix: oe-  |  Body class: body.page-oem  |  CSS file: oem.css
 * Uses global :root variables from bridge-base.css — no custom color tokens.
 */

/* ── Page Hero (two-column variant of SF-SPEC §十.4) ── */
body.page-oem .page-hero {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  padding: 80px 0 60px;
}

body.page-oem .oe-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

body.page-oem .oe-hero__content {
  max-width: 540px;
}

body.page-oem .oe-hero__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 14px;
}

body.page-oem .oe-hero__title em {
  font-style: normal;
  font-weight: 300;
  color: var(--text-muted);
}

body.page-oem .oe-hero__body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 460px;
  margin: 0;
}

body.page-oem .oe-hero__visual {
  height: 450px;
  overflow: hidden;
  border-radius: var(--radius-card-lg);
}

body.page-oem .oe-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section shared ── */
body.page-oem .oe-section {
  padding: var(--section-pad) 0;
}

body.page-oem .oe-section--faint {
  background: var(--bg-faint);
}

body.page-oem .oe-section--dark {
  background: var(--bg-dark);
  color: var(--bg-white);
}

/* Eyebrow centering for section headers */
body.page-oem .oe-section .eyebrow,
body.page-oem .oe-faq__list .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 10px;
}

/* ── OEM vs ODM Comparison ── */
body.page-oem .oe-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
}

body.page-oem .oe-compare__col {
  background: var(--bg-white);
  padding: 36px 32px;
}

body.page-oem .oe-compare__col--featured {
  background: var(--bg-faint);
}

body.page-oem .oe-compare__tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

body.page-oem .oe-compare__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

body.page-oem .oe-compare__sub {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

body.page-oem .oe-compare__body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

body.page-oem .oe-compare__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

body.page-oem .oe-compare__list li {
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}

body.page-oem .oe-compare__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 7px;
}

body.page-oem .oe-compare__foot {
  font-size: 24px;
  text-align: center;
  margin-top: 32px;
}

body.page-oem .oe-compare__foot a {
  text-decoration: underline;
}

/* ── Process (5-step cards) ── */
body.page-oem .oe-process__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

body.page-oem .oe-process__card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--ease);
}

body.page-oem .oe-process__card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

body.page-oem .oe-process__img {
  aspect-ratio: 3/2;
  background: var(--bg-faint);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

body.page-oem .oe-process__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ease-img);
}

body.page-oem .oe-process__card:hover .oe-process__img img {
  transform: scale(1.05);
}

body.page-oem .oe-process__body {
  padding: 20px 18px;
  flex: 1;
}

body.page-oem .oe-process__num {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: var(--text-muted);
  margin-bottom: 6px;
}

body.page-oem .oe-process__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

body.page-oem .oe-process__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

body.page-oem .oe-process__foot {
  background: var(--bg-faint);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-card-lg) var(--radius-card-lg);
  padding: 11px 20px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

body.page-oem .oe-process__foot strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Certifications ── */
body.page-oem .oe-certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

body.page-oem .oe-certs__card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--ease);
}

body.page-oem .oe-certs__card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

body.page-oem .oe-certs__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-oem .oe-certs__badge {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--brand-light);
  border: 1px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-text);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

body.page-oem .oe-certs__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

body.page-oem .oe-certs__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

body.page-oem .oe-certs__status {
  font-size: 10px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 8px;
  letter-spacing: 0.04em;
  display: block;
}

/* ── QC Steps ── */
body.page-oem .oe-qc__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

body.page-oem .oe-qc__step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--ease);
}

body.page-oem .oe-qc__step:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

body.page-oem .oe-qc__img {
  aspect-ratio: 3/2;
  background: var(--bg-faint);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

body.page-oem .oe-qc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--ease-img);
}

body.page-oem .oe-qc__step:hover .oe-qc__img img {
  transform: scale(1.05);
}

body.page-oem .oe-qc__body {
  padding: 18px 16px;
}

body.page-oem .oe-qc__num {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
  opacity: 0.5;
}

body.page-oem .oe-qc__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 3px;
}

body.page-oem .oe-qc__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── FAQ ── */
body.page-oem .oe-faq__list {
  border: 1px solid var(--border);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

body.page-oem .oe-faq__item {
  border-bottom: 1px solid var(--border);
}

body.page-oem .oe-faq__item:last-child {
  border-bottom: none;
}

body.page-oem .oe-faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 20px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}

body.page-oem .oe-faq__q:hover {
  background: var(--bg-faint);
}

body.page-oem .oe-faq__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-faint);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  color: var(--text-muted);
  transition: transform 0.2s, background var(--ease), color var(--ease), border-color var(--ease);
}

body.page-oem .oe-faq__item--open .oe-faq__icon {
  transform: rotate(45deg);
  background: var(--brand);
  color: var(--bg-white);
  border-color: var(--brand);
}

body.page-oem .oe-faq__a {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 0 26px 22px;
  max-width: 760px;
}

body.page-oem .oe-faq__a[hidden] {
  display: none;
}

/* ── Contact Section (split layout: gray info + white form) ── */
body.page-oem .oe-contact {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  margin-top: 64px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

body.page-oem .oe-contact__info {
  background: var(--bg-gray);
  padding: 56px 48px 56px 56px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.page-oem .oe-contact__form {
  background: var(--bg-white);
  padding: 56px 56px 56px 48px;
}

body.page-oem .oe-contact__info .eyebrow {
  text-align: left;
  margin-bottom: 10px;
}

body.page-oem .oe-contact__info h2,
body.page-oem .oe-contact__title {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

body.page-oem .oe-contact__info p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

body.page-oem .oe-contact__methods {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-oem .oe-contact__method {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 16px;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease);
}

body.page-oem .oe-contact__method:hover {
  background: var(--bg-faint);
  border-color: var(--brand);
}

body.page-oem .oe-contact__method svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
}

/* WPForms overrides inside contact section */
body.page-oem .oe-contact .wpforms-container .wpforms-field label,
body.page-oem .oe-contact .wpforms-container label.wpforms-field-label {
  color: var(--text-primary);
}

body.page-oem .oe-contact .wpforms-container input,
body.page-oem .oe-contact .wpforms-container textarea {
  background: var(--bg-faint);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-input);
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
}

body.page-oem .oe-contact .wpforms-container input::placeholder,
body.page-oem .oe-contact .wpforms-container textarea::placeholder {
  color: var(--text-muted);
}

body.page-oem .oe-contact .wpforms-container input:focus,
body.page-oem .oe-contact .wpforms-container textarea:focus {
  border-color: var(--brand);
  outline: none;
  background: var(--bg-white);
}

body.page-oem .oe-contact .wpforms-container button[type="submit"],
body.page-oem .oe-contact .wpforms-container .wpforms-submit {
  background: var(--brand);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease);
}

body.page-oem .oe-contact .wpforms-container button[type="submit"]:hover,
body.page-oem .oe-contact .wpforms-container .wpforms-submit:hover {
  background: var(--brand-dark);
}

/* ── Responsive: Tablet (≤1023px) ── */
@media (max-width: 1023px) {
  body.page-oem .oe-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  body.page-oem .oe-hero__content {
    max-width: 100%;
  }

  body.page-oem .oe-hero__body {
    max-width: 100%;
  }

  body.page-oem .oe-hero__title {
    font-size: 40px;
  }

  body.page-oem .oe-hero__visual {
    height: 320px;
  }

  body.page-oem .oe-compare__grid {
    grid-template-columns: 1fr;
  }

  body.page-oem .oe-process__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body.page-oem .oe-certs__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-oem .oe-qc__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-oem .oe-contact {
    grid-template-columns: 1fr;
  }

  body.page-oem .oe-contact__info {
    padding: 48px 32px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  body.page-oem .oe-contact__form {
    padding: 48px 32px;
  }
}

/* ── Responsive: Mobile (≤767px) ── */
@media (max-width: 767px) {
  body.page-oem .page-hero {
    padding: 60px 0 48px;
  }

  body.page-oem .oe-hero__title {
    font-size: 32px;
  }

  body.page-oem .oe-hero__visual {
    height: 240px;
  }

  body.page-oem .oe-section {
    padding: var(--section-pad-sm) 0;
  }

  body.page-oem .oe-process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  body.page-oem .oe-certs__grid {
    grid-template-columns: 1fr;
  }

  body.page-oem .oe-qc__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  body.page-oem .oe-contact {
    margin-top: 48px;
  }

  body.page-oem .oe-contact__info {
    padding: 40px 24px;
  }

  body.page-oem .oe-contact__form {
    padding: 40px 24px;
  }

  body.page-oem .oe-contact__title {
    font-size: 28px;
  }
}

/* ── Responsive: Small (≤479px) ── */
@media (max-width: 479px) {
  body.page-oem .oe-process__grid {
    grid-template-columns: 1fr;
  }

  body.page-oem .oe-qc__grid {
    grid-template-columns: 1fr;
  }

  body.page-oem .oe-compare__col {
    padding: 24px 20px;
  }
}
