/* Shared presentation for the public site and pages generated by the CMS. */
:root { --editor-ink:#182229; --editor-paper:#f7f6f2; --editor-red:#a73329; }
main { color:var(--editor-ink); }
main :is(h1,h2,h3) { text-wrap:balance; }
main :is(a,button,summary):focus-visible { outline:3px solid #17668d; outline-offset:4px; }
main .band:not(.band-ink) { background-color:#fff; }
main .band.band-raised { background-color:var(--editor-paper); }
main .band { padding-block:clamp(3rem,6vw,6.5rem); }
main .band .head { margin-block-end:clamp(1.5rem,3vw,3rem); }
main .card { box-shadow:none; }
main .prose { max-inline-size:72ch; }
main table { font-variant-numeric:tabular-nums; }
.page-head { border-block-end:1px solid #c7c9c7; block-size:40rem; padding-top:calc(var(--nav-h) + var(--topbar-h) + 4.5rem); padding-bottom:1.25rem; }
html:has(link[rel=canonical]:is([href$="/contact.html"],[href$="/news.html"])) .page-head {
  block-size:auto;
  padding-top:calc(var(--nav-h) + var(--topbar-h) + 2.5rem);
  padding-bottom:2.75rem;
}
.page-head .crumbs { margin-top:0; padding-top:0; }
.page-head h1 { max-inline-size:22ch; letter-spacing:-.035em; }
main .filter-row { gap:.7rem; flex-wrap:wrap; align-items:center; }
main .filter-row .chip {
  min-block-size:46px;
  padding:.72rem 1.25rem;
  font-family:var(--font-body);
  font-size:1rem;
  font-weight:650;
  letter-spacing:.01em;
  text-transform:none;
  color:#182229;
  background:#fff;
  border:1.5px solid #6e767b;
  box-shadow:0 1px 0 rgba(16,26,38,.06);
}
main .filter-row .chip:hover {
  color:#101a26;
  background:#f4f5f2;
  border-color:#182229;
}
main .filter-row .chip.on {
  color:#fff;
  background:#a73329;
  border-color:#8d2b23;
  box-shadow:0 8px 18px -10px rgba(167,51,41,.7);
}
html:has(link[rel=canonical][href$="/products.html"]) { --section-photo:url('/assets/img/opt/products-banner.jpg?v=3'); }
html:has(link[rel=canonical][href$="/about.html"]) { --section-photo:url('/assets/img/opt/about-banner.jpg'); }
html:has(link[rel=canonical][href$="/about.html"]) .split-top > .figure { margin-block-start:2.75rem; }
.partner-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin:0; padding:0; list-style:none; }
.partner-row li { display:grid; place-items:center; min-block-size:8.5rem; padding:1.1rem 1rem; background:#fff; border:1px solid #d5d8d6; border-radius:12px; }
.partner-row img { width:auto; max-width:100%; height:4.75rem; object-fit:contain; }
@media (max-width:700px) { .partner-row { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.visit-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:0; padding:0; list-style:none; }
.visit-grid figure { margin:0; background:#fff; border:1px solid #d5d8d6; border-radius:12px; overflow:hidden; }
.visit-grid img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; object-position:center; }
.visit-grid figcaption { padding:.8rem .95rem 1rem; color:#182229; font-size:.95rem; line-height:1.45; }
@media (max-width:900px) { .visit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .visit-grid { grid-template-columns:1fr; } }
.news-layout { display:grid; grid-template-columns:16rem minmax(0,1fr); gap:2.5rem; align-items:start; }
.news-cats.filter-row { flex-direction:column; align-items:stretch; }
.news-cats .chip { justify-content:flex-start; width:100%; }
.news-list { display:flex; flex-direction:column; }
.news-row { display:grid; grid-template-columns:11.5rem minmax(0,1fr); gap:1.25rem; align-items:start; padding-block:1.35rem; border-bottom:1px solid #d5d8d6; }
.news-row:first-child { padding-top:0; }
.news-thumb { display:block; background:#f1f1ee; }
.news-thumb img { display:block; width:100%; height:8.5rem; object-fit:cover; }
.news-row h3 { margin:.35rem 0 .45rem; font-size:1.35rem; line-height:1.3; }
.news-row h3 a { color:inherit; text-decoration:none; }
.news-row h3 a:hover { color:#a73329; }
.news-row p { margin:0 0 .9rem; max-inline-size:68ch; }
.news-empty { margin:0; max-inline-size:62ch; }
.news-row[hidden], .news-empty[hidden] { display:none !important; }
@media (max-width:800px) {
  .news-layout { grid-template-columns:1fr; gap:1.25rem; }
  .news-cats.filter-row { flex-direction:row; }
  .news-cats .chip { width:auto; }
  .news-row { grid-template-columns:1fr; }
}
html:has(link[rel=canonical][href$="/quality.html"]) { --section-photo:url('/assets/img/opt/pc-strand-banner.jpg'); }
.page-banner-media { position:absolute; inset:0; z-index:0; }
.page-banner-media img { width:100%; height:100%; object-fit:cover; object-position:72% center; filter:saturate(.62) contrast(.96); }
html[dir="rtl"] .page-banner-media img { object-position:28% center; }
html:has(link[rel=canonical][href$="/projects.html"]) { --section-photo:url('/assets/img/home/paranoa-lake-bridge.webp'); }
html:has(link[rel=canonical]:is([href$="/products.html"],[href$="/about.html"],[href$="/quality.html"],[href$="/projects.html"])) .page-head {
  background:#e7e8e4;
}
html:has(link[rel=canonical]:is([href$="/products.html"],[href$="/about.html"],[href$="/quality.html"],[href$="/projects.html"])) .page-head::before {
  opacity:1;
  background-image:var(--section-photo);
  background-position:72% center;
  background-size:cover;
  filter:saturate(.62) contrast(.96);
  -webkit-mask-image:none;
  mask-image:none;
}
html:has(link[rel=canonical]:is([href$="/products.html"],[href$="/about.html"],[href$="/quality.html"],[href$="/projects.html"])) .page-head::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(96deg, rgba(244,245,242,.9) 0%, rgba(244,245,242,.74) 34%, rgba(244,245,242,.46) 68%, rgba(244,245,242,.58) 100%);
}
html[dir="rtl"]:has(link[rel=canonical]:is([href$="/products.html"],[href$="/about.html"],[href$="/quality.html"],[href$="/projects.html"])) .page-head::before { background-position:28% center; }
html[dir="rtl"]:has(link[rel=canonical]:is([href$="/products.html"],[href$="/about.html"],[href$="/quality.html"],[href$="/projects.html"])) .page-head::after {
  background:linear-gradient(264deg, rgba(244,245,242,.9) 0%, rgba(244,245,242,.74) 34%, rgba(244,245,242,.46) 68%, rgba(244,245,242,.58) 100%);
}
html:has(link[rel=canonical]:is([href$="/products.html"],[href$="/about.html"],[href$="/quality.html"],[href$="/projects.html"])) .page-head .shell::after { content:none; }
.home-classic main .hero { background:#e7e8e4; }
.home-classic .hero .hero-media { display:block; inset:0; background:#e7e8e4; }
.home-classic .hero-media img { opacity:1; filter:saturate(.62) contrast(.96); transform:none; }
.home-classic .hero-media::before,
.home-classic .hero-scan { display:none; }
.home-classic .hero-media::after {
  background:linear-gradient(96deg, rgba(244,245,242,.9) 0%, rgba(244,245,242,.74) 34%, rgba(244,245,242,.46) 68%, rgba(244,245,242,.58) 100%);
}
.home-classic header.nav { background:rgba(249,249,247,.98); }
.home-classic .hero-body .hero-title { font-size:clamp(3.1rem,6.1vw,6.2rem); max-width:12ch; }
.home-classic .hero-title .home-hero-tagline { font-size:.66em; }
.home-classic .hero-title .home-hero-tagline { color:#933b36; -webkit-text-fill-color:currentColor; background:none; }
#loader[data-off] { display:none; }
.pd-info:has([data-cms-reference-price]) { display:flex; flex-direction:column; }
.pd-info [data-cms-product-fields]:has([data-cms-reference-price]) { display:contents; }
.pd-info:has([data-cms-reference-price]) > :is(.label,h1) { order:-4; }
.pd-info [data-cms-reference-price] { order:-3; }
.pd-info:has([data-cms-reference-price]) .pd-actions { order:-2; }
@media (min-width:1001px) {
  .home-classic .hero .hero-body { max-width:var(--shell,1280px); }
  .home-classic .hero-lede { max-inline-size:min(48vw,64ch); }
  .home-classic .home-model-strip { max-inline-size:min(78vw,1030px); }
}
.home-classic .home-product-grid .card { border:0; border-radius:0; background:transparent; }
.home-product-grid .card-media { background:#f1f1ee; aspect-ratio:4/3; }
.home-classic .home-product-grid .card-body { border-top:2px solid #343d41; padding:1.45rem 1.15rem .2rem; gap:1rem; align-items:center; text-align:center; }
.home-classic .home-product-grid .card-body .arrow-link { align-self:center; }
.home-classic .home-product-grid .card-body h3 { font-family:var(--font-body); font-size:1.35rem; font-weight:600; line-height:1.4; letter-spacing:0; }
.home-classic .home-product-grid .card-body p { font-size:1.0625rem; line-height:1.6; letter-spacing:0; margin-block:0; max-inline-size:34ch; }
.home-classic .home-product-links { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; }
.home-classic .home-product-links .btn { grid-column:2; }
.home-classic .home-product-links .home-detail-link { grid-column:3; justify-self:end; margin-inline-start:1.25rem; }
@media (max-width:700px) {
  .home-classic .home-product-links { grid-template-columns:1fr; justify-items:center; }
  .home-classic .home-product-links .btn,
  .home-classic .home-product-links .home-detail-link { grid-column:1; justify-self:center; margin-inline-start:0; }
}
.home-classic .home-product-grid .card-media img { object-fit:contain; mix-blend-mode:multiply; }
.home-classic .home-project-grid { grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); }
.home-project-grid .card:first-child { grid-row:span 2; }
.home-project-grid .card:first-child .card-media { aspect-ratio:1.8; }
.home-project-grid .card:not(:first-child) { display:grid; grid-template-columns:35% 1fr; align-items:center; }
.home-project-grid .card:not(:first-child) .card-media { height:100%; }
.home-project-grid .card:not(:first-child) .card-media img { height:100%; object-fit:cover; }
.home-project-grid .card:not(:first-child) .card-body { padding:1rem; }
.home-project-grid .card:not(:first-child) .card-tag { position:static; }
.home-classic .app-body .arrow-link { display:inline-flex; margin-block-start:.75rem; }
.pd-info #fob-reference-price { padding:1.15rem 1.35rem; background:#f3f1eb; border:0; border-radius:4px; }
.pd-info #fob-reference-price h2 { color:#4c5051; font-size:1rem; margin:0 0 .35rem; }
.pd-info #fob-reference-price p { margin:.3rem 0; }
.pd-info #fob-reference-price strong { font-size:clamp(1.25rem,2.2vw,1.9rem); color:var(--editor-red); }
.pd-info .pd-actions { margin-block:1rem 1.5rem; }
.pd-table { overflow-x:auto; }
@media (max-width:760px) {
  .home-classic .home-project-grid { grid-template-columns:1fr; }
  .home-project-grid .card:first-child { grid-row:auto; }
  .home-classic .hero-body .hero-title { font-size:clamp(2.4rem,9vw,3.8rem); }
  .home-classic .hero-body .hero-cta { flex-wrap:wrap; }
  .band:has(.pd-info #fob-reference-price) { padding-block-start:1.2rem; }
  .pd:has(#fob-reference-price) { display:grid; grid-template-columns:minmax(0,1fr) 76px; gap:.6rem; align-items:start; }
  .pd:has(#fob-reference-price) .pd-info { display:contents; }
  .pd:has(#fob-reference-price) .pd-gallery { grid-column:2; grid-row:1 / span 2; width:76px; }
  .pd:has(#fob-reference-price) .pd-gallery .pd-chips { display:none; }
  .pd:has(#fob-reference-price) .pd-gallery .pd-main { width:76px; height:76px; }
  .pd-info:has(#fob-reference-price) > .label { grid-column:1; grid-row:1; }
  .pd-info:has(#fob-reference-price) > h1 { grid-column:1; grid-row:2; margin:0; }
  body:has(main .pd-info #fob-reference-price) :is(#gcw-root,.floats) { display:none; }
  .pd-info:has(#fob-reference-price) :is([data-cms-product-fields] > *, .pd-actions) { grid-column:1 / -1; }
  .pd-info #fob-reference-price { padding:.85rem 1rem; }
  .pd-info #fob-reference-price p { font-size:.91rem; line-height:1.45; }
  .pd-info:has(#fob-reference-price) .pd-actions { margin:.3rem 0 .6rem; }
  .pd-info h1 { font-size:clamp(1.85rem,7vw,3rem); }
}
@media (max-width:1240px) {
  body:not(.menu-open) .nav .menu, body:not(.menu-open) .nav .menu * {
    visibility:hidden; pointer-events:none;
  }
}
@media (prefers-reduced-motion:reduce) {
  main [data-fx],main [data-words],main [data-tilt] { opacity:1!important; transform:none!important; transition:none!important; animation:none!important; }
}
/* Keep each project photo and its caption in separate normal-flow rows. */
.home-classic .home-project-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); align-items:stretch; }
.home-classic .home-project-grid .card:nth-child(n) { display:flex; flex-direction:column; grid-row:auto; min-width:0; }
.home-classic .home-project-grid .card:nth-child(n) .card-media { position:relative; width:100%; height:auto; aspect-ratio:16/10; overflow:hidden; flex:none; }
.home-classic .home-project-grid .card:nth-child(n) .card-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.home-classic .home-project-grid .card:nth-child(n) .card-tag { position:absolute; top:.8rem; inset-inline-start:.8rem; }
.home-classic main :is(.card-body,.app-body) { min-width:0; overflow-wrap:break-word; }
.home-classic main :is(.card-body,.app-body) h3 { line-height:1.25; letter-spacing:-.025em; }
.home-classic main :is(.card-body,.app-body) p { line-height:1.55; margin-block:.6rem 1rem; }
.home-classic .home-project-grid .card:nth-child(n) .card-body { position:static; padding:clamp(1rem,2vw,1.8rem); flex:1; display:flex; align-items:flex-start; flex-direction:column; }
.home-classic .home-project-grid .arrow-link { margin-block-start:auto; }
@media(prefers-reduced-motion:reduce){.marquee:has(.plogo){overflow-x:auto}.marquee:has(.plogo) .marquee-track{animation:none}}
.report-excerpt img { width:min(100%,240px); height:auto; display:block; }
@media(max-width:1240px){
 body:not(.menu-open) .nav .menu {display:none}
 body:has(form[data-inquiry]) .floats {display:none}
 form[data-inquiry] :is(input,textarea,select){font-size:max(16px,1rem);scroll-margin-block:5rem 1rem}
}

/* Keep sales and social shortcuts in one rail on the visual right. */
.floats:has(.float-social) {
  --float-rail-size: 52px;
  right: max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-right));
  bottom: max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-bottom));
}
.floats:has(.float-social) .float-btn {
  width: var(--float-rail-size);
  height: var(--float-rail-size);
}
.float-social {
  display: grid;
  gap: inherit;
}
.float-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.floats:has(.float-social) .float-btn:focus-visible {
  outline: 2px solid #223a72;
  outline-offset: 2px;
}
.floats:has(.float-social) .float-btn.top:not(.show) { display: none; }
.footer-social-mobile { display: none !important; }

@media (max-width: 1560px) {
  .floats:has(.float-social) {
    --float-rail-size: 44px;
    right: max(.55rem, env(safe-area-inset-right));
    bottom: max(.55rem, env(safe-area-inset-bottom));
  }
}
@media (min-width: 641px) {
  body:has(.float-social) :is(.gcw-panel, .gcw-teaser) {
    inset-inline: auto;
    right: calc(max(clamp(1rem, 2.4vw, 2rem), env(safe-area-inset-right)) + 52px + .75rem);
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
  body:has(.float-social) .gcw-panel {
    --gcw-panel-max: min(680px, calc(var(--gcw-vh) - 4rem));
    transform-origin: bottom right;
  }
}
@media (641px <= width <= 1560px) {
  body:has(.float-social) :is(.gcw-panel, .gcw-teaser) {
    right: calc(max(.55rem, env(safe-area-inset-right)) + 44px + .75rem);
  }
}
@media (max-height: 390px) {
  .floats:has(.float-social) {
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 1240px) {
  body:has(form[data-inquiry]) .footer-social-mobile { display: flex !important; }
}
@media (max-width: 760px) {
  body:has(main .pd-info #fob-reference-price) .footer-social-mobile { display: flex !important; }
}

.news-row:not(:has(.news-thumb)) { grid-template-columns: minmax(0, 1fr); }
.about-procurement-title { max-inline-size: 24ch; text-wrap: balance; }
.about-procurement {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-block: 1.75rem 1.5rem;
}
.about-procurement > div { border-block-start: 1px solid var(--line-2); padding-block-start: 1rem; }
.about-procurement dt { font-weight: 700; font-size: 1.12rem; margin-block-end: .4rem; }
.about-procurement dd { margin: 0; line-height: 1.65; }
