/* General-copy — engineering register / dossier layout (distinct from sugar & cement) */

[data-page="general"],
[data-page="general-copy"] {
  --gc-rule: #d4d7db;
  --gc-ink: #1f2225;
  --gc-muted: #5c636a;
  --gc-paper: #f7f6f3;
  --gc-orange: #e25303;
}

/* —— Hub overview (editorial split) —— */
.gc-overview {
  background: #fff;
  border-bottom: 0;
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.gc-overview-split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

@media (min-width: 960px) {
  .gc-overview-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

.gc-overview-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 0.65rem;
  min-height: 0;
}

.gc-overview-visual-main,
.gc-overview-visual-stack {
  min-height: 0;
}

.gc-overview-visual-main {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gc-rule);
  background: #e8eaec;
  min-height: 16rem;
}

.gc-overview-visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gc-overview-visual-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
}

.gc-overview-visual-stack img {
  width: 100%;
  height: 100%;
  min-height: 7.5rem;
  object-fit: cover;
  display: block;
  border: 1px solid var(--gc-rule);
  background: #e8eaec;
}

.gc-overview-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 3px solid var(--gc-orange);
}

@media (min-width: 960px) {
  .gc-overview-copy {
    padding-left: 1.5rem;
  }
}

.gc-overview-copy p {
  margin: 0;
  font-size: var(--copy-size, 1.05rem);
  line-height: 1.7;
  color: var(--gc-ink);
  max-width: 38rem;
}

/* —— Sector register (hub) — professional editorial grid —— */
.gc-register {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: #fff;
  border-bottom: 0;
}

.gc-register-head {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 40rem;
}

.gc-register-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .gc-register-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  /* lone last card centered on 2-col row */
  .gc-register-item:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc(50% - 0.625rem));
  }
}

@media (min-width: 960px) {
  .gc-register-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }

  /* reset 2-col center rule; lone last card in middle column */
  .gc-register-item:last-child:nth-child(2n + 1) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .gc-register-item:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.gc-register-item {
  margin: 0;
  min-width: 0;
}

.gc-sector-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--gc-rule);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gc-sector-card:hover {
  border-color: rgba(226, 83, 3, 0.55);
  box-shadow: 0 16px 40px -18px rgba(31, 34, 37, 0.38);
  transform: translateY(-3px);
}

.gc-sector-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8eaec;
  overflow: hidden;
  flex-shrink: 0;
}

.gc-sector-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gc-sector-card:hover .gc-sector-media img {
  transform: scale(1.04);
}

.gc-sector-media--empty {
  background:
    linear-gradient(135deg, rgba(226, 83, 3, 0.08), transparent 50%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(31, 34, 37, 0.03) 8px,
      rgba(31, 34, 37, 0.03) 9px
    );
}

.gc-sector-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 19, 0.12), transparent 45%);
  pointer-events: none;
}

.gc-sector-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  padding: 1.15rem 1.2rem 1.35rem;
  background: #fff;
  border-top: 1px solid var(--gc-rule);
}

.gc-sector-top {
  display: block;
}

.gc-register-name {
  font-family: var(--font-display, Archivo, sans-serif);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0;
  color: var(--gc-ink);
}

.gc-sector-lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--gc-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-register-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--gc-muted);
}

/* —— Featured proof strip —— */
.gc-proof {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--gc-paper);
  border-bottom: 1px solid var(--gc-rule);
}

.gc-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .gc-proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gc-proof-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--gc-rule);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.gc-proof-card:hover {
  border-color: var(--gc-orange);
  transform: translateY(-2px);
}

.gc-proof-card figure {
  margin: 0;
}

.gc-proof-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gc-proof-card figcaption {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--gc-rule);
}

.gc-proof-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 700;
}

/* —— Sector page layout —— */
.gc-sector-shell {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  background: #fff;
}

.gc-sector-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .gc-sector-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.gc-sector-nav {
  display: none;
}

@media (min-width: 1024px) {
  .gc-sector-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-h, 5.5rem) + 1rem);
  }
}

.gc-sector-nav-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gc-muted);
}

.gc-sector-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--gc-rule);
}

.gc-sector-nav a {
  display: block;
  padding: 0.5rem 0 0.5rem 0.85rem;
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: 0.9375rem; /* 15px — readable sidebar, was ~13px */
  font-weight: 500;
  line-height: 1.4;
  color: var(--gc-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gc-sector-nav a:hover,
.gc-sector-nav a.is-active {
  color: var(--gc-ink);
  border-left-color: var(--gc-orange);
}

.gc-sector-intro {
  margin: 0 0 1.75rem;
  max-width: 48rem;
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: var(--copy-size, 18px);
  font-weight: var(--copy-weight, 400);
  line-height: var(--copy-leading, 29px);
  color: var(--copy-color, #000);
}

/* Sector intro moved into the dark page hero, under the H1 */
.gc-sector-intro.gc-hero-intro {
  margin: 1rem 0 0;
  max-width: none;
  text-align: justify;
  color: rgba(255, 255, 255, 0.85);
}

/* —— Sector products: all open, stacked rows (photo | text), rows alternate sides —— */
.gc-products {
  border-top: none !important;
}

.gc-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "media"
    "copy";
  column-gap: clamp(1.75rem, 3.5vw, 2.75rem);
  row-gap: 1.1rem;
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-bottom: none !important;
  scroll-margin-top: calc(var(--header-h, 5.5rem) + 1rem);
}

.gc-product.is-text-only {
  grid-template-areas:
    "title"
    "copy";
}

@media (min-width: 768px) {
  .gc-product.has-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "media title"
      "media copy";
    row-gap: 1rem;
  }

  .gc-product.has-media.is-flipped {
    grid-template-areas:
      "title media"
      "copy media";
  }

  /* photo stays beside long text while scrolling */
  .gc-product.has-media .gc-product-media {
    position: sticky;
    top: calc(var(--header-h, 5.5rem) + 1.25rem);
  }
}

.gc-product-title {
  grid-area: title;
  margin: 0;
  font-family: var(--font-display, Archivo, sans-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--gc-ink);
}

.gc-product-media {
  grid-area: media;
  min-width: 0;
}

.gc-product-copy {
  grid-area: copy;
  min-width: 0;
}

.gc-product-copy > :first-child {
  margin-top: 0;
}

.gc-product-copy p {
  margin: 0 0 0.85rem;
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: var(--copy-size, 18px);
  font-weight: var(--copy-weight, 400);
  line-height: var(--copy-leading, 29px);
  color: var(--copy-color, #000);
}

.gc-product-copy p:last-child {
  margin-bottom: 0;
}

.gc-product-subtitle {
  margin: 1.35rem 0 0.35rem;
  font-family: var(--font-display, Archivo, sans-serif);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--gc-ink);
}

.gc-product-copy ul {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}

.gc-product-copy ul:last-child {
  margin-bottom: 0;
}

.gc-product-copy li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.15rem;
  font-family: var(--font-main, Montserrat, sans-serif);
  font-size: var(--copy-size, 18px);
  font-weight: var(--copy-weight, 400);
  line-height: var(--copy-leading, 29px);
  color: var(--copy-color, #000);
  border-bottom: 1px solid rgba(212, 215, 219, 0.65);
  break-inside: avoid;
}

.gc-product-copy li:last-child {
  border-bottom: 0;
}

.gc-product-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gc-orange);
}

.gc-product-copy strong {
  font-weight: 700;
  color: var(--gc-ink);
}

/* nested points (e.g. tractor models, anchor material) — dash markers */
.gc-product-copy .gc-sublist {
  margin: 0.35rem 0 0;
}

.gc-product-copy .gc-sublist li {
  padding: 0.2rem 0 0.2rem 1.15rem;
  border-bottom: 0;
}

.gc-product-copy .gc-sublist li::before {
  top: calc(0.2rem + var(--copy-leading, 29px) / 2);
  width: 0.55rem;
  height: 2px;
  background: var(--gc-muted);
}

/* no photo: text uses the full width; lists of 2+ points sit in two columns */
@media (min-width: 768px) {
  .gc-product.is-text-only .gc-product-copy > ul:not(:has(> li:only-child)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }

  .gc-product.is-text-only .gc-product-copy > ul:not(:has(> li:only-child)) > li:last-child {
    border-bottom: 1px solid rgba(212, 215, 219, 0.65);
  }
}

/* —— Gallery inside a product row —— */
.gc-product .gc-gallery.product-slider-card {
  width: 100%;
  min-width: 0;
}

.gc-product .product-slider-stage {
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
}

.gc-product .product-slider-stage img {
  transition: transform 0.4s ease, opacity 0.3s ease !important;
}

.gc-product .product-slider-stage img.is-swapping {
  opacity: 0.25 !important;
}

/* every photo visible as a thumbnail under the main photo */
/* every photo visible as a thumbnail under the main photo - matches cement product slider */
/* Thumbnails: fixed size 78px x 68px matching cement crusher product detail slider */
.gc-product .gc-thumbs.product-slider-thumbs {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}

.gc-product .gc-thumbs .product-slider-thumb {
  width: 126px !important;
  height: 126px !important;
  max-width: 126px !important;
  max-height: 126px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease, border-color 0.2s ease !important;
  background: #eef0f2 !important;
  padding: 0 !important;
}

.gc-product .gc-thumbs .product-slider-thumb:hover {
  opacity: 1 !important;
}

.gc-product .gc-thumbs .product-slider-thumb.is-active {
  border-color: var(--orange, #e25303) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.gc-product .gc-thumbs .product-slider-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.gc-dots {
  display: none !important;
}

/* lightbox: hide arrows / thumbnails for a single photo */
.product-lightbox-modal [hidden] {
  display: none !important;
}

/* —— Hub photo mosaic (client images + product titles only) —— */
.gc-mosaic {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: #fff;
  border-bottom: 1px solid var(--gc-rule);
}

.gc-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .gc-mosaic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.gc-mosaic-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--gc-rule);
  background: #111417;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  color: #fff;
}

.gc-mosaic-tile--wide {
  grid-column: span 2;
}

@media (max-width: 767px) {
  .gc-mosaic-tile--wide {
    grid-column: span 2;
  }
}

.gc-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gc-mosaic-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 19, 0.78) 0%, rgba(15, 17, 19, 0.15) 55%, transparent 100%);
  pointer-events: none;
}

.gc-mosaic-cap {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  font-family: var(--font-display, Archivo, sans-serif);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gc-mosaic-tile:hover img {
  transform: scale(1.05);
}

.gc-mosaic-tile:hover {
  border-color: rgba(226, 83, 3, 0.65);
}

/* —— Hub CTA (client sentence + sitewide Get in touch) —— */
.gc-cta {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: var(--gc-ink);
  color: #fff;
}

.gc-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.gc-cta-copy {
  margin: 0;
  max-width: 40rem;
  font-size: var(--copy-size, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

/* Zoom badge on bottom right matching cement product slider (#detailContent .qf-zoom) */
.gc-product .product-slider-zoom-badge {
  position: absolute !important;
  left: auto !important;
  right: 14px !important;
  bottom: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #000000 !important;
  font-family: var(--font-main, Montserrat, sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  pointer-events: none !important;
}

.gc-product .product-slider-zoom-badge svg {
  width: 14px !important;
  height: 14px !important;
}

/* Circular white floating arrows matching cement product slider (#detailContent .qf-arrow) */
.gc-product .product-slider-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  border: 0 !important;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #000000 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

.gc-product .product-slider-arrow:hover {
  background: var(--orange, #e25303) !important;
  color: #ffffff !important;
}

.gc-product .product-slider-arrow svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
  display: block !important;
}

.gc-product .product-slider-arrow i {
  font-size: 13px !important;
  line-height: 1 !important;
  display: block !important;
}

.gc-product .slider-arrow-prev {
  left: 14px !important;
}

.gc-product .slider-arrow-next {
  right: 14px !important;
}

.gc-product .product-slider-stage {
  border-radius: 8px !important;
  overflow: hidden !important;
}
