/* ========================================
   Base
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  font-weight: 200;
  background: #f3f4f6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.rclw {
  background: linear-gradient(to right, #beccde 0%, #eef2f8 20%, #eef2f8 80%, #beccde 100%);
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.page {
  padding: 26px 0 40px;
}

.content-shell {
  background: #fff;
  border: 1px solid #e1e4ea;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: visible;
}

.content-shell > section {
  padding: 60px 0;
}

.content-shell > section:first-of-type {
  padding-top: 0;
  padding-bottom: 0;
}

.content-shell > section:nth-of-type(odd) {
  background: #010b2a;
  color: #fff;
}

.content-shell > section:nth-of-type(even) {
  background: #fff;
  color: #000;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

a {
  color: inherit;
}

p {
  line-height: 1.6;
}

.cred {
  color: #cc0000;
}

.lightbox-img {
  cursor: pointer;
}

/* Shared headings */

#services h2,
#mission h2,
#customers h2,
#safety h2,
#ptc h3 {
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.2;
}

/* ========================================
   Home
======================================== */

.home {
  position: relative;
  width: 100%;
  margin: 0;
}

.home-img {
  width: 100%;
}

.home-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.home-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.home-text {
  position: relative;
  max-width: 860px;
  color: #fff;
  text-shadow:
    0 0 10px #0b3b8c,
    0 0 20px #0b3b8c,
    0 0 30px #0b3b8c,
    0 0 40px #000;
}

.home-text h1 {
  margin: 0 0 10px;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 56px;
  font-weight: 100;
  line-height: 1.1;
}

.home-text p {
  margin: 10px 0 0;
  font-size: 28px;
  font-weight: 100;
  line-height: 1.5;
  color: #fff;
}

.home-count {
  display: inline-block;
  min-width: 5ch;
}

/* ========================================
   Services
======================================== */

#services h2 {
  max-width: 900px;
  margin: 50px auto;
  padding: 0;
  text-align: center;
  letter-spacing: 0.5px;
  font-size: 48px;
  font-weight: 200;
}

#services > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  width: min(100%, 1000px);
  margin: 0 auto 40px;
}

#services figure {
  margin: 0;
  text-align: center;
}

#services figcaption {
  margin: 0 0 14px;
  text-align: center;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 200;
  color: #555;
}

#services img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ========================================
   Mission
======================================== */

#mission h2 {
  margin: 40px 0 15px;
  text-align: center;
  color: #cc0000;
}

#mission p {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  font-size: 24px;
  line-height: 2;
}

#mission strong {
  font-weight: 700;
}

/* ========================================
   Customers
======================================== */

#customers h2 {
  margin: 50px 0 10px;
  text-align: center;
}

#customers p {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
}

#customers > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 900px;
  margin: 0 auto 50px;
  align-items: center;
}

#customers figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#customers img {
  width: auto;
  max-height: 80px;
  opacity: 0.9;
  filter: grayscale(100%);
}

#customers figure:first-child img {
  transform: scale(1.5);
}

/* ========================================
   Services 2
======================================== */

#services2 {
  padding-bottom: 40px;
}

#services2 > div:first-child {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
}

#services2 h2 {
  margin: 0 0 10px;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 56px;
  font-weight: 200;
  line-height: 1.1;
}

#services2 p {
  margin: 20px;
  font-size: 22px;
  line-height: 1.5;
}

.count-up {
  display: inline-block;
  min-width: 3ch;
}

.count-up::after {
  content: "+";
  color: #cc0000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.count-up.plus-visible::after {
  opacity: 1;
}

.stat {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-plus {
  color: #cc0000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-plus.is-visible {
  opacity: 1;
}

/* ========================================
   Services 3
======================================== */

#services3 > div {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 60px auto;
}

#services3 figure {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
  gap: 30px;
  margin: 0;
}

#services3 figcaption {
  font-size: 18px;
  line-height: 1.5;
  color: #555;
}

#services3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#services figure,
#services3 figure {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

#services figure.in-view,
#services3 figure.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   SMI
======================================== */

#smi {
  text-align: center;
}

#smi p {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  font-size: 24px;
  line-height: 2;
}

#smi a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 22px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #d61f26;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.1s ease;
}

#smi a:hover {
  background: #b71b21;
}

#smi a:active {
  transform: translateY(1px);
}

/* ========================================
   Safety
======================================== */

#safety > div:first-child {
  max-width: 800px;
  margin: 0 auto;
}

#safety h2 {
  margin: 40px 0 15px;
  text-align: center;
  font-size: 48px;
}

#safety div:first-child p {
  text-align: center;
}

#safety div:first-child p:first-of-type img {
  margin: 10px auto 20px;
}

#safety div:first-child p:nth-of-type(2) {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 24px;
  line-height: 1.6;
}

#safety > div:first-child p:last-of-type {
  margin-bottom: 80px;
}

#safety > div:last-child {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: 60px;
  max-width: 800px;
  margin: 0 auto;
}

#safety .ptc-intro {
  grid-column: 1;
  align-self: start;
}

#safety .ptc-intro h3 {
  margin: 0 0 6px;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

#safety .ptc-intro p {
  margin: 0;
  text-align: left !important;
  font-size: 18px;
  line-height: 1.6;
}

#safety > div:last-child > p:first-of-type {
  grid-column: 2;
  margin: 0;
}

#safety > div:last-child h4,
#safety > div:last-child ul {
  grid-column: 1 / span 2;
}

#safety > div:last-child h4 {
  margin: 40px 0 1px;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

#safety > div:last-child ul {
  margin: 0 0 40px;
  padding: 20px;
  list-style: square;
}

#safety > div:last-child li {
  margin: 5px 0;
  font-size: 16px;
}

#safety > div:last-child li a {
  color: #2a7fd6;
  text-decoration: none;
  font-weight: 600;
}

#safety > div:last-child li a:hover {
  color: #1f5fa3;
}

/* ========================================
   PTC
======================================== */

#ptc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  row-gap: 40px;
  padding: 60px 120px 30px 60px;
}

#ptc h3,
#ptc > p:first-of-type {
  grid-column: 1 / span 2;
}

#ptc h3 {
  margin: 0 0 1px;
  text-align: left;
}

#ptc > p:first-of-type {
  max-width: 700px;
  margin: 0 auto 0;
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
}

#ptc > div:first-of-type {
  text-align: center;
}

#ptc > div:last-of-type {
  max-width: 340px;
  margin: 0 auto;
}

#ptc > div:last-of-type p {
  margin: 0;
  text-align: left;
  font-size: 18px;
  line-height: 2;
}

.ptc-ring {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
  isolation: isolate;
}

.ptc-ring p {
  position: relative;
  z-index: 1;
  max-width: 150px;
  margin: 0;
  font-size: 14px !important;
  line-height: 1;
}

.ptc-ring > div:last-child {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  transform: scale(0.9);
}

.ptc-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 0;
}

.ptc-ring-circle {
  fill: none;
  stroke: #cc0000;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 289.03;
  stroke-dashoffset: 289.03;
}

.ptc-ring.is-visible .ptc-ring-circle {
  animation: ptc-draw-ring 0.9s ease-out forwards;
}

.ptc-ring.is-visible > div:last-child {
  animation: ptc-number-pop 0.45s ease-out 0.75s forwards;
}

@keyframes ptc-draw-ring {
  from {
    stroke-dashoffset: 289.03;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ptc-number-pop {
  from {
    transform: scale(0.9);
  }
  to {
    transform: scale(1);
  }
}

/* ========================================
   Desktop
======================================== */

@media (min-width: 1024px) {
  #mission p {
    max-width: 600px;
  }

  #ptc {
    padding-left: 120px;
    padding-right: 180px;
  }
}

/* ========================================
   Mobile
======================================== */

@media (max-width: 768px) {
  .container {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
  }

  .page {
    padding: 0;
  }

  .content-shell > section {
    padding: 44px 0;
  }

  .content-shell > section:first-of-type {
    padding-top: 0;
    padding-bottom: 0;
  }

  #services,
  #customers,
  #services2,
  #services3,
  #safety,
  #ptc {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  section p {
    max-width: 38ch;
    margin-left: auto;
    margin-right: auto;
  }

  .lightbox-img {
    border-radius: 8px;
  }

  /* Shared headings */

  #services h2,
  #mission h2,
  #customers h2,
  #safety h2,
  #ptc h3 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  /* Home */

  .home {
    min-height: 420px;
  }

  .home-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
  }

  .home-overlay {
    padding: 24px 20px;
  }

  .home-text {
    max-width: 100%;
  }

  .home-text h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .home-text p {
    margin-top: 0;
    font-size: 18px;
    line-height: 1.5;
  }

  /* Services */

  #services h2 {
    margin: 20px auto 32px;
    padding: 0 8px;
    max-width: 100%;
    font-size: 34px;
  }

  #services > div:last-child {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    margin: 0 auto;
  }

  #services figure {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    padding: 14px 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  #services figcaption {
    margin: 0 0 12px;
    padding: 0 4px;
    font-size: 17px;
    line-height: 1.4;
  }

  /* Mission */

  #mission {
    padding: 32px 0;
  }

  #mission h2 {
    margin: 0 0 14px;
    font-size: 32px;
  }

  #mission p {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
    font-size: 20px;
    line-height: 1.55;
  }

  /* Customers */

  #customers h2 {
    margin: 20px 0 10px;
  }

  #customers p {
    margin: 0 auto 28px;
    padding: 0 10px;
  }

  #customers > div:last-child {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 320px;
    margin: 0 auto 20px;
  }

  #customers figure:first-child img {
    transform: scale(1);
  }

  #customers img {
    width: auto;
    margin: 10px auto;
  }

  #customers figure:nth-child(1) img {
    max-height: 80px;
  }

  #customers figure:nth-child(2) img {
    max-height: 42px;
  }

  #customers figure:nth-child(3) img {
    max-height: 55px;
  }

  /* Services 2 */

  #services2 > div:first-child {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 360px;
    margin: 40px auto 60px;
  }

  #services2 > div:first-child > div {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 22px 18px;
  }

  #services2 h2 {
    margin-bottom: 6px;
    font-size: 42px;
  }

  #services2 p {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
    color: #fff;
  }

  #services2 > div:last-child img {
    width: 100%;
    height: auto;
  }

  /* Services 3 */

  #services3 > div {
    gap: 28px;
    margin: 20px auto 0;
  }

  #services3 figure {
    grid-template-columns: 1fr;
    gap: 14px;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    padding: 14px 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  #services3 figcaption {
    padding: 0 4px 2px;
    font-size: 17px;
    line-height: 1.5;
    text-align: left;
    color: #333;
  }

  /* SMI */

  #smi {
    padding: 32px 0;
  }

  #smi p {
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 0 12px;
    font-size: 20px;
    line-height: 1.55;
  }

  #smi a {
    min-height: 44px;
    line-height: 44px;
    padding: 0 22px;
    font-size: 18px;
  }

  /* Safety */

  #safety > div:first-child {
    max-width: 100%;
    margin: 20px 12px 36px;
    padding: 18px 18px 20px;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  #safety h2 {
    margin: 0 0 10px;
    font-size: 32px;
    text-align: center;
  }

  #safety div:first-child p:first-of-type img {
    margin: 10px auto 14px;
  }

  #safety div:first-child p:nth-of-type(2) {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.55;
  }

  #safety > div:first-child p:last-of-type {
    margin-bottom: 0;
    padding: 0;
    text-align: left;
    line-height: 1.6;
    background: none;
    border: none;
    box-shadow: none;
  }

  #safety > div:last-child {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
    margin: 0 12px 40px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  }

  #safety .ptc-intro {
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  #safety .ptc-intro h3 {
    margin-bottom: 6px;
    font-size: 26px;
  }

  #safety .ptc-intro p {
    text-align: left;
  }

  #safety > div:last-child > p:first-of-type,
  #safety > div:last-child h4,
  #safety > div:last-child ul {
    grid-column: auto;
  }

  #safety > div:last-child > p:first-of-type {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
  }

  #safety > div:last-child > p:first-of-type img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  #safety > div:last-child h4 {
    margin: 10px 0 6px;
    font-size: 22px;
  }

  #safety > div:last-child ul {
    margin: 0;
    padding-left: 20px;
  }

  #safety > div:last-child li {
    margin: 6px 0;
    font-size: 16px;
  }

  /* PTC */

  #ptc {
    grid-template-columns: 1fr;
    row-gap: 22px;
    padding: 36px 20px;
  }

  #ptc h3,
  #ptc > p:first-of-type {
    grid-column: auto;
  }

  #ptc h3 {
    margin: 0;
    text-align: center;
    font-size: 32px;
  }

  #ptc > p:first-of-type {
    max-width: 100%;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    text-align: left;
  }

  #ptc > div:first-of-type {
    margin: 0 auto;
    text-align: center;
  }

  #ptc > div:last-of-type {
    max-width: 100%;
    margin: -4px 0 0;
    padding: 0 6px;
  }

  #ptc > div:last-of-type p {
    font-size: 17px;
    line-height: 1.6;
  }

  .ptc-ring {
    max-width: 220px;
    margin: 6px auto 10px;
    padding: 20px 16px;
  }

  .ptc-ring p {
    max-width: 140px;
    font-size: 13px !important;
    line-height: 1.2;
  }

  .ptc-ring > div:last-child {
    font-size: 46px;
  }
}

