/* Detail pages — the solution pages (TPRS Tuffsafe et al) and the industry
   pages (Architecture et al), which share the same section furniture.
   Measured off tprsglass.com/tprs-tuffsafe/ at a 1889px viewport: 1290px
   container, 700px flat dark hero, and two 630px columns with a 30px gutter. */

/* ---------- hero ---------- */
.solution-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: flex-start;
  padding-block: 212px 60px;
  /* colour is the fallback behind the artwork, matching the live section */
  background-color: #161515;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

/* The artwork is already dark where the copy sits (19-45/255 across the seven
   solutions), so this only guards legibility rather than washing the image
   out. */
.solution-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 8, 8, 0.55) 0%, rgba(8, 8, 8, 0.3) 45%, rgba(8, 8, 8, 0.12) 100%);
}

.solution-hero__inner {
  position: relative;
}

.solution-hero__eyebrow {
  max-width: none;
  margin-bottom: 12px;
  color: #fff;
  font-size: 1.125rem;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 2px;
}

.solution-hero__title {
  max-width: 17ch;
  color: #fff;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5625rem);
  font-weight: var(--fw-light);
  line-height: 1.14;
  letter-spacing: -1.8px;
}

.solution-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 58px;
  color: #fff;
  font-size: 1rem;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  letter-spacing: 2px;
  transition: opacity var(--dur-base) var(--ease-default);
}

.solution-hero__cta:hover,
.solution-hero__cta:focus-visible {
  opacity: 0.75;
}

.solution-hero__cta-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

@media (max-width: 767px) {
  .solution-hero {
    min-height: 0;
    padding-block: calc(var(--header-height) + 64px) 64px;
  }

  .solution-hero__cta {
    margin-top: 40px;
  }
}

/* ---------- section rhythm ---------- */
.solution-section {
  padding-block: 40px;
}

/* the live page puts a 50px spacer section after these two */
.solution-section--spaced {
  padding-bottom: 90px;
}

.solution-intro-section {
  padding-block: 72px;
}

.solution-intro {
  max-width: 950px;
  margin-inline: auto;
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.647;
  text-align: justify;
}

/* ---------- shared section head ---------- */
.solution-split__head .eyebrow {
  display: block;
  margin-bottom: 19.6px;
  color: var(--color-text-dark);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.286;
  letter-spacing: 1.8px;
  text-transform: none;
}

.solution-split__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;
}

/* head left, content right */
/* the live accordion is inset from its column edge */
.solution-split__body {
  padding-left: 34px;
}

.solution-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  /* the live page centres the head against the accordion beside it */
  align-items: center;
}

/* head left, control (arrows / button) right */
.solution-headrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

@media (max-width: 900px) {
  .solution-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* ---------- applications ---------- */
.solution-headrow__nav {
  margin: 0;
}

.solution-apps .carousel-nav__btn {
  width: 40px;
  height: 40px;
  border: 1px solid #cfc8be;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text-dark);
}

.solution-apps .application-card {
  flex: 0 0 410px;
  min-height: 480px;
}

.solution-apps .applications-carousel__track {
  gap: 30px;
}

/* The live strip runs to the right edge of the viewport rather than stopping
   at the container, so a fourth card is partly visible. The strip is a
   full-width sibling of the container and pads itself in to the container's
   content edge — using 50vw here would overshoot by half a scrollbar. */
.solution-apps__strip {
  padding-left: max(48px, calc((100% - var(--container-max)) / 2));
  padding-right: 24px;
}

@media (max-width: 767px) {
  .solution-apps__strip {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .solution-apps .application-card {
    flex-basis: 280px;
    height: 380px;
    min-height: 0;
  }
}

/* ---------- FAQs ---------- */
.solution-faqs .solution-split__head h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.1vw, 2.9375rem);
  line-height: 1.07;
  letter-spacing: normal;
}

.solution-faqs__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 143px;
  padding: 14px 28px;
  border-radius: 30px;
  background: #18578c;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  transition: background-color var(--dur-base) var(--ease-default);
}

.solution-faqs__cta:hover,
.solution-faqs__cta:focus-visible {
  background: var(--color-navy-dark);
}

/* ---------- accordion (scoped: shorter rows, larger label than sitewide) ---------- */
.solution-section .accordion__trigger {
  padding: 15px 20px;
  font-size: 1.1875rem;
  font-weight: var(--fw-medium);
  line-height: 1.158;
}

.solution-section .accordion__panel-inner {
  padding: 0 20px 14px;
}

.solution-section .accordion__panel-inner p {
  max-width: none;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---------- application cards ---------- */
.solution-apps .application-card {
  height: 480px;
  min-height: 0;
  /* height is explicit here, so the base 3/4 ratio must not also apply */
  aspect-ratio: auto;
}

.solution-apps .application-card__title {
  font-size: 1.625rem;
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.solution-apps .application-card__tagline {
  max-width: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* FAQ rows are lighter and roomier than the highlight/spec rows */
.solution-faqs .accordion__trigger {
  padding: 20px;
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 1.5;
}

/* ============================================================
   Industry pages
   ============================================================ */

/* head sits top-aligned where the right column is body copy, not a control */
.solution-split--top {
  align-items: start;
}

/* At a Glance puts the figure closer in than the 50/50 split used elsewhere */
/* Live lays the glance out on three equal columns (430px each at the 1290
   container) with the third left empty, and each column carries ~15px of
   inner padding. The two filled columns are top-aligned. */
.solution-split--narrow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.solution-split--narrow .solution-split__head {
  padding-left: 14px;
}

@media (max-width: 900px) {
  .solution-split--narrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .solution-split--narrow .solution-split__head {
    padding-left: 0;
  }
}

/* ---------- At a Glance ---------- */
.glance-stat {
  padding-left: 15px;
}

/* the live counter steps down at the theme's 1279px breakpoint rather than
   scaling fluidly: 66.113/19 above it, 54.4/17 below */
.glance-stat__value {
  max-width: none;
  color: var(--color-navy);
  font-size: 4.1321rem;
  font-weight: var(--fw-light);
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
}

.glance-stat__label {
  max-width: none;
  margin-top: 6px;
  color: #000;
  font-size: 1.1875rem;
  font-weight: var(--fw-light);
  line-height: 1.368;
}

@media (max-width: 1279px) {
  .glance-stat__value {
    font-size: 3.4rem;
  }

  .glance-stat__label {
    font-size: 1.0625rem;
    line-height: 1.412;
  }
}

@media (max-width: 900px) {
  .glance-stat {
    padding-left: 0;
  }
}

/* ---------- Client strip ---------- */
.industry-clients .solution-split__head {
  margin-bottom: 46px;
}

.industry-clients .solution-split__head h2 {
  max-width: 430px;
}

/* live slide: 242px wide, 15/20 inner padding, logo filling the 202px content
   box and the name 40px below it */
.client-logos__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  flex: 0 0 242px;
  padding: 15px 20px;
  text-align: center;
}

.client-logos__item + .client-logos__item {
  border-left: 1px solid var(--color-border);
}

/* These logo files carry a lot of transparent padding, so the box has to be
   generous for the mark itself to read at the live site's size. */
.client-logos__logo {
  display: block;
  width: 100%;
}

.client-logos__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.client-logos__name {
  color: var(--color-text-dark);
  font-size: 1.4163rem;
  font-weight: var(--fw-medium);
  line-height: 1.2;
}

/* ---------- Projects mosaic (1 : 1 : 2, full bleed) ---------- */
.detail-mosaic__intro {
  max-width: none;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.75;
}

.detail-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: repeat(2, 360px);
  gap: 0;
  margin-top: 44px;
}

.detail-mosaic__item--1 { grid-column: 1; grid-row: 1 / span 2; }
.detail-mosaic__item--2 { grid-column: 2; grid-row: 1; }
.detail-mosaic__item--3 { grid-column: 2; grid-row: 2; }
.detail-mosaic__item--4 { grid-column: 3; grid-row: 1 / span 2; }

.detail-mosaic__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

.detail-mosaic__link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.detail-mosaic__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-default);
}

.detail-mosaic__link:hover img,
.detail-mosaic__link:focus-visible img {
  transform: scale(1.04);
}

.detail-mosaic__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-default);
}

.detail-mosaic__link:hover .detail-mosaic__caption,
.detail-mosaic__link:focus-visible .detail-mosaic__caption {
  opacity: 1;
}

.detail-mosaic__title {
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
}

.detail-mosaic__category {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  .detail-mosaic__link img,
  .detail-mosaic__caption {
    transition: none;
  }
}

@media (max-width: 767px) {
  .detail-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .detail-mosaic__item--1 { grid-column: 1; grid-row: 1; }
  .detail-mosaic__item--2 { grid-column: 2; grid-row: 1; }
  .detail-mosaic__item--3 { grid-column: 1; grid-row: 2; }
  .detail-mosaic__item--4 { grid-column: 1 / span 2; grid-row: 3; }

  .detail-mosaic__caption { opacity: 1; }

  .client-logos__item {
    flex-basis: 160px;
    padding-inline: 16px;
  }
}

/* ---------- Expo gallery (locomotive) ---------- */
/* Live: 1290 container, 30px gutters holding the chevrons, three 397x178
   slides with a 20px gap, dots 30px below the images. */
.detail-gallery__head {
  margin-bottom: 60px;
  text-align: center;
}

.detail-gallery__subtitle {
  /* the head is centred, so the global 65ch measure would offset it */
  max-width: none;
  margin-top: 7px;
  color: var(--color-text-dark);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  line-height: 1.286;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.detail-gallery__frame {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-gallery__arrow {
  flex: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 31px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-dark);
  cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-default);
}

.detail-gallery__arrow:hover {
  opacity: 0.6;
}

.detail-gallery__arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.detail-gallery__viewport {
  flex: 1 1 auto;
  min-width: 0;
}

.detail-gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  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;
}

.detail-gallery__track::-webkit-scrollbar {
  display: none;
}

.detail-gallery__slide {
  scroll-snap-align: start;
}

.detail-gallery__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 397 / 178;
  object-fit: cover;
}

/* the gallery dots are small black bullets, not the gold ones the client
   strip uses */
.carousel-dots--dark {
  gap: 12px;
  margin-top: 30px;
}

.carousel-dots--dark .carousel-dots__dot {
  width: 6px;
  height: 6px;
  background: #000;
  opacity: 0.2;
}

.carousel-dots--dark .carousel-dots__dot.is-active {
  background: #000;
  opacity: 1;
}

@media (max-width: 1023px) {
  .detail-gallery__track {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 767px) {
  .detail-gallery__head {
    margin-bottom: 40px;
  }

  .detail-gallery__track {
    grid-auto-columns: 100%;
  }
}


/* ---------- industry page rhythm ---------- */
/* Live stacks these as: glance 85/85 + a 50px spacer section, the client strip
   with no padding of its own + a 50px spacer, then the projects head 50px
   above the mosaic. Scoped to the industry layout so the solution pages keep
   the rhythm they were matched to. */
.industry-glance {
  padding-top: 85px;
  padding-bottom: 135px;
}

.industry-clients {
  padding-top: 0;
  padding-bottom: 50px;
}

.industry-projects {
  padding-top: 50px;
  /* the FAQs follow the mosaic with no gap on the live page */
  padding-bottom: 0;
}

.industry-projects .detail-mosaic {
  margin-top: 50px;
}

@media (max-width: 767px) {
  .industry-glance {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .industry-clients {
    padding-bottom: 32px;
  }
}


/* Live gives the applications carousel 50px of lead-in and no tail, and runs
   the FAQs straight on from whatever precedes them; the 50px breather sits
   after the FAQs instead. Same on the solution and industry pages. */
.solution-apps {
  padding-top: 50px;
  padding-bottom: 0;
}

.solution-faqs {
  padding-top: 0;
  padding-bottom: 50px;
}

.detail-gallery {
  padding-top: 0;
  padding-bottom: 0;
}


/* ---------- spacing and weights measured off the live pages ---------- */
/* the head block clears its content by 50px on both page types */
.solution-headrow {
  margin-bottom: 50px;
}

/* the applications strip keeps a tail below the cards */
.solution-apps {
  padding-bottom: 78px;
}

/* the FAQs lead in by 50px */
.solution-faqs {
  padding-top: 50px;
}

/* only the expo gallery title is set in light */
.detail-gallery__head h2 {
  font-weight: var(--fw-light);
}

/* Live FAQ rows: 54px tall, 14/30 padding, a pale panel background and a 10px
   gap between them — no rules. */
/* live "Know More" pill: 143x47, 13px label */
.solution-faqs__cta {
  padding: 13px 35px;
  font-weight: var(--fw-regular);
}

/* ---------------------------------------------------------------------------
   Commercial landing pages. These reuse the product-page components wholesale;
   only three small pieces are specific to them, so they live here beside the
   detail styles rather than in a stylesheet of their own.
--------------------------------------------------------------------------- */

.lp-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lp-sectors a {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-dark);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-default),
              color var(--dur-base) var(--ease-default);
}

.lp-sectors a:hover,
.lp-sectors a:focus-visible {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.lp-related {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-related a {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-dark);
  font-size: var(--fs-small);
  line-height: 1.5;
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-default),
              color var(--dur-base) var(--ease-default);
}

.lp-related a:hover,
.lp-related a:focus-visible {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.lp-enquiry__lines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 22px;
}

.lp-enquiry__lines a[href^="tel:"] {
  color: var(--color-navy);
  font-weight: var(--fw-medium);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.lp-enquiry__lines a[href^="tel:"]:hover,
.lp-enquiry__lines a[href^="tel:"]:focus-visible {
  border-bottom-color: var(--color-navy);
}

.solution-faqs__cta-wrap {
  margin-top: 22px;
}

/* Specification table. Replaces the prose accordion so the figures are
   name/value pairs a retrieval system can extract, and so a specifier can scan
   thicknesses and panel sizes without opening four panels. */
.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.spec-table {
  width: 100%;
  min-width: 22rem;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.spec-table thead th {
  padding: 12px 18px;
  text-align: left;
  color: var(--color-text-light);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
}

.spec-table tbody th {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  color: var(--color-text-dark);
  font-weight: var(--fw-semibold);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  width: 38%;
}

.spec-table tbody td {
  padding: 14px 18px;
  color: var(--color-text);
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border);
}

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

/* Product-to-sector cross reference. A two-line row: the destination name and
   the specific application, so the link says why it is worth following rather
   than being a bare list of sector names. */
.xref {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 24px;
}

.xref a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  padding: 18px 20px;
  background: var(--color-surface);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur-base) var(--ease-default);
}

.xref a:hover,
.xref a:focus-visible {
  background: var(--color-bg);
}

.xref__name {
  color: var(--color-text-dark);
  font-size: var(--fs-h5);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.xref a:hover .xref__name,
.xref a:focus-visible .xref__name {
  color: var(--color-navy);
}

.xref__use {
  color: var(--color-text);
  font-size: var(--fs-small);
  line-height: 1.55;
}
