/*==================================================================
  BBC Industrial Services — HSE Page  (v3 — unique section layouts)
  ------------------------------------------------------------------
  Self-contained, "hx-" prefixed. Consumes the site's theme tokens
  (--bbc-*, --rs-theme-*) so it inherits the site typography and
  adapts to light / dark automatically.

  Every section uses a DIFFERENT structural device instead of the
  same card grid:
    1. Commitment  -> editorial split + hairline list + stat rail
    2. Policy      -> centered pull-quote + hairline feature bar
    3. Management  -> connected vertical process stepper (nodes+rail)
    4. Training    -> divider "matrix" (shared hairlines, no boxes)
    5. Environment -> split colour panel + checklist
    6. Certs       -> floating seal strip + two-column checklist
==================================================================*/

:root {
  --hx-orange: #EA5F23;
  --hx-orange-2: #F6863F;
  --hx-orange-soft: rgba(234, 95, 35, 0.10);
  --hx-navy-1: #0C1826;
  --hx-navy-2: #14273F;
  --hx-green-1: #12503A;
  --hx-green: #2FA06E;
  --hx-green-2: #48C78E;
  --hx-line-dark: rgba(255, 255, 255, 0.12);
}

/* ---------- Section shell ---------- */
.hx-sec {
  position: relative;
  /* padding: clamp(64px, 8vw, 122px) 0; */
  overflow: hidden;
}

.hx-sec .container {
  position: relative;
  z-index: 2;
}

.hx-bg-body {
  background: var(--bbc-bg-body, #fff);
}



/* ---------- Section heading ---------- */
.hx-head {
  max-width: 720px;
  margin: 0 0 clamp(38px, 5vw, 60px);
}

.hx-head.hx-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hx-head.hx-light .hx-title {
  color: #fff;
}

.hx-head.hx-light .hx-lead {
  color: #c4d0dd;
}

.hx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hx-orange);
  margin-bottom: 16px;
}

.hx-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--hx-orange);
}

.hx-center .hx-eyebrow::after {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: var(--hx-orange);
}

.hx-title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.5px;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 0 0 16px;
}

.hx-title span {
  color: var(--hx-orange);
}

.hx-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--bbc-text-body, #616161);
  margin: 0;
}

/* ================================================================
   SECTION 1 — COMMITMENT  (editorial split + hairline list)
================================================================ */
.hx-commit {
  background: var(--bbc-bg-body, #fff);
  color: var(--bbc-text-body, #616161);
}

.hx-commit::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background-image:
    linear-gradient(rgba(0, 0, 0, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.028) 1px, transparent 1px); */
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 40% 30%, #000, transparent 78%);
  opacity: 0.8;
  z-index: 1;
}

.hx-commit::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -90px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 95, 35, 0.13), transparent 65%);
  pointer-events: none;
  z-index: 1;
}

/* html[data-theme="dark"] .hx-commit::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
} */

.hx-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.hx-hero-intro .hx-eyebrow {
  color: var(--hx-orange);
}

.hx-hero-intro .hx-title {
  color: var(--bbc-text-heading, #1F1F1F);
  font-size: clamp(30px, 5vw, 54px);
}

.hx-hero-intro .hx-lead {
  color: var(--bbc-text-body, #616161);
}

/* hairline list of commitments */
.hx-clist {
  border-top: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
}

.hx-cmt {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 6px;
  border-bottom: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
  transition: padding .4s ease, background .4s ease;
}

.hx-cmt:hover {
  padding-left: 18px;
  background: var(--hx-orange-soft);
}

.hx-cmt-ico {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: var(--hx-orange);
  background: var(--hx-orange-soft);
  border: 1px solid rgba(234, 95, 35, 0.28);
  transition: .4s;
}

.hx-cmt:hover .hx-cmt-ico {
  background: linear-gradient(140deg, var(--hx-orange), var(--hx-orange-2));
  color: #fff;
  border-color: transparent;
}

.hx-cmt h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 0 0 4px;
}

/* .hx-cmt p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--bbc-text-body, #616161);
  margin: 0;
} */

.hx-cmt-no {
  font-size: 14px;
  font-weight: 700;
  color: var(--bbc-text-muted, rgba(0, 0, 0, 0.22));
  letter-spacing: 1px;
}

/* stat rail */
.hx-rail {
  display: flex;
  flex-wrap: wrap;
  /* margin-top: clamp(40px, 5vw, 64px); */
}

.hx-rail .s {
  flex: 1 1 150px;
  padding: 6px 26px;
  border-left: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
}

.hx-rail .s:first-child {
  border-left: 0;
  padding-left: 0;
}

.hx-rail b {
  display: block;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(120deg, var(--hx-orange), var(--hx-orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hx-rail span {
  font-size: 13px;
  color: var(--bbc-text-body, #616161);
  letter-spacing: 0.4px;
}

/* ================================================================
   SECTION 2 — POLICY  (centered pull-quote + hairline feature bar)
================================================================ */
.hx-pledge {
  max-width: 900px;
  margin: 0 auto clamp(46px, 5vw, 45px);
  text-align: center;
}

.hx-pledge .hx-qmark {
  display: block;
  background: none;
  padding: 0;
  font-size: 90px;
  line-height: 0.5;
  font-weight: 800;
  color: var(--hx-orange);
  opacity: 0.28;
}

.hx-pledge blockquote {
  font-size: clamp(20px, 2.7vw, 31px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.3px;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 6px auto 26px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  quotes: none;
}

.hx-pledge blockquote::before,
.hx-pledge blockquote::after {
  content: none;
}

.hx-pledge blockquote b {
  color: var(--hx-orange);
  font-weight: 700;
}

.hx-pledge .sign {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hx-pledge .sign::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--hx-orange);
}

.hx-pledge .sign strong {
  color: var(--bbc-text-heading, #1F1F1F);
  font-size: 16px;
}

.hx-pledge .sign span {
  color: var(--bbc-text-body, #616161);
  font-size: 16px;
}

/* hairline feature bar (shared dividers, no boxes) */
.hx-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bbc-border, rgba(0, 0, 0, 0.08));
  border: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
  border-radius: 20px;
  overflow: hidden;
}

.hx-bar-item {
  background: var(--bbc-bg-surface, #F7F7F7);
  padding: clamp(30px, 3vw, 42px) clamp(22px, 2.4vw, 32px);
  text-align: center;
  transition: background .35s ease;
}

.hx-bar-item:hover {
  background: var(--bbc-bg-elevated, #fff);
}

.hx-bar-ico {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: var(--hx-orange);
  border: 1.5px solid rgba(234, 95, 35, 0.35);
  background: var(--hx-orange-soft);
  transition: .35s;
}

.hx-bar-item:hover .hx-bar-ico {
  background: linear-gradient(140deg, var(--hx-orange), var(--hx-orange-2));
  color: #fff;
  border-color: transparent;
}

.hx-bar-item h4 {
  font-size: 23px;
  font-weight: 700;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 0 0 8px;
}

/* .hx-bar-item p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bbc-text-body, #616161);
  margin: 0;
} */

/* ================================================================
   SECTION 3 — SAFETY MANAGEMENT SYSTEM  (vertical process stepper)
================================================================ */
.hx-steps {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.hx-stp {
  position: relative;
  padding: 0 0 clamp(34px, 4vw, 48px) clamp(78px, 9vw, 104px);
}

.hx-stp:last-child {
  padding-bottom: 0;
}

.hx-stp::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 10px;
  bottom: -6px;
  width: 2px;
  background: linear-gradient(var(--hx-orange), rgba(234, 95, 35, 0.15));
}

.hx-stp:last-child::before {
  display: none;
}

.hx-stp-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--hx-orange), var(--hx-orange-2));
  box-shadow: 0 12px 26px rgba(234, 95, 35, 0.32);
  z-index: 2;
}

.hx-stp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.hx-stp-head i {
  font-size: 30px;
  color: var(--hx-orange);
}

/* .hx-stp h4 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 0;
} */

/* .hx-stp p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--bbc-text-body, #616161);
  margin: 0;
  max-width: 640px;
} */

/* ================================================================
   SECTION 4 — TRAINING  (divider matrix — shared hairlines)
================================================================ */
.hx-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bbc-border, rgba(0, 0, 0, 0.08));
  border: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
  border-radius: 20px;
  overflow: hidden;
}

.hx-mx {
  position: relative;
  background: var(--bbc-bg-surface, #F7F7F7);
  padding: clamp(30px, 3vw, 40px) clamp(24px, 2.4vw, 30px);
  transition: background .35s ease;
}

.hx-mx:hover {
  background: var(--bbc-bg-elevated, #fff);
}

.hx-mx-no {
  font-size: 13px;
  font-weight: 800;
  color: var(--hx-orange);
  letter-spacing: 1px;
}

.hx-mx-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--hx-orange);
  margin: 16px 0 18px;
  transition: transform .4s ease;
}

.hx-mx:hover .hx-mx-ico {
  transform: translateY(-4px) scale(1.08);
}

.hx-mx h4 {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 0 0 9px;
}

/* .hx-mx p {
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--bbc-text-body, #616161);
  margin: 0;
} */

/* ================================================================
   SECTION 5 — ENVIRONMENT  (split colour panel + checklist)
================================================================ */
.hx-eco2 {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 3.6vw, 56px);
  align-items: center;
}

.hx-eco-panel {
  position: relative;
  padding: clamp(40px, 4.4vw, 60px);
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(520px 300px at 110% 110%, rgba(72, 199, 142, 0.4), transparent 60%),
    linear-gradient(155deg, var(--hx-green-1), #0f3b2c);
  box-shadow: 0 26px 60px rgba(18, 80, 58, 0.28);
}

.hx-eco-panel::after {
  content: "\f06c";
  /* leaf */
  font-family: var(--rs-ff-fontawesome, "Font Awesome 6 Pro");
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -34px;
  font-size: 200px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
}

.hx-eco-panel .hx-eyebrow {
  color: var(--hx-green-2);
}

.hx-eco-panel .hx-eyebrow::before {
  background: var(--hx-green-2);
}

.hx-eco-panel h3 {
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}

/* .hx-eco-panel p {
  font-size: 15px;
  line-height: 1.85;
  color: #c7e6d8;
  margin: 0;
  position: relative;
  z-index: 2;
} */

.hx-eco-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.hx-eco-badge b {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hx-eco-badge span {
  font-size: 13.5px;
  color: #a9d6c2;
}

.hx-eco-list {}

.hx-eco-li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 4px;
  border-top: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
  transition: padding .35s ease;
}

.hx-eco-li:first-child {
  border-top: 0;
}

.hx-eco-li:hover {
  padding-left: 12px;
}

.hx-eco-li-ico {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #fff;
  background: linear-gradient(140deg, var(--hx-green), var(--hx-green-2));
  box-shadow: 0 10px 22px rgba(47, 160, 110, 0.28);
}

.hx-eco-li h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 3px 0 5px;
}

/* .hx-eco-li p {
  font-size: 14px;
  line-height: 1.68;
  color: var(--bbc-text-body, #616161);
  margin: 0;
} */

/* ================================================================
   SECTION 6 — CERTIFICATIONS  (floating seals + checklist)
================================================================ */
.hx-seals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(22px, 4vw, 62px);
  margin-bottom: clamp(46px, 5vw, 68px);
  padding-bottom: clamp(40px, 4vw, 56px);
  border-bottom: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
}

.hx-seal2 {
  width: 158px;
  text-align: center;
}

.hx-seal2 .ring {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--hx-orange);
  background: var(--hx-orange-soft);
  border: 2px dashed rgba(234, 95, 35, 0.4);
  transition: transform .45s ease, border-color .45s ease, background .45s ease;
}

.hx-seal2:hover .ring {
  transform: rotate(12deg) scale(1.05);
  border-style: solid;
  background: var(--bbc-bg-elevated, #fff);
}

.hx-seal2 h5 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 0 0 4px;
}

.hx-seal2 span {
  font-size: 13px;
  color: var(--bbc-text-body, #616161);
}

.hx-comply {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(30px, 4vw, 56px);
  max-width: 1000px;
  margin: 0 auto;
}

.hx-comply-li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
}

.hx-comply-li i {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(140deg, var(--hx-orange), var(--hx-orange-2));
}

.hx-comply-li h6 {
  font-size: 16px;
  font-weight: 700;
  color: var(--bbc-text-heading, #1F1F1F);
  margin: 3px 0 5px;
}

/* .hx-comply-li p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--bbc-text-body, #616161);
  margin: 0;
} */

/* ================================================================
   SCROLL REVEAL
================================================================ */
.hx-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.hx-reveal.is-in {
  opacity: 1;
  transform: none;
}

.hx-clist .hx-reveal.is-in,
.hx-steps .hx-reveal.is-in,
.hx-eco-list .hx-reveal.is-in {
  transition-delay: calc(var(--i, 0) * 60ms);
}

@media (prefers-reduced-motion: reduce) {
  .hx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hx-cmt,
  .hx-bar-item,
  .hx-mx,
  .hx-eco-li,
  .hx-seal2 .ring,
  .hx-cmt-ico {
    transition: none;
  }
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991px) {
  .hx-hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(30px, 6vw, 48px);
  }

  .hx-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .hx-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .hx-eco2 {
    grid-template-columns: 1fr;
  }

  .hx-eco-panel {
    order: -1;
  }
}

@media (max-width: 575px) {
  .hx-bar {
    grid-template-columns: 1fr;
  }

  .hx-matrix {
    grid-template-columns: 1fr;
  }

  .hx-comply {
    grid-template-columns: 1fr;
  }

  .hx-cmt {
    grid-template-columns: auto 1fr;
  }

  .hx-cmt-no {
    display: none;
  }

  .hx-rail .s {
    flex-basis: 45%;
    padding: 10px 18px;
    margin-bottom: 12px;
  }

  .hx-stp {
    padding-left: 70px;
  }

  .hx-stp-node {
    width: 56px;
    height: 56px;
    font-size: 19px;
  }

  .hx-stp::before {
    left: 27px;
  }
}


@media (min-width:992px) and (max-width:1099px) {
  .hx-rail .s {
    flex: 1 1 100px;
    padding: 6px 26px;
    border-left: 1px solid var(--bbc-border, rgba(0, 0, 0, 0.08));
  }
}

@media (min-width:0px) and (max-width:475px) {

  .hx-rail span {
    font-size: 10.5px;
    color: var(--bbc-text-body, #616161);
    letter-spacing: 0px;
  }

  .hx-rail .s {
    flex-basis: 28%;
    padding: 10px 18px;
    margin-bottom: 12px;
  }

  .hx-pledge .sign {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }

  .hx-stp-head {
    flex-wrap: nowrap;
  }

  .rs-section-subtitle {
    font-size: 14px;
  }
}

@media (min-width:3001px) and (max-width:6000px) {
  .hx-rail span {
    font-size: 20px;
  }

  .hx-cmt h3 {
    font-size: 25px;
  }

  .hx-cmt-no {
    font-size: 20px;
  }

  .hx-pledge .sign strong {
    font-size: 22px;
  }

  .hx-pledge .sign span {
    font-size: 22px;
  }

  .hx-steps {
    max-width: 1060px;
    margin-top: 22px;
  }

  .space-4k {
    padding: 50px 0 !important;
  }

  .rs-about-eight .rs-about-thumb-wrapper {
    margin-bottom: 0px;
  }

  .hse1-z {
    width: 850px;
  }

  .hse1-def dt {
    font-size: 25px;
  }

  .hse1-def dd {
    font-size: 22px;
  }

  .hse1-defs {
    max-width: 1360px;
    margin: 0 auto;
  }
      .rs-about-eight .rs-about-thumb-wrapper {
        margin-bottom: 0px;
        display: flex;
        justify-content: center;
    }
}