/* About TPRS cluster — about-us, careers, life-at-tprs, quality-and-certification */

/* "Why TPRS?" 3-column layout (about-us) */
/* Pull-quote (quality-and-certification "TPRS Promise") */
.pull-quote {
  border-left: 4px solid var(--color-gold);
  padding: 8px 0 8px 28px;
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: var(--color-text-dark);
  line-height: var(--lh-heading);
}

/* Callout box (Dowsil Quality Bond assurance paragraph) */
.callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.callout p {
  color: var(--color-text);
}

/* ---------- Careers ---------- */
/* Live: an 815px measure centred on a #f6f6f6 band, with a gold pill below. */
.careers-intro {
  padding-block: 78px 20px;
  background: #f6f6f6;
}

.careers-intro__body {
  max-width: 815px;
  margin-inline: auto;
  text-align: center;
}

.careers-intro__body p {
  max-width: none;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.647;
  text-align: justify;
}

.careers-intro__cta {
  margin-top: 20px;
  padding: 17px 45px;
  border: 0;
  border-radius: 30px;
  background: #fcaf17;
  color: #fff;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

.careers-apply {
  padding-block: 140px;
  background: var(--color-surface);
}

.careers-apply__grid {
  display: grid;
  grid-template-columns: 429px minmax(0, 860px);
  align-items: start;
}

.careers-apply__heading {
  margin-top: 8px;
  max-width: 430px;
  color: var(--color-text-dark);
  font-size: 1.75rem;
  font-weight: var(--fw-medium);
  line-height: 1.214;
}

/* Careers application form — underlined fields on a two-column grid, with a
   line icon in each field's left gutter. */
.apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 37px;
}

.apply-form__field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.apply-form__field--wide {
  grid-column: 1 / -1;
  margin-top: 5px;
}

.field-icon {
  position: absolute;
  top: 14px;
  left: 0;
  display: block;
  color: var(--color-text);
  line-height: 0;
}

.apply-form__field input[type="text"],
.apply-form__field input[type="email"],
.apply-form__field input[type="tel"],
.apply-form__field textarea {
  width: 100%;
  padding: 13px 0 13px 36px;
  border: 0;
  border-bottom: 1px solid #e3e3e3;
  border-radius: 0;
  background: none;
  color: var(--color-text-dark);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.1px;
}

.apply-form__field input::placeholder,
.apply-form__field textarea::placeholder {
  color: #9c9c9c;
}

.apply-form__field textarea {
  resize: vertical;
  min-height: 99px;
}

/* the file row keeps its visible label, as live does */
.apply-form__field--file label {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.75;
}

.apply-form__field--file input[type="file"] {
  margin-top: 4px;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.apply-form__field input:focus-visible,
.apply-form__field textarea:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.apply-form__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 47px;
  margin-top: 23px;
}

/* the pill both forms share */
.form-pill {
  gap: 12px;
  padding: 17px 45px;
  border: 0;
  border-radius: 30px;
  background: #18578c;
  color: #fff;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

.apply-form__consent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1;
}

.apply-form .form-status {
  grid-column: 1 / -1;
}

@media (max-width: 1279px) {
  .careers-apply {
    padding-block: 64px;
  }

  .careers-apply__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .apply-form {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .apply-form__submit {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .careers-intro {
    padding-block: 48px 20px;
  }
}

/* ---------- Life at TPRS ---------- */
.life-intro {
  padding-block: 45px 100px;
  background: var(--color-surface);
}

.life-intro__body {
  max-width: 950px;
  margin-inline: auto;
}

.life-intro__body p {
  max-width: none;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.647;
  text-align: justify;
}

/* Two image boxes, 630px wide in 660px columns. The left one starts 32px
   lower and carries a shorter image, exactly as the live page staggers them. */
.life-boxes {
  background: var(--color-surface);
}

.life-boxes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 630px));
  justify-content: space-between;
  align-items: start;
}

.life-box--offset {
  margin-top: 32px;
}

.life-box__img {
  width: 100%;
  height: auto;
  aspect-ratio: 630 / 420;
  object-fit: cover;
  border-radius: 14px;
}

.life-box__img--short {
  aspect-ratio: 630 / 355;
}

.life-box__title {
  margin-top: 24px;
  color: var(--color-text-dark);
  font-size: 2.1877rem;
  font-weight: var(--fw-medium);
  line-height: 1.086;
}

.life-box__text {
  max-width: none;
  margin-top: 24px;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.647;
}

/* Safety banner — 400px of artwork behind a 50% scrim, copy capped at 66%. */
.life-banner-section {
  padding-block: 50px;
  background: var(--color-surface);
}

.life-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 50px;
  overflow: hidden;
  background: #833ca3 url("/assets/img/about/safety-banner.jpg") center / cover no-repeat;
  color: #fff;
}

.life-banner__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.life-banner__inner {
  position: relative;
  max-width: 66%;
}

.life-banner__title {
  color: #fff;
  font-size: 2.1875rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.life-banner__text {
  max-width: none;
  margin-top: 30px;
  color: #fff;
  font-size: 1.0625rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .life-boxes__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .life-box--offset {
    margin-top: 0;
  }

  .life-banner {
    padding: 32px;
  }

  .life-banner__inner {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .life-intro {
    padding-block: 32px 48px;
  }
}

/* ---------- Vision & Mission ---------- */
/* Live: two rounded cards (sky #4cc3f2 / amber #ffbf01) on a 1320px row that
   overhangs the 1290 container by 15px each side, top-aligned so each card is
   only as tall as its own copy. */
.vm-cards-section {
  padding-block: 56px 50px;
  background: var(--color-surface);
}

.vm-cards {
  display: grid;
  /* the two live columns are not equal: 643 + 17 gutter + 660 = 1320 */
  grid-template-columns: 643fr 660fr;
  gap: 17px;
  align-items: start;
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.vm-card {
  padding: 62px 30px 63px;
  border-radius: 20px;
  color: #fff;
}

.vm-card--vision {
  background: #4cc3f2;
}

.vm-card--mission {
  /* live sets a shorter spacer above and below the mission copy */
  padding-block: 44px 42px;
  background: #ffbf01;
}

.vm-card--mission .vm-card__text {
  max-width: 369px;
}

.vm-card__label {
  max-width: 358px;
  margin-bottom: 19px;
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.286;
  letter-spacing: 1.8px;
  text-transform: capitalize;
}

.vm-card__text {
  /* live sets the copy in a narrow sub-column, ~358px inside a 643px card */
  max-width: 358px;
  font-size: 1.0625rem;
  line-height: 1.647;
}

/* The TREE breakdown is a single artwork on the live page, sitting on a
   700px-tall navy band. */
.vm-tree {
  background: #0c4c83;
}

.vm-tree__inner {
  display: flex;
  justify-content: center;
  width: min(100% - 48px, 1290px);
  margin-inline: auto;
}

/* the artwork sits at its natural 1240x700 with rounded corners, not stretched
   to the full container width */
.vm-tree__inner img {
  width: 100%;
  max-width: 1240px;
  height: auto;
  border-radius: 14px;
}

@media (max-width: 767px) {
  .vm-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .vm-card,
  .vm-card--mission {
    padding: 40px 24px;
  }

  .vm-cards-section {
    padding-block: 40px;
  }
}

/* live closes the page with a 50px band of white before the footer */
.vm-tree {
  margin-bottom: 50px;
}

/* ---------- About Us ---------- */
/* Intro: a 950px measure centred in the 1290 container, 45px above and 100px
   below, matching the live spacer widgets. */
.about-intro {
  padding-block: 45px 100px;
  background: var(--color-surface);
}

.about-intro__body {
  max-width: 950px;
  margin-inline: auto;
}

.about-intro__body p {
  max-width: none;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.647;
  text-align: justify;
}

.about-intro__body p + p {
  margin-top: 26px;
}

/* The stats + milestones band carries the theme's tiled paper texture. */
.about-story {
  padding-block: 70px 50px;
  background: #fff url("/assets/img/sections/bg-overlay.png") repeat;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.about-stats__value {
  display: block;
  color: var(--color-navy);
  font-size: 3.8367rem;
  font-weight: var(--fw-medium);
  line-height: 1;
}

.about-stats__label {
  display: block;
  margin-top: 5px;
  color: #111915;
  font-size: 1.1875rem;
  font-weight: var(--fw-medium);
  line-height: 1.65;
}

/* head row: title | copy | arrows */
.milestones-head {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr) 284px;
  align-items: start;
  margin-top: 70px;
}

.milestones-head h2 {
  color: #111915;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5625rem);
  font-weight: var(--fw-medium);
  line-height: 1.088;
  letter-spacing: -1.8px;
}

.milestones-head__text {
  max-width: 571px;
  margin-top: 10px;
  color: #7e7972;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.milestones-head__nav {
  justify-content: flex-end;
  margin-top: 32px;
}

.milestones-head__nav .carousel-nav__btn {
  background: #fff;
}

/* The strip starts at the container's left edge but runs to the viewport edge,
   so the fourth milestone is half-visible exactly as it is on the live page. */
.milestones {
  margin-top: 50px;
  padding-left: max(20px, calc((100% - (var(--container-max) + 96px)) / 2 + 48px));
}

.milestones__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 410px;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.milestones__track::-webkit-scrollbar {
  display: none;
}

.milestone {
  scroll-snap-align: start;
}

/* the year sits above a hairline that spans the column */
.milestone__year {
  max-width: none;
  padding-bottom: 25px;
  border-bottom: 1px solid #cfc8be;
  color: #111915;
  font-size: 1.6533rem;
  font-weight: var(--fw-medium);
  line-height: 1.214;
}

.milestone__text {
  max-width: none;
  margin-top: 16px;
  color: #7e7972;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ---------- Why TPRS ---------- */
.why-tprs-section {
  /* live: 30px section padding + a 50px spacer above, 50px below */
  padding-block: 80px 50px;
  background: var(--color-surface);
}

.why-tprs {
  display: grid;
  /* live columns: 430 heading | 543 copy | 266 button */
  grid-template-columns: 430px 543px 266px;
  justify-content: start;
  gap: 0;
  align-items: start;
}

.why-tprs__head h2 {
  margin-top: 20px;
  color: var(--color-text-dark);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5625rem);
  font-weight: var(--fw-medium);
  line-height: 1.088;
  letter-spacing: -1.8px;
}

.why-tprs__text {
  max-width: 461px;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.647;
}

.why-tprs__cta {
  justify-self: center;
  margin-top: 29px;
  padding: 17px 45px;
  border: 0;
  border-radius: 30px;
  background: #18578c;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  line-height: 1.5;
}

.why-tprs__head .eyebrow {
  margin-bottom: 0;
}

/* live sets these section eyebrows in medium on near-black, not the sitewide
   navy semibold */
#main .eyebrow {
  color: var(--color-text-dark);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.286;
  letter-spacing: 1.8px;
  text-transform: capitalize;
}

.why-tprs__head h2 {
  margin-top: 20px;
}

/* the fixed live column widths only fit above the theme's 1279px breakpoint */
@media (max-width: 1279px) {
  .milestones-head,
  .why-tprs {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .milestones-head__nav,
  .why-tprs__cta {
    justify-self: start;
    justify-content: flex-start;
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .about-intro {
    padding-block: 32px 48px;
  }

  .about-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .milestones__track {
    grid-auto-columns: min(410px, 82vw);
  }

  .why-tprs-section {
    padding-block: 48px;
  }
}

/* ---------- Quality and Certification ---------- */
.quality-intro {
  padding-block: 45px 0;
}

.quality-intro__body {
  max-width: 950px;
  margin-inline: auto;
}

.quality-intro__body p {
  max-width: none;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.647;
  text-align: justify;
}

/* Certifications: a centred head over a four-up grid of white cards on the
   live page's pale blue band. */
.certs {
  padding-block: 140px 145px;
  background: #f4f8fa;
}

.certs__head {
  margin-bottom: 47px;
  text-align: center;
}

.certs__eyebrow {
  max-width: none;
  margin-bottom: 19px;
  color: #181d4e;
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.286;
  letter-spacing: 1.8px;
  text-transform: capitalize;
}

.certs__heading {
  color: #181d4e;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5625rem);
  font-weight: var(--fw-medium);
  line-height: 1.088;
  letter-spacing: -1.8px;
}

.certs__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cert-card {
  padding: 64.6px 34px 32.3px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

/* live renders each mark at its natural size, only capping the width to the
   card's 232px content box — small logos are never upscaled */
.cert-card__image {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.cert-card__name {
  margin-top: 37px;
  color: #181d4e;
  font-size: 1.4163rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
}

.cert-card__desc {
  max-width: none;
  margin-top: 6px;
  color: #5f5f65;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Latest Blogs — a four-up strip of post cards with dots below. */
.latest-blogs {
  padding-block: 50px 139px;
}

.latest-blogs__head {
  margin-bottom: 45px;
}

.latest-blogs__head h2 {
  color: var(--color-text-dark);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5625rem);
  font-weight: var(--fw-medium);
  line-height: 1.088;
  letter-spacing: -1.8px;
}

/* live clips the carousel to the 1290 container, so exactly four cards show
   and nothing bleeds past the right edge */
.latest-blogs__strip {
  overflow: hidden;
}

.latest-blogs__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.latest-blogs__track::-webkit-scrollbar {
  display: none;
}

.blog-mini {
  scroll-snap-align: start;
}

.blog-mini__link {
  display: grid;
  color: inherit;
}

.blog-mini__thumb {
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.blog-mini__thumb img {
  width: 100%;
  height: auto;
  /* the post artwork is 3:2; cropping clipped its baked-in headline */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease-default);
}

.blog-mini__link:hover .blog-mini__thumb img,
.blog-mini__link:focus-visible .blog-mini__thumb img {
  transform: scale(1.04);
}

.blog-mini__cat {
  margin-top: 16px;
  color: var(--color-text-dark);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.blog-mini__title {
  margin-top: 11px;
  color: var(--color-text-dark);
  font-size: 1.5rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
}

/* date and comment count share a row, separated by a bullet */
.blog-mini__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  color: #9c9c9c;
  font-size: 0.875rem;
  line-height: 1.5;
}

.blog-mini__comments::before {
  content: "•";
  margin-right: 8px;
}

.latest-blogs .carousel-dots {
  margin-top: 46px;
}

@media (max-width: 1023px) {
  .certs__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .certs {
    padding-block: 64px;
  }

  .latest-blogs {
    padding-block: 40px 64px;
  }
}

@media (max-width: 767px) {
  .certs__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cert-card {
    padding: 40px 24px 28px;
  }
}

/* live's blog dots: 8px, navy when active and pale grey otherwise */
.carousel-dots--navy {
  gap: 12px;
}

.carousel-dots--navy .carousel-dots__dot {
  width: 8px;
  height: 8px;
  background: #e2e1e0;
}

.carousel-dots--navy .carousel-dots__dot.is-active {
  background: #18578c;
}
