/* ==========================================================================
   WCAS inner pages: category and product pages, About, Contact, Resources (blog), search, 404.
   Pieces: title band (.page-hero), page content (.entry-content), child page cards (.explore),
   blog cards (.post-card), quote band (.cta-band).
   ========================================================================== */

:root { --side: calc(max((100vw - var(--w)) / 2, 24px) + clamp(0px, 2.5vw, 48px)); }

/* ---- Title band: inset navy card, photo fades in from the right ---- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  margin: 12px 12px 0; border-radius: var(--r-card);
  padding: clamp(132px, 14vw, 172px) calc(var(--side) - 12px) clamp(40px, 5vw, 72px);
  background: var(--navy) var(--page-hero-image, none) center / cover no-repeat; /* index/search/404 still pass the photo as --page-hero-image */
}
.page-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 14, 26, .78) 0%, rgba(10, 14, 26, .55) 45%, rgba(10, 14, 26, .15) 100%), linear-gradient(180deg, rgba(10, 14, 26, .35) 0%, rgba(10, 14, 26, .2) 40%, rgba(10, 14, 26, .7) 100%); }
.page-hero__in { max-width: none; }
.page-hero__title { max-width: 16em; margin: 0; color: #fff; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem); font-weight: 500; line-height: 1.02; letter-spacing: -.05em; }
.page-hero__lead { max-width: 52ch; margin: 18px 0 0; color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }
.page-hero__meta { margin: 0 0 12px; color: rgba(255, 255, 255, .8); font-size: .95rem; font-weight: 600; }
.crumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0 0 22px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 500; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs .breadcrumb_last, .crumbs .breadcrumb_last strong { color: #fff; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .page-hero__in > * { animation: wcas-rise .7s var(--ease) both; }
  .page-hero__in > :nth-child(2) { animation-delay: .06s; }
  .page-hero__in > :nth-child(3) { animation-delay: .12s; }
}
@keyframes wcas-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Page content ---- */
.page-main { padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; background: #fff; }
.page-main > .post-list:first-child { padding-top: 0; }
.page-main > .entry:last-child { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.entry-content { width: auto; margin: 0 var(--ecm, var(--side)); font-size: 1rem; line-height: 1.65; color: var(--slate); }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin: 1.8em 0 .55em; font-size: clamp(1.625rem, 1rem + 1.5vw, 2.25rem); font-weight: 600; }
.entry-content h3 { margin: 1.6em 0 .5em; font-size: clamp(1.1875rem, 1rem + .4vw, 1.375rem); font-weight: 600; }
.entry-content ul:not([class]) { list-style: none; padding-left: 0; }
.entry-content ul:not([class]) > li { position: relative; padding-left: 1.4rem; }
.entry-content ul:not([class]) > li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.entry-content h2 strong, .entry-content h3 strong { font-weight: inherit; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 74ch; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25em; }
.entry-content li { margin: 0 0 .4em; }
.entry-content ul.columns-2 { max-width: none; columns: 2; column-gap: 3rem; }
@media (max-width: 700px) { .entry-content ul.columns-2 { columns: 1; } }
.entry-content a { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(34, 48, 81, .35); text-decoration-thickness: .12em; text-underline-offset: .2em; }
.entry-content a:hover { color: var(--navy); text-decoration-color: var(--navy); }
.entry-content a.button, .entry-content .wp-block-button__link { text-decoration: none; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content .wp-block-image img { border-radius: var(--r-tile); }
.entry-content .wp-block-image { margin: 0 0 1.5rem; }
.entry-content .wp-block-image.alignright, .entry-content .alignright { max-width: min(46%, 520px); }
.entry-content .wp-block-image.alignleft, .entry-content .alignleft { max-width: min(46%, 520px); }
@media (max-width: 700px) { .entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 0 0 1.25rem; } }
.entry-content .clear { clear: both; }
.entry-content .wp-block-columns { display: flex; flex-wrap: nowrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0 0 1.5rem; }
.entry-content .wp-block-column { flex-grow: 1; min-width: 0; }  /* the column widths (33% / 66%) come from WordPress */
.entry-content .wp-block-column iframe { display: block; width: 100%; border-radius: var(--r-tile); }
@media (max-width: 781px) {
  .entry-content .wp-block-columns { flex-wrap: wrap; }
  .entry-content .wp-block-column { flex-basis: 100% !important; }
}
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Full-width bands (the "customBg01" groups on existing pages): same width as the page edges, content stays aligned */
.entry-content { --ecm: var(--side); }
.entry-content > .alignfull {
  /* Full-bleed without 100vw (100vw includes the scrollbar and pushed the band past the right edge):
     pull the band out by exactly the page margin, then pad it back in. */
  width: auto; max-width: none !important; box-sizing: border-box;
  margin-left: calc(-1 * var(--ecm)); margin-right: calc(-1 * var(--ecm));
  padding-left: var(--ecm); padding-right: var(--ecm);
}
.customBg01 {
  clear: both; margin: 3.5rem 0; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--mist);
}
.customBg01.short { margin: 2rem 0; }
.customBg01 > :first-child { margin-top: 0; }
.customBg01 > :last-child { margin-bottom: 0; }
.customBg01 img { border-radius: var(--r-tile); }

/* Contact page: the form sits in a mist card, the map and details stay on white */
.gform_wrapper, .gform_wrapper.gravity-theme { margin: 0; }
.entry-content .wp-block-column:has(.gform_wrapper) { align-self: flex-start; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-card); background: var(--mist); }
.entry-content .wp-block-column:has(.gform_wrapper) input[type="text"], .entry-content .wp-block-column:has(.gform_wrapper) input[type="email"], .entry-content .wp-block-column:has(.gform_wrapper) input[type="tel"], .entry-content .wp-block-column:has(.gform_wrapper) input[type="url"], .entry-content .wp-block-column:has(.gform_wrapper) select, .entry-content .wp-block-column:has(.gform_wrapper) textarea { background: #fff; border: 1px solid #8791a8; border-radius: 14px; }
.entry-content .wp-block-column:has(.gform_wrapper) input:focus, .entry-content .wp-block-column:has(.gform_wrapper) textarea:focus, .entry-content .wp-block-column:has(.gform_wrapper) select:focus { border-color: var(--navy); outline: 3px solid var(--gold); outline-offset: 1px; }
.entry-content .wp-block-column:has(.gform_wrapper) label, .entry-content .wp-block-column:has(.gform_wrapper) .gfield_label { color: var(--navy); font-weight: 600; }
.entry-content .wp-block-column iframe { min-height: 320px; }

/* ---- Child page cards: mist tiles on white, gold arrow chip ---- */
.explore { padding: clamp(2.5rem, 5vw, 4.5rem) var(--side) clamp(3rem, 6vw, 5rem); background: #fff; }
.explore__in { max-width: none; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--mist); }
.explore__title { margin: 0 0 1.75rem; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); }
.explore__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.explore__grid li { margin: 0; }
.explore__card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; height: 100%; min-height: 132px; padding: 1.5rem; border-radius: var(--r-card); background: var(--mist); color: var(--navy); text-decoration: none; transition: background-color .3s ease, color .3s ease, transform .45s var(--ease); }
.explore__card:hover, .explore__card:focus-visible { background: var(--navy); color: #fff; transform: translateY(-3px); }
.explore__img { display: block; margin: -.5rem -.5rem 0; overflow: hidden; border-radius: var(--r-tile); aspect-ratio: 3 / 2; }
.explore__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.explore__name { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-size: 1.3rem; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
.explore__name .arrow { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.05rem; transition: transform .45s var(--ease); }
.explore__card:hover .arrow, .explore__card:focus-visible .arrow { transform: translate(3px, -3px); }

/* ---- Blog cards (Resources, archives, search): first post is featured ---- */
.post-list { margin: 0 var(--side); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.entry + .post-list { padding-top: 2rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { margin: 0; }
.post-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--mist); border-radius: var(--r-card); background: #fff; color: var(--navy); text-decoration: none; transition: border-color .3s ease, box-shadow .45s var(--ease), transform .45s var(--ease); }
.post-card__link:hover, .post-card__link:focus-visible { border-color: var(--haze); box-shadow: 0 18px 40px -22px rgba(34, 48, 81, .45); color: var(--navy); transform: translateY(-3px); }
.post-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist); }
.post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.post-card__link:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: .6rem; padding: 1.5rem; }
.post-card__date { color: var(--slate); font-size: .875rem; font-weight: 500; }
.post-card__title { margin: 0; font-size: 1.35rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.post-card__excerpt { color: var(--slate); font-size: .98rem; line-height: 1.55; }
.post-card__more { margin-top: auto; padding-top: .75rem; font-weight: 600; }
.post-card__more .arrow { display: inline-block; transition: transform .45s var(--ease); }
.post-card__link:hover .arrow { transform: translate(3px, -3px); }
@media (min-width: 900px) {
  .post-grid > .post-card:first-child:has(.post-card__img) { grid-column: 1 / -1; }
  .post-grid > .post-card:first-child:has(.post-card__img) .post-card__link { flex-direction: row; }
  .post-grid > .post-card:first-child:has(.post-card__img) .post-card__img { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
  .post-grid > .post-card:first-child:has(.post-card__img) .post-card__body { justify-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
  .post-grid > .post-card:first-child:has(.post-card__img) .post-card__title { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: -.035em; }
  .post-grid > .post-card:first-child:has(.post-card__img) .post-card__more { margin-top: 1rem; }
}
.empty { padding: 1rem 0 2rem; color: var(--slate); font-size: 1.1rem; }

/* ---- Single article ---- */
.page-main--article .entry { max-width: calc(var(--w-text) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.page-main--article .entry-content { margin: 0; font-size: 1rem; line-height: 1.75; }
@media (min-width: 700px) { .page-main--article .entry-content { font-size: 1.0625rem; } }
.page-main--article .entry-content > p, .page-main--article .entry-content > ul, .page-main--article .entry-content > ol { max-width: none; }
.entry-cats { margin: 2rem 0 0; color: var(--slate); font-size: .9rem; }
.post-navigation .nav-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin: 3rem 0 0; }
.post-navigation a { display: block; max-width: 48%; padding: 1.25rem 1.5rem; border-radius: var(--r-tile); background: var(--mist); color: var(--navy); font-weight: 600; text-decoration: none; transition: background-color .3s ease; }
.post-navigation a:hover { background: var(--haze); color: var(--navy); }
@media (max-width: 700px) { .post-navigation a { max-width: 100%; width: 100%; } }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation .nav-label { display: block; margin-bottom: 4px; color: var(--slate); font-size: .875rem; font-weight: 500; }

/* ---- Quote band ---- */
.cta-band { margin: clamp(1rem, 3vw, 2rem) 12px 12px; padding: clamp(2.5rem, 5vw, 4.5rem) calc(var(--side) - 12px); border-radius: var(--r-card); background: var(--navy); color: #fff; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 3rem; }
.cta-band__title { max-width: 18em; margin: 0 0 .5rem; color: #fff; font-size: clamp(1.6rem, 1rem + 2vw, 2.5rem); letter-spacing: -.045em; }
.cta-band__text { max-width: 46ch; margin: 0; color: rgba(255, 255, 255, .8); font-size: 1.075rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .cta-band__actions { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .explore__card, .post-card__link, .post-card__img img { transition: none; }
  .explore__card:hover, .post-card__link:hover { transform: none; }
}

/* ---- Classes used by the existing pages (from the 2023 theme) ---- */
.entry-content .container { width: auto; max-width: none; margin: 0; padding: 0; }
.heading-h1, .heading-h2, .heading-h3, .heading-h4, .heading-h5, .heading-h6 { font-weight: 600; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.heading-h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); letter-spacing: -.04em; }
.heading-h2 { font-size: clamp(1.625rem, 1rem + 1.5vw, 2.25rem); letter-spacing: -.035em; }
.heading-h3 { font-size: clamp(1.1875rem, 1rem + .4vw, 1.375rem); }
.heading-h4 { font-size: 1.15rem; }
.heading-h5, .heading-h6 { font-size: 1rem; }

/* Product cards (two per row on the category pages): card, floated photo, button below the text */
.productBkg { padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--r-card); background: #fff; box-shadow: 0 1px 0 rgba(34, 48, 81, .04), 0 22px 40px -30px rgba(34, 48, 81, .5); }
.productBkg::after { content: ""; display: table; clear: both; }
.productBkg h3 { margin: 0 0 .75rem; font-size: clamp(1.1875rem, 1rem + .5vw, 1.375rem); font-weight: 600; letter-spacing: -.03em; }
.productBkg .wp-block-image { float: right; max-width: 42%; margin: 0 0 1rem 1.25rem; }
.productBkg .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--r-tile); }
.productBkg p { max-width: none; }
.productBkg a.button { clear: both; margin: 1rem 0 0; }
.entry-content a.button { color: var(--navy); font-weight: 600; text-decoration: none; }
.entry-content a.button-secondary { color: #fff; }
.entry-content a.button-secondary:hover { color: #fff; }
.wp-block-spacer { clear: both; }
@media (max-width: 700px) { .productBkg .wp-block-image { float: none; max-width: 100%; margin: 0 0 1rem; } }

/* Gravity Forms spacing inside the contact card */
.entry-content .gform_wrapper .gfield { margin: 0 0 1.1rem; }
.entry-content .gform_wrapper .gfield_label { display: block; margin: 0 0 .4rem; }

/* Type scale 2026-12: intro paragraph. The first paragraph is wrapped in <strong> in the content; show it as a lead, not as bold body. Content unchanged. */
.entry-content > p:first-child { color: var(--navy); font-size: 1.0625rem; line-height: 1.6; }
.entry-content > p:first-child > strong:only-child { font-weight: 500; }
@media (min-width: 700px) { .entry-content > p:first-child { font-size: 1.125rem; } }

/* =====================================================================
   Mobile pass 2026-12 (inner pages)
   ===================================================================== */
@media (max-width: 767px) {
  .page-hero { margin: 8px 8px 0; padding: 112px 20px 32px; border-radius: 20px; }
  .page-hero__title { font-size: clamp(2rem, 1.4rem + 3vw, 2.5rem); line-height: 1.05; }
  .crumbs { margin-bottom: 16px; padding: 4px 12px; font-size: 12.5px; }
  .crumbs a { display: inline-block; padding: 9px 2px; margin: -9px 0; }
  .entry-content { --ecm: 20px; margin: 0 20px; }
  .entry-content h2 { margin-top: 1.6em; line-height: 1.12; }
  .entry-content a.button, .entry-content .wp-block-button__link, .wp-block-buttons .button { width: 100%; text-align: center; }
  .entry-content img { height: auto; }
  .entry-content .wp-block-columns { gap: 1.25rem; }
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .entry-content ul > li, .entry-content ol > li { margin-bottom: .55em; }
  .cta-band { margin: 20px 8px 8px; padding: 36px 22px; border-radius: 20px; }
  .cta-band .button { width: 100%; }
  .post-navigation .nav-links { display: grid; gap: 10px; }
  .post-navigation a { max-width: none; }
  .gform_wrapper input[type=text], .gform_wrapper input[type=email], .gform_wrapper input[type=tel], .gform_wrapper select, .gform_wrapper textarea { font-size: 16px; min-height: 48px; }
}

/* Page content must never run past its container (About page text was cut off on the right). */
.entry-content, .entry-content > *, .entry-content .wp-block-group, .entry-content .wp-block-group__inner-container, .entry-content .wp-block-cover__inner-container, .entry-content .wp-block-media-text__content, .entry-content .wp-block-column { min-width: 0; max-width: 100%; box-sizing: border-box; }
.entry-content p, .entry-content li, .entry-content h2, .entry-content h3, .entry-content h4 { max-width: 100%; overflow-wrap: break-word; white-space: normal; }
.entry-content .wp-block-columns { max-width: 100%; }
.entry-content .wp-block-column { flex-shrink: 1; }
.entry-content img, .entry-content figure, .entry-content video { max-width: 100%; height: auto; }
.entry-content [style*="width"]:not(img):not(svg):not(iframe) { max-width: 100%; }

/* =====================================================================
   Inner page redesign 2026-12 (CSS and wrappers only; content unchanged)
   Navy is kept for the header, footer and quote band, so cards here use mist, white and gold.
   ===================================================================== */

/* A. Category product cards: equal-height 2 x 2 grid, photo on top, gold button pinned to the bottom */
.entry-content .wp-block-columns:has(.productBkg) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.entry-content .wp-block-columns:has(.productBkg) > .wp-block-column { display: flex; flex-basis: auto !important; }
.productBkg { display: flex; flex-direction: column; width: 100%; padding: 0; overflow: hidden; }
.entry-content .productBkg .wp-block-image, .entry-content .productBkg .wp-block-image.alignright { order: -1; float: none; width: 100%; max-width: none; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.entry-content .productBkg .wp-block-image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.entry-content .productBkg .wp-block-image figure, .entry-content .productBkg .wp-block-image figure.alignright { float: none; width: 100%; max-width: none; height: 100%; margin: 0; }
.entry-content .productBkg .wp-block-image a { display: block; width: 100%; height: 100%; }
.productBkg h3 { margin: 0; padding: 1.5rem 1.75rem .5rem; }
.productBkg p { margin: 0 0 1rem; padding: 0 1.75rem; font-size: .97rem; }
.productBkg > .wp-block-buttons, .productBkg > a.button, .productBkg > p:has(> a.button) { margin: auto 1.75rem 1.75rem; padding: 0; }
.productBkg > a.button { margin-top: auto; }
.productBkg a.button, .productBkg .wp-block-button__link { width: calc(100% - 3.5rem); justify-content: center; text-align: center; padding: 14px 36px; text-wrap: balance; }
@media (max-width: 781px) { .entry-content .wp-block-columns:has(.productBkg) { grid-template-columns: 1fr; } }

/* B. Spec list as tiles with gold check marks, framed photo */
.entry-content ul.columns-2 { columns: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; max-width: none; list-style: none; }
.entry-content ul.columns-2 > li { position: relative; margin: 0; padding: 1rem 1.2rem 1rem 3rem; border-radius: 14px; background: var(--mist); color: var(--navy); font-weight: 500; }
.entry-content ul.columns-2 > li::before { content: ""; position: absolute; left: 1.1rem; top: 1.15rem; width: 18px; height: 18px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12.5l4 4 8-9' fill='none' stroke='%23223051' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat; }
@media (max-width: 700px) { .entry-content ul.columns-2 { grid-template-columns: 1fr; } }
/* C. Industries / Processing as two cards (wrapper added by inc/inner-content.php) */
.wcas-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 2.5rem 0; clear: both; }
.wcas-split > div { padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-card); background: var(--mist); }
.wcas-split > .wcas-split__b { background: #fff; box-shadow: inset 0 0 0 2px var(--mist), inset 0 5px 0 var(--navy); padding-top: calc(clamp(1.5rem, 3vw, 2.25rem) + 5px); }
.wcas-split h3 { margin-top: 0; }
.wcas-split p { max-width: none; margin-bottom: 0; }
.wcas-split p + p { margin-top: 1em; }
@media (max-width: 800px) { .wcas-split { grid-template-columns: 1fr; } }

/* D. The WCAS Difference: one soft card with a gold edge */
.wcas-diff { clear: both; margin: 3rem 0; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r-card); background: var(--mist); box-shadow: inset 6px 0 0 var(--navy); }
.wcas-diff > :first-child { margin-top: 0; }
.wcas-diff > :last-child { margin-bottom: 0; }
.wcas-diff p { max-width: 70ch; }

/* E. About: Code of Conduct graphic in a card, roomier closing band, accent over the closing line */
.entry-content > .wp-block-image:has(> figure.alignright) { float: right; width: 46%; max-width: 560px; margin: 0 0 1.5rem 3rem; }
.entry-content > .wp-block-image > figure.alignright { float: none; width: auto; max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; }
.entry-content > .wp-block-image > figure.alignright img { display: block; width: 100%; height: auto; border-radius: var(--r-tile); box-shadow: none; background: none; padding: 0; }
.customBg01.short { border-radius: var(--r-card); }
.customBg01.short .wp-block-group__inner-container, .customBg01.short .container { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.customBg01.short .container > * { max-width: 70ch; margin-left: 0 !important; margin-right: 0 !important; }
.customBg01.short p { font-size: 1.075rem; line-height: 1.7; color: var(--slate); }
.customBg01.short p:first-child { color: var(--navy); font-size: 1.3rem; line-height: 1.5; font-weight: 500; letter-spacing: -.015em; }
.entry-content > p.heading-h2 { margin: 3rem 0 3.5rem; max-width: none; }
.entry-content > p.heading-h2::before { content: ""; display: block; width: 56px; height: 4px; margin-bottom: 1.1rem; border-radius: 4px; background: var(--gold); }
@media (max-width: 700px) { .entry-content > .wp-block-image:has(> figure.alignright) { float: none; width: 100%; max-width: none; margin: 0 0 1.5rem; } }

/* F. Sticky quote pill on category and product pages (white pill so it does not add more navy) */
.wcas-stick { position: sticky; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 24px); margin: 0 auto; padding: 8px 8px 8px 22px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; box-shadow: 0 0 0 1px var(--mist), 0 18px 40px -16px rgba(34, 48, 81, .45); }
.wcas-stick__b { padding: 12px 24px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; transition: background-color .25s ease, transform .35s var(--ease); }
.wcas-stick__b:hover, .wcas-stick__b:focus-visible { background: var(--gold-deep); transform: translateY(-1px); }
@media (max-width: 480px) { .wcas-stick { width: calc(100% - 16px); justify-content: space-between; padding-left: 18px; } .wcas-stick__t { font-size: .95rem; } }
@media print { .wcas-stick { display: none; } }
.wcas-split + hr { display: none; }  /* the divider line the cards replace; kept in the markup */

/* Button text: even padding on all sides, balanced wrapping, so labels never touch the pill corners (desktop and mobile) */
.button, .wp-block-button__link { padding: 14px 30px; text-wrap: balance; }
.button > strong, .wp-block-button__link > strong { font-weight: inherit; }
.entry-content a.button, .entry-content .wp-block-button__link, .cta-band .button { padding: 14px 30px; }
@media (max-width: 600px) {
  .button, .wp-block-button__link, .entry-content a.button, .entry-content .wp-block-button__link, .cta-band .button { padding: 14px 28px; }
  .productBkg a.button, .productBkg .wp-block-button__link { padding: 14px 28px; }
}

/* =====================================================================
   Button hierarchy 2026-12
   Primary (solid gold): quote and contact actions only (navbar, sticky pill, quote band, forms, "Contact WCAS").
   Secondary (mist pill, gold arrow chip): links to other pages, e.g. "More About ...", "Explore ...", "Learn More About ...".
   Page content uses class "button-default" for both, so the split is made by link target.
   ===================================================================== */
.entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) {
  justify-content: space-between; gap: 16px; width: auto; min-width: min(100%, 17rem); max-width: 100%; padding: 6px 6px 6px 26px; min-height: 52px;
  background: var(--mist); color: var(--navy); box-shadow: 0 6px 14px -8px rgba(34, 48, 81, .22), 0 1px 3px rgba(34, 48, 81, .06); text-align: left;
}
.entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"])::after {
  content: "\2197"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-size: 1.05rem; line-height: 1; transition: transform .45s var(--ease);
}
.entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) .arrow { display: none; }
.entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):hover,
.entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):focus-visible { background: var(--haze); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(34, 48, 81, .3), 0 1px 3px rgba(34, 48, 81, .08); }
.entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):hover::after,
.entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):focus-visible::after { transform: translate(3px, -3px); }
/* in the product cards the secondary button fills the card width */
.productBkg a.button:not([href*="contact"]):not([href*="quote"]) { width: calc(100% - 3.5rem); padding: 6px 6px 6px 26px; }
@media (max-width: 600px) {
  .entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) { width: 100%; padding: 6px 6px 6px 22px; }
  .productBkg a.button:not([href*="contact"]):not([href*="quote"]) { width: calc(100% - 2.5rem); margin-left: 1.25rem; margin-right: 1.25rem; }
}

/* Secondary buttons: mist pill on white, white pill on mist sections; both with a soft navy shadow */
.customBg01 a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) { background: #fff; box-shadow: 0 6px 14px -8px rgba(34, 48, 81, .22), 0 1px 3px rgba(34, 48, 81, .06); }
.customBg01 a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):hover,
.customBg01 a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):focus-visible { background: #fff; box-shadow: 0 10px 20px -10px rgba(34, 48, 81, .3), 0 1px 3px rgba(34, 48, 81, .08); }
/* cards sit on white, so their button goes back to the mist pill */
.customBg01 .productBkg a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) { background: var(--mist); box-shadow: 0 6px 14px -8px rgba(34, 48, 81, .22), 0 1px 3px rgba(34, 48, 81, .06); }
.customBg01 .productBkg a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):hover, .customBg01 .productBkg a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]):focus-visible { background: var(--haze); }

/* Buttons never overflow their card or the screen: fill the card by stretching, not by fixed widths */
.productBkg a.button, .productBkg .wp-block-button__link { box-sizing: border-box; align-self: stretch; width: auto; max-width: none; margin: auto 1.75rem 1.75rem; min-width: 0; }
.entry-content a.button { max-width: 100%; box-sizing: border-box; }
.entry-content a.button > strong { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .productBkg a.button, .productBkg .wp-block-button__link, .customBg01 .productBkg a.button { width: auto; margin: auto 1.25rem 1.25rem; }
  .entry-content a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) { width: 100%; min-width: 0; }
  .productBkg h3 { padding: 1.25rem 1.25rem .5rem; }
  .productBkg p { padding: 0 1.25rem; }
}

/* Sticky quote pill: compact on phones */
@media (max-width: 600px) {
  .wcas-stick { bottom: 10px; width: max-content; max-width: calc(100% - 20px); gap: 8px; padding: 4px 4px 4px 14px; justify-content: flex-start; }
  .wcas-stick__t { font-size: 14px; line-height: 1.2; }
  .wcas-stick__b { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; font-size: 14px; }
  /* Phones: no white outline, only the gold Get a free quote pill. */
  .wcas-stick { width: max-content; max-width: calc(100% - 20px); gap: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .wcas-stick__t { display: none; }
  .wcas-stick__b { min-height: 48px; padding: 0 26px; font-size: 15px; box-shadow: 0 10px 22px -8px rgba(34, 48, 81, .45), 0 2px 5px rgba(34, 48, 81, .12); }
}
@media (max-width: 360px) { .wcas-stick__t { display: none; } }

/* Card buttons: same specificity as the secondary-button rules, so the mobile 100% width cannot push them past the card edge */
.entry-content .productBkg a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) { width: auto; min-width: 0; max-width: none; align-self: stretch; margin: auto 1.75rem 1.75rem; }
@media (max-width: 600px) {
  .entry-content .productBkg a.button:not([href*="contact"]):not([href*="quote"]):not([href^="tel:"]):not([href^="mailto:"]) { width: auto; margin: auto 1.25rem 1.25rem; }
}
hr:has(+ .wcas-diff) { display: none; }  /* decorative divider replaced by the card */
.wcas-split--solo { grid-template-columns: 1fr; }

/* Sticky quote pill: breathing room at the end of the page, so it does not sit on the last paragraph */
.wcas-stick { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.page-main > .entry:last-child { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* =====================================================================
   Contact page 2026-12 (CSS only; the page content and the form are unchanged)
   Layout: one mist panel holding a white info card (address, phone, email, map) and a white form card.
   ===================================================================== */
.entry-content .wp-block-columns:has(.gform_wrapper) {
  align-items: stretch; gap: clamp(1rem, 2.5vw, 1.75rem); margin: 0 0 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.75rem); border-radius: var(--r-card); background: var(--mist);
}
.entry-content .wp-block-columns:has(.gform_wrapper) > .wp-block-column { flex-basis: auto !important; border-radius: var(--r-card); background: #fff; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 22px 40px -32px rgba(34, 48, 81, .45); align-self: stretch; }
.entry-content .wp-block-columns:has(.gform_wrapper) > .wp-block-column:first-child { flex: 0 0 38% !important; display: flex; flex-direction: column; }
.entry-content .wp-block-columns:has(.gform_wrapper) > .wp-block-column:last-child { flex: 1 1 0 !important; min-width: 0; }

/* Info card: three contact rows with gold icon chips, then the map */
.entry-content .wp-block-column > p.heading-h4 { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; padding: 0; max-width: none; font-size: 1.05rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.entry-content .wp-block-column > p.heading-h4::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold) center / 22px no-repeat; }
.entry-content .wp-block-column > p.heading-h4:nth-of-type(1)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23223051' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s7-6.2 7-11.5A7 7 0 0 0 5 9.5C5 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>"); }
.entry-content .wp-block-column > p.heading-h4:nth-of-type(2)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23223051' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>"); }
.entry-content .wp-block-column > p.heading-h4:nth-of-type(3)::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23223051' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>"); }
.entry-content .wp-block-column > p.heading-h4 a { color: var(--navy); text-decoration-thickness: .08em; overflow-wrap: anywhere; }
.entry-content .wp-block-columns:has(.gform_wrapper) > .wp-block-column:first-child iframe { display: block; flex: 1 1 auto; width: 100%; min-height: 260px; height: auto; margin-top: 1rem; border: 0; border-radius: var(--r-tile); }

/* Form card */
#gform_wrapper_1 .gform_fields { row-gap: 1.1rem; }
#gform_wrapper_1 .gfield_label, #gform_wrapper_1 legend.gfield_label { margin: 0 0 .45rem; color: var(--navy); font-size: .95rem; font-weight: 600; }
#gform_wrapper_1 .gfield_required { margin-left: .35em; color: var(--slate); font-size: .78rem; font-weight: 500; font-style: normal; }
#gform_wrapper_1 .gfield_required .gfield_required_text { font-style: normal; }
#gform_wrapper_1 input[type="text"], #gform_wrapper_1 input[type="email"], #gform_wrapper_1 input[type="tel"], #gform_wrapper_1 select, #gform_wrapper_1 textarea {
  width: 100%; box-sizing: border-box; min-height: 52px; padding: 12px 16px; border: 1.5px solid transparent; border-radius: 14px; background: var(--mist);
  color: var(--navy); font: inherit; font-size: 1rem; box-shadow: none; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
#gform_wrapper_1 textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
#gform_wrapper_1 input:hover, #gform_wrapper_1 textarea:hover, #gform_wrapper_1 select:hover { border-color: var(--haze); }
#gform_wrapper_1 input:focus, #gform_wrapper_1 textarea:focus, #gform_wrapper_1 select:focus { outline: 0; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(238, 196, 50, .55); }
#gform_wrapper_1 .gfield_error input, #gform_wrapper_1 .gfield_error textarea { background: #fdf1f0; border-color: #a3261f; }
#gform_wrapper_1 .ginput_complex { row-gap: 1rem; }
#gform_wrapper_1 .ginput_complex label, #gform_wrapper_1 .gfield_description, #gform_wrapper_1 .gform-field-label--type-sub { margin: .35rem 0 0; color: var(--slate); font-size: .8rem; font-weight: 400; }

/* Submit area: the button gets its own full-width row, the reCAPTCHA note sits under it (it used to share the row) */
#gform_wrapper_1 .gform_footer, #gform_wrapper_1 .gform-footer { display: grid !important; grid-template-columns: 1fr; gap: 14px; margin: 1.6rem 0 0; padding: 0; }
#gform_wrapper_1 .gform_footer .gform_button, #gform_wrapper_1 .gform-footer .gform_button { width: 100%; min-height: 58px; padding: 16px 32px; font-size: 1.05rem; }
#gform_wrapper_1 .wcas-recaptcha-note { flex-basis: auto; margin: 0; text-align: center; }

@media (max-width: 900px) {
  .entry-content .wp-block-columns:has(.gform_wrapper) { flex-wrap: wrap; }
  .entry-content .wp-block-columns:has(.gform_wrapper) > .wp-block-column:first-child, .entry-content .wp-block-columns:has(.gform_wrapper) > .wp-block-column:last-child { flex: 1 1 100% !important; }
}
@media (max-width: 600px) {
  .entry-content .wp-block-columns:has(.gform_wrapper) { padding: .75rem; gap: .75rem; }
  .entry-content .wp-block-columns:has(.gform_wrapper) > .wp-block-column { padding: 1.25rem; }
  #gform_wrapper_1 input[type="text"], #gform_wrapper_1 input[type="email"], #gform_wrapper_1 input[type="tel"], #gform_wrapper_1 textarea { font-size: 16px; }
}

/* Contact form: condensed (2026-12) */
#gform_wrapper_1 .gform_fields { row-gap: .7rem; }
#gform_wrapper_1 input[type="text"], #gform_wrapper_1 input[type="email"], #gform_wrapper_1 input[type="tel"], #gform_wrapper_1 select { min-height: 40px; padding: 8px 14px; font-size: .95rem; border-radius: 12px; }
#gform_wrapper_1 textarea { min-height: 84px; height: 84px; padding: 10px 14px; font-size: .95rem; border-radius: 12px; }
#gform_wrapper_1 .gfield_label, #gform_wrapper_1 legend.gfield_label { margin: 0 0 .3rem; font-size: .86rem; }
#gform_wrapper_1 .ginput_complex { row-gap: .7rem; }
#gform_wrapper_1 .ginput_complex label, #gform_wrapper_1 .gform-field-label--type-sub { margin: .2rem 0 0; font-size: .74rem; }
#gform_wrapper_1 .ginput_container_address { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .7rem; margin: 0 !important; width: 100% !important; }
#gform_wrapper_1 .ginput_container_address > span { grid-column: span 1; width: auto !important; margin: 0 !important; padding: 0 !important; float: none; }
#gform_wrapper_1 .ginput_container_address > .address_line_1, #gform_wrapper_1 .ginput_container_address > .address_line_2, #gform_wrapper_1 .ginput_container_address > .address_country { grid-column: 1 / -1; }
#gform_wrapper_1 .gform_footer, #gform_wrapper_1 .gform-footer { margin-top: 1rem; gap: 10px; }
#gform_wrapper_1 .gform_footer .gform_button, #gform_wrapper_1 .gform-footer .gform_button { min-height: 50px; padding: 12px 28px; }
@media (max-width: 600px) {
  #gform_wrapper_1 input[type="text"], #gform_wrapper_1 input[type="email"], #gform_wrapper_1 input[type="tel"], #gform_wrapper_1 select { min-height: 44px; font-size: 16px; }
  #gform_wrapper_1 textarea { font-size: 16px; }
  #gform_wrapper_1 .ginput_container_address { grid-template-columns: 1fr; }
}

/* A2. Category product cards: a replaced photo always fills the card.
   The block editor adds inline width, height and aspect-ratio (is-resized), floats (alignright) or wraps the picture in a paragraph, a link or a caption box.
   The photo area is a fixed 16:9 box and the picture is pinned to it (absolute, 100% x 100%), so it can never grow past the box
   whatever width, height, scale or margin the editor or an old style put on it (a percentage height inside an auto-height box made some photos 2.5x too tall and zoomed). */
.entry-content .productBkg .wp-block-image, .entry-content .productBkg > figure, .entry-content .productBkg .wp-caption { order: -1; position: relative; float: none !important; width: 100% !important; max-width: none !important; height: auto !important; margin: 0 !important; aspect-ratio: 16 / 9; overflow: hidden; }
.entry-content .productBkg > p:has(> img, > a > img, > figure, > .wp-caption) { order: -1; position: relative; margin: 0; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.entry-content .productBkg .wp-block-image figure, .entry-content .productBkg figure figure, .entry-content .productBkg .wp-caption figure { position: static !important; float: none !important; width: 100% !important; max-width: none !important; height: auto !important; margin: 0 !important; }
.entry-content .productBkg a:has(> img) { display: block; position: static !important; width: 100%; height: 100%; }
.entry-content .productBkg img { display: block; position: absolute !important; inset: 0 !important; float: none !important; width: 100% !important; height: 100% !important; min-width: 0 !important; max-width: 100% !important; max-height: 100% !important; margin: 0 !important; padding: 0 !important; transform: none !important; scale: none !important; translate: none !important; zoom: 1 !important; aspect-ratio: auto !important; object-fit: cover !important; object-position: center; border-radius: 0; }

/* A3. Cards marked productBkg--fit (Aluminum Coil, Aluminum Tread Brite): nearly square photos.
   The photo area is a fixed 5:4 box and the picture is pinned to it (absolute, 100% x 100%), so it can never grow past the box
   whatever width, height, scale or margin the editor or an old style put on it. Only a small part is cropped. */
.entry-content .productBkg--fit .wp-block-image, .entry-content .productBkg--fit > figure, .entry-content .productBkg--fit .wp-caption, .entry-content .productBkg--fit > p:has(> img, > a > img, > figure, > .wp-caption) { position: relative; aspect-ratio: 5 / 4 !important; height: auto !important; overflow: hidden; }
.entry-content .productBkg--fit .wp-block-image figure, .entry-content .productBkg--fit .wp-caption figure, .entry-content .productBkg--fit a:has(> img) { position: static !important; }
.entry-content .productBkg--fit img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-width: 0 !important; max-width: 100% !important; max-height: 100% !important; margin: 0 !important; padding: 0 !important; transform: none !important; scale: none !important; translate: none !important; zoom: 1 !important; aspect-ratio: auto !important; object-fit: cover !important; object-position: center 45% !important; }

/* A4. Lists inside product cards ("Key Features Include:" on the pipe and tubing pages): the card has no padding of its own
   (headings, paragraphs and buttons carry it), so the list gets the same side space and its bullets stay inside the card. */
.productBkg > ul, .productBkg > ol { margin: 0 1.75rem 1rem; padding: 0 0 0 1.25rem; font-size: .97rem; }
.productBkg > ul li, .productBkg > ol li { margin: 0 0 .4rem; padding: 0; }
.productBkg > ul li::marker, .productBkg > ol li::marker { color: var(--slate); }
@media (max-width: 600px) { .productBkg > ul, .productBkg > ol { margin-left: 1.25rem; margin-right: 1.25rem; } }
