/* ============================================================================
   Waiwa V2.2.0 refresh layer. Loaded LAST (after site.css and redesign.css).
   One place for the audit fixes so the 6,000-line base sheets stay untouched.
   Shape rule: 8px controls, 10px cards. Accent: brand red for calls to action only.
   ============================================================================ */

/* -- Products: no-script fallback cards ------------------------------------ */
.product-card-ph {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 0.8rem; text-align: center;
  background: repeating-linear-gradient(135deg, #f3f6f4 0 14px, #eef2ef 14px 28px); border-radius: 8px; margin-bottom: 0.6rem;
}
.product-card-ph span {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-weight: 700; color: var(--brand-green, #085231); overflow-wrap: anywhere;
}

/* -- Product detail -------------------------------------------------------- */
.pd-crumbs { max-width: 1180px; margin: 1.4rem auto 0; padding: 0 1rem; font-size: 0.88rem; }
.pd-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; margin: 0; padding: 0; color: #46564e; }
.pd-crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #8a9a92; }
.pd-crumbs a { color: var(--brand-green, #085231); text-underline-offset: 3px; }
.pd { max-width: 1180px; margin: 1rem auto 3rem; padding: 0 1rem; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.pd-frame {
  background: #fff; border: 1px solid #d5ddd8; border-radius: 10px; min-height: 320px; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.pd-frame img { display: block; max-width: 100%; height: auto; max-height: 520px; width: auto; }
.pd-figure { margin: 0; }
.pd-figure figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: #46564e; line-height: 1.45; }
.pd-ph {
  flex-direction: column; gap: 0.6rem; text-align: center; min-height: 320px;
  background: repeating-linear-gradient(135deg, #f3f6f4 0 16px, #eef2ef 16px 32px);
}
.pd-ph-code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 1.5rem; font-weight: 700; color: var(--brand-green, #085231); overflow-wrap: anywhere; }
.pd-ph-note { font-size: 0.9rem; color: #3f4f47; }
.pd-thumbs { list-style: none; display: flex; gap: 0.5rem; margin: 0.7rem 0 0; padding: 0; }
.pd-thumbs img { border: 1px solid #d5ddd8; border-radius: 8px; background: #fff; object-fit: contain; }
.pd-cat { margin: 0 0 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--brand-green, #085231); }
.pd-info h1 { margin: 0 0 1rem; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; overflow-wrap: anywhere; }
.pd-facts { margin: 0 0 1.2rem; border-top: 1px solid #d5ddd8; }
.pd-facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid #e6ece8; }
.pd-facts dt { color: #46564e; font-size: 0.9rem; }
.pd-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pd-code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; }
.pd-desc { margin-bottom: 1.2rem; max-width: 62ch; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.pd-actions .btn { min-height: 46px; }
.pd-status { min-height: 1.4rem; margin: 0.6rem 0 0; font-weight: 600; color: var(--brand-green, #085231); }
.pd-note { margin: 0.2rem 0 0; font-size: 0.88rem; color: #46564e; }
.pd-related { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid #d5ddd8; }
.pd-related h2 { margin: 0 0 1rem; font-size: 1.35rem; }
.pd-related-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.pd-related-grid a { display: flex; flex-direction: column; gap: 0.35rem; height: 100%; padding: 0.7rem; background: #fff; border: 1px solid #d5ddd8; border-radius: 10px; color: inherit; text-decoration: none; }
.pd-related-grid a:hover, .pd-related-grid a:focus-visible { border-color: #7aa38b; box-shadow: 0 6px 18px rgba(8, 82, 49, .10); }
.pd-rel-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 8px; background: #f6f8f7; overflow: hidden; }
.pd-rel-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-rel-code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-weight: 700; font-size: 0.9rem; color: var(--brand-green, #085231); padding: 0.4rem; text-align: center; overflow-wrap: anywhere; }
.pd-rel-name { font-size: 0.88rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pd-rel-sku { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 0.76rem; color: #46564e; }
@media (max-width: 860px) {
  .pd-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pd-facts > div { grid-template-columns: 7.5rem 1fr; }
  .pd-actions .btn { flex: 1 1 100%; }
}

/* ============================================================================
   Global audit fixes
   ============================================================================ */

/* -- Contrast: brand red darkened one step for text and button fills (white on
   #fa0d01 measured 4.09:1; #d40b00 gives 5.46:1). The logo keeps the original red. -- */
:root {
  --brand: #d40b00;
  --brand-deep: #a80800;
  --muted-ui: #46564e;
  --line-green: #067a37;
}
.contact-bar-line, a.contact-bar-line { background: var(--line-green); color: #fff; }
.contact-bar-line:hover { background: #05652d; color: #fff; }
.home-cat-count, .products-cat-count { color: #46564e; }
.section-eyebrow { color: #a80800; }
.ft-legal-nav a, .ft-bottom-copy span, .ft-bottom-copy a { color: #b8c9bf; }
.ft-legal-nav a:hover, .ft-bottom-copy a:hover { color: #fff; }

/* -- No decorative index numbers on capability cards -- */
.highlight-card::after { content: none; }
.highlight-card h3 { padding-right: 0; }

/* -- Captions sit below images, not as pills laid over them -- */
.inside-feature, .inside-support { display: flex; flex-direction: column; background: transparent; }
.inside-feature figcaption, .inside-support figcaption {
  position: static; background: none; color: var(--muted-ui); border-radius: 0;
  font-family: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 0.45rem 0 0;
}
.inside-support figcaption { font-size: 0.8rem; padding: 0.35rem 0 0; }
.inside-feature img, .inside-support img { border-radius: 10px; }

/* -- Hero: headline capped at three lines on desktop, quieter eyebrow -- */
.hero-eyebrow { letter-spacing: 0.08em; }
.hero-industrial .slide-heading { font-size: clamp(1.75rem, 2.7vw, 2.4rem); line-height: 1.15; max-width: 30ch; }

/* -- Focus: one consistent visible ring on every interactive element -- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #0b6b3f; outline-offset: 2px;
}
.header-cta:focus-visible, .btn:focus-visible { outline-color: #17201b; }
.skip-link:focus-visible { outline-color: #fff; }

/* -- Touch targets: at least 44px for primary controls on touch screens -- */
@media (pointer: coarse) {
  .slider-dots button { min-width: 24px; min-height: 24px; }
  .cookie-btn, .btn, .tab-switcher-tab, .lang-switch a, .lang-switch button { min-height: 44px; }
}

/* -- Slider dots: visible hit area bigger than the dot -- */
.slider-dots button { position: relative; }
.slider-dots button::after { content: ""; position: absolute; inset: -10px; }

/* -- Persistent contact bar: slimmer, never covers focused content -- */
body.has-contact-bar { padding-bottom: 46px; }
.contact-bar { font-size: 0.82rem; }
@media (max-width: 640px) { body.has-contact-bar { padding-bottom: 56px; } }

/* -- Cookie banner: three equal-weight choices, compact on small screens -- */
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .cookie-btn { min-height: 44px; }
.cookie-btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 640px) {
  .cookie-banner-title { font-size: 0.95rem; margin-bottom: 0.2rem; }
  .cookie-banner-text { font-size: 0.82rem; line-height: 1.4; margin: 0 0 0.6rem; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
  .cookie-banner-actions .cookie-btn { padding: 0.5rem 0.4rem; font-size: 0.85rem; }
  .cookie-banner-actions [data-cookie-accept-all] { grid-column: 1 / -1; }
}

/* -- Reduced motion: stop auto-sliding transforms and marquee -- */
@media (prefers-reduced-motion: reduce) {
  .brand-track, .marquee, [data-marquee] { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* -- About: first section is the feature, the rest sit in a two-column grid
   (seven stacked left/right rows repeated one pattern and wasted the page). -- */
.about-visual-copy h2 { margin: 0 0 0.4rem; font-size: 1.25rem; line-height: 1.25; color: var(--brand-green, #085231); }
.about-visual-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.about-visual-stack > .about-visual-item { display: flex; flex-direction: column; gap: 1rem; height: 100%; background: #fff; }
.about-visual-stack > .about-visual-item .about-visual-media,
.about-visual-stack > .about-visual-item.reverse .about-visual-media { order: 0; }
.about-visual-stack > .about-visual-item .about-visual-copy,
.about-visual-stack > .about-visual-item.reverse .about-visual-copy { order: 1; }
.about-visual-stack > .about-visual-item .about-visual-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; }
.about-visual-stack > .about-visual-item:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; }
@media (max-width: 860px) {
  .about-visual-stack { grid-template-columns: 1fr; }
  .about-visual-stack > .about-visual-item:first-child { grid-template-columns: 1fr; display: flex; }
}

/* -- Contact: panel titles are h2 under the page's single h1; keep the previous visual size -- */
.contact-panel-title { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; margin: 0 0 0.6rem; }

/* -- Remaining contrast and target-size fixes -- */
.contact-quick-label { color: #3d4d45; }
.faq-category-count { color: #3d4d45; }
.slider-dots button::after { content: none; }
.slider-dots button, .slider-dots button.active {
  width: 44px; height: 24px; background: transparent; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.slider-dots button::before { content: ""; display: block; width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); }
.slider-dots button.active::before { width: 34px; background: var(--brand); }
/* Link lists and utility links: at least 24px tall hit area (WCAG 2.2 target size). */
.ft-info-col a, .ft-legal-nav a, .ft-bottom-copy a, .contact-bar-item, .section-head a, .home-cat-link, .card > a, .news-card > a, .product-card > a {
  display: inline-flex; align-items: center; min-height: 24px;
}
.ft-info-col li { margin-block: 0.15rem; }
.faq-category-count { opacity: 1; }
.hero-industrial .slider-dots button, .hero-industrial .slider-dots button.active { width: 44px; height: 24px; background: transparent; }
.cookie-banner-link, .skip-link, .pd-crumbs a, .page-header nav a { display: inline-flex; align-items: center; min-height: 24px; }
@media (max-width: 1120px) { .contact-bar-item--hours { display: none !important; } }
