/* =============================================
   UAVCHIP.com – Platform UI v2.0
   Style: Electronic Component Catalog Platform
   Reference: Mouser / DigiKey / LCSC
   ============================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Colors */
  --navy:      #0d1f38;
  --navy-2:    #122944;
  --navy-3:    #1a3a5c;
  --blue:      #1565c0;
  --blue-light:#1976d2;
  --blue-pale: #e3f0ff;
  --accent:    #f57c00;
  --accent-2:  #e65100;
  --accent-pale:#fff3e0;
  --green:     #2e7d32;
  --green-pale:#e8f5e9;
  --red:       #c62828;
  --red-pale:  #ffebee;
  --yellow:    #f9a825;
  --yellow-pale:#fffde7;

  /* Neutral Palette */
  --gray-50:   #f8f9fa;
  --gray-100:  #f1f3f5;
  --gray-200:  #e9ecef;
  --gray-300:  #dee2e6;
  --gray-400:  #ced4da;
  --gray-500:  #adb5bd;
  --gray-600:  #6c757d;
  --gray-700:  #495057;
  --gray-800:  #343a40;
  --gray-900:  #212529;

  /* Semantic */
  --bg:        #f4f6f9;
  --surface:   #ffffff;
  --border:    #dde3ec;
  --text:      #1e2d40;
  --text-muted:#5f6b7c;
  --link:      #1565c0;

  /* Spacing */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 4px rgba(13,31,56,.08);
  --shadow:    0 2px 10px rgba(13,31,56,.10);
  --shadow-md: 0 4px 20px rgba(13,31,56,.13);

  /* Typography */
  --font:      'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container  { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 56px 0; }
.section-alt { background: var(--surface); }

/* ---------- Top Utility Bar ---------- */
.topbar {
  background: var(--navy);
  color: #8aaabf;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px;
}
.topbar a { color: #8aaabf; transition: color .15s; }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 16px; }

/* ---------- Header / Navbar ---------- */
.header {
  background: var(--surface);
  border-bottom: 2px solid var(--blue);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  height: 64px;
}
.navbar-brand {
  font-size: 24px; font-weight: 900;
  color: var(--navy) !important;
  letter-spacing: .5px; text-decoration: none !important;
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.brand-logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.brand-logo-icon svg { width: 22px; height: 22px; fill: #fff; }
.navbar-brand .brand-text { color: var(--navy); }
.navbar-brand .brand-text em { color: var(--blue); font-style: normal; }

/* Search Bar */
.header-search {
  flex: 1; max-width: 520px;
  display: flex;
  border: 2px solid var(--blue);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.header-search input {
  flex: 1; padding: 9px 14px; border: none; outline: none;
  font-size: 14px; color: var(--text);
  background: var(--surface);
}
.header-search input::placeholder { color: var(--gray-500); }
.header-search-btn {
  background: var(--blue); color: #fff; border: none;
  padding: 0 18px; cursor: pointer; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: background .15s;
  display: flex; align-items: center; gap: 6px;
}
.header-search-btn:hover { background: var(--navy); }
.header-search-btn svg { width: 16px; height: 16px; fill: #fff; }

/* Header Actions */
.header-actions {
  display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0;
}
.header-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; border: none;
  transition: background .15s, color .15s;
  text-decoration: none !important;
}
.header-btn-ghost {
  background: none; color: var(--text);
  border: 1px solid var(--gray-300);
}
.header-btn-ghost:hover { background: var(--gray-100); color: var(--navy); }
.header-btn-primary {
  background: var(--accent); color: #fff;
}
.header-btn-primary:hover { background: var(--accent-2); color: #fff; }
.header-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
  margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); display: block; border-radius: 2px; transition: .25s; }

/* ---------- Navigation Bar (second row) ---------- */
.navbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-inner {
  display: flex; align-items: center; height: 44px; gap: 2px;
}
.navbar-nav { display: flex; align-items: center; height: 100%; gap: 0; }
.navbar-nav > a {
  color: #c0d0e0; padding: 0 14px; height: 44px;
  display: flex; align-items: center; font-size: 13px; font-weight: 600;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
  text-decoration: none !important; white-space: nowrap;
}
.navbar-nav > a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.navbar-nav > a.active { color: #fff; border-bottom-color: var(--accent); }

/* Dropdown menus */
.nav-dropdown { position: relative; height: 44px; display: flex; align-items: center; }
.nav-dropdown > a {
  color: #c0d0e0; padding: 0 14px; height: 44px;
  display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600;
  border-bottom: 3px solid transparent; transition: color .15s, border-color .15s;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
}
.nav-dropdown:hover > a { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 44px; left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px; padding: 8px 0;
  box-shadow: var(--shadow-md);
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 9px 18px; font-size: 13px;
  color: var(--text); border-left: 3px solid transparent;
  transition: background .12s, border-color .12s;
  text-decoration: none !important;
}
.nav-dropdown-menu a:hover {
  background: var(--blue-pale); color: var(--blue);
  border-left-color: var(--blue);
}
.navbar-rfq {
  margin-left: auto;
  background: var(--accent) !important; color: #fff !important;
  border-bottom-color: transparent !important;
  padding: 0 16px !important; height: 32px !important;
  border-radius: var(--radius-sm) !important;
  align-self: center;
  font-weight: 700 !important;
}
.navbar-rfq:hover { background: var(--accent-2) !important; border-bottom-color: transparent !important; }

.caret {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 4px solid currentColor; margin-left: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .navbar-nav, .nav-dropdown {
    display: none;
  }
  .navbar-nav.open { display: flex; flex-direction: column; align-items: flex-start; height: auto; }
  .navbar-nav.open, .navbar-nav.open .nav-dropdown { display: flex; }
  .navbar { position: relative; }
  .navbar-nav {
    position: absolute; top: 44px; left: 0; right: 0;
    background: var(--navy-2); padding: 8px 0 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3); flex-direction: column; height: auto;
  }
  .navbar-nav > a, .nav-dropdown > a { height: auto; padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,.07) !important; }
  .nav-dropdown-menu { position: static; display: none; border: none; background: rgba(0,0,0,.2); box-shadow: none; padding: 0; }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding-left: 36px; color: #aac0d0; }
  .navbar-rfq { margin-left: 20px !important; margin-top: 8px !important; height: 36px !important; }
}

@media (max-width: 860px) {
  .header-search { display: none; }
  .topbar { display: none; }
}

/* ---------- Hero (Platform Edition) ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 55%, #1a4a7a 100%);
  color: #fff;
  padding: 0;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(21,101,192,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245,124,0,.15) 0%, transparent 40%);
}
/* Circuit board pattern overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect x='10' y='10' width='80' height='80' fill='none' stroke='white' stroke-width='0.5'/%3E%3Ccircle cx='10' cy='10' r='2' fill='white'/%3E%3Ccircle cx='90' cy='10' r='2' fill='white'/%3E%3Ccircle cx='10' cy='90' r='2' fill='white'/%3E%3Ccircle cx='90' cy='90' r='2' fill='white'/%3E%3Cline x1='10' y1='50' x2='90' y2='50' stroke='white' stroke-width='0.5'/%3E%3Cline x1='50' y1='10' x2='50' y2='90' stroke='white' stroke-width='0.5'/%3E%3C/svg%3E");
}
.hero-wrapper {
  display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center;
  padding: 72px 0 64px; position: relative; z-index: 1;
}
@media (max-width: 960px) { .hero-wrapper { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 48px; } }
.hero-text {}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,124,0,.15); border: 1px solid rgba(245,124,0,.35);
  color: #ffa040; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-kicker-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
.hero h1 {
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 900; line-height: 1.15; margin-bottom: 18px;
  letter-spacing: -.5px;
}
.hero h1 .h1-accent { color: #5ba4f5; }
.hero h1 .h1-orange { color: #ffa040; }
.hero-desc {
  font-size: 16px; color: #9bb8d4; line-height: 1.8; margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px;
}
.hero-stat {
  flex: 1; text-align: center; padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num { font-size: 26px; font-weight: 900; color: #fff; }
.hero-stat-num span { color: var(--accent); }
.hero-stat-label { font-size: 11px; color: #7090a8; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* Hero search widget */
.hero-search-widget {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.hero-widget-title {
  font-size: 15px; font-weight: 700; color: var(--navy);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.hero-widget-title span { color: var(--blue); }
.hero-search-form { display: flex; flex-direction: column; gap: 10px; }
.hero-search-input {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); outline: none;
  transition: border-color .2s;
}
.hero-search-input:focus { border-color: var(--blue); }
.hero-search-submit {
  width: 100%; padding: 12px; background: var(--blue);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.hero-search-submit:hover { background: var(--navy); }
.widget-tags {
  margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px;
}
.widget-tag {
  display: inline-block; padding: 4px 10px;
  background: var(--blue-pale); color: var(--blue);
  border-radius: 12px; font-size: 11px; font-weight: 600;
  text-decoration: none !important;
  transition: background .15s;
}
.widget-tag:hover { background: var(--blue); color: #fff; }
.widget-divider { width: 100%; text-align: center; font-size: 12px; color: var(--text-muted); margin: 8px 0; }
.widget-rfq-link {
  display: block; text-align: center; padding: 10px;
  background: var(--accent-pale); color: var(--accent);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  text-decoration: none !important; transition: background .15s;
}
.widget-rfq-link:hover { background: var(--accent); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 14px; cursor: pointer; border: none;
  transition: transform .12s, box-shadow .12s, background .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.15); text-decoration: none !important; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-outline-white:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-outline:hover { background: var(--blue-pale); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }

/* ---------- Section Headers ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 800; color: var(--navy); }
.section-head h2::after { content: ''; display: block; width: 40px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 6px; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.section-head a:hover { color: var(--accent); }

/* ---------- Category Cards (Platform style) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  text-align: center; cursor: pointer;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  text-decoration: none !important; display: block;
  position: relative; overflow: hidden;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.cat-tile::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--blue); transform: scaleX(0);
  transform-origin: left; transition: transform .2s;
}
.cat-tile:hover::after { transform: scaleX(1); }
.cat-tile-icon {
  width: 52px; height: 52px; margin: 0 auto 12px;
  background: var(--blue-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cat-tile-icon svg { width: 26px; height: 26px; fill: var(--blue); }
.cat-tile h3 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.cat-tile-count { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* Memory variant: orange accent */
.cat-tile.memory-tile .cat-tile-icon { background: var(--accent-pale); }
.cat-tile.memory-tile .cat-tile-icon svg { fill: var(--accent); }
.cat-tile.memory-tile::after { background: var(--accent); }
.cat-tile.memory-tile:hover { border-color: var(--accent); }

/* ---------- Product Table (Catalog-style) ---------- */
.prod-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prod-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.prod-table thead tr {
  background: var(--navy); color: #fff;
}
.prod-table th {
  padding: 11px 14px; text-align: left; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; white-space: nowrap;
}
.prod-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.prod-table tbody tr:hover td { background: var(--blue-pale); }
.prod-table tbody tr:last-child td { border-bottom: none; }
.prod-table .part-num {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 13px; color: var(--blue);
}
.prod-table .part-num:hover { color: var(--accent); }
.prod-table .part-desc { color: var(--text-muted); font-size: 12.5px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700;
  white-space: nowrap;
}
.badge-green  { background: var(--green-pale); color: var(--green); }
.badge-blue   { background: var(--blue-pale);  color: var(--blue); }
.badge-orange { background: var(--accent-pale);color: var(--accent-2); }
.badge-gray   { background: var(--gray-100);   color: var(--gray-700); }
.badge-red    { background: var(--red-pale);   color: var(--red); }
.badge-dot::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
  padding: 12px 0; font-size: 12.5px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--gray-400); font-size: 11px; }

/* ---------- Page Header (category/product) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 32px 0 28px;
  border-bottom: 3px solid var(--blue);
}
.page-header h1 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900; margin-bottom: 6px; letter-spacing: -.3px;
}
.page-header p { color: #8aacc4; font-size: 14px; max-width: 720px; }
.page-header .breadcrumb { padding: 0 0 12px; }
.page-header .breadcrumb a { color: #6b8fa5; }
.page-header .breadcrumb { color: #6b8fa5; }
.page-header-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap;
}
.page-header-meta span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: #7090a8;
}

/* ---------- Sidebar Layout ---------- */
.layout-sidebar {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}
@media (max-width: 900px) { .layout-sidebar { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 112px; }

.sidebar-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.sidebar-box-head {
  background: var(--gray-50); padding: 11px 16px;
  font-size: 12px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}
.sidebar-box-head svg { width: 14px; height: 14px; fill: var(--blue); flex-shrink: 0; }
.sidebar-links { padding: 6px 0; }
.sidebar-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; font-size: 13px; color: var(--text);
  border-left: 3px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
}
.sidebar-links a:hover { background: var(--blue-pale); color: var(--blue); border-left-color: var(--blue); }
.sidebar-links a.active { background: var(--blue-pale); color: var(--blue); border-left-color: var(--blue); font-weight: 700; }
.sidebar-links a .link-count { font-size: 11px; color: var(--text-muted); background: var(--gray-100); padding: 1px 7px; border-radius: 10px; }
.sidebar-links a.active .link-count { background: var(--blue); color: #fff; }

/* ---------- Filter Bar ---------- */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filter-bar-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-right: 4px; }
.filter-input {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text); outline: none; transition: border-color .15s;
  background: var(--gray-50);
}
.filter-input:focus { border-color: var(--blue); background: var(--surface); }
.filter-input-main { width: 280px; }
.filter-select { padding: 7px 28px 7px 10px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.filter-count { margin-left: auto; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff; padding: 64px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; opacity: .04;
  background: repeating-linear-gradient(45deg, #fff 0, #fff 1px, transparent 0, transparent 50%) 0/20px 20px;
}
.cta-banner-inner { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 900; margin-bottom: 12px; }
.cta-banner p { color: #8aacc4; margin-bottom: 28px; max-width: 540px; margin-left: auto; margin-right: auto; font-size: 15px; }
.cta-banner .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-items {
  display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 16px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--navy);
}
.trust-item-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-item-icon svg { width: 18px; height: 18px; fill: var(--blue); }
.trust-item-text small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; }

/* ---------- Blog Cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card-img {
  height: 140px;
  background: linear-gradient(135deg, var(--navy-2), var(--blue));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.blog-card-img-label {
  font-size: 28px; font-weight: 900; color: rgba(255,255,255,.15);
  text-transform: uppercase; letter-spacing: 4px;
}
.blog-card-tag {
  position: absolute; top: 12px; left: 12px;
  display: inline-block; padding: 3px 10px;
  background: var(--accent); color: #fff;
  border-radius: 12px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.blog-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.4; flex: 1; }
.blog-card h3 a { color: inherit; transition: color .15s; }
.blog-card h3 a:hover { color: var(--blue); text-decoration: none; }
.blog-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.blog-card-meta { font-size: 12px; color: var(--text-muted); padding-top: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.blog-card-meta-read { display: flex; align-items: center; gap: 5px; }

/* ---------- Spec Table ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--gray-200); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  padding: 10px 16px; text-align: left; font-size: 13px; font-weight: 700;
  color: var(--text-muted); background: var(--gray-50); width: 200px;
  white-space: nowrap;
}
.spec-table td { padding: 10px 16px; font-size: 13.5px; color: var(--text); font-weight: 600; }
.spec-table tr:hover th, .spec-table tr:hover td { background: var(--blue-pale); }

/* ---------- RFQ / Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.form-card-head {
  background: var(--navy); color: #fff; padding: 14px 22px;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.form-card-head svg { width: 18px; height: 18px; fill: #fff; opacity: .8; }
.form-card-body { padding: 24px; }
.rfq-table { width: 100%; border-collapse: collapse; }
.rfq-table th {
  background: var(--gray-50); padding: 9px 12px;
  font-size: 12px; font-weight: 700; color: var(--navy);
  text-align: left; border: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .3px;
}
.rfq-table td { border: 1px solid var(--border); padding: 8px 10px; vertical-align: middle; }
.rfq-table tr:hover td { background: var(--blue-pale); }
.rfq-input {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text); outline: none;
  transition: border-color .15s;
  background: var(--surface);
}
.rfq-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
.rfq-del-btn {
  padding: 4px 10px; background: none; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--red);
  font-size: 12px; font-weight: 700; transition: background .12s;
}
.rfq-del-btn:hover { background: var(--red-pale); }
.rfq-add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--blue-pale);
  border: 1px dashed var(--blue); border-radius: var(--radius-sm);
  color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.rfq-add-btn:hover { background: var(--blue); color: #fff; }
.form-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 5px; display: block; }
.form-input, .form-textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text); outline: none;
  transition: border-color .15s; font-family: var(--font);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-input:focus, .form-textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }
.required { color: var(--red); }
.form-section-title {
  font-size: 13px; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .5px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}

/* ---------- Expand/Collapse (category table) ---------- */
.expand-btn {
  background: none; border: none; color: var(--blue); cursor: pointer;
  font-size: 12px; font-weight: 700; padding: 3px 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-300);
  display: inline-flex; align-items: center; gap: 4px;
  transition: background .12s, color .12s;
}
.expand-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.expand-row { display: none; }
.expand-row.open { display: table-row; }
.expand-detail { padding: 14px 16px; background: var(--gray-50); border-top: 1px solid var(--border); }
.expand-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.expand-detail-item { }
.expand-detail-item dt { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.expand-detail-item dd { font-size: 13px; font-weight: 600; color: var(--navy); margin: 0; }

/* ---------- Catalog Table (full cat page) ---------- */
.cat-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px;
}
.cat-table thead tr { background: var(--navy); }
.cat-table th {
  padding: 11px 14px; color: #c8d6e5;
  font-size: 11.5px; font-weight: 700; text-align: left;
  text-transform: uppercase; letter-spacing: .4px;
  position: sticky; top: 108px; z-index: 5; white-space: nowrap;
}
.cat-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.cat-table tr:hover td { background: var(--blue-pale); }
.cat-table tr:last-child td { border-bottom: none; }
.part-link { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--blue); }
.part-link:hover { color: var(--accent); text-decoration: none; }
.expand-detail-row td { background: #f8fafc; padding: 0; border-bottom: 2px solid var(--blue-pale) !important; }
.expand-detail-inner {
  padding: 16px 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
  border-left: 4px solid var(--blue);
}
.expand-detail-inner dt { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.expand-detail-inner dd { font-size: 13.5px; font-weight: 700; color: var(--navy); margin: 0 0 0; }

/* ---------- Footer ---------- */
.footer { background: #07121f; color: #6b7d8e; }
.footer-top { padding: 32px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-logo { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: .5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-brand-logo em { color: #5ba4f5; font-style: normal; }
.footer-brand-icon { width: 26px; height: 26px; background: var(--blue); border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.footer-brand-icon svg { width: 15px; height: 15px; fill: #fff; }
.footer-desc { font-size: 12px; line-height: 1.65; color: #4a5e6e; margin-bottom: 10px; }
.footer-contact-list { font-size: 12px; line-height: 1.9; }
.footer-contact-list a { color: #7090a8; transition: color .15s; }
.footer-contact-list a:hover { color: #fff; }
.footer-col-title { font-size: 11px; font-weight: 800; color: #a0b4c4; text-transform: uppercase; letter-spacing: .7px; margin-bottom: 10px; }
.footer-col a { display: block; font-size: 12.5px; color: #5a7080; margin-bottom: 7px; transition: color .15s; }
.footer-col a:hover { color: #b0c4d0; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid #0e2030; padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 12px; color: #3a5060;
}
.footer-bottom a { color: #3a5060; }
.footer-bottom a:hover { color: #7090a8; }
.footer-bottom-links { display: flex; gap: 16px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.font-mono { font-family: var(--font-mono); }

/* ---------- Responsive Utilities ---------- */
@media (max-width: 600px) {
  .hero-wrapper { padding: 48px 0 40px; }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 8px; }
  .hero-stat-num { font-size: 20px; }
}

/* Coming-soon placeholder (links to unbuilt pages) */
.chip-link-soon {
  color: #4a6070;
  cursor: default;
  font-size: inherit;
}
.chip-link-soon::after {
  content: " ·";
  color: #2a3a48;
  font-size: 10px;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: #0b1f3a;
}

/* Track — stack slides absolutely */
.hs-track {
  position: relative;
  width: 100%;
}

/* Individual slide */
.hs-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
  z-index: 0;
}
.hs-slide--active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Background photo */
.hs-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 8s ease;
}
.hs-slide--active .hs-bg {
  transform: scale(1);
}

/* Dark overlay for text legibility */
.hs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5,15,30,.88) 0%,
    rgba(5,15,30,.75) 40%,
    rgba(5,15,30,.45) 70%,
    rgba(5,15,30,.3) 100%
  );
  z-index: 1;
}

/* Inner layout: text + widget */
.hs-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 64px;
  align-items: center;
  padding: 72px 0 64px;
  min-height: 560px;
}
@media (max-width: 1024px) {
  .hs-inner { grid-template-columns: 1fr 340px; gap: 40px; }
}
@media (max-width: 900px) {
  .hs-inner { grid-template-columns: 1fr; min-height: auto; padding: 52px 0 44px; }
  .hs-inner .hero-search-widget { display: none; } /* hide widget on mobile to save space */
}

/* Kicker badge */
.hs-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,124,0,.15); border: 1px solid rgba(245,124,0,.35);
  color: #ffa040; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hs-kicker-dot {
  width: 6px; height: 6px;
  background: #e67e22; border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Title */
.hs-title {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900; line-height: 1.15;
  color: #fff; margin-bottom: 18px; letter-spacing: -.5px;
}
.hs-accent { color: #5ba4f5; }
.hs-orange  { color: #ffa040; }

/* Description */
.hs-desc {
  font-size: 16px; color: #9bb8d4;
  line-height: 1.8; margin-bottom: 32px; max-width: 560px;
}

/* Action buttons */
.hs-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Stats row */
.hs-stats {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 28px;
}
.hs-stat {
  flex: 1; text-align: center; padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hs-stat:last-child { border-right: none; }
.hs-stat-num { font-size: 26px; font-weight: 900; color: #fff; }
.hs-stat-num span { color: var(--accent); font-size: 18px; }
.hs-stat-label { font-size: 11px; color: #7090a8; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* Prev / Next arrows */
.hs-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.hs-arrow:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-50%) scale(1.08);
}
.hs-arrow svg { width: 20px; height: 20px; }
.hs-prev { left: 20px; }
.hs-next { right: 20px; }
@media (max-width: 600px) {
  .hs-prev { left: 10px; }
  .hs-next { right: 10px; }
  .hs-arrow { width: 36px; height: 36px; }
}

/* Dot indicators */
.hs-dots {
  position: absolute;
  bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 8px; align-items: center;
}
.hs-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.35);
  border: none; border-radius: 50%; cursor: pointer;
  transition: background .2s, transform .2s, width .3s;
  padding: 0;
}
.hs-dot--active {
  background: #e67e22;
  width: 24px;
  border-radius: 4px;
}
.hs-dot:hover:not(.hs-dot--active) {
  background: rgba(255,255,255,.6);
}
