:root {
  --wa-color-primary: #6e9fca;
  /* Stylus Brand Color */
}

/* Force primary buttons to use Stylus brand blue */
wa-button[variant="primary"] {
  --wa-color-fill-loud: #6e9fca;
  --wa-color-on-loud: #fff;
}

/* Memo Cart + Request a Quote nav buttons — match hero primary button style */
wa-button.nav-action-btn {
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

wa-button.nav-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 120, 159, 0.35);
  filter: brightness(1.08);
}


/* Global Box Sizing Reset to prevent layout breakage */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "proxima-nova", sans-serif;
  scroll-snap-type: y proximity;
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.text-link {
  position: relative;
  color: #6291bb;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: #5b86ad;
  transition: width 0.25s ease;
}

.text-link:hover::after {
  width: 100%;
}

/* Animated underline link — slides in from left on hover, out to left on leave */
.anim-link {
  position: relative;
  color: #6291bb;
  text-decoration: none;
}

.anim-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: #6291bb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.anim-link:hover::after {
  transform: scaleX(1);
}



/* --- Main Container --- */
.site-container {
  width: 100%;
  max-width: 1800px;
  margin: 24px auto;
  padding: 4px 40px;
  box-sizing: border-box;
}

/* --- Collection Grid Styles --- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Mobile: 2 cols */
  gap: 1rem;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(5, 1fr);
    /* Desktop: 5 cols for MTO */
  }

  .collection-grid.instock {
    grid-template-columns: repeat(4, 1fr);
    /* Desktop: 4 cols for Instock */
  }
}

wa-card {
  height: 100%;
  --padding-top: 0;
  --padding-bottom: 0px;
  --padding-leading: 0;
  --padding-trailing: 0;
}

wa-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.card-footer-link {
  display: block;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  color: var(--wa-color-primary);
  text-decoration: none;
}

.card-footer-link:hover {
  text-decoration: underline;
}

/* --- Visibility Utilities Emulating Foundation --- */
@media screen and (min-width: 768px) {
  .show-for-small-only {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .hide-for-small-only {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .show-for-medium-only {
    display: none !important;
  }
}

@media screen and (min-width: 1024px) {
  .show-for-medium-only {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  .show-for-large-up {
    display: none !important;
  }
}

@media screen and (min-width: 1024px) {
  .hide-for-large-up {
    display: none !important;
  }
}

/* --- Layout Helpers (Flexbox) --- */

.align-middle {
  align-items: center;
}

.align-right {
  justify-content: flex-end;
}

.align-center {
  justify-content: center;
}


/* --- Site Header Specific Layout --- */
/* Force the header slot and site-header to be full width */
[slot="header"],
.site-header {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Sticky header: stays at top when scrolled.  Pure CSS — no JS needed,
     no position:fixed hacks, no placeholder divs, no scroll-dependent
     calculations.  The header remains in document flow at all times. */
  position: sticky;
  top: 0;
  z-index: 1020;
  background-color: #ffffff;
}

.site-header__main {
  width: 90% !important;
  /* User requested 80vw, we use 80% to be safe */
  max-width: 100% !important;
  margin: 0 auto;
  /* Center the content */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.desktop-nav {
  width: 90% !important;
  max-width: 100% !important;
  margin: 0 auto;
  gap: 1.6rem;
}

.site-header__mobile-toggle {
  flex: 0 0 auto;
}

.site-header__logo {
  flex: 0 1 auto;
  max-width: calc(100% - 60px);
  padding-left: 1rem;
  text-align: center;
}

.site-header__logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-header__actions {
  flex: 0 0 auto;
  /* Natural width */
  text-align: right;
  display: none;
  /* Hidden by default (mobile) */
}

/* ===================================================================
   HEADER SEARCH AUTOCOMPLETE  (hs-)
   Namespace: hs-  |  Scope: .header-search and children
   =================================================================== */

/* Position anchor for the absolute dropdown */
.header-search {
  position: relative;
}

/* The dropdown panel */
.hs-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dce1e8;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
  z-index: 9000;
  overscroll-behavior: contain;
}
.hs-dropdown.is-open {
  display: block;
}

/* Individual result row */
.hs-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #1a2530;
  border-bottom: 1px solid #f0f3f6;
  transition: background 0.1s ease;
  outline: none;
  /* The header search lives inside .site-header__actions (text-align: right);
     reset to left so the name sits flush after the thumbnail. */
  text-align: left;
}
.hs-result:last-child {
  border-bottom: none;
}
.hs-result:hover,
.hs-result.is-focused {
  background: #f2f6fb;
}

/* Thumbnail */
.hs-result__thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  background-color: #edf0f4;
}
.hs-result__thumb--empty {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
  background-color: #edf0f4;
}

/* Start decoration: type icon */
.hs-result__icon {
  color: #8fa0b0;
  font-size: 13px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

/* Product / fabric name */
.hs-result__name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  font-family: "proxima-nova", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1a2530;
}

/* Colourway label appended to a fabric's pattern name (e.g. "Analogy – Charcoal") */
.hs-result__colour {
  font-weight: 400;
  color: #8fa0b0;
}

/* End decoration: type badge */
.hs-result__badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  font-family: "proxima-nova", sans-serif;
}
.hs-result__badge--furniture {
  background: rgba(110, 159, 202, 0.13);
  color: #4272a0;
}
.hs-result__badge--fabric {
  /* #aeb67a is below accessible contrast for text — use darker derivative */
  background: rgba(174, 182, 122, 0.18);
  color: #6b7535;
}

/* Loading state */
.hs-loading {
  padding: 12px 16px;
  font-size: 13px;
  color: #8fa0b0;
  text-align: center;
  font-family: "proxima-nova", sans-serif;
}
.hs-loading i {
  margin-right: 6px;
}

/* Empty / no-results state */
.hs-no-results {
  padding: 14px 16px;
  font-size: 13px;
  color: #8fa0b0;
  text-align: center;
  font-family: "proxima-nova", sans-serif;
}

/* Responsive: full-width on small screens */
@media (max-width: 767px) {
  .hs-dropdown {
    width: calc(100vw - 24px);
    right: 0;
  }
}

/* ========================================
   SITE FOOTER: PREMIUM DARK
   ======================================== */

[slot="footer"],
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  background: #1f2428;
  color: #c7d1db;
  padding-top: 110px;
  padding-bottom: 80px;
}

.site-footer .wa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-brand {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 40px auto;
}

.footer-brand img {
  height: 46px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: #9fb3c8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-social a {
  color: #9fb3c8;
  font-size: 24px;
  transition: color .2s ease;
}

.footer-social a:hover {
  color: #6e9fca;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin: 40px auto;
  max-width: 1200px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}


.footer-column a {
  display: block;
  color: #c7d1db;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s ease, transform 0.25s ease;
}

.footer-column a:hover {
  color: #6e9fca;
  transform: translateX(3px);
}

.footer-column p {
  color: #9fb3c8;
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.5;
}

.footer-bottom {
  margin-top: 70px;
  text-align: center;
  font-size: .8rem;
  color: #9fb3c8;
}

.footer-bottom a {
  color: #9fb3c8;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-bottom a:hover {
  color: #6e9fca;
}

.footer-credits {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: all .3s ease;
  margin-top: 0;
}

.footer-credits.visible {
  opacity: 1;
  max-height: 40px;
  transform: translateY(0);
  margin-top: 10px;
}

.footer-credits a {
  color: #6e9fca;
}

/* ========================================
   FOOTER ACCORDION (Mobile) & GRID (Desktop)
   ======================================== */
.footer-group {
  padding: 12px 0;
  margin-top: 24px;
}

wa-details.footer-group::part(base) {
  background: transparent;
  border: none;
}

wa-details.footer-group::part(header),
wa-details.footer-group::part(content) {
  padding: 0 !important;
  margin: 0 !important;
}

.footer-group::part(summary) {
  font-size: 0.85rem;
  letter-spacing: .14em;
  color: #9fb9d6;
  text-transform: uppercase;
  padding: 8px 0;
  margin-bottom: 12px;
}

.footer-group::part(expand-icon) {
  color: #9fb9d6;
}

wa-details.footer-group::part(content) {
  padding: 0;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a,
.footer-links p {
  margin: 6px 0;
  font-size: 0.95rem;
  /* slightly tightened for hierarchy */
}

/* DESKTOP ACCORDION OVERRIDE */
@media (min-width: 768px) {
  .footer-group {
    padding: 0;
    margin-top: 0;
  }

  wa-details.footer-group {
    display: block;
  }

  wa-details.footer-group::part(summary) {
    pointer-events: none;
    padding: 0;
    margin-bottom: 16px;
    font-size: .8rem;
    letter-spacing: .12em;
    color: #8fa3b7;
  }

  wa-details.footer-group::part(expand-icon) {
    display: none;
  }

  wa-details.footer-group::part(content) {
    display: block !important;
    padding: 0;
    margin-left: 0;
  }
}

.privacy-content {
  line-height: 1.7;
}

.privacy-content h3 {
  margin-bottom: 16px;
}

.privacy-content p {
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .site-footer .wa-container {
    padding: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}



/* Desktop: Logo Left, Actions Right, Space Between */
@media screen and (min-width: 1024px) {
  .site-header__logo {
    text-align: left;
    margin-right: auto;
    /* Push everything else to the right */
  }

  .site-header__actions {
    display: block;
    margin-left: auto;
    /* Push to the right */
  }

  .site-header__mobile-toggle {
    display: none;
  }
}

/* --- Spacing & Text Helpers --- */
.p-1 {
  padding: 1rem !important;
}

.p-2 {
  padding: 2rem !important;
}

.px-2 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.py-1 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.pt-1 {
  padding-top: 1rem !important;
}

.pt-2 {
  padding-top: 2rem !important;
}

.pb-1 {
  padding-bottom: 1rem !important;
}

.pb-2 {
  padding-bottom: 2rem !important;
}

.m-1 {
  margin: 1rem !important;
}

.m-2 {
  margin: 2rem !important;
}

.my-1 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

.my-2 {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

.my-3 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mb-1 {
  margin-bottom: 0.5rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mr-1 {
  margin-right: 0.5rem !important;
}

.gap-1 {
  gap: 1rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-small {
  font-size: 0.875rem;
}

.text-uppercase {
  text-transform: uppercase;
}

.bold {
  font-weight: bold;
}

.blue_text {
  color: var(--wa-color-primary) !important;
}

.product-title-black
 {
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 2px;
    max-width: 90%;
}

.healthcare-subtitle {
  font-size: 0.55em;
  font-weight: 400;
  color: #666;
  vertical-align: middle;
  margin-left: 0.4em;
}

.white_text {
  color: white !important;
}

/* --- Components --- */
.blue_link {
  color: var(--wa-color-primary);
  text-decoration: none;
}

.blue_link:hover {
  text-decoration: underline;
}

.callout {
  padding: 1rem;
  border: 1px solid rgba(10, 10, 10, 0.25);
  background-color: white;
  color: #0a0a0a;
}

.border-none {
  border: none !important;
}

/* ========================================
   HERO SECTION: ARCHITECTURAL RESET
   ======================================== */
.main-hero {
  position: relative;
  width: 100%;
  background-color: transparent;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .main-hero {
    min-height: 75vh;
  }
}

.main-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position is pinned to the glow's center so the same image pixel
     always sits under the glow, regardless of viewport aspect.
     MUST stay in sync with .hero-fireglow's (left + width/2, top + height/2).
     If you move or resize the glow, recompute its center and update here. */
  object-position: 71.5% 49.5%;
  transform-origin: center center;
  z-index: 1;
  animation: heroExhale 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(16, 24, 32, 0.55) 0%, rgba(16, 24, 32, 0.05) 50%),
    linear-gradient(to right, rgba(16, 24, 32, 0.75) 0%, rgba(16, 24, 32, 0) 55%);
  z-index: 2;
  pointer-events: none;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  margin-top: 36px;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  max-width: 580px;
  color: white;
  margin-top: auto;
  margin-left: 8%;
  margin-bottom: 120px;
}

/* TYPOGRAPHY: DESIGN CATALOG STYLE */
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  /* Editorial tracking */
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
  font-family: var(--wa-font-sans);
}

.hero-title {
  font-family: var(--wa-font-sans);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: white;
  margin-top: 6px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  opacity: 0.95;
  max-width: 520px;
  margin-bottom: 26px;
}

/* BUTTONS: HERO (tactile depth — hero section only) */

.hero-cta wa-button::part(base) {
  border-radius: 6px;
  padding: 14px 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-cta wa-button[variant="primary"]::part(base) {
  background: #6e9fca;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-cta wa-button[variant="outline"]::part(base),
.hero-cta wa-button[variant="outlined"]::part(base) {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-cta wa-button:hover::part(base) {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  background: #4f7fa8;
}

.hero-cta wa-button[variant="outline"]:hover::part(base),
.hero-cta wa-button[variant="outlined"]:hover::part(base) {
  color: #ffffff;
}

/* BUTTONS: CATALOGUE CTA (refined, flat — non-hero CTAs) */

.cta-btn {
  display: inline-block;
  background: #6e9fca;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 4px;
  border: none;
  box-shadow: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #5d8db7;
  color: #fff;
  transform: translateY(-1px);
}

.cta-btn:focus-visible {
  outline: 2px solid #6e9fca;
  outline-offset: 3px;
}

.cta-btn--outline {
  background: transparent;
  color: #6e9fca;
  border: 1px solid #6e9fca;
}

.cta-btn--outline:hover {
  background: #6e9fca;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn { transition: none; }
  .cta-btn:hover { transform: none; }
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .main-hero {
    padding-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #5e8fb9;
  }

  .main-hero-image {
    position: relative;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    z-index: 1;
    display: block;
    animation: none;
  }

  .hero-gradient {
    display: none;
  }

  /* On mobile the image is position: relative with max-height: 420px,
     but .hero-fireglow anchors to .main-hero (which extends past the image
     into the solid-blue overlay region). Hiding avoids a misaligned glow. */
  .hero-fireglow {
    display: none;
  }

  .hero-overlay {
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    max-width: 100%;
    background-color: #5e8fb9;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Equal-width buttons on mobile: stretch the <a> wrapper, the wa-button
     host element, and the inner ::part(base) surface all to full width. */
  .hero-cta a,
  .hero-cta wa-button {
    width: 100%;
    display: block;
  }

  .hero-cta wa-button::part(base) {
    width: 100%;
  }
}


.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
  opacity: 0.85;
}

.hero-watermark {
  position: absolute;
  bottom: 24px;
  right: 28px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  font-family: var(--wa-font-sans, sans-serif);
}

.hero-watermark-title {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-watermark-location {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

/* Hidden once the hero stacks (image above, copy below) — the watermark
   would otherwise sit over the image with no overlay context. */
@media (max-width: 768px) {
  .hero-watermark {
    display: none;
  }
}

@media (max-width: 1023px) {
  .hero-scroll-indicator {
    display: none !important;
    /* Hidden on small and medium screens */
  }
}

.scroll-text {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: white;
  /* Contrast against floor */
}

.scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  animation: scrollBounce 1.8s infinite;
}

@keyframes scrollBounce {
  0% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(6px) rotate(45deg);
  }

  100% {
    transform: translateY(0) rotate(45deg);
  }
}

.hero-overlay-content {
  background-color: var(--wa-color-primary);
  color: white;
  padding: 2rem;
}

.grey_footer {
  background: #e6e6e6;
  padding: 20px 0;
}

/* Lists */
.no-bullet,
.vertical-menu,
.clean-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vertical-menu li {
  margin-bottom: 0.5rem;
}

.clean-nav {
  display: flex;
  gap: 1rem;
}

/* Grid Container Fluid */
.grid-container.fluid {
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 100%;
}

/* Page Scrolling */
/* Page Scrolling */
html,
body {
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  max-width: 100%;
}

wa-page {
  height: auto;
  min-height: 100vh;
  /* Ensure it fills viewport at minimum */
  display: block;
  /* Pin slot heights to 0 so wa-page's init-time auto-calculation doesn't
     produce scroll-dependent offsets on refresh-while-scrolled.  Pages that
     place their header OUTSIDE wa-page (fast-4, products, product_detail,
     index) are affected; pages that slot into wa-page's own header slot
     (warranty, construction pages) override these via their slotted content. */
  --header-height: 0px;
  --banner-height: 0px;
  --subheader-height: 0px;
}

/* wa-page Shadow DOM ::part() overrides removed — no longer needed now that
   the header uses position:sticky instead of JS-based position:fixed. */

/* ========================================
   PROJECT GALLERY PAGE STYLES (Step 10)
   ======================================== */

.project-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   PRODUCT LISTING PAGE STYLES (Step 6)
   ======================================== */

/* Content with Sidebar Layout */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto;
  gap: 3.5rem;
  margin-top: 1rem;
  margin-left: -1rem;
  /* nudge sidebar left to align with header nav */
  /* align-items: start is required to prevent a layout bug on link-based
     navigation (see explicit grid-placement rules below). Trade-off: it
     also prevents .sidebar from stretching to match .content-main's
     height, which means .sidebar-nav cannot stick on scroll. Acceptable
     trade per user preference — sticky was nice-to-have. */
  align-items: start;
}

/* Pin grid placement explicitly so wa-page's slotting / shadow-DOM behavior
   can't reorder these into wrong cells on link-based navigation. */
.content-with-sidebar > .sidebar {
  grid-column: 1;
  grid-row: 1;
}
.content-with-sidebar > .content-main {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 1023px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .sidebar {
    display: none;
    /* Hide sidebar on mobile - use drawer instead */
  }

  /* Override the explicit grid-column:2 placement so .content-main occupies
     the single mobile column instead of being pushed into a phantom column 2
     (which leaves an empty column 1 on the left). */
  .content-with-sidebar > .content-main {
    grid-column: 1;
  }
}

/* Sidebar Navigation — sticky, clears stuck top header.
   --site-header-height is set dynamically by JS in include_sidebar_products.php.
   We use a custom name (NOT --header-height) because wa-page reserves
   --header-height for its own internal use and sets it to 0px on itself,
   which would shadow any value we set higher up in the cascade. */
.sidebar-nav {
  position: sticky;
  top: var(--site-header-height, 175px);
}

.sidebar-nav wa-tree-item a {
  color: inherit;
  text-decoration: none;
}

.sidebar-nav wa-tree-item[selected] a {
  color: var(--wa-color-primary);
  font-weight: bold;
}

/* ========================================
   SIDEBAR NAVIGATION POLISH (Rec #1)
   Modern Hierarchical with Hover States
   ======================================== */

/* Section Headers with Thick Dividers */
.sidebar-nav wa-tree-item[data-section-header] {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #333;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #6e9fca;
  margin-bottom: 0.5rem;
}

/* Individual Nav Items */
.sidebar-nav wa-tree-item {
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 4px;
}

/* Hover State - Very Subtle Blue Background */
.sidebar-nav wa-tree-item:hover {
  background-color: rgba(110, 159, 202, 0.04);
  cursor: pointer;
}

/* Active/Selected State - Blue Left Border + Bold */
.sidebar-nav wa-tree-item[selected] {
  font-weight: 600;
  border-left: 4px solid #6e9fca;
  padding-left: calc(1rem - 4px);
  background-color: rgba(110, 159, 202, 0.05);
}

.sidebar-nav wa-tree-item[selected] a {
  color: #6e9fca;
  font-weight: 600;
}

/* Chevron Indicators (for expandable items) */
.sidebar-nav wa-tree-item[expandable]::before {
  content: "▸ ";
  color: #6c757d;
  margin-right: 0.25rem;
}

.sidebar-nav wa-tree-item[expandable][expanded]::before {
  content: "▾ ";
  color: #6e9fca;
}

/* Section Divider Between Groups */
.sidebar-nav hr,
.sidebar-nav wa-divider {
  border: none;
  border-top: 1px solid #dee2e6;
  margin: 1rem 0;
}

/* Sidebar de-emphasis — secondary nav, not the focus */
.sidebar {
  font-size: 0.8rem;
  color: #555;
  opacity: 0.85;
}

/* Products sidebar already scales down via .sidebar { font-size: 0.8rem }.
   Cancel the additional 0.875em so links stay at 0.8rem, not smaller. */
.sidebar .filter-group .category-link {
  font-size: 1em;
}

.sidebar h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

/* Sidebar groups — unified styling for Filters / Browse by Category */
.filter-group {
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #dee2e6;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group h4 {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #333;
}

.filter-group label {
  display: block;
  margin-bottom: 4px;
  padding: 2px 0;
  cursor: pointer;
  line-height: 1.3;
}

.filter-group input[type="radio"] {
  margin-right: 6px;
  vertical-align: middle;
}

/* Category links — visually consistent with the radio rows above */
.filter-group .category-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 3px 0;
  margin-bottom: 2px;
  text-decoration: none;
  color: #555;
  font-size: 0.875em;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.filter-group .category-link:hover {
  color: var(--wa-color-primary);
}

.filter-group .category-link.is-active {
  color: var(--wa-color-primary);
  font-weight: 600;
}

.filter-group .cat-count {
  font-size: 0.75rem;
  color: #999;
  flex-shrink: 0;
}

/* Product Grid — 4 columns desktop, responsive */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 28px;
  padding-top: 20px;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Large screens (wider desktops) */
@media (min-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 52px 30px;
  }
}

/* Extra large screens (ultra-wide monitors) */
@media (min-width: 1700px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 56px 32px;
  }
}

/* Very large screens */
@media (min-width: 2000px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* Product Card — clean, minimal, no border */
.product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 10px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.2s ease;
  will-change: opacity, transform;
  text-decoration: none;
  color: inherit;
}

.product-card:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.product-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card.is-visible:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.10),
    inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: transparent;
  transition: background 0.2s ease;
  z-index: -1;
}

.product-card:hover::before {
  background: linear-gradient(to bottom,
      #ffffff 0%,
      #ffffff 70%,
      #fafafa 100%);
}

.hover-text {
  position: absolute;
  bottom: 20px;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #666;
  background: none;
  padding: 0;
  border-radius: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.product-card:hover .hover-text {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .product-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.2s ease;
  }
}

/* Image area — fixed height keeps card grid uniform */
.product-card .product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  padding: 18px 18px 12px;
  margin-bottom: 12px;
  text-decoration: none;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

.product-card .product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, opacity 0.2s ease;
  z-index: 1;
  position: relative;
}

/* Product Badges */
.badge-sash--new {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #8faecf;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 0 6px 0 0;
  z-index: 3;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.badge-overlay--fast4 {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 55%;
  min-width: 140px;
  max-width: 320px;
  opacity: 0.95;
  pointer-events: none;
}

.badge-overlay--fast4 img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-card:hover .product-image {
  transform: translateY(-2px);
}

.product-card:hover .product-image img {
  transform: scale(1.04);
  opacity: 0.97;
}

.product-card:hover .product-type-label {
  color: #999;
}

.product-card:hover .product-title {
  color: #000;
}

/* Info block under image */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0;
  padding: 0 14px;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 2px;
  max-width: 90%;
}

.product-title-details {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 2px;
  max-width: 90%;
}

.product-meta {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-type-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-type-label.in-stock {
  color: #2e7d32;
}

.product-type-label.custom {
  color: #9a9fa5;
}

.product-type-label.fast4 {
  color: #ba6109;
}

.product-type-label.new {
  color: #ba6109;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #5a6069;
  background: #f0f1f3;
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
  line-height: 1.6;
}

.product-tag--healthcare {
  color: #1a5fa8;
  background: #e8f0fb;
}

/* Breadcrumb container — divider + spacing */
.breadcrumb-container {
  padding-bottom: 8px;
  margin-bottom: 16px;
  margin-left: -1rem;
  padding-left: 0;
}

@media (max-width: 1023px) {
  .breadcrumb-container {
    margin-left: 0;
    padding-left: 0;
  }
}

.breadcrumb-container wa-breadcrumb {
  font-size: 12px;
}

/* Linked items — faded */
.breadcrumb-container wa-breadcrumb-item[href] {
  color: rgba(0, 0, 0, 0.5);
}

/* Current page (no href = last item) — clear and dark */
.breadcrumb-container wa-breadcrumb-item:not([href]) {
  color: rgba(0, 0, 0, 0.82);
  font-weight: 500;
}

/* Product detail header: title + non-interactive badge tags */
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.product-header .product-title {
  margin: 0;
}

.product-header .product-tags {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-detail-badge-new {
  color: #6f9fca;
  font-size: 1.1rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.05em;
  margin-right: 8px;
}

.product-detail-badge-fast4 {
  height: 28px;
  width: auto;
  margin-right: 8px;
}

.product-header .product-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  line-height: 1.4;
  background: #f0f1f3;
  color: #5a6069;
}

.product-header .tag-custom {
  background: #eef3f8;
  color: #3a5a78;
}

.product-header .tag-stock {
  background: #e6f6ec;
  color: #1f7a4d;
}

.product-header .tag-healthcare {
  background: #eef0ff;
  color: #3f51b5;
}

/* tag-new removed as it's replaced by product-detail-badge-new */

@media (max-width: 640px) {
  .product-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-header .product-tags {
    margin-top: 4px;
  }
}


/* Active filter banner — shows above product grid when ?stock= is set */
.active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 6px;
  background: #f0f7ed;
  border-left: 4px solid #2e7d32;
}

.active-filter-banner--custom,
.active-filter-banner--fast4,
.active-filter-banner--new {
  background: #f4f6fa;
  border-left-color: #6e9fca;
}

.active-filter-banner__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2e7d32;
}

.active-filter-banner--custom .active-filter-banner__label,
.active-filter-banner--fast4 .active-filter-banner__label {
  color: #2c5d8f;
}

.active-filter-banner--new .active-filter-banner__label {
  color: #6f9fca;
}

.active-filter-banner__detail-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6e9fca;
  text-decoration: none;
  letter-spacing: normal;
}

.active-filter-banner__detail-link:hover {
  text-decoration: none;
  color: #2c5d8f;
}

.active-filter-banner__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--wa-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.active-filter-banner__clear:hover {
  text-decoration: none;
  color: #2c5d8f;
}

/* .product-status retained for any non-product-grid uses */
.product-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #7a7f85;
  letter-spacing: 0.02em;
}

/* Filter Row */
.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-row .filter-label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

/* Fast Four Grid */
.fast-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 767px) {
  .fast-four-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Header Rule for Sections */
.for_headers {
  border: none;
  border-top: 2px solid var(--wa-color-primary);
  margin-bottom: 1rem;
}

/* Text Muted */
.text-muted {
  color: #6c757d;
}

/* --- Directory Grid Styles --- */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  /* Mobile: 1 col */
  gap: 1.5rem;
  margin: 1.5rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Tablet: 2 cols */
  }
}

@media (min-width: 1024px) {
  .directory-grid {
    grid-template-columns: repeat(3, 1fr);
    /* Desktop: 3 cols */
  }
}

/* Contact Card Styles */
.contact-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 1.25rem;
}

.contact-card p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.contact-name {
  font-size: 1.125rem;
  font-weight: bold;
  color: #212529;
  margin-bottom: 0.5rem !important;
}

.contact-title {
  font-size: 0.9375rem;
  color: #495057;
}

.contact-region {
  font-size: 0.875rem;
  font-style: italic;
  color: #6c757d;
}

.contact-address {
  font-size: 0.875rem;
  color: #495057;
  margin-top: 0.75rem !important;
}

.contact-phone,
.contact-fax {
  font-size: 0.875rem;
  color: #495057;
}

.contact-phone strong,
.contact-fax strong {
  font-weight: 600;
  color: #212529;
}

/* ========================================
   CONTACT US PAGE STYLES (Step 16)
   ======================================== */

/* Contact Info 3-Column Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Form - Name Row (First + Last side by side) */
.form-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   INTERACTIVE HOTSPOT DIAGRAM (Construction)
   ======================================== */
.hotspot-diagram {
  position: relative;
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hotspot-diagram__img {
  width: 100%;
  height: auto;
  display: block;
}

/* wa-tooltip is the positioned wrapper — top/left set inline per button */
.hotspot-diagram wa-tooltip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  line-height: 0;
}

.hotspot-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wa-color-primary, #6e9fca);
  color: white;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: hotspot-pulse 2s ease-in-out 1;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

.hotspot-btn:hover,
.hotspot-btn:focus {
  transform: scale(1.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  outline: none;
}

@keyframes hotspot-pulse {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(110, 159, 202, 0.3);
  }
}

@media (max-width: 480px) {
  .hotspot-btn {
    width: 24px;
    height: 24px;
    font-size: 0.65rem;
  }
}

/* ========================================
   PRODUCT DETAIL PAGE STYLES (Step 7)
   ======================================== */

/* Two-column hero: image left, info right */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-left {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  cursor: zoom-in;
  overflow: hidden;
}

.product-left img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.product-image-enlarge-hint {
  display: block;
  text-align: right;
  color: #999;
  font-size: 0.72rem;
  margin-top: 4px;
  pointer-events: none;
}

.product-right h3 {
  margin-top: 0;
}

.product-description {
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.product-features {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #495057;
  line-height: 1.7;
}

.product-features li {
  margin-bottom: 0.25rem;
}

/* Tags row */
.product-detail__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Action buttons */
.product-detail__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Spec table wrapper — scrollable, ~5 rows visible */
.spec-table-wrapper {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 0.5rem;
}

/* Specs diagram image — fit within content */
.spec-table-wrapper+.mt-2 img,
.product-detail+.mt-2 img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Dimensions table */
.product-detail__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.product-detail__table th {
  background: #f8f9fa;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--wa-color-primary);
  white-space: nowrap;
}

.product-detail__table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.product-detail__table tr:hover {
  background-color: rgba(110, 159, 202, 0.04);
}

.product-detail__table tr:nth-child(even) {
  background-color: #fbfdff;
}

/* Constrain right column to match Stylus Contract width */
.product-right {
  max-width: 520px;
}

/* PDF buttons row inside right column */
.product-detail__pdfs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* PDF button polish — applied to .product-detail__pdfs (the old .product-detail__actions container was removed) */
.product-detail__pdfs wa-button::part(base) {
  background: #ffffff;
  border: 1px solid #cfd6dd;
  font-weight: 600;
}

.product-detail__pdfs wa-button:hover::part(base) {
  background: #f3f6f9;
}

/* Footer text links below Request Quote */
.product-footer-links {
  margin-top: 16px;
  font-size: 0.85rem;
}

.product-footer-links a {
  margin-right: 12px;
  color: #6e9fca;
  text-decoration: none;
}

.product-footer-links a:hover {
  text-decoration: underline;
}

/* Image zoom dialog — large enough to display full-resolution image */
.product-image-dialog::part(dialog) {
  max-width: 1200px;
  width: 90vw;
}

.product-image-dialog::part(body) {
  padding: 0;
}

/* PDF viewer dialog — fills most of the viewport */
.product-pdf-dialog::part(dialog) {
  width: 90vw;
  max-width: 1200px;
}

.product-pdf-dialog::part(body) {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pdf-dialog-toolbar {
  padding: 6px 12px;
  border-bottom: 1px solid #e3edf7;
  background: #f8fafc;
  font-size: 0.85rem;
}

.pdf-dialog-toolbar a {
  color: #6e9fca;
  text-decoration: none;
}

.pdf-dialog-toolbar a:hover {
  text-decoration: underline;
}

.product-pdf-dialog iframe {
  width: 100%;
  height: 80vh;
  border: 0;
  display: block;
}

/* Notes and disclaimer */
.product-detail__notes,
.product-detail__disclaimer {
  color: #6c757d;
  margin-top: 0.75rem;
}

/* Navigation bar background */
.navigation-bar {
  background-color: #e1eef8;
  box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.18), 0 2px 4px -1px rgba(0, 0, 0, 0.10);
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* .is-stuck class and slideDown animation removed — sticky behavior is now
   handled by position:sticky on .site-header (pure CSS, no JS). */

/* -------------------------------------
   DESKTOP NAVIGATION BUTTONS
   ------------------------------------- */

/* Default button styling (Non-Home Pages & Home Page Hover) */
.desktop-nav wa-button::part(base) {
  color: #6f9fc8;
  background-color: transparent;
  border: none;
  font-weight: 600;
  letter-spacing: .03em;
  border-radius: 4px;
  /* Optional slight rounding for the hover block */
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover state for buttons across ALL pages */
.desktop-nav wa-button:hover::part(base) {
  background-color: #6f9fc8 !important;
  color: #ffffff !important;
}



/* ========================================
   MEGA DROPDOWN NAVIGATION PANELS
   ======================================== */

/* Override wa-dropdown panel width for mega dropdowns */
.mega-dropdown::part(menu) {
  min-width: 780px;
  border: none;
  border-radius: 8px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Mega panel base */
.mega-panel {
  padding: 1.5rem 2rem;
  background: #f0f6fc;
  min-width: 780px;
}

.mega-panel--compact {
  min-width: 380px;
}

.mega-panel--single {
  min-width: 220px;
  padding: 0.75rem 1.25rem;
}

/* Column grid layout */
.mega-panel__columns {
  display: grid;
  grid-template-columns: 1fr 1.25fr 280px;
  gap: 2rem;
}

.mega-panel__columns--two {
  grid-template-columns: 1fr 1fr;
}

/* Individual column */
.mega-panel__column {
  display: flex;
  flex-direction: column;
}

/* Category heading */
.mega-panel__heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a3a5c;
  margin: 0 0 0.6rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e1eef8;
}

/* Link items */
.mega-panel__link {
  display: block;
  width: fit-content;
  position: relative;
  padding: 0.3rem 0;
  color: #4a6b8a;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  line-height: 1.4;
}

.mega-panel__link::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1779ba;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mega-panel__link:hover {
  color: #1779ba;
  transform: translateX(4px);
}

.mega-panel__link:hover::after {
  transform: scaleX(1);
}

/* Links with icons */
.mega-panel__link--icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mega-panel__link--icon i {
  width: 1.1rem;
  text-align: center;
  color: #6f9fc8;
  transition: color 0.2s ease;
}

.mega-panel__link--icon:hover i {
  color: #1779ba;
}

/* ── Fast 4 Product Grid ── */
.mega-panel__feature {
  justify-content: flex-start;
}

.fast4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fast4-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.55rem;
  background-color: #ffffff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fast4-item:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.fast4-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 4px;
  background: #ffffff;
}

.fast4-label {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4a6b8a;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.fast4-item:hover .fast4-label {
  color: #1779ba;
}

/* ── About Panel Layout ── */
.mega-panel--about {
  min-width: 720px;
  padding: 1.5rem 1.75rem;
}

.mega-panel__about-intro {
  font-size: 0.85rem;
  color: #6c757d;
  max-width: none;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
}

.mega-panel__about-intro span {
  color: #6f9fc8;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
}

.mega-panel__group {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f9fc8;
  margin-top: 0.4rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #d7e6f3;
}

.mega-panel__columns--about {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 3.5rem;
  align-items: stretch;
}

/* Rich links with icon + title + description */
.mega-panel__rich-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem;
  margin: 0.35rem -0.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.mega-panel__rich-link:hover {
  background-color: #f8fbff;
  transform: translateX(3px);
}

.mega-panel__rich-icon {
  font-size: 0.95rem;
  color: #9fb4c9;
  opacity: 0.8;
  margin-top: 0.25rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mega-panel__rich-link:hover .mega-panel__rich-icon {
  color: #6f9fc8;
  opacity: 1;
}

.mega-panel__rich-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a3a5c;
  line-height: 1.3;
  transition: color 0.2s ease;
  position: relative;
  width: fit-content;
}

.mega-panel__rich-title::after {
  content: '';
  position: absolute;
  bottom: -0.1rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #1779ba;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.mega-panel__rich-link:hover .mega-panel__rich-title::after {
  transform: scaleX(1);
}

.mega-panel__rich-desc {
  display: block;
  font-size: 0.78rem;
  color: #7b8fa6;
  line-height: 1.35;
  margin-top: 0.15rem;
}

.mega-panel__rich-link:hover .mega-panel__rich-title {
  color: #1779ba;
}

/* Company photo in About panel */
.mega-panel__about-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.mega-panel__about-img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 6px;
  object-fit: cover;
}

.mega-panel__about-tagline {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  color: #7b8fa6;
  margin-top: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Footer bar at bottom of mega panel */
.mega-panel__footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 2px solid #e1eef8;
  text-align: center;
}

.mega-panel__footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1779ba;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mega-panel__footer-link:hover {
  color: #1a3a5c;
}

/* ── Memo Cart Icon ── */
.memo-cart-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #6f9fc8;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.memo-cart-icon:hover {
  background-color: #e1eef8;
  color: #1779ba;
}



@keyframes heroExhale {
  0% {
    opacity: 0;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hero Exhale removed from here as it is defined in the reset block above */


/* Fix mobile toggle layer conflicts with hero overlay and transparent header */
.site-header__mobile-toggle {
  position: relative;
  z-index: 1020 !important;
  /* Move above logo and transparent header background */
}

#menu_trigger {
  pointer-events: auto !important;
  cursor: pointer;
}


.mobile-menu-btn::part(base) {
  background: rgba(40, 40, 40, 0.75) !important;
  color: white !important;
  border: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover::part(base) {
  background: rgba(25, 25, 25, 0.85) !important;
}


/* Hide the native Web Awesome page component hamburger to avoid double icons */
wa-page::part(navigation-toggle) {
  display: none !important;
}



/* ========================================
   MOBILE NAVIGATION DRAWER
   ======================================== */

/* Drawer panel — dark theme */
.mobile-nav-drawer::part(panel) {
  width: 320px;
  max-width: 85vw;
  background: #1a2a3a !important;
  --body-spacing: 0;
}

.mobile-nav-drawer::part(body) {
  background: #1a2a3a !important;
}

.mobile-nav-drawer::part(overlay) {
  background: rgba(0, 0, 0, 0.5);
}

.mobile-nav-drawer::part(title) {
  font-weight: 700;
  font-size: 1.1rem;
  color: #c8dae8;
}

.mobile-nav-drawer::part(close-button) {
  font-size: 1.2rem;
  color: #8a9bb0;
}

.mobile-nav-drawer::part(close-button__base) {
  color: #8a9bb0;
}

.mobile-nav-drawer::part(header) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a2a3a !important;
}

/* Also target the drawer element directly */
.mobile-nav-drawer {
  --panel-background-color: #1a2a3a;
}

/* Summary icon styling */
.mobile-nav__section [slot="summary"] {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mobile-nav__section [slot="summary"] i {
  width: 1.25rem;
  text-align: center;
  color: #6f9fc8;
  font-size: 1rem;
}

/* Nav container */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

/* ── Top-level direct links — matched to wa-details header ── */
.mobile-nav__link--top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0.75rem 1rem 0.75rem 12px;
  color: #c8dae8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav__link--top:hover,
.mobile-nav__link--top:active {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.mobile-nav__link--top i {
  width: 1.25rem;
  text-align: center;
  color: #6f9fc8;
  font-size: 1rem;
}

/* ── Collapsible sections — styled to match flat links ── */
.mobile-nav__section {
  border: none;
  border-radius: 0;
  background: transparent;
  --padding: 0;
}

.mobile-nav__section::part(base) {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.mobile-nav__section::part(header) {
  padding: 0.75rem 1rem 0.75rem 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #c8dae8;
  background: transparent;
  border: none;
}

.mobile-nav__section::part(header):hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.mobile-nav__section::part(summary-icon) {
  color: #6f9fc8;
  padding-right: 0.25rem;
}

.mobile-nav__section::part(content) {
  padding: 0 0.5rem 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.12);
  border: none;
}

/* Group within collapsible section */
.mobile-nav__group {
  margin-bottom: 0.75rem;
}

.mobile-nav__group:last-child {
  margin-bottom: 0;
}

/* Group label */
.mobile-nav__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6f9fc8;
  padding: 0.4rem 0.75rem 0.15rem;
}

/* Sub-links inside groups */
.mobile-nav__link {
  display: block;
  padding: 0.45rem 0.75rem;
  color: #9ab4cc;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* Icon links (About section) */
.mobile-nav__link--icon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-nav__link--icon i {
  width: 1.1rem;
  text-align: center;
  color: #6f9fc8;
  font-size: 0.9rem;
}

/* View all link */
.mobile-nav__view-all {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: #6f9fc8;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__view-all:hover {
  color: #ffffff;
}

/* ── Divider ── */
.mobile-nav__divider {
  margin: 0.25rem 1rem;
  --color: rgba(255, 255, 255, 0.08);
}

/* Utility links */
.mobile-nav__utilities {
  padding: 0.25rem 0;
}

.mobile-nav__link--subtle {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #6f8aa0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}

.mobile-nav__link--subtle:hover {
  color: #ffffff;
}

.mobile-nav__search {
  /* Anchor for the absolute autocomplete dropdown. Now sits at the top of the
     drawer (before Home), so the divider goes below it. */
  position: relative;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.25rem;
}

/* Mobile: render the dropdown IN-FLOW under the input instead of absolutely
   positioned. Inside the wa-drawer (slotted content + its own scroll container)
   absolute anchoring is unreliable and can escape the panel to the bottom of
   the page — flowing it keeps it directly under the input and lets the drawer
   scroll naturally. */
.mobile-nav__search .hs-dropdown {
  position: static;
  width: auto;
  left: auto;
  right: auto;
  margin-top: 8px;
  max-height: 60vh;
}

/* Keep result text dark on the white panel — the drawer's dark theme sets light
   link colours that would otherwise render the names invisible. */
.mobile-nav__search .hs-result,
.mobile-nav__search .hs-result__name {
  color: #1a2530;
}
.mobile-nav__search .hs-result__icon,
.mobile-nav__search .hs-result__colour {
  color: #8fa0b0;
}

/* ========================================
   FLOATING MENU PILL (Mobile)
   ======================================== */
.floating-menu-pill {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 42, 58, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #c8dae8;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);

  /* Hidden by default */
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

/* Visible state (triggered by JS on scroll) */
.floating-menu-pill.is-visible {
  opacity: 0.6;
  transform: scale(1);
  pointer-events: auto;
}

/* Hover / touch — full opacity */
.floating-menu-pill.is-visible:hover,
.floating-menu-pill.is-visible:active {
  opacity: 1;
  background: rgba(26, 42, 58, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Hide on desktop — only show on mobile */
@media (min-width: 1024px) {
  .floating-menu-pill {
    display: none !important;
  }
}

/* ========================================
   HOME PAGE: SIDE-BY-SIDE SPLIT SECTION
   ======================================== */
.home-split-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  --wa-gap: 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #e8e8e8;
  overflow: hidden;
}

.split-half {
  flex: 1 1 50%;
  min-width: 0;
  /* Prevent content from breaking flex */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  min-height: 600px;
  transition: transform 0.3s ease, box-shadow 0.35s ease;
}

.split-half:hover {
  transform: translateY(-6px);
}

.split-half.custom-side {
  background-color: #ffffff;
}

.split-half.stock-side {
  background-color: #f8f8f8;
}

.split-title {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 32px;
  color: #333;
}

.split-image-container {
  width: 100%;
  max-width: 600px;
  height: 420px;
  /* 70% of 600px min-height roughly */
  margin-bottom: 20px;
  overflow: hidden;
}

.split-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.split-half:hover .split-image-container img {
  transform: scale(1.05);
}

.split-caption {
  padding-top: 24px;
  margin-top: 20px;
  max-width: 420px;
  position: relative;
}

.split-caption::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(to right,
      transparent,
      rgba(110, 159, 202, .35) 20%,
      rgba(110, 159, 202, .35) 80%,
      transparent);
}

.split-caption p {
  font-size: 1.1rem;
  line-height: 1.45;
  color: #444;
  margin: 0 0 22px 0;
}

.split-cta wa-button::part(base) {
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  text-transform: none;
}

@media (max-width: 768px) {
  .home-split-container {
    flex-direction: column;
  }

  .split-half {
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  .split-image-container {
    height: 320px;
  }
}

/* ========================================
   HOME PAGE: PROJECT SHOWCASE
   ======================================== */

.project-showcase .wa-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.project-showcase {
  padding: 110px 0;
  background-color: #fff;
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6e9fca;
  text-align: center;
  margin-bottom: 6px;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-top: -2px;
  margin-bottom: 24px;
  color: #222;
  text-align: center;
  letter-spacing: -0.015em;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 22px auto 0;

  background: linear-gradient(to right,
      transparent,
      rgba(110, 159, 202, .35) 25%,
      rgba(110, 159, 202, .35) 75%,
      transparent);
}

.section-description {
  max-width: 520px;
  margin: 18px auto 40px auto;
  color: #666;
  line-height: 1.6;
}

/* Section Utilities */
.section {
  padding: 110px 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  scroll-snap-align: start;
  min-height: 60vh;
}

.section-soft {
  background: #f8fafc;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, transparent, #e8e8e8 15%, #e8e8e8 85%, transparent) 1;
}

.project-grid {
  margin-top: 40px;
}

.project-card {
  display: block;
  background: none;
  border-radius: 0;
}

.project-image {
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: contrast(1.02) saturate(1.02);
}

.project-card:hover img {
  transform: scale(1.03);
}


.project-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 14px 0 0 0;
  color: #222;
}

.project-card p {
  font-size: 0.85rem;
  color: #777;
  margin: 4px 0 0 0;
}



.project-cta {
  text-align: center;
  margin-top: 60px;
}

/* ========================================
   HOME PAGE: TRUSTED BY
   ======================================== */

.trusted-by .wa-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.trusted-by {
  padding: 110px 0;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, transparent, #e8e8e8 15%, #e8e8e8 85%, transparent) 1;
}




.client-logos {
  margin-top: 70px;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  row-gap: 60px;
  column-gap: 50px;
  padding: 0 20px;
}

.client-logos .client-logo {
  flex: 0 0 calc((100% - 5 * 50px) / 6);
}



.client-logo {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.client-logo img {
  max-width: 180px;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.trusted-cta {
  text-align: center;
  margin-top: 45px;
}

/* ========================================
   HOME PAGE: HOW STYLUS WORKS
   ======================================== */

.how-it-works {
  padding: 110px 0;
}

.how-it-works .wa-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.how-it-works .wa-grid {
  column-gap: 4rem;
}

.process-content {
  max-width: 560px;
}

.how-it-works .section-eyebrow {
  text-align: left;
}

.how-it-works .section-title {
  text-align: left;
  margin-bottom: 40px;
  max-width: 100%;
}

.how-it-works .section-title::after {
  display: none;
}

.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 26px;
}

.process-steps::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom,
      transparent 0%,
      #e8e8e8 15%,
      #e8e8e8 85%,
      transparent 100%);
}

.process-step {
  position: relative;
  padding-left: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.process-number {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: #bcbec0;
  transition: color 0.2s ease;
  margin-bottom: 4px;
}

.process-step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #222;
  transition: color 0.2s ease;
}

.process-step p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

/* Hover Interactions */
.process-step:hover {
  transform: translateX(3px);
}

.process-step:hover h3 {
  color: #111;
}

.process-step:hover .process-number {
  color: #666;
}

.process-cta {
  margin-top: 40px;
}

.process-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .process-image {
    margin-top: 40px;
  }
}

.section-divider {
  width: 100%;
  max-width: 1400px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(to right,
      transparent,
      #dfeaf3 20%,
      #dfeaf3 80%,
      transparent);
}

/* ========================================
   HOME PAGE: SEATING COLLECTIONS
   ======================================== */

.seating-collections {
  padding: 110px 0;
}

.seating-collections .wa-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.collections-subtitle {
  font-size: 1.05rem;
  color: #777;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 40px;
  margin-top: 40px;
}

/* Healthcare Seating card spans 2 columns */
.collection-card.span-2 {
  grid-column: span 2;
}

.collection-card.span-2 .collection-card-image {
  aspect-ratio: 24 / 10;
}

.collection-card.span-2 .collection-card-image img {
  object-position: center 65%;
}

/* Feature card spans 2 columns */
.collection-card.feature {
  grid-column: span 2;
}

.collection-card.feature .collection-card-image {
  aspect-ratio: 16 / 10;
}

/* Card Base */
.collection-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: block;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, .45),
      rgba(0, 0, 0, .25) 35%,
      rgba(0, 0, 0, .08) 60%,
      rgba(0, 0, 0, 0)),
    linear-gradient(to right,
      rgba(0, 0, 0, .25),
      rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
}

.collection-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: white;
  z-index: 2;
}

/* Card Image */
.collection-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* Full-cover variant: image fills entire card background */
.collection-card.full-cover .collection-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: contrast(1.02) saturate(1.02);
}

/* Card Content Overlay */
.collection-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 28px;
  z-index: 2;
  max-width: 320px;
}

.collection-card-content p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin: 6px 0 10px 0;
}

/* Card Titles — Optical Letterspacing */
.collection-card-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

/* Collection Link — Directional Arrow */
.collection-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: inline-block;
  transition: color 0.25s ease;
}

.collection-link .arrow {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

.dual-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.dual-links .collection-link {
  color: rgba(255, 255, 255, 0.85);
}

/* Hover Interactions */
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.08),
    0 20px 44px rgba(0, 0, 0, 0.12);
}

.collection-card:hover .collection-card-image img {
  transform: scale(1.05);
}

.collection-card:hover .collection-link {
  color: #fff;
}

.collection-card:hover .collection-link:hover {
  color: #b8d4f0;
}

.collection-card:hover .arrow {
  transform: translateX(6px);
}

.dual-links .collection-link:hover {
  color: #b8d4f0;
}

/* CTA */
.collections-footer {
  margin-top: 60px;
  padding-top: 28px;
  text-align: center;
}

.collections-footer wa-button::part(base) {
  background: #6e9fca;
  font-weight: 500;
  padding: 10px 22px;
  transition: background-color 0.25s ease;
}

.collections-footer wa-button:hover::part(base) {
  background: #4f7fa8;
}

/* Responsive */
@media (max-width: 1024px) {
  .desktop-br {
    display: none;
  }

  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-card.feature {
    grid-column: span 2;
  }

  /* Tablet overrides inherited smoothly from base span-2 style */
}

@media (max-width: 768px) {
  .seating-collections {
    padding: 80px 0;
  }

  .seating-collections .wa-container {
    padding: 0 20px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .collection-card.feature {
    grid-column: span 1;
  }

  .collection-card.span-2 {
    grid-column: span 1;
  }

  .collection-card.span-2 .collection-card-image {
    aspect-ratio: 4 / 3;
  }

  .collection-card.feature .collection-card-image {
    aspect-ratio: 4 / 3;
  }
}

/* ========================================
   HOME PAGE: START YOUR PROJECT CTA
   ======================================== */

.project-start {
  padding: 110px 0;
}

.project-start .wa-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.project-start .wa-grid {
  align-items: center;
}

.project-start-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.06);
}

.project-start-content {
  max-width: 420px;
}

.project-start-content .section-eyebrow {
  text-align: left;
}

.project-start-content .section-title {
  text-align: left;
  margin-bottom: 20px;
  max-width: 100%;
}

.project-start-content .section-title::after {
  display: none;
}

.project-start-content .section-description {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1.05rem;
}

.project-start-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}
.project-start-actions .cta-btn {
  text-align: center;
}

.project-start-actions wa-button {
  width: 100%;
  display: block;
}

.project-start-actions wa-button::part(base) {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Responsive: stack on mobile, text first */
@media (max-width: 900px) {
  .project-start {
    padding: 80px 0;
  }

  .project-start .wa-container {
    padding: 0 20px;
  }

  .project-start .wa-grid {
    grid-template-columns: 1fr;
  }

  .project-start-image {
    order: 2;
  }

  .project-start-content {
    order: 1;
    max-width: 100%;
  }

  .project-start-content .section-eyebrow {
    text-align: center;
  }

  .project-start-content .section-title {
    text-align: center;
  }

  .project-start-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .project-showcase .wa-container {
    padding: 0 20px;
  }
  .project-start .wa-container {
    padding: 0 20px;
  }
}
@media (max-width: 600px) {
  .project-start-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .project-start-actions .cta-btn {
    flex: none;
    text-align: center;
  }
}

/* Global Mobile Compression (Airy & Predictable) */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
    min-height: auto;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .section-description {
    margin: 16px auto 32px auto;
  }
}

/* ========================================
   SUBTLE REVEAL ANIMATIONS (Intersection Observer)
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero Fireplace Glow Animation
   --------------------------------------------------------------------------
   Positioned overlay over the fireplace region of the hero image.
   Uses two layers — a slow ember pulse + a faster flicker — blended with
   `screen` so they brighten the existing photo rather than paint over it.
   Percentages keep the glow anchored as the hero resizes.
   ========================================================================== */

.hero-fireglow {
  position: absolute;
  /* Fireplace position within stylus_contract_hospitality.jpg
     — tuned by eye against the source image (1920x1280).
     Adjust these four values if the hero image is ever swapped. */
  top: 45.5%;
  left: 69.5%;
  width: 5%;
  height: 12%;
  pointer-events: none;
  /* Shares z-index: 1 with .main-hero-image; DOM order (fireglow comes after
     the img) places it above the image. Gradient/overlay above use z-index 2+. */
  z-index: 1;
  mix-blend-mode: screen;
  filter: blur(4px);
}

/* Layer 1 — slow, warm ember pulse (the "ambient warmth") */
.hero-fireglow-ember {
  position: absolute;
  inset: -5%;
  /* minimal spill — keep the glow inside the firebox */
  background: radial-gradient(ellipse at center,
      rgba(255, 170, 75, 1.00) 0%,
      rgba(255, 120, 40, 0.80) 40%,
      rgba(255, 95, 25, 0.35) 70%,
      rgba(255, 80, 20, 0) 100%);
  animation: hero-fireglow-pulse 9s ease-in-out infinite;
}

/* Layer 2 — slow, gentle flicker (a living ember, not a strobe) */
.hero-fireglow-flicker {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%,
      rgba(255, 210, 130, 1.00) 0%,
      rgba(255, 155, 55, 0.55) 50%,
      rgba(255, 140, 40, 0) 100%);
  animation: hero-fireglow-flicker 4s ease-in-out infinite;
}

/* Long, gentle breathing — barely perceptible, not a heartbeat */
@keyframes hero-fireglow-pulse {

  0%,
  100% {
    opacity: 0.88;
    transform: scale(1);
  }

  50% {
    opacity: 1.00;
    transform: scale(1.015);
  }
}

/* Irregular flicker — flames have no rhythm. Uneven stops at prime-ish
   positions avoid any perceived cadence; ~45% opacity swing reads clearly. */
@keyframes hero-fireglow-flicker {
  0% {
    opacity: 0.40;
  }

  13% {
    opacity: 1.00;
  }

  21% {
    opacity: 0.55;
  }

  34% {
    opacity: 1.00;
  }

  47% {
    opacity: 0.45;
  }

  58% {
    opacity: 0.95;
  }

  69% {
    opacity: 0.60;
  }

  82% {
    opacity: 1.00;
  }

  91% {
    opacity: 0.55;
  }

  100% {
    opacity: 0.40;
  }
}

/* Accessibility — disable animation for users who prefer reduced motion.
   The ember layer stays visible but static, so the warmth is preserved. */
@media (prefers-reduced-motion: reduce) {

  .hero-fireglow-ember,
  .hero-fireglow-flicker {
    animation: none;
  }
}

/* ==========================================================================
   Hero Window Snow Animation
   --------------------------------------------------------------------------
   Gentle drift confined to the center window pane of the hero image. Paired
   with .hero-fireglow to establish the "warm inside, cold outside" mood:
   hearth glows on the right, snow falls through the window on the left.
   25 flakes are rendered in include_hero.php, each with inline CSS variables
   that randomize size, opacity, duration, delay, and horizontal drift — one
   keyframes rule drives all of them.
   Percentages keep the pane region anchored as the hero resizes.
   ========================================================================== */

.hero-snow {
  position: absolute;
  /* Window-pane region within stylus_contract_hospitality.jpg
     — tuned by eye against the source image (1920x1280).
     Adjust these four values if the hero image is ever swapped. */
  top: 24%;
  left: 38%;
  width: 5%;
  height: 17.5%;
  overflow: hidden;
  /* flakes never escape the pane into the stone wall */
  pointer-events: none;
  /* Shares z-index: 1 with .main-hero-image and .hero-fireglow; DOM order
     (snow comes after fireglow but before the gradient) places it above
     both, while the gradient/overlay above use z-index 2+. */
  z-index: 1;
  mix-blend-mode: screen;
  /* brightens the dark window rather than painting flat white */
}

.snowflake {
  position: absolute;
  top: -10%;
  /* fall begins slightly above the pane so fade-in isn't clipped */
  width: var(--flake-size, 3px);
  height: var(--flake-size, 3px);
  border-radius: 50%;
  background: white;
  /* Soft edge reads as out-of-focus specks instead of crisp CSS circles */
  filter: blur(0.6px);
  animation: hero-snow-fall var(--fall-duration, 12s) linear var(--fall-delay, 0s) infinite;
  will-change: top, transform, opacity;
}

/* Vertical descent with a gentle lateral drift; symmetrical fade at the
   start/end (~15%) keeps flakes from popping in or out of existence.
   Transform is declared only at 0%/100% so the browser interpolates drift
   linearly across the fall. */
@keyframes hero-snow-fall {
  0% {
    top: 13%;
    transform: translateX(0);
    opacity: 0;
  }

  15% {
    opacity: var(--flake-opacity, 0.7);
  }

  85% {
    opacity: var(--flake-opacity, 0.7);
  }

  100% {
    top: 110%;
    transform: translateX(var(--flake-drift, 12px));
    opacity: 0;
  }
}

/* Snow is only shown on very wide viewports (≥ 2198px). At smaller widths the
   window pane is too small for the drift to read clearly, so it's hidden. */
@media (max-width: 1430px) {
  .hero-snow {
    display: none;
  }
}

/* Accessibility — snow without motion is just static dots, so halt entirely
   for users who prefer reduced motion. Purely decorative layer, safe to hide. */
@media (prefers-reduced-motion: reduce) {
  .snowflake {
    animation: none;
  }
}

/* ==========================================================================
   Hero CTA — Frosted Glass Treatment
   --------------------------------------------------------------------------
   Overrides the solid brand-blue buttons inside .hero-cta with a frosted
   glass (glassmorphism) treatment: semi-transparent white surface, backdrop
   blur, and a bright border edge. Both buttons receive identical glass styling;
   hierarchy is conveyed by position and copy rather than colour contrast —
   the convention used by premium hospitality brands (Aman, Four Seasons,
   Auberge) targeting the A&D community that Stylus serves.

   All selectors are prefixed with .hero-cta — no other wa-button on the site
   is touched. wa-button exposes its rendered surface via ::part(base); that
   is the only shadow-DOM part targeted here.
   ========================================================================== */

/* Null out any inherited host-level fill variables (e.g. --wa-color-fill-loud
   set by the global .nav-action-btn rule) so they don't bleed through the
   semi-transparent glass background. */
.hero-cta wa-button {
  --wa-color-fill-loud: transparent;
  --wa-color-on-loud: #ffffff;
}

/* Glass base — targets the outer button surface in the shadow DOM. */
.hero-cta wa-button::part(base) {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  /* Safari */
  backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Button label text — color: inherit from ::part(base) usually suffices, but
   explicit rule guards against WA versions that reset color on the label part. */
.hero-cta wa-button::part(label) {
  color: #ffffff;
}

/* Hover — brighter glass surface + subtle upward lift. */
.hero-cta wa-button:hover::part(base) {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

/* Active/pressed — dims slightly, lift removed. */
.hero-cta wa-button:active::part(base) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

/* Keyboard focus — white outline always visible against the hero image. */
.hero-cta wa-button:focus-visible::part(base) {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Fallback for the rare browsers without backdrop-filter (~2% share).
   A more opaque background keeps the button legible without the blur. */
@supports not (backdrop-filter: blur(1px)) {
  .hero-cta wa-button::part(base) {
    background: rgba(255, 255, 255, 0.28);
  }
}

/* Contact Stylus — dark overlay so the warm background image doesn't bleed through. */
.hero-cta wa-button[variant="outlined"]::part(base) {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
}
.hero-cta wa-button[variant="outlined"]:hover::part(base) {
  background: rgba(0, 0, 0, 0.70);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-cta wa-button[variant="outlined"]:active::part(base) {
  background: rgba(0, 0, 0, 0.45);
}
/* ========================================
   FABRIC GALLERY � SHARED SIDEBAR STYLES
   Used by: fabric_gallery.php,
   fabric_results.php, fabric_details.php,
   memorequest_cart.php, memorequest_checkout.php
   ======================================== */

.fg-sidebar-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--wa-color-primary, #6e9fca);
}

.fg-sidebar-body {
  padding-top: 0.75rem;
}

.fg-sidebar-body h6 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #444;
  margin: 0 0 0.4rem;
}


/* ============================================================
   HOME PAGE — full-bleed section backgrounds
   wa-page.home-page applies horizontal --body-spacing at mobile
   breakpoints, which narrows <main> and prevents section
   backgrounds from reaching the viewport edges. Zero it out
   globally; on desktop wa-page already has 0 body-spacing so
   this is a no-op there. Inner .wa-container divs carry their
   own max-width + padding, so content stays readable.
   ============================================================ */
wa-page.home-page {
  --body-spacing: 0;
}

/* At tablet/mobile widths pull inner containers in so text
   doesn't sit flush against the screen edge now that
   --body-spacing is gone. */
@media (max-width: 768px) {
  .project-showcase .wa-container,
  .trusted-by .wa-container,
  .project-start .wa-container {
    padding: 0 20px;
  }
}

/* ============================================================
   MOBILE POLISH — 375px+ target viewport
   Added 2026-06-11. Applies after the viewport meta tag was
   added to include_meta.php; previously mobile was rendering
   as a zoomed-out desktop, masking these issues.
   ============================================================ */

@media (max-width: 600px) {
  /* Reclaim horizontal space. !important is needed because several pages
     (fabric_gallery.php, finishing_features.php, frame_features.php, etc.)
     apply an INLINE `style="padding: 1rem"` which would otherwise win. */
  .site-container {
    padding: 4px 8px !important;
  }

  /* products.php and product_detail.php both apply .px-2 (2rem !important)
     on top of .site-container. Override down to match the tighter gutter. */
  .px-2 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  /* Construction-style pages (finishing_features, frame_features, etc.)
     pad the inner flex container with `gap: 2rem`. Drop that at mobile so
     the content column gets the full available width. */
  .construction-layout {
    gap: 0 !important;
  }

  /* Fabric Gallery: tighten the filter card's inner padding so the colour
     grid no longer overflows. Was 1.5rem 1.25rem at <=767px. */
  .fg-browse-section {
    padding: 1.25rem 0.75rem !important;
  }
  .fg-colour-grid {
    gap: 4px !important;
  }
  .fg-colour-swatch {
    padding: 8px 4px 6px !important;
  }

  /* Tighten the product grid stagger now that it stacks single-column */
  .product-grid {
    gap: 32px 16px;
    padding-top: 12px;
  }

  /* CSS Grid blow-out fix: grid items default to min-width:auto, which
     means a wide image or nowrap table column forces its column wider
     than the viewport. Allowing them to shrink hands the size constraint
     back to .spec-table-wrapper (which is scrollable) and to the image
     (which has max-width:100%). This is the root cause of the cutoff. */
  .content-with-sidebar,
  .content-with-sidebar > .content-main,
  .product-detail,
  .product-detail > .product-left,
  .product-detail > .product-right {
    min-width: 0;
  }

  /* product_detail.php: the spec table has `white-space: nowrap` on its
     headers and easily exceeds 375px. Let the wrapper scroll horizontally
     instead of overflowing the page. */
  .spec-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0;
    max-width: 100%;
  }

  /* Keep the product image fully contained — belt-and-suspenders */
  .product-image-wrap,
  .product-left img {
    max-width: 100%;
  }

  /* Breadcrumb can wrap on narrow viewports rather than forcing overflow */
  .breadcrumb-container wa-breadcrumb {
    flex-wrap: wrap;
  }

  /* Tighter side padding at ≤600px (body-spacing is already zeroed globally
     above; these refine the inner container gutters for narrow phones). */
  .project-showcase .wa-container,
  .trusted-by .wa-container,
  .project-start .wa-container {
    padding: 0 16px;
  }

  /* Force project showcase cards to single column */
  .project-showcase .wa-cols-3 {
    grid-template-columns: 1fr !important;
  }

  /* Client logos: 2 per row; tighter gap so there's no overflow risk */
  .client-logos.wa-cols-6 {
    gap: 16px !important;
  }
  .client-logos .client-logo {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  /* Ensure logo images can't burst out of their column */
  .client-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Fabric gallery: heading + section padding were sized for desktop */
  .ff-header {
    padding-left: 0;
    padding-right: 0;
  }

  /* Fabric gallery colour swatch grid: 4-up is too cramped at 375px.
     minmax(0, 1fr) lets columns shrink below their content's intrinsic
     width — without this the label text width forces the grid wider
     than the viewport and the rightmost column gets clipped. */
  .fg-colour-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .fg-colour-swatch {
    min-width: 0;
  }
  .fg-swatch-name {
    font-size: 10px !important;
    word-break: break-word;
  }

  /* Fabric Gallery: ensure the filter card fills the available width
     instead of sitting in a narrow channel */
  .fg-browse-card,
  .construction-content-col,
  .construction-content-col.ff-page {
    width: 100%;
    max-width: 100%;
  }

  /* === Side-by-side CTA button rows — equal width on a single row === */
  .cp-hero__actions,
  .cp-cta-actions,
  .fq-cta__actions,
  .mc-action-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    justify-content: stretch !important;
    align-items: stretch !important;
  }
  .cp-hero__actions > *,
  .cp-cta-actions > *,
  .fq-cta__actions > *,
  .mc-action-row > * {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    width: auto !important;
    text-align: center;
    justify-content: center;
  }
  .cp-hero__actions .cp-btn,
  .cp-cta-actions .cp-btn,
  .fq-cta__actions .fq-pill,
  .mc-action-row wa-button {
    width: 100% !important;
    box-sizing: border-box;
  }
  /* About page "BROWSE MADE-TO-ORDER" is too long to fit a half-width
     button at 375px — shrink type and padding so it stays on one line */
  .cp-cta-actions .cp-btn {
    font-size: 11.5px !important;
    padding: 0.6rem 0.55rem !important;
    letter-spacing: 0.4px !important;
    white-space: nowrap !important;
  }

  /* === index.php — stack the home split so each half is full-width === */
  .wa-split.home-split-container,
  .home-split-container {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
  }
  .split-half {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    padding: 2.75rem 1rem !important;
  }

  /* === green_statement.php — anchor buttons full-width column === */
  .green-hero__actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  .green-anchor-btn {
    width: 100%;
    justify-content: center;
  }

  /* === warranty.php / clean_codes.php — center the summary cards
     with even gutters on the patterned backgrounds === */
  .wt-summary-card,
  .cc-quickref {
    max-width: calc(100% - 1rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* === clean_codes.php — General Care 3-up grid was overflowing right === */
  .cc-practices__list {
    grid-template-columns: 1fr !important;
  }
  .cc-practices {
    padding: 2.5rem 1rem !important;
  }

  /* === client_list.php — category cards had 2.75rem 2.5rem padding,
     way too much at 375px (icons + names look squished in a narrow column) */
  .cl-category-card {
    padding: 1.25rem 0.875rem !important;
  }

  /* === removable_seating.php — "Designed for Healthcare Environments"
     industry cards were a 4-column grid (Healthcare, Senior Living,
     Waiting Areas, High-Traffic Commercial) that cramped each card to
     ~50px wide at 375px. 2-up reads cleanly. Reduce section padding too. */
  .rs-why {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .rs-why__inner {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .rs-why__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin: 2rem auto 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .rs-why__list li {
    padding: 1.1rem 0.5rem 1rem !important;
    font-size: 12.5px !important;
  }
  .rs-why__features {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
    margin: 2rem auto 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* === about_stylus_contract.php === */
  /* Tighten At a Glance card padding (was 2.25rem 2rem) */
  .cp-about-panel {
    padding: 1.25rem 1rem !important;
    position: static !important;
  }
  /* Stats row: let the wide "Vancouver + Las Vegas" cell wrap so the
     row doesn't get unbalanced (was white-space:nowrap + font 17px) */
  .cp-stats {
    gap: 0;
  }
  .cp-stat {
    padding: 0.85rem 0.4rem !important;
  }
  .cp-stat__value {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }
  .cp-stat--wide .cp-stat__value,
  .cp-stat--narrow .cp-stat__value {
    white-space: normal !important;
    font-size: 13px !important;
  }
  .cp-stat__label {
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }
}

/* Prevent any rogue wide element from forcing horizontal scroll on mobile.
   If we find legit cases that need to overflow (wide tables), they should
   opt-in with their own overflow-x:auto wrapper. */
@media (max-width: 600px) {
  html, body {
    overflow-x: hidden;
  }

  /* Several pages use IntersectionObserver against the window viewport to
     toggle `.visible` on `.fade-in` elements. Inside wa-page the actual
     scroll container is its shadow-DOM body, so the observer never fires
     when a user scrolls — leaving project_gallery.php cards and similar
     content invisible on mobile. Show everything immediately at mobile;
     the fade-in is decorative, not load-bearing. */
  .fade-in,
  .cp-page .fade-in,
  .ff-page .fade-in,
  .fq-page .fade-in,
  .fast4-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
