/* ============================================================
   STEELLEX - Stainless Steel Manufacturing
   Premium Industrial Design System
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Backgrounds — Blue-Gray Industrial */
  --bg-primary: #edf0f5;
  --bg-secondary: #e0e4ed;
  --bg-surface: #d3d8e3;
  --bg-elevated: #c4cad6;
  --bg-card: #ffffff;
  
  /* Blue-Gray Steel Accents */
  --steel-light: #1e2738;
  --steel-mid: #37465e;
  --steel-dark: #647590;
  --steel-blue: #3a5a8c;
  --steel-blue-bright: #4a7abf;
  --steel-teal: #2d6e78;
  
  /* Brand — Slate Blue */
  --accent: #3a5a8c;
  --accent-hover: #2d4870;
  --accent-glow: rgba(58, 90, 140, 0.16);
  
  /* Text */
  --text-primary: #131820;
  --text-secondary: #2d3748;
  --text-muted: #5a6678;
  
  /* Borders */
  --border-subtle: rgba(58, 90, 140, 0.10);
  --border-default: rgba(58, 90, 140, 0.16);
  --border-strong: rgba(58, 90, 140, 0.24);
  
  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 18px rgba(58, 90, 140, 0.10);
  --shadow-lg: 0 8px 32px rgba(58, 90, 140, 0.13);
  --shadow-glow: 0 2px 16px rgba(58, 90, 140, 0.16);
  
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-hover);
}

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.gradient-text {
  background: linear-gradient(135deg, #1e2738 0%, #3a5a8c 50%, #4a7abf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: calc(-1 * var(--space-2xl));
  margin-bottom: var(--space-3xl);
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(237, 240, 245, 0.95);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(58, 90, 140, 0.12);
  box-shadow: 0 1px 10px rgba(58, 90, 140, 0.08);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  background: rgba(237, 240, 245, 0.98);
  box-shadow: 0 3px 22px rgba(58, 90, 140, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--steel-teal));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.2rem;
}

.logo-text {
  color: var(--steel-light);
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: 60px;
}

.main-nav a {
  padding: var(--space-sm) var(--space-md);
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(37, 99, 160, 0.06);
}

.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav .dropdown-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.main-nav .dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.main-nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.main-nav .dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  white-space: nowrap;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 999;
  padding: var(--space-lg);
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--space-md);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--accent);
  background: rgba(37, 99, 160, 0.04);
}

.mobile-nav .mobile-sub {
  padding-left: var(--space-xl);
  font-size: 0.9rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--space-lg) var(--space-3xl);
  overflow: hidden;
  background: var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(37, 99, 160, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(13, 115, 119, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(100, 120, 140, 0.03) 0%, transparent 50%);
  animation: heroBgFloat 20s ease-in-out infinite;
}

@keyframes heroBgFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(1%, -1%) scale(1.02); }
  66% { transform: translate(-1%, 1%) scale(1.01); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  color: #fff;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

.hero h1 .gradient-text {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-xl);
}

.hero-tagline {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  color: #fff;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: linear-gradient(135deg, #3a5a8c, #2d4870);
  color: #fff;
  box-shadow: 0 4px 16px rgba(58, 90, 140, 0.30);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(58, 90, 140, 0.45);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(37, 99, 160, 0.06);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  justify-content: center;
  margin-top: var(--space-3xl);
  flex-wrap: wrap;
}

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

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: var(--space-xs);
}

.hero-cta .btn-primary {
  background: #fff;
  color: #1e2738;
  border-color: #fff;
}

.hero-cta .btn-outline {
  color: #fff;
  border-color: #fff;
}

.hero-cta .btn-outline:hover {
  background: #fff;
  color: #1e2738;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, #dce1ed 0%, #ced4e2 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-alt {
  background: linear-gradient(180deg, #e4e8f0 0%, #d6dbe6 100%);
}

/* --- Product Categories Grid --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--steel-teal));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, rgba(91,143,168,0.15), rgba(74,140,140,0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--transition-base);
}

.category-card:hover .category-card-icon {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.category-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --- Grade Series Cards --- */
.grade-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.grade-series-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.grade-series-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background: #f0f4f8;
}

.grade-series-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.grade-series-badge {
  padding: 4px 12px;
  background: rgba(91, 143, 168, 0.15);
  border-radius: var(--radius-sm);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
}

.grade-series-card h3 {
  font-size: 1.15rem;
}

.grade-series-grades {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.grade-tag {
  display: inline-block;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(58, 90, 140, 0.06), rgba(58, 90, 140, 0.03));
  border: 1px solid rgba(58, 90, 140, 0.12);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
}

.grade-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(58, 90, 140, 0.08);
  transform: translateY(-1px);
}
}

/* --- Grades Massive Grid (Homepage) --- */
.grades-massive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.grade-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.grade-mini-card:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 160, 0.04);
  transform: translateY(-2px);
}

.grade-mini-card .grade-name {
  font-weight: 700;
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.grade-mini-card .grade-elements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.72rem;
}

.grade-mini-card .grade-elements span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

/* --- Grade Group Header --- */
.grade-group-header {
  grid-column: 1 / -1;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-default);
}

.grade-group-header:first-child {
  margin-top: 0;
}

.grade-group-header a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--steel-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.grade-group-header a:hover {
  color: var(--accent-hover);
}

.grade-group-header .series-badge {
  padding: 2px 8px;
  background: linear-gradient(135deg, var(--accent), var(--steel-teal));
  color: #fff;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --- Product Detail Cards --- */
.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-detail-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.product-detail-card h4 {
  color: var(--steel-light);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.product-detail-specs {
  list-style: none;
  margin-bottom: var(--space-lg);
}

.product-detail-specs li {
  padding: var(--space-xs) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.product-detail-specs li::before {
  content: '•';
  color: var(--accent);
  font-weight: bold;
}

/* --- Page Hero (Sub-pages) --- */
.page-hero {
  padding: 90px 0 var(--space-lg);
  background: linear-gradient(180deg, #e8ecf5 0%, var(--bg-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(58, 90, 140, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(58, 90, 140, 0.04) 0%, transparent 50%);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
}

.page-hero .page-subtitle {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

/* --- Grade Category Tabs --- */
.grade-tabs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.grade-tab {
  padding: 8px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.grade-tab:hover,
.grade-tab.active {
  background: rgba(91, 143, 168, 0.15);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* --- Grade Detail Page --- */
.grade-detail-hero {
  text-align: center;
  padding: var(--space-xl) 0;
}

.grade-detail-hero .grade-number {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--steel-light);
  font-family: var(--font-mono);
}

.grade-detail-hero .grade-series {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(91, 143, 168, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-hover);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.chemical-composition {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 700px;
  margin: var(--space-2xl) auto;
}

.chemical-composition h3 {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--steel-light);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Product Spec Tables (googlesteel style) */
.spec-tables {
  max-width: 900px;
  margin: var(--space-2xl) auto;
}
.spec-table-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--steel-light);
  margin: var(--space-xl) 0 var(--space-sm) 0;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.spec-table thead th,
.spec-table tr.firstRow td {
  background: #EFF2F7;
  font-weight: 600;
  color: #333;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #ddd;
}
.spec-table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  color: #212529;
  vertical-align: top;
}
.spec-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
}

.comp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(58,90,140,0.03), rgba(58,90,140,0.01));
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.85rem;
  gap: 8px;
  transition: border-color var(--transition-fast);
}

.comp-item:hover {
  border-color: rgba(58,90,140,0.2);
}

.comp-item .element {
  font-weight: 600;
  color: var(--steel-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.comp-item .range {
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  white-space: nowrap;
}

/* --- Product Sub-Nav --- */
.product-sub-nav {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.product-sub-nav a {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.product-sub-nav a:hover {
  background: rgba(91, 143, 168, 0.15);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* ============================================================
   ABOUT / CONTACT PAGES
   ============================================================ */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.about-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.contact-info h3 {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin: 0;
  padding: 17px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
}

.contact-info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-info-item .ci-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-item .ci-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-info-item .ci-text strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  align-self: stretch;
}

.contact-form h3 {
  margin-bottom: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: #f7f8fa;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #dce1ed 0%, #c9d0de 100%);
  border-top: 1px solid rgba(58, 90, 140, 0.12);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-col h4 {
  color: var(--steel-light);
  font-size: 0.88rem;
  margin-bottom: var(--space-sm);
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col a {
  display: block;
  color: var(--steel-mid);
  font-size: 0.80rem;
  padding: 2px 0;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent-hover);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--accent-hover);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 64px;
    --space-3xl: 48px;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    min-height: 80vh;
    padding: 100px var(--space-md) var(--space-2xl);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: var(--space-xl);
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grades-massive-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .factory-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .grade-series-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr !important;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .grades-massive-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .grade-series-grid {
    grid-template-columns: 1fr !important;
  }
  .factory-gallery {
    grid-template-columns: 1fr !important;
  }
  .industries-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .container {
    padding: 0 var(--space-md);
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic effect for cards */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.magnetic:hover {
  transform: translateY(-4px) scale(1.02);
}

/* Steel shimmer */
@keyframes steelShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.steel-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(37, 99, 160, 0.04) 25%,
    rgba(37, 99, 160, 0.08) 50%,
    rgba(37, 99, 160, 0.04) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: steelShimmer 3s ease-in-out infinite;
}

/* ============================================================
   IMAGE-INTEGRATED STYLES
   ============================================================ */

/* --- Hero with Background Image --- */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-factory-image {
  object-position: center 54%;
  filter: brightness(0.6) saturate(0.82) contrast(1.06);
}

.supply-path-section { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(5,29,48,.94), rgba(7,42,69,.86)), url("../assets/images/banners/factory-products.jpg") center / cover no-repeat; }
.supply-path-section::before { position: absolute; z-index: 0; top: -180px; right: -140px; width: 500px; height: 500px; border: 1px solid rgba(99,195,244,.14); border-radius: 50%; content: ''; pointer-events: none; }
.supply-path-section > .container { position: relative; z-index: 1; }
.supply-path-intro { position: relative; z-index: 1; text-align: center; }
.supply-path-intro .eyebrow { color: #76d1fa; }
.supply-path-intro .section-title { color: #fff; }
.supply-path-intro .section-title::after { background: #00a8c9; }
.supply-path-intro .section-subtitle { color: #c5dce9; }
.supply-path { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 38px; }
.supply-path::before { position: absolute; top: 31px; right: 12%; left: 12%; height: 1px; background: rgba(122,211,250,.35); content: ''; }
.supply-path-step { position: relative; padding: 0 18px 20px; text-align: center; }
.supply-path-step > span { position: relative; z-index: 1; display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 18px; color: #fff; background: #1261d6; border: 6px solid #0b2d4a; border-radius: 50%; box-shadow: 0 0 0 1px rgba(125,215,251,.65); font-size: 14px; font-weight: 900; }
.supply-path-step h3 { margin: 0 0 8px; color: #fff; font-size: 1.05rem; }
.supply-path-step p { margin: 0; color: #c5dce9; font-size: .86rem; line-height: 1.65; }
.supply-path-cta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; color: #c5dce9; font-size: .9rem; }
.supply-path-cta a { padding: 10px 14px; color: #07304f; background: #fff; font-size: .82rem; font-weight: 850; text-decoration: none; }
.supply-path-cta a:hover { color: #fff; background: #00a8c9; }

.hero--finder { padding-bottom: 42px; }
.hero--finder .hero-content { max-width: 980px; }
.hero--finder h1 { max-width: 760px; margin: 16px auto 14px; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.hero--finder .hero-tagline { margin-bottom: 0; }
.project-match { max-width: 860px; margin: 25px auto 0; padding: 17px; text-align: left; background: rgba(5,31,52,.82); border: 1px solid rgba(166,219,250,.38); box-shadow: 0 18px 42px rgba(0,0,0,.22); backdrop-filter: blur(8px); }
.project-match-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.project-match-topline span { color: #8ed5ff; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.project-match-topline small { color: #d2e5f1; font-size: 11px; }
.project-match-tabs { display: flex; gap: 6px; margin-bottom: 11px; }
.project-match-tabs button { flex: 1; min-height: 36px; padding: 7px 9px; color: #d5e6f2; background: rgba(255,255,255,.08); border: 1px solid rgba(206,233,250,.24); border-radius: 0; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.project-match-tabs button:hover, .project-match-tabs button.is-active { color: #08304c; background: #fff; border-color: #fff; }
.project-match-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.project-match-fields label { display: grid; gap: 5px; color: #bfd6e6; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.project-match-fields select, .project-match-fields input { width: 100%; min-height: 42px; padding: 0 10px; color: #0a2f49; background: #fff; border: 0; border-radius: 0; font: inherit; font-size: 13px; font-weight: 700; }
.project-match-fields input::placeholder { color: #7891a4; font-weight: 600; }
.project-match-fields button { min-height: 42px; padding: 0 18px; align-self: end; color: #fff; background: #1261d6; border: 1px solid #1261d6; border-radius: 0; font: inherit; font-size: 12px; font-weight: 850; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }
.project-match-fields button:hover { background: #00a8c9; border-color: #00a8c9; }
.project-match-result { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: #d9e8f2; font-size: 11px; }
.project-match-result > span { color: #8eb3ca; }
.project-match-result strong { color: #fff; font-size: 12px; }
.project-match-result a { margin-left: auto; color: #8ed5ff; font-weight: 800; text-decoration: none; }
.project-match-result a:hover { color: #fff; }

@media (max-width: 680px) {
  .hero--finder { padding-top: 92px; padding-bottom: 32px; }
  .project-match { padding: 13px; }
  .project-match-topline { align-items: flex-start; flex-direction: column; gap: 4px; }
  .project-match-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .project-match-fields { grid-template-columns: 1fr; }
  .project-match-fields button { width: 100%; }
  .project-match-result { align-items: flex-start; flex-direction: column; gap: 4px; }
  .project-match-result a { margin-left: 0; }
  .supply-path { grid-template-columns: 1fr; gap: 8px; }
  .supply-path::before { top: 34px; bottom: 34px; left: 50%; width: 1px; height: auto; }
  .supply-path-step { display: grid; grid-template-columns: 62px 1fr; column-gap: 16px; padding: 0 0 18px; text-align: left; }
  .supply-path-step > span { grid-row: span 2; margin: 0; }
  .supply-path-step h3 { align-self: end; margin: 0; }
  .supply-path-step p { grid-column: 2; }
  .supply-path-cta { align-items: stretch; flex-direction: column; text-align: center; }
}

.standards-jump-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-xl);
}

.standards-jump-card {
  display: block;
  min-height: 100%;
  padding: var(--space-xl);
  text-align: center;
  color: inherit;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.standards-jump-card:hover {
  color: inherit;
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

#astm, #en, #jis, #gb, #iso, #gost {
  scroll-margin-top: 96px;
}

@media (max-width: 980px) {
  .standards-jump-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .standards-jump-grid { grid-template-columns: 1fr; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(180deg, rgba(237,240,245,0.82) 0%, rgba(237,240,245,0.58) 40%, rgba(237,240,245,0.35) 70%, rgba(237,240,245,0.76) 100%);
  z-index: 0;
}

/* --- Category Card with Image --- */
.category-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  transition: transform var(--transition-base);
}

.category-card:hover .category-card-img {
  transform: scale(1.05);
}

.img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

/* --- Product Image Card --- */
.product-img-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-img-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.product-img-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-img-card:hover .product-img-card-image {
  transform: scale(1.08);
}

.product-img-card-body {
  padding: var(--space-lg);
}

.product-img-card-body h4 {
  color: var(--steel-light);
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.product-img-card-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Product Gallery --- */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --- Factory Tour Section --- */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.factory-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.factory-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.factory-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.factory-card:hover img {
  transform: scale(1.05);
}

.factory-card-label {
  padding: var(--space-md);
  font-size: 0.9rem;
  color: var(--steel-light);
  font-weight: 600;
  text-align: center;
}

/* --- Horizontal Scroll Carousel --- */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-md);
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-track {
  background: transparent;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

.carousel-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* Product gallery carousel item */
.carousel-item.gallery-item {
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.carousel-item.gallery-item img {
  width: 280px;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-item.gallery-item:hover img {
  transform: scale(1.05);
}

/* Cert carousel item */
.carousel-item.cert-card {
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  text-align: center;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.carousel-item.cert-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.carousel-item.cert-card img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.carousel-item.cert-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

/* Carousel nav buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.carousel-nav:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }

@media (max-width: 768px) {
  .carousel-nav { display: none; }
  .carousel-item.gallery-item { width: 220px; }
  .carousel-item.gallery-item img { width: 220px; height: 180px; }
  .carousel-item.cert-card { width: 180px; }
}

/* --- Certificate Badge (kept for old layout) --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  transition: all var(--transition-base);
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.cert-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.cert-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Testing Equipment Grid --- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .equipment-grid { grid-template-columns: 1fr; }
}

.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.equipment-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.equipment-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.equipment-card-body {
  padding: var(--space-md);
}

.equipment-card-body h4 {
  color: var(--steel-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.equipment-card-body p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* --- Image Badge Overlay --- */
.img-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* --- Lightbox (minimal) --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

/* --- Responsive Images --- */
@media (max-width: 768px) {
  .category-card-img {
    height: 120px;
  }
  .product-img-card-image {
    height: 180px;
  }
  .factory-card img {
    height: 200px;
  }
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .factory-gallery {
    grid-template-columns: 1fr;
  }
}

/* --- Industry Cards --- */
.industry-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--accent) !important;
  box-shadow: var(--shadow-glow) !important;
}

/* --- Why Choose Us Items --- */
.why-item:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 160, 0.04);
}

/* --- News Cards --- */
.news-card:hover {
  border-color: var(--accent) !important;
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-glow) !important;
}

/* Print styles */
@media print {
  .site-header, .site-footer, .mobile-nav, .mobile-menu-btn {
    display: none !important;
  }
  
  body {
    background: #fff;
    color: #000;
  }
}

/* ============================================================
   UNIFIED SITE FOUNDATION — DONRANSHENG INDUSTRIAL
   Align the established marketing pages with the catalogue's
   mineral, editorial material language.
   ============================================================ */
:root {
  --bg-primary: #f3f1eb;
  --bg-secondary: #e9e4da;
  --bg-surface: #ddd8ce;
  --bg-elevated: #d1cabd;
  --bg-card: #ffffff;
  --steel-light: #10202a;
  --steel-mid: #314752;
  --steel-dark: #63747b;
  --steel-blue: #0f4d5d;
  --steel-blue-bright: #176a7b;
  --steel-teal: #1f6c70;
  --accent: #0f4d5d;
  --accent-hover: #082f3a;
  --accent-glow: rgba(15, 77, 93, .15);
  --text-primary: #10202a;
  --text-secondary: #31434a;
  --text-muted: #68737a;
  --border-subtle: rgba(16, 32, 42, .10);
  --border-default: rgba(16, 32, 42, .16);
  --border-strong: rgba(15, 77, 93, .32);
  --shadow-sm: 0 1px 4px rgba(8, 47, 58, .08);
  --shadow-md: 0 8px 24px rgba(8, 47, 58, .10);
  --shadow-lg: 0 18px 42px rgba(8, 47, 58, .14);
  --shadow-glow: 0 12px 28px rgba(15, 77, 93, .16);
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --font-sans: 'Segoe UI', 'Microsoft YaHei UI', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body { background: var(--bg-primary); color: var(--text-primary); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -.035em; }
h1 { letter-spacing: -.045em; }
.gradient-text { background: linear-gradient(120deg, #0f4d5d, #d56d38); -webkit-background-clip: text; background-clip: text; }

.site-header, .site-header.scrolled {
  background: rgba(243, 241, 235, .94);
  border-bottom-color: rgba(16, 32, 42, .13);
  box-shadow: 0 1px 12px rgba(8, 47, 58, .07);
}
.header-inner { height: 76px; }
.logo { letter-spacing: .01em; }
.logo img { filter: saturate(.78) contrast(1.03); }
.main-nav a { color: var(--text-secondary); font-size: .92rem; font-weight: 650; letter-spacing: .01em; border-radius: 99px; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: rgba(15, 77, 93, .08); }
.main-nav .dropdown-menu, .mobile-nav { background: #fffdf9; border-color: var(--border-default); border-radius: 0; }
.mobile-nav { top: 76px; }

.hero { min-height: 68vh; padding-top: 96px; background: #082f3a; }
.hero::before { background: radial-gradient(circle at 78% 15%, rgba(31, 108, 112, .92) 0%, rgba(31, 108, 112, 0) 32%), radial-gradient(circle at 78% 92%, rgba(213, 109, 56, .72) 0%, rgba(213, 109, 56, 0) 25%), linear-gradient(120deg, #082f3a 0%, #0f4d5d 100%); animation: none; }
.hero-overlay { background: linear-gradient(90deg, rgba(8,47,58,.92), rgba(8,47,58,.58) 55%, rgba(8,47,58,.72)); }
.hero-content { max-width: 900px; }
.hero h1 { color: #fff; font-size: clamp(2.9rem, 6vw, 5.6rem); line-height: .98; }
.hero-tagline { max-width: 660px; color: #d4e4e2; }
.hero-badge { border-radius: 99px; color: #d7f0ec; border-color: rgba(215,240,236,.45); background: rgba(8,47,58,.28); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hero-cta .btn-primary { color: #fff; background: #d56d38; border-color: #d56d38; }
.hero-cta .btn-primary:hover { color: #fff; background: #bc5729; }
.hero-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-cta .btn-outline:hover { color: #082f3a; background: #fff; }
.hero-stat-value { font-family: var(--font-sans); font-weight: 700; }

.btn { border-radius: 0; font-size: .84rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.btn-primary { background: #0f4d5d; box-shadow: 0 8px 18px rgba(8,47,58,.16); }
.btn-primary:hover { background: #082f3a; box-shadow: 0 12px 24px rgba(8,47,58,.20); }
.btn-outline { border-color: var(--accent); }
.btn-outline:hover { color: #fff; background: var(--accent); }

.section { padding: 92px 0; }
.section-dark { background: #e7e2d8; border-color: rgba(16,32,42,.1); }
.section-alt { background: #ede9e1; }
.section-title::after { width: 54px; height: 2px; background: #d56d38; }
.section-subtitle { max-width: 700px; margin-left: auto; margin-right: auto; }
.category-card, .grade-series-card, .grade-mini-card, .product-detail-card, .product-img-card { border-radius: 0; background: #fffdf9; }
.category-card::before { background: #d56d38; }
.category-card:hover, .grade-series-card:hover, .product-detail-card:hover, .product-img-card:hover { border-color: #9ab8b7; box-shadow: var(--shadow-lg); }
.category-card-icon, .grade-series-badge { border-radius: 0; color: var(--accent); background: #e1efed; }
.grade-tag { border-radius: 0; color: var(--accent); background: #eef4f2; border-color: #c9dddd; }

.site-footer { color: #c7dbda; background: #082f3a; border-top: 0; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-col p, .footer-bottom { color: #adc9c8; }
.footer-col a { color: #c7dbda; }
.footer-col a:hover { color: #f2a47c; }
.footer-bottom { border-top-color: rgba(199,219,218,.2); }

@media (max-width: 768px) {
  .header-inner { height: 68px; }
  .mobile-nav { top: 68px; }
  .hero { min-height: 76vh; padding-top: 118px; }
  .section { padding: 68px 0; }
}

/* --- Sidebar Inquiry Buttons --- */
.sidebar-inquiry {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-inquiry a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), #2d4870);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px 0 0 8px;
  transition: all var(--transition-fast);
  writing-mode: horizontal-tb;
}

.sidebar-inquiry a.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.sidebar-inquiry a.get-quote {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* Email hover: slide right */
.sidebar-inquiry a:not(.whatsapp):not(.get-quote):hover {
  padding-right: 24px;
  transform: translateX(-4px);
  filter: brightness(1.1);
}

/* WhatsApp hover: pop up */
.sidebar-inquiry a.whatsapp:hover {
  transform: scale(1.08);
  border-radius: 8px;
  filter: brightness(1.15);
}

/* Get Quote hover: glow pulse */
.sidebar-inquiry a.get-quote:hover {
  box-shadow: 0 0 16px rgba(217, 119, 6, 0.5);
  filter: brightness(1.15);
}

/* --- Engineer Contact Widget (Applications page only) --- */
.engineer-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 998;
  background: linear-gradient(135deg, var(--steel-light), #2d3a50);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  max-width: 280px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  animation: widgetSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes widgetSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.engineer-widget p {
  font-size: 0.82rem;
  margin: 0 0 var(--space-sm);
  line-height: 1.5;
  color: #c8d2e0;
}

.engineer-widget strong {
  color: #fff;
  font-size: 0.9rem;
}

.engineer-widget .widget-actions {
  display: flex;
  gap: var(--space-sm);
}

.engineer-widget .widget-actions a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  transition: all var(--transition-fast);
}

.engineer-widget .widget-actions a:hover {
  background: rgba(255,255,255,0.2);
}

.engineer-widget .widget-close {
  position: absolute;
  top: 6px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.engineer-widget .widget-close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .sidebar-inquiry {
    bottom: 16px;
    top: auto;
    right: 8px;
    transform: none;
    flex-direction: row;
    gap: 8px;
  }
  .sidebar-inquiry a {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.8rem;
  }
}

/* Final component alignment for persistent contact elements. */
.sidebar-inquiry a { border-radius: 0; background: #0f4d5d; font-size: .76rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-inquiry a:not(.whatsapp):not(.get-quote):hover { background: #082f3a; }
.sidebar-inquiry a.get-quote { background: #d56d38; }
.sidebar-inquiry a.get-quote:hover { box-shadow: 0 0 16px rgba(213,109,56,.4); }
.engineer-widget { border-radius: 0; background: #082f3a; box-shadow: 0 12px 28px rgba(8,47,58,.25); }
.engineer-widget p { color: #c7dbda; }
@media (max-width: 768px) { .sidebar-inquiry a { border-radius: 0; } }

/* High-energy refresh: cool white, cobalt and cyan replace the warm palette. */
:root {
  --bg-primary: #f6f9fc;
  --bg-secondary: #edf4fa;
  --bg-surface: #e1edf7;
  --bg-elevated: #d4e4f1;
  --bg-card: #ffffff;
  --steel-light: #102238;
  --steel-mid: #324a62;
  --steel-dark: #698099;
  --steel-blue: #1261d6;
  --steel-blue-bright: #2178ee;
  --steel-teal: #00a8c9;
  --accent: #1261d6;
  --accent-hover: #0c4fb5;
  --accent-glow: rgba(18, 97, 214, .15);
  --text-primary: #102238;
  --text-secondary: #324a62;
  --text-muted: #637990;
  --border-subtle: rgba(16, 34, 56, .10);
  --border-default: rgba(18, 97, 214, .17);
  --border-strong: rgba(18, 97, 214, .38);
  --shadow-md: 0 8px 24px rgba(18, 97, 214, .09);
  --shadow-lg: 0 18px 42px rgba(18, 97, 214, .14);
  --shadow-glow: 0 12px 28px rgba(18, 97, 214, .16);
}

.gradient-text { background: linear-gradient(120deg, #1261d6, #00a8c9); -webkit-background-clip: text; background-clip: text; }
.site-header, .site-header.scrolled { background: rgba(255,255,255,.95); border-bottom-color: #d9e5f0; box-shadow: 0 1px 12px rgba(18,97,214,.06); }
.site-header .logo { height: 76px; flex: 0 0 64px; justify-content: flex-start; overflow: hidden; }
.site-header .logo img { display: block; width: 56px; height: 56px !important; object-fit: contain; object-position: center; filter: none; }
.header-company-name {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  color: #243d5a;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
}
.header-company-name:hover { color: #1261d6; }
.main-nav a:hover, .main-nav a.active { color: #1261d6; background: #edf5ff; }
.main-nav .product-family-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  width: 654px;
  min-width: 654px;
  padding: 9px;
}
.main-nav .product-family-menu .product-family-card {
  position: relative;
  display: block;
  min-height: 112px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #0b1f3a;
  border: 1px solid rgba(18, 97, 214, .16);
  border-radius: 3px;
}
.main-nav .product-family-menu .product-family-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,.04) 24%, rgba(11,31,58,.9) 100%);
}
.main-nav .product-family-menu .product-family-card img {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  transition: transform .28s ease;
}
.main-nav .product-family-menu .product-family-card span {
  position: absolute;
  z-index: 1;
  right: 11px;
  bottom: 9px;
  left: 11px;
  color: #fff;
  font-size: .83rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: normal;
}
.main-nav .product-family-menu .product-family-card:hover { color: #fff; background: #0b1f3a; }
.main-nav .product-family-menu .product-family-card:hover img { transform: scale(1.07); }
.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: .76rem;
  font-weight: 750;
}
.header-contact a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 9px;
  color: #31506f;
  border: 1px solid #d8e3ef;
  border-radius: 99px;
  background: #fff;
}
.header-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-contact .header-email { color: #fff; border-color: #1261d6; background: #1261d6; }
.header-contact .header-whatsapp { color: #fff; border-color: #00a884; background: #00a884; }
.header-contact .header-whatsapp svg { fill: currentColor; stroke: none; }
.header-contact a:hover { color: #1261d6; border-color: #a8c8ef; background: #edf5ff; }
.header-contact .header-email:hover { color: #fff; border-color: #0b4fae; background: #0b4fae; }
.header-contact .header-whatsapp:hover { color: #fff; border-color: #008d70; background: #008d70; }

/* Contact form submission feedback and spam honeypot */
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.form-feedback { margin: 0 0 4px; font-size: 14px; color: #b42318; }
.form-feedback--success { color: #087443; }
@media (min-width: 769px) {
  .header-inner { position: relative; }
  .site-header .logo { margin-left: -10px; }
  .header-contact { margin-right: -25px; }
  .main-nav {
    position: absolute;
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
    gap: var(--space-sm);
  }
  .main-nav a { font-size: 1rem; }
}
@media (max-width: 980px) and (min-width: 769px) {
  .header-contact .header-email span { display: none; }
}
@media (max-width: 1100px) {
  .header-company-name { display: none; }
}
@media (max-width: 768px) {
  .header-contact { display: none; }
}
@media (max-width: 768px) {
  .site-header .logo { height: 68px; flex-basis: 58px; }
  .site-header .logo img { width: 48px; height: 48px !important; }
}
.hero { background: #0b1f3a; }
.hero::before { background: radial-gradient(circle at 76% 14%, rgba(33,120,238,.92) 0%, rgba(33,120,238,0) 34%), radial-gradient(circle at 77% 90%, rgba(0,168,201,.70) 0%, rgba(0,168,201,0) 27%), linear-gradient(120deg, #0b1f3a 0%, #123d80 100%); }
.hero-overlay { background: linear-gradient(90deg, rgba(11,31,58,.94), rgba(11,31,58,.54) 55%, rgba(11,31,58,.76)); }
.hero-badge { color: #d7f6ff; border-color: rgba(215,246,255,.48); background: rgba(8,56,110,.26); }
.hero-cta .btn-primary, .btn-primary { background: #1261d6; border-color: #1261d6; }
.hero-cta .btn-primary:hover, .btn-primary:hover { background: #0c4fb5; border-color: #0c4fb5; }
.section-dark { background: #edf5fb; }
.section-alt { background: #f1f7fc; }
.section-title::after, .category-card::before { background: #00a8c9; }
.category-card-icon, .grade-series-badge { color: #1261d6; background: #e9f4ff; }
.grade-tag { color: #1261d6; background: #eff7ff; border-color: #c9e1f4; }
.site-footer, .engineer-widget { background: #0b1f3a; }
.site-footer .footer-col > img {
  display: block;
  width: 60px;
  height: 60px !important;
  margin-bottom: 14px !important;
  object-fit: contain;
  object-position: center;
  filter: saturate(1) contrast(1.05);
}
.contact-form h3 .contact-form-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: center;
  filter: saturate(1) contrast(1.05);
}
.about-feature-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  object-position: center;
  filter: saturate(1) contrast(1.05);
}

/* Strong first impression for interior pages. */
.page-hero {
  display: flex;
  align-items: center;
  min-height: 356px;
  padding: 126px 0 76px;
  color: #fff;
  text-align: left;
  background-color: #0b1f3a;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.page-hero-about { background-image: url('../assets/images/banners/factory-about.jpg'); }
.page-hero-industries { background-image: url('../assets/images/banners/factory-applications.jpg'); }
.page-hero-contact { background-image: url('../assets/images/banners/factory-contact.jpg'); }
.page-hero::before {
  z-index: 0;
  background: linear-gradient(90deg, rgba(11,31,58,.94) 0%, rgba(11,31,58,.79) 48%, rgba(11,31,58,.50) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-kicker {
  margin: 0 0 14px;
  color: #6de8f5;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.page-hero h1,
.page-hero h1.gradient-text {
  max-width: 760px;
  margin: 0;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-size: clamp(2.8rem, 5.3vw, 5.4rem);
  line-height: .98;
  text-shadow: 0 3px 18px rgba(0,0,0,.2);
}
.page-hero .page-subtitle {
  max-width: 650px;
  margin: 20px 0 0;
  color: #dcecff;
  font-size: 1.05rem !important;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .page-hero { min-height: 300px; padding: 108px 0 58px; }
  .page-hero h1,
  .page-hero h1.gradient-text { font-size: clamp(2.4rem, 12vw, 3.5rem); }
  .page-hero .page-subtitle { font-size: .98rem !important; }
}
.footer-col a:hover { color: #5ee3f6; }
.cookie-banner { position: fixed; z-index: 2500; right: 26px; bottom: 26px; display: flex; max-width: 630px; padding: 18px 20px; align-items: center; gap: 24px; color: #e9f6ff; background: #092541; border: 1px solid rgba(133,211,255,.45); box-shadow: 0 20px 50px rgba(2,17,31,.3); animation: cookie-enter .28s ease both; }
.cookie-banner-copy { min-width: 0; }
.cookie-banner-copy strong { display: block; color: #fff; font-size: .98rem; }
.cookie-banner-copy p { margin: 5px 0 0; color: #bdd5e7; font-size: .8rem; line-height: 1.55; }
.cookie-banner-copy a { color: #6ce1f4; font-weight: 750; }
.cookie-banner-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-banner button { min-height: 38px; padding: 0 12px; border: 1px solid rgba(185,225,248,.55); border-radius: 0; font: inherit; font-size: .75rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.cookie-essential { color: #e9f6ff; background: transparent; }
.cookie-accept { color: #fff; background: #1261d6; border-color: #1261d6 !important; }
.cookie-banner button:hover { filter: brightness(1.13); }
.cookie-banner.is-leaving { animation: cookie-leave .22s ease both; }
@keyframes cookie-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cookie-leave { to { opacity: 0; transform: translateY(18px); } }
@media (max-width: 650px) { .cookie-banner { right: 12px; bottom: 12px; left: 12px; display: block; max-width: none; padding: 17px; } .cookie-banner-actions { margin-top: 14px; } .cookie-banner button { flex: 1; } }
.privacy-policy { background: #f4f9fd; }
.privacy-policy-inner { max-width: 880px; padding: 54px 70px; background: #fff; border: 1px solid #d8e6f0; box-shadow: 0 18px 42px rgba(18,97,214,.08); }
.privacy-policy-inner > p { color: #526d86; line-height: 1.8; }
.privacy-updated { margin-top: 0; color: #00a8c9 !important; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.privacy-policy section { margin-top: 34px; padding-top: 25px; border-top: 1px solid #dfeaf2; }
.privacy-policy h2 { margin: 0 0 10px; color: #112d4a; font-size: 1.35rem; }
.privacy-policy section p { margin: 0; color: #526d86; line-height: 1.8; }
.privacy-policy a { color: #1261d6; font-weight: 750; }
@media (max-width: 650px) { .privacy-policy-inner { padding: 34px 24px; } }
.sidebar-inquiry a { background: #1261d6; }
.sidebar-inquiry a:not(.whatsapp):not(.get-quote):hover { background: #0c4fb5; }
.sidebar-inquiry a.get-quote { background: #00a8c9; }
.sidebar-inquiry a.get-quote:hover { box-shadow: 0 0 16px rgba(0,168,201,.42); }
.sidebar-standards { position: fixed; z-index: 990; top: 50%; left: 0; width: 136px; overflow: hidden; color: #fff; background: #0b3555; border-left: 3px solid #00a8c9; box-shadow: 6px 10px 24px rgba(5,38,61,.16); transform: translateY(-50%); }
.sidebar-standards p { display: grid; margin: 0; padding: 14px 13px 11px; gap: 2px; background: #092b46; }
.sidebar-standards p span { color: #7fe6f4; font-size: .6rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.sidebar-standards p strong { color: #fff; font-size: .95rem; line-height: 1.05; }
.sidebar-standards a { display: block; padding: 10px 13px; color: #d7ebf7; border-top: 1px solid rgba(155,215,246,.18); font-size: .68rem; font-weight: 800; letter-spacing: .045em; text-decoration: none; transition: background .2s ease, color .2s ease, padding .2s ease; }
.sidebar-standards a:hover { padding-left: 17px; color: #fff; background: #1261d6; }
@media (max-width: 768px) { .sidebar-standards { top: auto; bottom: 14px; left: 8px; width: 105px; transform: none; } .sidebar-standards p { padding: 9px 10px 7px; } .sidebar-standards p span { font-size: .52rem; } .sidebar-standards p strong { font-size: .75rem; } .sidebar-standards a { display: none; } }

/* Homepage product overview: each material line is a balanced, single-row catalogue. */
.home-product-section { margin-bottom: 42px !important; }
.home-product-section:last-child { margin-bottom: 0 !important; }
.home-product-section h3 { display: flex; align-items: center; gap: 10px; }
.home-product-section h3::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .18; }
.home-product-section .product-detail-grid { gap: 16px; }
.home-product-section--five .product-detail-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-product-section--four .product-detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-product-section .product-detail-card { display: flex; min-width: 0; flex-direction: column; border-color: #d8e4ee; background: #fff; box-shadow: none; }
.home-product-section .product-detail-card:hover { border-color: #1261d6; box-shadow: 0 14px 28px rgba(18,97,214,.12); transform: translateY(-4px); }
.home-product-section .product-detail-card > img { width: 100%; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; }
.home-product-section .product-detail-card > div { display: flex; min-height: 100px; padding: 17px 18px !important; flex: 1; flex-direction: column; justify-content: center; }
.home-product-section .product-detail-card h4 { margin: 0 0 7px; color: #132c49; font-size: .98rem; line-height: 1.2; }
.home-product-section .product-detail-card p { line-height: 1.45; }
@media (max-width: 1100px) { .home-product-section--five .product-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-product-section--four .product-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-product-section--five .product-detail-grid, .home-product-section--four .product-detail-grid { grid-template-columns: 1fr; } }

/* Homepage product catalogue download. */
.catalogue-resource-intro { text-align: center; }
.catalogue-resource-intro .eyebrow, .catalogue-support-card .eyebrow { margin: 0 0 9px; color: #00a8c9; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.catalogue-resource-intro .section-title { margin-bottom: 11px; }
.catalogue-resource-intro .section-subtitle { margin: 0 auto; }
.catalogue-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.catalogue-download-card { display: grid; grid-template-columns: 188px minmax(0, 1fr); overflow: hidden; border: 1px solid #cddfed; background: #fff; box-shadow: 0 16px 34px rgba(18,97,214,.08); }
.catalogue-cover { position: relative; display: flex; min-height: 258px; padding: 24px; overflow: hidden; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(145deg, #0b1f3a 0%, #1261d6 62%, #00a8c9 100%); }
.catalogue-cover::before, .catalogue-cover::after { position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; content: ''; }
.catalogue-cover::before { top: -88px; right: -72px; }
.catalogue-cover::after { bottom: -120px; left: -76px; }
.catalogue-cover img { position: relative; z-index: 1; width: 56px; height: 56px; object-fit: contain; filter: brightness(1.25) contrast(1.08); }
.catalogue-cover span { position: relative; z-index: 1; font-size: 1.45rem; font-weight: 850; line-height: 1.05; letter-spacing: .05em; }
.catalogue-cover small { position: relative; z-index: 1; color: rgba(255,255,255,.78); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.catalogue-cover--presentation { background: linear-gradient(145deg, #0b1f3a 0%, #0b6f8b 58%, #00a8c9 100%); }
.catalogue-download-content { display: flex; min-width: 0; padding: 27px 30px; flex-direction: column; justify-content: center; }
.catalogue-file-label { margin: 0 0 8px; color: #00a8c9; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.catalogue-download-content h3, .catalogue-support-card h3 { margin: 0; color: #132c49; font-size: 1.45rem; line-height: 1.18; }
.catalogue-download-content > p:not(.catalogue-file-label), .catalogue-support-card > p:not(.eyebrow) { margin: 11px 0 0; color: #5d7591; font-size: .9rem; line-height: 1.65; }
.catalogue-file-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.catalogue-file-meta span { padding: 5px 8px; color: #31506f; border: 1px solid #d3e3f1; background: #f4f9ff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.catalogue-actions { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; flex-direction: column; }
.catalogue-secondary-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.catalogue-actions .btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 17px; font-size: .82rem; }
.catalogue-actions .btn span { font-size: 1.1rem; line-height: .7; }
.catalogue-text-link, .catalogue-support-link { color: #1261d6; font-size: .8rem; font-weight: 800; }
.catalogue-text-link:hover, .catalogue-support-link:hover { color: #00a8c9; }
.catalogue-support-card { display: flex; padding: 28px; border: 1px solid #cddfed; background: #e9f4ff; flex-direction: column; }
.catalogue-support-card h3 { font-size: 1.3rem; }
.catalogue-support-card .catalogue-support-link { margin-top: auto; padding-top: 16px; }
.catalogue-support-card .catalogue-support-link + .catalogue-support-link { margin-top: 0; }
@media (max-width: 820px) { .catalogue-download-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .catalogue-download-card { grid-template-columns: 1fr; } .catalogue-cover { min-height: 190px; } .catalogue-download-content { padding: 24px 20px; } .catalogue-actions { align-items: flex-start; flex-direction: column; gap: 13px; } }
