/* ==========================================================================
   ApexPrecision B2B Industrial Independent Station - Professional Stylesheet
   Benchmark: High-end Global Contract Manufacturers (Protolabs, Star Rapid, Fictiv)
   Eliminates all AI SaaS cliches: Grounded, authentic, engineering-grade design
   ========================================================================== */

:root {
  /* Authentic B2B Industrial Palette */
  --brand-navy: #102a43;       /* Deep corporate navy */
  --brand-navy-dark: #0b1f33;
  --brand-navy-light: #243b53;
  --brand-blue: #0b69a3;       /* Professional industrial blue */
  --brand-blue-hover: #085280;
  --brand-blue-light: #e0f2fe;
  --cta-orange: #d9480f;       /* Pragmatic action color */
  --cta-orange-hover: #bc3e0a;
  --text-heading: #102a43;
  --text-body: #334e68;
  --text-muted: #627d98;
  --text-subtle: #829ab1;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-alt: #f0f4f8;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  --success-green: #0f766e;
  --success-bg: #ccfbf1;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  
  --shadow-subtle: 0 1px 3px 0 rgba(16, 42, 67, 0.08);
  --shadow-card: 0 2px 8px -1px rgba(16, 42, 67, 0.08), 0 1px 3px -1px rgba(16, 42, 67, 0.06);
  --shadow-elevated: 0 8px 24px -4px rgba(16, 42, 67, 0.12), 0 2px 6px -2px rgba(16, 42, 67, 0.08);
  
  --container-width: 1240px;
  --header-height: 72px;
  --topbar-height: 38px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.55;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.icon-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Header & Top Utility Bar (Realistic Global Manufacturing Portal)
   ========================================================================== */

.top-bar {
  background-color: var(--brand-navy);
  color: #bcccdc;
  font-size: 0.8rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #d9e2ec;
}

.top-meta-item a:hover {
  color: #ffffff;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.util-dropdown {
  background-color: transparent;
  color: #d9e2ec;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  cursor: pointer;
  outline: none;
}

.util-dropdown option {
  background: var(--brand-navy);
  color: #ffffff;
}

/* Main Header */
.main-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background-color: var(--brand-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  letter-spacing: -0.05em;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-item {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--brand-navy-light);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-item:hover, .nav-item.active {
  color: var(--brand-blue);
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-blue);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-rfq-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--brand-navy);
  transition: all 0.15s ease;
}

.btn-rfq-cart:hover {
  background: #e2e8f0;
  border-color: var(--border-dark);
}

.rfq-cart-badge {
  background-color: var(--brand-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-xs);
  min-width: 18px;
  text-align: center;
}

.btn-quote-header {
  background-color: var(--cta-orange);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.15s ease;
}

.btn-quote-header:hover {
  background-color: var(--cta-orange-hover);
}

/* ==========================================================================
   Hero Section (Authentic Engineering Direct Manufacturer Layout)
   ========================================================================== */

.hero-wrap {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero-heading {
  font-size: 2.65rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 1.15rem;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--brand-navy-light);
}

.bullet-icon {
  width: 16px;
  height: 16px;
  color: var(--success-green);
  margin-top: 2px;
}

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

.btn-primary-action {
  background-color: var(--cta-orange);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease;
}

.btn-primary-action:hover {
  background-color: var(--cta-orange-hover);
}

.btn-secondary-action {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-medium);
  color: var(--brand-navy);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.btn-secondary-action:hover {
  background-color: #e2e8f0;
  border-color: var(--border-dark);
}

/* Fast Quoting Engine Card (Industrial RFQ Box) */
.hero-quoting-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--brand-navy);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.quoting-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 0.25rem;
}

.quoting-box-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.quoting-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-field-unit {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-label-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy-light);
}

.field-input-control, .field-select-control {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-heading);
  outline: none;
  transition: border-color 0.15s ease;
}

.field-input-control:focus, .field-select-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(11, 105, 163, 0.15);
}

.dropzone-trigger-box {
  border: 1px dashed var(--border-dark);
  background-color: var(--bg-page);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropzone-trigger-box:hover {
  background-color: var(--brand-blue-light);
  border-color: var(--brand-blue);
}

.dropzone-hint-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.dropzone-hint-sub {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.nda-notice-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Trust Bar & Verified Accreditations
   ========================================================================== */

.accreditations-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}

.accreditations-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.accreditation-unit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accreditation-symbol {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-medium);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-navy);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.accreditation-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.2;
}

.accreditation-desc {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Standard Section Shells
   ========================================================================== */

.site-section {
  padding: 4.5rem 0;
}

.section-shaded {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-head-block {
  margin-bottom: 2.75rem;
}

.section-category-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.section-primary-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtext {
  font-size: 0.98rem;
  color: var(--text-body);
  max-width: 720px;
  line-height: 1.6;
}

/* Capabilities Matrix */
.capabilities-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.capability-column {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.capability-column:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-card);
}

.capability-icon-wrap {
  width: 40px;
  height: 40px;
  background-color: var(--brand-blue-light);
  color: var(--brand-blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.capability-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.capability-text {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* ==========================================================================
   Product Catalog & Engineering Specifications
   ========================================================================== */

.catalog-bar-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-medium);
}

.tab-filter-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tab-filter-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-medium);
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all 0.15s ease;
}

.tab-filter-btn:hover, .tab-filter-btn.active {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.search-field-wrapper {
  position: relative;
  width: 280px;
}

.search-field-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  outline: none;
}

.search-field-input:focus {
  border-color: var(--brand-blue);
}

.search-field-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Product Cards Grid */
.products-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-item-card {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-item-card:hover {
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-card);
}

.product-blueprint-canvas {
  height: 170px;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  position: relative;
}

.product-class-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-meta-block {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-discipline {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.product-part-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
  margin-bottom: 0.85rem;
  height: 2.7em;
  overflow: hidden;
}

.spec-data-table {
  width: 100%;
  font-size: 0.78rem;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.spec-data-table tr {
  border-bottom: 1px solid var(--border-light);
}

.spec-data-table td {
  padding: 0.3rem 0;
}

.spec-name-col {
  color: var(--text-muted);
  width: 38%;
}

.spec-val-col {
  font-weight: 600;
  color: var(--brand-navy);
  text-align: right;
  font-family: var(--font-mono);
}

.product-card-controls {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.btn-add-rfq-cart {
  background-color: var(--bg-alt);
  border: 1px solid var(--border-medium);
  color: var(--brand-navy);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-add-rfq-cart:hover {
  background-color: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.btn-view-specs {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.btn-view-specs:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

/* ==========================================================================
   Engineering Workflow & Equipment Capacity Table
   ========================================================================== */

.workflow-stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.workflow-stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--brand-blue);
  border-radius: var(--radius-xs);
  padding: 1.25rem 0.9rem;
  position: relative;
}

.stage-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.35rem;
}

.stage-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.35rem;
}

.stage-summary {
  font-size: 0.76rem;
  color: var(--text-body);
  line-height: 1.45;
}

/* Equipment Table */
.equipment-block {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
}

.table-scroller {
  overflow-x: auto;
}

.standard-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.standard-data-table th {
  background-color: var(--bg-alt);
  color: var(--brand-navy);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--border-medium);
}

.standard-data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
}

.standard-data-table tr:hover td {
  background-color: #fafbfc;
}

/* ==========================================================================
   Plant Metrology, Inspection & Certifications
   ========================================================================== */

.plant-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.plant-photo-frame {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.plant-hero-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.plant-caption-strip {
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.plant-stats-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.plant-stat-tile {
  background-color: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.plant-stat-metric {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.plant-stat-header {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-navy-light);
  margin-bottom: 0.25rem;
}

.plant-stat-detail {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Quality Assurance Gates */
.qa-phase-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.qa-gate-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  position: relative;
}

.qa-gate-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.35rem;
}

.qa-gate-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.75rem;
}

.qa-checkpoints-list {
  font-size: 0.8rem;
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
}

.qa-checkpoints-list li {
  position: relative;
  padding-left: 1.15rem;
}

.qa-checkpoints-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
}

/* Certifications Row */
.certs-display-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.cert-emblem-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cert-emblem-box:hover {
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-card);
}

.cert-sigil {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--brand-navy);
  font-family: var(--font-mono);
}

.cert-designation {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.2rem;
}

.cert-audit-body {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.cert-action-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ==========================================================================
   Technical Articles & Knowledge Base (Google Organic SEO)
   ========================================================================== */

.articles-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.article-entry-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.article-date-stamp {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.article-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.article-excerpt {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.article-footer-cta {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Engineering FAQ Accordion (Clean & Pragmatic)
   ========================================================================== */

.faq-group-stack {
  max-width: 820px;
  margin: 0 auto;
}

.faq-panel {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  margin-bottom: 0.65rem;
}

.faq-toggle-trigger {
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-toggle-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-panel.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

.faq-body-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 1.35rem;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

.faq-panel.active .faq-body-drawer {
  max-height: 300px;
  padding-bottom: 1.15rem;
}

/* ==========================================================================
   Bottom Consolidated Quoting Section
   ========================================================================== */

.rfq-conversion-zone {
  background-color: var(--brand-navy);
  color: #ffffff;
  padding: 4.5rem 0;
}

.rfq-enclosure-box {
  background-color: var(--brand-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 2.75rem;
}

.rfq-enclosure-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.rfq-enclosure-tag {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rfq-enclosure-title {
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.35rem 0 0.5rem;
}

.rfq-enclosure-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.rfq-fields-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.col-span-full {
  grid-column: 1 / -1;
}

.rfq-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rfq-label-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  justify-content: space-between;
}

.rfq-input-control, .rfq-select-control, .rfq-textarea-control {
  background-color: rgba(16, 42, 67, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xs);
  padding: 0.65rem 0.85rem;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.rfq-input-control:focus, .rfq-select-control:focus, .rfq-textarea-control:focus {
  border-color: #60a5fa;
}

.email-domain-tip {
  font-size: 0.72rem;
  color: #fca5a5;
  display: none;
}

.email-domain-tip.visible {
  display: block;
}

.rfq-cad-upload-area {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background-color: rgba(16, 42, 67, 0.4);
  border-radius: var(--radius-xs);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rfq-cad-upload-area:hover, .rfq-cad-upload-area.dragover {
  border-color: #60a5fa;
  background-color: rgba(36, 59, 83, 0.5);
}

.uploaded-file-chips {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.file-chip {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  font-size: 0.73rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.rfq-agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.rfq-agreement-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cta-orange);
  margin-top: 2px;
}

.btn-submit-cad-rfq {
  background-color: var(--cta-orange);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-xs);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease;
}

.btn-submit-cad-rfq:hover {
  background-color: var(--cta-orange-hover);
}

/* ==========================================================================
   Corporate Footer
   ========================================================================== */

.corporate-footer {
  background-color: #0b1f33;
  color: #829ab1;
  padding: 4rem 0 2rem;
  font-size: 0.84rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-column-heading {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-anchors-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-anchors-list a:hover {
  color: #ffffff;
}

.footer-contact-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

/* ==========================================================================
   Modals & Drawers (<dialog closedby="any">)
   ========================================================================== */

dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 90vw;
  margin: auto;
  outline: none;
}

dialog::backdrop {
  background-color: rgba(11, 31, 51, 0.75);
}

.standard-modal-frame {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-elevated);
  max-width: 640px;
  width: 100%;
  position: relative;
}

.modal-close-trigger {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-body);
  transition: all 0.15s ease;
}

.modal-close-trigger:hover {
  background: #e2e8f0;
  color: var(--brand-navy);
}

/* RFQ Basket Drawer */
#rfqDrawer {
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  height: 100vh;
  max-height: 100vh;
  width: 420px;
  max-width: 100vw;
}

.drawer-chassis {
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.drawer-head-strip {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-head-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-navy);
}

.drawer-scroll-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

.rfq-item-row {
  background: var(--bg-alt);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 0.75rem;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.rfq-item-icon-box {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfq-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rfq-item-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.25;
}

.rfq-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
}

.rfq-stepper-input {
  width: 48px;
  padding: 0.2rem 0.3rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  text-align: center;
  font-size: 0.75rem;
}

.drawer-foot-strip {
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--border-medium);
  background: var(--bg-page);
}

/* ==========================================================================
   WhatsApp Floating Hook & Mobile Sticky Bar
   ========================================================================== */

.whatsapp-direct-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 850;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #075e54;
  color: #ffffff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-elevated);
  transition: background-color 0.15s ease;
}

.whatsapp-direct-btn:hover {
  background-color: #128c7e;
}

.mobile-dock-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-medium);
  padding: 0.65rem 1rem;
  z-index: 840;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.mobile-dock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .capabilities-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-stepper {
    grid-template-columns: repeat(3, 1fr);
  }
  .plant-layout-grid {
    grid-template-columns: 1fr;
  }
  .qa-phase-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .certs-display-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-triad-grid {
    grid-template-columns: 1fr;
  }
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .top-bar {
    display: none;
  }
  .hero-heading {
    font-size: 2.1rem;
  }
  .hero-bullets {
    grid-template-columns: 1fr;
  }
  .products-layout-grid {
    grid-template-columns: 1fr;
  }
  .capabilities-columns {
    grid-template-columns: 1fr;
  }
  .workflow-stepper {
    grid-template-columns: 1fr;
  }
  .rfq-fields-matrix {
    grid-template-columns: 1fr;
  }
  .rfq-enclosure-box {
    padding: 1.5rem;
  }
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .whatsapp-direct-btn {
    display: none;
  }
  .mobile-dock-bar {
    display: block;
  }
  body {
    padding-bottom: 4rem;
  }
}
