/*
 * Leader Composite — Brand Component Styles
 * Works alongside Tailwind CSS CDN. No @apply or @layer directives.
 * Uses direct CSS properties to avoid CDN compatibility issues.
 *
 * Brand color: #4DB938 (logo green)
 * Dark axis:   #1A1A1A
 * Typography:  MiSans (body), Roboto Mono (headings), Roag (display)
 */

/* ================================================================
   RESETS & BASE
   ================================================================ */
@font-face {
  font-family: 'MiSans';
  src: local('MiSans');
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Mono';
  src: local('Roboto Mono');
  font-display: swap;
}

@font-face {
  font-family: 'Roag';
  src: url('../fonts/Roag-Bold-Italic.otf') format('opentype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page-level headings: brand font for warmth */
h1, h2 {
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: #111111;
  letter-spacing: -0.02em;
}

/* All headings use MiSans by default */
h3, h4, h5, h6 {
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
  letter-spacing: -0.02em;
}

/* Roag Bold Italic — brand display: product models, stats numbers, icons */
.font-roag {
  font-family: 'Roag', 'MiSans', sans-serif;
  font-weight: 700;
  font-style: italic;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ================================================================
   CONTAINER
   ================================================================ */
/* Nav gap adjustment for tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .main-nav ul {
    gap: 1.25rem !important;
  }
}

/* Override Tailwind's .container to always center */
body .container,
main .container,
header .container,
footer .container,
section .container,
.hero .container {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1200px !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ================================================================
   BUTTON SYSTEM
   Brand spec: white bg, dark text, thin dark border, no radius.
   Hover: dark bg, brand-green text.
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: #FFFFFF;
  color: #111111;
  border: 1px solid #111111;
  border-radius: 0;
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn:hover {
  background-color: #111111;
  color: #4DB938;
  border-color: #111111;
}

.btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading {
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
}

/* Green filled CTA button */
.btn-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: #4DB938;
  color: #FFFFFF;
  border: 1px solid #4DB938;
  border-radius: 0;
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-brand:hover {
  background-color: #26691e;
  border-color: #26691e;
  color: #FFFFFF;
}

.btn-brand:focus-visible {
  box-shadow: 0 0 0 3px rgba(77, 185, 56, 0.3);
}

/* Legacy aliases removed — use .btn or .btn-brand only */

/* ================================================================
   TAG / BADGE SYSTEM
   ================================================================ */
.tag,
.industry-tag,
.case-category,
.case-date {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #D8D8D8;
  color: #111111;
}

.tag--brand,
.industry-tag,
.case-category {
  background-color: #f0faf0;
  color: #26691e;
}

.tag--neutral {
  background-color: #D8D8D8;
  color: #111111;
}

.tag--outline {
  background-color: #FFFFFF;
  color: #666666;
  border: 1px solid #CFCFCF;
}

.case-date {
  background-color: #F2F2F2;
  color: #666666;
}

.tag:focus-visible,
.industry-tag:focus-visible {
  outline: 2px solid #4DB938;
  outline-offset: 2px;
}

.tag[aria-disabled="true"],
.tag.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.badge-group,
.card-tags,
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ================================================================
   CARD SYSTEM
   ================================================================ */
.card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.product-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: #111111;
  min-height: 200px;
}

.product-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  background-color: #F2F2F2;
  text-decoration: none;
}

.product-card:focus {
  text-decoration: none;
}

.product-card-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-card h4 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: #111111;
  font-family: 'Roag', 'MiSans', sans-serif;
  font-style: italic;
}

.product-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
  color: #666666;
}

.case-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.case-card .card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #26691e, #4DB938);
  background-position: center;
  background-size: cover;
}

.case-card .card-content {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-card .card-content .case-summary {
  flex-grow: 1;
}

.case-card .card-actions {
  margin-top: auto;
  display: flex;
}

.case-card .card-actions .btn {
  background-color: #4DB938;
  color: #FFFFFF;
  border-color: #4DB938;
}

.case-card .card-actions .btn:hover {
  background-color: #26691e;
  border-color: #26691e;
  color: #FFFFFF;
}

.contact-us-card {
  background-color: #F2F2F2;
  border: 1px solid #CFCFCF;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-us-card h4 {
  color: #000000;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
}

.contact-us-card p {
  color: #666666;
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
}

.factory-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.products-group {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  padding: 24px;
  border-left: 4px solid #4DB938;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.products-group:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.products-group h4 {
  margin-bottom: 16px;
}

.products-group .badge-group {
  margin-top: 8px;
}

/* ================================================================
   GLASS CARD (Hero frosted panels)
   ================================================================ */
.glass-card {
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

/* ================================================================
   PAGE HERO (Inner page banners)
   ================================================================ */
.page-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .container h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  font-style: italic;
  margin: 0;
  text-align: center;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-family: 'Roag', 'MiSans', sans-serif;
}

.page-hero--products  { background-image: url('../images/drum_1.jpg'); }
.page-hero--solutions { background-image: url('../images/drum_1.JPG'); }
.page-hero--cases     { background-image: url('../images/drum_1.JPG'); }
.page-hero--contact   { background-image: url('../images/管道-细节.jpg'); }

/* ================================================================
   FILTER SIDEBAR
   ================================================================ */
.advanced-filter-container {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.filter-sidebar {
  width: 280px;
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.search-box {
  margin-bottom: 2rem;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #CFCFCF;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #111111;
  background-color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box input:focus {
  outline: none;
  border-color: #4DB938;
  box-shadow: 0 0 0 3px rgba(77, 185, 56, 0.25);
}

.search-box input::placeholder {
  color: #A3A3A3;
}

.filter-category {
  margin-bottom: 2rem;
}

.filter-category h3 {
  font-size: 18px;
  margin-bottom: 1rem;
  color: #111111;
  font-weight: 600;
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  text-transform: capitalize;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
}

.filter-category h3::after {
  content: '\25B8';
  position: absolute;
  right: 0;
}

.filter-category:not(.collapsed) h3::after {
  content: '\25BE';
}

.filter-category.collapsed .filter-options {
  display: none;
}

.filter-category.collapsed .show-more {
  display: none;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 16px;
  cursor: pointer;
  color: #666666;
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 6px;
}

.filter-options label:hover {
  background-color: #F2F2F2;
  color: #111111;
}

.filter-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  accent-color: #4DB938;
  cursor: pointer;
  flex-shrink: 0;
}

.filter-options.collapsed > label.hidden-option {
  display: none;
}

.filter-options.expanded > label.hidden-option {
  display: flex;
}

.show-more {
  margin-top: 0.5rem;
  color: #4DB938;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 6px;
}

.show-more:hover {
  text-decoration: underline;
  background-color: #f0faf0;
}

/* Product display area */
.product-display {
  flex: 1;
}

.display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E6E6E6;
}

.product-count {
  font-size: 0.9rem;
  color: #666666;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-options label {
  font-size: 0.9rem;
  color: #666666;
}

.sort-options select {
  padding: 0.5rem;
  border: 1px solid #CFCFCF;
  border-radius: 4px;
  background-color: #FFFFFF;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card.filtered-out {
  display: none;
}

.filter-actions {
  margin-bottom: 1.5rem;
}

/* ================================================================
   PRODUCT DETAILS
   ================================================================ */
.product-breadcrumb {
  background-color: #F2F2F2;
  padding: 1rem 0;
  font-size: 14px;
  color: #666666;
}

.product-breadcrumb a {
  color: #4DB938;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-breadcrumb span {
  color: #111111;
}

.product-details {
  padding: 2rem 0;
}

.product-not-found {
  text-align: center;
  padding: 3rem 0;
}

.product-not-found h2 {
  color: #4DB938;
  margin-bottom: 1rem;
}

.product-not-found p {
  margin-bottom: 2rem;
  color: #666666;
}

.product-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E6E6E6;
}

.product-header h1 {
  font-size: 24px;
  color: #111111;
  margin-bottom: 1rem;
  font-weight: 700;
  font-style: italic;
  font-family: 'Roag', 'MiSans', sans-serif;
}

.product-basic-info {
  background-color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.product-field {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E6E6E6;
}

.product-field:last-child {
  border-bottom: none;
}

.field-label {
  font-weight: 600;
  color: #111111;
  font-size: 16px;
}

.field-value {
  color: #666666;
  font-size: 16px;
  font-weight: 400;
  text-align: right;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-badge {
  background-color: #4DB938;
  color: #FFFFFF;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-main {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-info h3 {
  font-size: 20px;
  color: #111111;
  margin-bottom: 1rem;
  border-bottom: 2px solid #4DB938;
  padding-bottom: 0.5rem;
  display: inline-block;
  font-weight: 600;
}

.product-info p {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #666666;
  font-size: 16px;
}

.product-overview,
.product-key-features,
.product-markets,
.product-application {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.product-key-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-key-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #666666;
  font-size: 16px;
}

.product-key-features li::before {
  content: "\2022";
  color: #4DB938;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #E6E6E6;
}

.product-details-section h3 {
  font-size: 24px;
  color: #111111;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #4DB938;
  font-weight: 600;
}

.product-details-content {
  line-height: 1.6;
  color: #666666;
}

.product-details-content p {
  margin-bottom: 1.5rem;
  font-size: 16px;
}

/* ================================================================
   LOADING & EMPTY STATES
   ================================================================ */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  color: #666666;
}

.loading-indicator .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #E6E6E6;
  border-top: 4px solid #4DB938;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.empty-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #666666;
  background-color: #F2F2F2;
  border-radius: 12px;
  border: 1px dashed #E6E6E6;
  margin: 2rem 0;
}

.empty-results h3 {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin-bottom: 0.5rem;
}

/* ================================================================
   CAROUSEL CONTROLS
   ================================================================ */
.carousel-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #666666;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #E6E6E6;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  transform: translateY(-50%);
}

.carousel-control:hover {
  background-color: #4DB938;
  color: #FFFFFF;
  border-color: #4DB938;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  transform: translateY(-50%) scale(1.05);
}

.carousel-control.prev,
.cases-carousel .prev-btn {
  left: 16px;
}

.carousel-control.next,
.cases-carousel .next-btn {
  right: 16px;
}

.carousel-indicators {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #CFCFCF;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #4DB938;
  width: 30px;
  border-radius: 6px;
}

/* ================================================================
   SOCIAL LINKS
   ================================================================ */
.social-icon {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9999px;
  background-color: #000000;
  color: #FFFFFF;
  border: 1px solid #4DB938;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  background-color: #4DB938;
  color: #FFFFFF;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

/* ================================================================
   MOBILE NAV (kept from style.css for compatibility)
   ================================================================ */
.mobile-menu {
  display: none;
  cursor: pointer;
  position: relative;
  z-index: 1000;
  padding: 10px;
}

.menu-icon {
  display: inline-block;
  width: 28px;
  height: 2px;
  background-color: #111111;
  position: relative;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 2px;
  background-color: #111111;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }

.menu-icon.open { background-color: transparent; }
.menu-icon.open::before { transform: rotate(45deg); top: 0; }
.menu-icon.open::after { transform: rotate(-45deg); top: 0; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background-color: #FFFFFF;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  z-index: 999;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 20px 20px;
  overflow-y: auto;
}

.mobile-nav.active { right: 0; }

.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { margin-bottom: 8px; border-bottom: 1px solid #E6E6E6; }

.mobile-nav a {
  display: block;
  padding: 16px 20px;
  color: #111111;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #4DB938;
  background-color: #F2F2F2;
  padding-left: 28px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #111111;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-menu:hover { color: #4DB938; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .mobile-menu { display: block; }

  .advanced-filter-container { flex-direction: column; }
  .filter-sidebar { width: 100%; position: static; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .product-main { flex-direction: column; }
  .product-actions { flex-direction: column; }
}

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================================================================
   DESKTOP NAV — Active underline indicator
   ================================================================ */
.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4DB938;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Hero → content transition removed (was too harsh) */

/* ================================================================
   PRODUCT CARD — Series color bar (top border)
   Applied via data-series attribute in JS
   ================================================================ */
.product-card[data-series="upr"] {
  border-top: 4px solid #4DB938;
}

.product-card[data-series="epoxy"] {
  border-top: 4px solid #2196F3;
}

.product-card[data-series="vinyl-ester"] {
  border-top: 4px solid #FFA000;
}

.product-card[data-series="lpa"] {
  border-top: 4px solid #909090;
}

/* Product card series badge */
.product-card .series-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-card[data-series="upr"] .series-badge {
  background-color: #f0faf0;
  color: #26691e;
}

.product-card[data-series="epoxy"] .series-badge {
  background-color: #e3f2fd;
  color: #1565c0;
}

.product-card[data-series="vinyl-ester"] .series-badge {
  background-color: #fff3e0;
  color: #e65100;
}

.product-card[data-series="lpa"] .series-badge {
  background-color: #f5f5f5;
  color: #616161;
}

/* ================================================================
   CASE CARD — Industry-themed media gradients
   Applied via data-market-theme attribute in JS
   ================================================================ */
.case-card .card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card .card-media .media-label {
  font-family: 'Roag', 'MiSans', sans-serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding: 0 1rem;
}

/* Unified dark gradient for all case card media — brand-consistent */
.case-card .card-media {
  background: linear-gradient(135deg, #1A1A1A, #292929);
}

/* Green accent bar at bottom of card-media */
.case-card .card-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #4DB938;
}

/* ================================================================
   PRODUCT DETAIL — Compact hero bar
   ================================================================ */
.product-hero-bar {
  background-color: #1A1A1A;
  padding: 1.25rem 0;
}

.product-hero-bar .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-hero-bar .series-label {
  color: #4DB938;
  font-family: 'Roag', 'MiSans', sans-serif;
  font-style: italic;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-hero-bar .breadcrumb-text {
  color: #A3A3A3;
  font-size: 14px;
}

.product-hero-bar .breadcrumb-text a {
  color: #A3A3A3;
  transition: color 0.3s;
}

.product-hero-bar .breadcrumb-text a:hover {
  color: #4DB938;
}

/* Product header with brand accent bar */
.product-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  padding-left: 1rem;
  border-bottom: 1px solid #E6E6E6;
  border-left: 4px solid #4DB938;
}

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 16px;
  border: 1px solid #CFCFCF;
  border-radius: 0;
  font-size: 16px;
  font-family: 'MiSans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #111111;
  background-color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4DB938;
  box-shadow: 0 0 0 3px rgba(77, 185, 56, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   CASE DETAIL — Improved placeholder
   ================================================================ */
.case-hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A1A, #292929);
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
}

.case-hero-image .market-overlay {
  font-family: 'MiSans', 'Segoe UI', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 4px;
  text-align: center;
  padding: 2rem;
}

.case-hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: #4DB938;
}

/* ================================================================
   STAT CARD (for About page R&D numbers)
   ================================================================ */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  border-top: 3px solid #4DB938;
}

.stat-card .stat-number {
  font-family: 'Roag', 'MiSans', sans-serif;
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 800;
  color: #4DB938;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 14px;
  color: #666666;
  font-weight: 500;
}

/* ================================================================
   TAG — Process variant (for differentiated tag colors)
   ================================================================ */
.tag--process {
  background-color: #FFFFFF;
  color: #666666;
  border: 1px solid #CFCFCF;
}

/* Force carousel button bottom-alignment */
.cases-carousel .carousel-item > .btn,
.cases-carousel .carousel-item > a.btn {
  margin-top: auto !important;
}

/* ================================================================
   HOMEPAGE — Stats Bar
   ================================================================ */
.stats-bar {
  background-color: #000000;
  border-top: 3px solid #4DB938;
  padding: 3rem 0;
  position: relative;
}

.stats-bar .stat-item {
  text-align: center;
  padding: 0 1rem;
}

.stats-bar .stat-value {
  font-family: 'Roag', 'MiSans', sans-serif;
  font-style: italic;
  font-size: 2.5rem;
  font-weight: 800;
  color: #4DB938;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stats-bar .stat-desc {
  font-size: 13px;
  color: #A3A3A3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Vertical dividers between stats */
.stats-bar .stat-item + .stat-item {
  border-left: 1px solid #333333;
}

@media (max-width: 768px) {
  .stats-bar .stat-item + .stat-item {
    border-left: none;
    border-top: 1px solid #333333;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
  }
}

/* ================================================================
   HOMEPAGE — Product Category Card
   ================================================================ */
.product-category-card {
  background-color: #1A1A1A;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: #FFFFFF;
}

.product-category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #4DB938;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-category-card:hover {
  background-color: #292929;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.product-category-card:hover::after {
  transform: scaleX(1);
}

.product-category-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(77, 185, 56, 0.15);
  color: #4DB938;
  font-family: 'Roag', 'MiSans', sans-serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.product-category-card h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-category-card p {
  color: #A3A3A3;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* ================================================================
   HOMEPAGE — CTA Banner
   ================================================================ */
.cta-banner {
  background-color: #1A1A1A;
  padding: 4rem 0;
  border-left: 4px solid #4DB938;
}

.cta-banner h2 {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.cta-banner p {
  color: #A3A3A3;
  font-size: 16px;
  margin-top: 0.5rem;
}

/* ================================================================
   HOMEPAGE — Hero stats row (inline in hero)
   ================================================================ */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stats .hero-stat {
  text-align: center;
}

.hero-stats .hero-stat-value {
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4DB938;
}

.hero-stats .hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
