/* ============================================================================
 * vwa-components.css
 * ----------------------------------------------------------------------------
 * VWA brand system — Reusable components used across multiple pages.
 *
 * Loads AFTER vwa-bootstrap-overrides.css, BEFORE vwa-pages.css.
 *
 * Contains:
 *   · .skip-link (a11y skip-to-content)
 *   · .eyebrow, .eyebrow-brass (small-caps mono labels)
 *   · .live-dot (status indicator)
 *   · .top-bar (warehouse status row above navbar)
 *   · .voice-toggle, [data-voice-block] (Easy Read toggle + content visibility)
 *   · .navbar-vwa, .nav-search (system navbar with logo, SKU search, nav-links)
 *   · .breadcrumb-strip.on-dark (light variant default; .on-dark modifier for dark backgrounds)
 *   · .footer (logo, tagline, address, link columns, copyright bar)
 *
 * Last updated: April 2026 (extracted in v4.9 consolidation)
 * ============================================================================ */

/* === SKIP LINK — accessibility === */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--vwa-navy);
  color: #ffffff;
  padding: 12px 20px;
  z-index: 9999;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--bs-border-radius);
}

.skip-link:focus {
  top: 16px;
}

/* === EYEBROW — small-caps mono label === */

.eyebrow {
  font-family: var(--bs-font-monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  color: var(--bs-tertiary-color);
  text-transform: uppercase;
}

.eyebrow-brass {
  color: var(--vwa-brass);
}

/* === LIVE DOT — status indicator === */

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--bs-success);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s ease-in-out infinite;
}

/* === TOP BAR — warehouse status / phone / voice toggle === */

.top-bar {
  background: #06151f;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--bs-font-monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: rgba(255, 255, 255, 0.75);
}

.top-bar a:hover {
  color: var(--vwa-brass);
  text-decoration: none;
}

/* === VOICE TOGGLE — Easy Read pill === */

.voice-toggle {
  display: inline-flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--bs-font-monospace);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  min-height: 26px;
}

.voice-toggle__option {
  padding: 6px 11px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.voice-toggle__option:hover {
  color: var(--vwa-brass);
}

.voice-toggle__option[aria-current="true"] {
  background: var(--vwa-brass);
  color: var(--vwa-navy);
  font-weight: 500;
}

.voice-toggle__option[aria-current="true"]:hover {
  color: var(--vwa-navy);
}

/* === VOICE-AWARE CONTENT BLOCKS === */

[data-voice-block="plain"] {
  display: none;
}

[data-voice="plain"] [data-voice-block="trade"] {
  display: none;
}

[data-voice="plain"] [data-voice-block="plain"] {
  display: revert;
}

/* === NAVBAR === */

.navbar-vwa {
  background: var(--vwa-navy);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-vwa .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 0.75rem !important;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.navbar-vwa .nav-link:hover {
  color: var(--vwa-brass) !important;
}

.navbar-vwa .nav-link[aria-current="page"] {
  color: var(--vwa-brass) !important;
}

.navbar-vwa .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
  min-width: 44px;
  min-height: 44px;
}

.navbar-vwa .navbar-toggler-icon {
  filter: invert(1) brightness(2);
}

.nav-search {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.nav-search input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--bs-font-monospace);
  font-size: 0.8125rem;
  padding: 0.5rem 2.25rem 0.5rem 0.875rem;
  border-radius: var(--bs-border-radius);
  width: 100%;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
}

.nav-search input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--vwa-brass);
  color: #ffffff;
  box-shadow: none;
}

.nav-search .search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vwa-brass);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  pointer-events: none;
}

/* === BREADCRUMB STRIP — light variant (default, used on white-bg pages) === */

.breadcrumb-strip {
  background: var(--vwa-porcelain);
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.6875rem 0;
  font-family: var(--bs-font-monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb-strip ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--bs-tertiary-color);
}

.breadcrumb-strip li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-strip li:not(:last-child)::after {
  content: "›";
  margin: 0 0.625rem;
  color: var(--bs-tertiary-color);
  opacity: 0.6;
}

.breadcrumb-strip a {
  color: var(--bs-tertiary-color);
  text-decoration: none;
}

.breadcrumb-strip a:hover {
  color: var(--vwa-brass-800);
}

.breadcrumb-strip li[aria-current="page"] {
  color: var(--vwa-navy);
  font-weight: 500;
}

/* === BREADCRUMB STRIP — dark variant (.on-dark modifier) === */

.breadcrumb-strip.on-dark {
  background: var(--vwa-midnight);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6875rem 0;
  font-family: var(--bs-font-monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb-strip.on-dark li {
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-strip.on-dark li:not(:last-child)::after {
  content: "›";
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb-strip.on-dark a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.breadcrumb-strip.on-dark a:hover {
  color: var(--vwa-brass);
}

.breadcrumb-strip.on-dark li[aria-current="page"] {
  color: #ffffff;
}

/* === FOOTER === */

.footer {
  background: #06151f;
  color: rgba(255, 255, 255, 0.65);
  padding: 4.5rem 0 2rem;
  font-size: 0.8125rem;
}

.footer-tag {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 1.25rem 0 1rem;
  letter-spacing: 0.02em;
}

.footer-addr {
  font-family: var(--bs-font-monospace);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.footer h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  color: var(--vwa-brass);
  letter-spacing: 0.2em;
  margin-bottom: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  padding: 0.3125rem 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
}

.footer ul a:hover {
  color: var(--vwa-brass);
  text-decoration: none;
}

.footer a:hover {
  color: var(--vwa-brass);
}

.footer-bottom {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--bs-font-monospace);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

/* === SHARED SECTION PRIMITIVES (used across multiple page types) === */

.section-eyebrow {
  font-family: var(--bs-font-monospace);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bs-tertiary-color);
  margin-bottom: 0.5rem;
}

.section-lede {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--bs-secondary-color);
  max-width: 38rem;
  margin: 0 0 2rem;
}

/* === PRODUCT CARD — used on catalogue, subcategory, product detail, search results, and similar grid contexts === */

.product-card {
  background: #ffffff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--vwa-navy);
  transition:
  border-color 0.15s ease,
  transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--vwa-brass);
  transform: translateY(-2px);
  color: var(--vwa-navy);
}

.product-card h3 {
  font-size: 0.9375rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
}

.product-card-body {
  padding: 0.875rem 1.125rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-brand-badge {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: rgba(10, 31, 46, 0.85);
  color: var(--vwa-brass);
  font-family: var(--bs-font-monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 500;
}

/* === SPECMATCH CALLOUT — recurring CTA component on category, brand, materials pages === */

.specmatch-callout {
  background: var(--vwa-navy);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.specmatch-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
  linear-gradient(rgba(201, 169, 97, 0.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(201, 169, 97, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.specmatch-callout > .container {
  position: relative;
  z-index: 1;
}

.specmatch-callout .eyebrow {
  color: var(--vwa-brass);
  margin-bottom: 0.75rem;
}

.specmatch-callout h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
  max-width: 30ch;
}

.specmatch-callout p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
