/* OEM/ODM Services - V2 (structure-mapped redesign) */
body.page .oem-odm-page {
  --oem-black: #070707;
  --oem-black-soft: #0f1012;
  --oem-white: #f5f3ef;
  --oem-light-bg: #f1eee7;
  --oem-light-card: #f7f5f1;
  --oem-text-dark: #202020;
  --oem-text-mid: #626262;
  --oem-text-light: rgba(245, 243, 239, 0.66);
  --oem-gold: #c9a96e;
  --oem-gold-light: #e2c487;
  --oem-border-gold: rgba(201, 169, 110, 0.24);
  --oem-border-soft: rgba(201, 169, 110, 0.14);
}

body.page .oem-odm-page .section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* ===== Hero ===== */
.oem-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 52%, rgba(201, 169, 110, 0.12) 0%, transparent 64%),
    var(--oem-black);
}

.oem-hero .ss-container--home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  position: relative;
}

.oem-hero .ss-container--home > div:first-child {
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%) !important;
  padding: 70px 56px;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* right visual panel */
.oem-hero .ss-container--home::after {
  content: '';
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 110px, transparent 110px),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(201, 169, 110, 0.03) 40px, rgba(201, 169, 110, 0.03) 41px),
    linear-gradient(180deg, #121215 0%, #080809 100%);
  border: 1px solid var(--oem-border-soft);
  position: relative;
}

.oem-hero .ss-container--home::before {
  content: 'OEM\AODM';
  white-space: pre;
  position: absolute;
  right: 120px;
  bottom: 90px;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oem-border-gold);
  border-radius: 50%;
  color: var(--oem-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-24deg);
  z-index: 1;
  pointer-events: none;
}

.oem-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--oem-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.oem-hero__eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--oem-gold);
}

.oem-hero__title {
  color: #f5f3ef !important;
  font-size: clamp(42px, 5.1vw, 74px);
  line-height: 1.03;
  margin: 0 0 26px;
  max-width: 650px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.oem-hero__title em,
.oem-hero__title strong,
.oem-hero__title .accent {
  color: var(--oem-gold);
}

.oem-hero__desc {
  max-width: 500px;
  color: rgba(245, 243, 239, 0.78) !important;
  font-size: 17px;
  line-height: 1.75;
}

.oem-hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.oem-hero .ss-btn {
  border-radius: 0;
  padding: 16px 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.oem-hero .ss-btn--primary {
  background: var(--oem-gold);
  border-color: var(--oem-gold);
  color: #0a0a0a;
}

.oem-hero .ss-btn--primary:hover {
  background: var(--oem-gold-light);
  border-color: var(--oem-gold-light);
}

.oem-hero .ss-btn--secondary {
  background: transparent;
  border-color: rgba(245, 243, 239, 0.25);
  color: var(--oem-white);
}

.oem-hero .ss-btn--secondary:hover {
  border-color: var(--oem-gold);
  color: var(--oem-gold);
}

/* ===== Shared headings ===== */
.oem-odm-page .ss-section-title {
  margin-bottom: 26px;
  color: var(--oem-text-dark);
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.08;
}

/* ===== Compare / Capabilities ===== */
.oem-compare,
.oem-capabilities,
.oem-faq {
  background: var(--oem-light-bg);
}

.oem-compare__grid,
.oem-capabilities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: rgba(201, 169, 110, 0.2);
}

.oem-card,
.oem-capability {
  background: var(--oem-light-card);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 52px 48px;
}

.oem-card__title,
.oem-capability h3 {
  margin: 0 0 12px;
  color: #111;
  font-size: 40px;
  line-height: 1.1;
}

.oem-card__text,
.oem-capability p {
  color: var(--oem-text-mid);
  font-size: 15px;
  line-height: 1.72;
}

.oem-card__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.oem-card__list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  color: #313131;
  line-height: 1.6;
}

.oem-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--oem-gold);
}

/* ===== Process ===== */
.oem-process {
  background: #020203;
}

.oem-process .ss-section-title,
.oem-process .section-tag {
  color: var(--oem-white);
}

.oem-process__steps {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.oem-process__steps::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 34px;
  height: 1px;
  background: rgba(201, 169, 110, 0.22);
}

.oem-step {
  padding: 0 10px;
  text-align: center;
  background: transparent;
  border: 0;
  color: var(--oem-text-light);
}

.oem-step__index {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border: 1px solid var(--oem-border-gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--oem-gold);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.oem-step h3 {
  margin: 0 0 10px;
  color: var(--oem-white);
  font-size: 29px;
  line-height: 1.22;
}

.oem-step p {
  margin: 0;
  color: rgba(245, 243, 239, 0.56);
  line-height: 1.65;
}

/* ===== FAQ ===== */
.oem-faq .ss-faq {
  display: grid;
  gap: 0;
}

.oem-faq .ss-faq__item {
  background: #f6f4ef;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0;
  margin-bottom: 0;
}

.oem-faq .ss-faq__question {
  background: #f6f4ef;
  color: #101010;
  font-weight: 600;
}

.oem-faq .ss-faq__question:hover {
  background: #f2efe8;
}

.oem-faq .ss-faq__question[aria-expanded="true"] {
  border-left: 3px solid var(--oem-gold);
}

.oem-faq .ss-faq__question[aria-expanded="true"] .ss-faq__icon {
  background: var(--oem-gold);
  border-color: var(--oem-gold);
  color: #fff;
}

.oem-faq .ss-faq__answer {
  background: #f6f4ef;
  color: #5d5d5d;
  line-height: 1.75;
}

/* ===== Inquiry ===== */
.oem-inquiry {
  background: var(--oem-black);
}

.oem-inquiry .ss-section-title {
  color: var(--oem-white);
}

.oem-inquiry__desc {
  color: var(--oem-text-light);
  font-size: 16px;
  line-height: 1.75;
}

.oem-inquiry__form {
  max-width: 960px;
  margin: 0 auto;
  padding: 44px;
  border: 1px solid var(--oem-border-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.oem-inquiry__form .wpforms-field-label {
  color: rgba(245, 243, 239, 0.6) !important;
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oem-inquiry__form .wpforms-field input,
.oem-inquiry__form .wpforms-field textarea,
.oem-inquiry__form .wpforms-field select {
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(201, 169, 110, 0.2) !important;
  color: var(--oem-white) !important;
}

.oem-inquiry__form .wpforms-submit {
  border-radius: 0 !important;
  background: var(--oem-gold) !important;
  border-color: var(--oem-gold) !important;
  color: #0a0a0a !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.oem-inquiry__form .wpforms-submit:hover {
  background: var(--oem-gold-light) !important;
  border-color: var(--oem-gold-light) !important;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .oem-hero .ss-container--home {
    grid-template-columns: 1fr;
  }

  .oem-hero .ss-container--home::after,
  .oem-hero .ss-container--home::before {
    display: none;
  }

  .oem-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oem-process__steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  body.page .oem-odm-page .section-padding {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .oem-odm-page .ss-section-title {
    font-size: clamp(34px, 10vw, 52px);
  }

  .oem-compare__grid,
  .oem-capabilities__grid,
  .oem-process__steps {
    grid-template-columns: 1fr;
  }

  .oem-card,
  .oem-capability,
  .oem-inquiry__form {
    padding: 24px;
  }

  .oem-step h3 {
    font-size: 26px;
  }
}

/* hard overrides for template precedence (cache/merge safe) */
body.page-template-page-oem-odm-services-php .oem-hero {
  background: radial-gradient(ellipse at 72% 52%, rgba(201, 169, 110, 0.12) 0%, transparent 64%), #070707 !important;
}

body.page-template-page-oem-odm-services-php .oem-hero__title {
  color: #f5f3ef !important;
}

body.page-template-page-oem-odm-services-php .oem-hero .ss-container--home > div:first-child {
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.96) 0%, rgba(8, 8, 10, 0.98) 100%) !important;
}

body.page-template-page-oem-odm-services-php .oem-hero__desc {
  color: rgba(245, 243, 239, 0.66) !important;
}

body.page-template-page-oem-odm-services-php .oem-hero .ss-btn--primary {
  background: #c9a96e !important;
  border-color: #c9a96e !important;
  color: #0a0a0a !important;
}

body.page-template-page-oem-odm-services-php .oem-hero .ss-btn--secondary {
  background: transparent !important;
  border-color: rgba(245, 243, 239, 0.25) !important;
  color: #f5f3ef !important;
}
