/* =========================================================
   Bolar Precision 2.3 — Surface treatment knowledge pages
   ========================================================= */

.treatment-detail-page {
  --treatment-line: rgb(8 121 232 / 18%);
  --treatment-panel: #f4f7fa;
}

.anodizing-hero .capability-hero-background {
  object-position: center;
}

.anodizing-hero .capability-hero-overlay {
  background:
    linear-gradient(90deg, rgb(2 7 11 / 90%) 0%, rgb(2 7 11 / 72%) 46%, rgb(2 7 11 / 28%) 100%),
    linear-gradient(0deg, rgb(2 7 11 / 42%), transparent 60%);
}

.laser-screen-hero .capability-hero-background {
  object-position: center;
}

.laser-screen-hero .capability-hero-overlay {
  background:
    linear-gradient(90deg, rgb(2 7 11 / 92%) 0%, rgb(2 7 11 / 75%) 47%, rgb(2 7 11 / 28%) 100%),
    linear-gradient(0deg, rgb(2 7 11 / 46%), transparent 62%);
}

.laser-screen-hero h1 {
  max-width: 920px;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
}

.powder-hero .capability-hero-background {
  object-position: center;
}

.powder-hero .capability-hero-overlay {
  background:
    linear-gradient(90deg, rgb(2 7 11 / 92%) 0%, rgb(2 7 11 / 74%) 47%, rgb(2 7 11 / 25%) 100%),
    linear-gradient(0deg, rgb(2 7 11 / 44%), transparent 62%);
}

.treatment-intro {
  background: var(--color-white);
}

.treatment-intro-layout,
.treatment-feature-layout,
.alloy-guide-layout,
.treatment-faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
}

.treatment-intro-copy p:not(.eyebrow),
.treatment-feature .section-heading p:not(.eyebrow),
.alloy-guide .section-heading p:not(.eyebrow) {
  color: var(--color-gray-600);
}

.treatment-intro-media,
.treatment-feature figure {
  margin: 0;
}

.treatment-intro-media img,
.treatment-feature figure img {
  width: 100%;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  object-fit: cover;
}

.treatment-intro-media img {
  aspect-ratio: 1.5 / 1;
}

.treatment-intro-media figcaption {
  position: relative;
  width: calc(100% - 48px);
  margin: -26px auto 0;
  padding: 18px 22px;
  border-left: 3px solid var(--color-blue-600);
  border-radius: var(--radius-small);
  background: var(--color-white);
  box-shadow: var(--shadow-small);
  color: var(--color-gray-600);
  font-size: 0.78rem;
  font-weight: 650;
}

.treatment-benefits {
  background: var(--color-navy-950);
  color: var(--color-white);
}

.treatment-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.treatment-benefit-grid article {
  min-height: 166px;
  padding: 36px 28px;
  border-right: 1px solid rgb(255 255 255 / 10%);
}

.treatment-benefit-grid article:first-child {
  padding-left: 0;
}

.treatment-benefit-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.treatment-benefit-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.treatment-benefit-grid p {
  margin: 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.76rem;
  line-height: 1.65;
}

.treatment-types,
.design-guide,
.treatment-faq {
  background: var(--treatment-panel);
}

.treatment-types .section-heading,
.design-guide .section-heading {
  margin-bottom: 48px;
}

.treatment-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.treatment-type-grid article {
  position: relative;
  min-height: 250px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-small);
}

.treatment-type-grid span,
.design-guide-grid span {
  display: block;
  margin-bottom: 36px;
  color: var(--color-blue-600);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.treatment-type-grid h3,
.design-guide-grid h3 {
  margin-bottom: 13px;
}

.treatment-type-grid p,
.design-guide-grid p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.82rem;
  line-height: 1.72;
}

.treatment-feature {
  background: var(--color-white);
}

.treatment-feature-dark {
  background: var(--color-navy-950);
  color: var(--color-white);
}

.treatment-feature-dark .section-heading h2 {
  color: var(--color-white);
}

.treatment-feature-dark .section-heading p:not(.eyebrow) {
  color: rgb(255 255 255 / 65%);
}

.treatment-feature figure img {
  aspect-ratio: 1.5 / 1;
}

.treatment-feature-reverse figure {
  order: 2;
}

.treatment-check-list {
  display: grid;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.treatment-check-list li {
  position: relative;
  padding-left: 27px;
  color: rgb(255 255 255 / 74%);
  font-size: 0.82rem;
  line-height: 1.65;
}

.treatment-check-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 2px;
  background: var(--color-blue-500);
  content: "";
}

.alloy-guide {
  background: var(--color-white);
}

.alloy-guide-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(560px, 1.28fr);
  align-items: start;
}

.alloy-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
}

.alloy-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  text-align: left;
}

.alloy-table th,
.alloy-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-gray-200);
}

.alloy-table thead th {
  background: var(--color-navy-950);
  color: var(--color-white);
  font-size: 0.76rem;
}

.alloy-table tbody th {
  width: 32%;
  color: var(--color-blue-700);
  font-size: 0.82rem;
}

.alloy-table tbody td {
  color: var(--color-gray-600);
  font-size: 0.8rem;
  line-height: 1.6;
}

.marking-table thead th:first-child {
  width: 20%;
}

.marking-table thead th:nth-child(2),
.marking-table thead th:nth-child(3) {
  width: 40%;
}

.alloy-table tbody tr:last-child th,
.alloy-table tbody tr:last-child td {
  border-bottom: 0;
}

.design-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.design-guide-grid article {
  padding: 30px 28px;
  border-top: 3px solid var(--color-blue-600);
  background: var(--color-white);
  box-shadow: var(--shadow-small);
}

.design-guide-grid span {
  margin-bottom: 28px;
}

.treatment-process-list li {
  min-height: 250px;
}

.treatment-faq-layout {
  grid-template-columns: minmax(260px, 0.65fr) minmax(560px, 1.35fr);
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-small);
  background: var(--color-white);
}

.faq-list summary {
  padding: 21px 24px;
  color: var(--color-gray-900);
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--color-gray-600);
  font-size: 0.8rem;
  line-height: 1.72;
}

.treatment-cta {
  padding-block: clamp(74px, 9vw, 116px);
  background:
    linear-gradient(135deg, rgb(8 121 232 / 12%), transparent 52%),
    var(--color-navy-950);
  color: var(--color-white);
}

.treatment-cta .project-cta-content {
  max-width: 820px;
}

.treatment-cta h2 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--color-white);
}

.treatment-cta .project-cta-content > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgb(255 255 255 / 66%);
  line-height: 1.75;
}

@media (max-width: 980px) {
  .treatment-intro-layout,
  .treatment-feature-layout,
  .alloy-guide-layout,
  .treatment-faq-layout {
    grid-template-columns: 1fr;
  }

  .treatment-feature-reverse figure {
    order: initial;
  }

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

  .treatment-benefit-grid article:nth-child(2) {
    border-right: 0;
  }

  .treatment-benefit-grid article:first-child,
  .treatment-benefit-grid article:nth-child(3) {
    padding-left: 28px;
  }

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

@media (max-width: 680px) {
  .anodizing-hero .capability-hero-background {
    object-position: 64% center;
  }

  .laser-screen-hero .capability-hero-background {
    object-position: 67% center;
  }

  .powder-hero .capability-hero-background {
    object-position: 66% center;
  }

  .heat-qpq-hero .capability-hero-background {
    object-position: 68% center;
  }

  .polishing-hero .capability-hero-background {
    object-position: 70% center;
  }

  .ptfe-hero .capability-hero-background {
    object-position: 69% center;
  }

  .passivation-hero .capability-hero-background {
    object-position: 68% center;
  }

  .electroplating-hero .capability-hero-background {
    object-position: 69% center;
  }

  .electrophoretic-hero .capability-hero-background {
    object-position: 69% center;
  }

  .brushing-hero .capability-hero-background {
    object-position: 69% center;
  }

  .sandblasting-hero .capability-hero-background {
    object-position: 69% center;
  }

  .laser-screen-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .treatment-type-grid,
  .treatment-benefit-grid,
  .design-guide-grid {
    grid-template-columns: 1fr;
  }

  .treatment-benefit-grid article,
  .treatment-benefit-grid article:first-child,
  .treatment-benefit-grid article:nth-child(3) {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
  }

  .treatment-benefit-grid article:last-child {
    border-bottom: 0;
  }

  .treatment-type-grid article {
    min-height: auto;
    padding: 28px;
  }

  .treatment-intro-media figcaption {
    width: calc(100% - 24px);
  }
}
