/* Jingzao (Jinan) Engineering Materials Co., Ltd. — Industrial B2B Design System */
:root {
  --navy: #0c2340;
  --navy-deep: #07172b;
  --cobalt: #006dc2;
  --cobalt-dark: #005499;
  --sky: #0ea5e9;
  --ice: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --muted-light: #64748b;
  --border: #dce4ee;
  --border-strong: #c3d1e2;
  --success: #15803d;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 1200px;
  --shadow-sm: 0 2px 10px rgba(12, 35, 64, 0.05);
  --shadow-md: 0 10px 28px rgba(12, 35, 64, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--ice);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cobalt);
  text-decoration: none;
}

a:hover {
  color: var(--cobalt-dark);
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

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

/* Top Utility Bar */
.topbar {
  background: var(--navy-deep);
  color: #cbd5e1;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 8px 0;
}

.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.topbar a {
  color: #e2e8f0;
  font-weight: 500;
}

.topbar a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(12, 35, 64, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-light);
}

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

.main-nav a {
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: #e9f2fc;
  color: var(--cobalt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-inline {
  position: relative;
  display: flex;
  align-items: center;
}

.search-inline input {
  width: 195px;
  padding: 7px 32px 7px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  background: var(--surface-alt);
  color: var(--text);
  transition: width 160ms ease, border-color 160ms ease;
}

.search-inline input:focus {
  width: 240px;
  outline: none;
  border-color: var(--cobalt);
  background: #ffffff;
}

.search-inline button {
  position: absolute;
  right: 4px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.85rem;
}

.search-results-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  max-height: 360px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 80;
}

.search-results-pop.open {
  display: block;
}

.search-results-pop a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--text);
}

.search-results-pop a:last-child {
  border-bottom: none;
}

.search-results-pop a:hover {
  background: var(--ice);
}

.search-results-pop .sr-cat {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, transform 150ms ease, border-color 150ms ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cobalt);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--cobalt-dark);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--navy);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--ice);
  color: var(--navy);
}

.btn-whatsapp {
  background: #16a34a;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #15803d;
  color: #ffffff;
}

.btn-sm {
  padding: 8px 13px;
  font-size: 0.84rem;
}

.nav-toggle {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

/* Hero Banner */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #123a63 100%);
  color: #ffffff;
  padding: 46px 0 42px;
  border-bottom: 4px solid var(--cobalt);
}

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

.hero-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.03rem;
  color: #cbd5e1;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.spec-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.spec-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.spec-pill strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #ffffff;
}

.spec-pill span {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  background: #0a1b30;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media-cap {
  padding: 12px 16px;
  background: rgba(7, 23, 43, 0.92);
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Inner Page Header / Breadcrumb */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #12385e 100%);
  color: #ffffff;
  padding: 32px 0 28px;
  border-bottom: 3px solid var(--cobalt);
}

.breadcrumb {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.22;
  color: #ffffff;
}

.page-hero p {
  margin: 0;
  color: #cbd5e1;
  max-width: 72ch;
  font-size: 0.98rem;
}

/* Sections & Grids */
.section {
  padding: 44px 0;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
  font-size: 0.94rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #aac3de;
}

.card-media {
  position: relative;
  background: #edf2f7;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-media.contain img {
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 4px;
  background: #e8f2fc;
  color: var(--cobalt-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--navy);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--cobalt);
}

.card-desc {
  margin: 0 0 14px;
  font-size: 0.89rem;
  color: var(--muted);
  flex: 1;
}

.card-foot {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--cobalt);
  color: #ffffff;
  border-color: var(--cobalt);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

table.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

table.spec-table th,
table.spec-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

table.spec-table th {
  background: #eef3f9;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

table.spec-table tr:last-child td {
  border-bottom: none;
}

table.spec-table tbody tr:nth-child(even) {
  background: #fafcfe;
}

code.mono {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: #e9f1fa;
  color: var(--navy);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Detail Page Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  align-items: start;
}

.prose-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.prose-card h2 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
  color: var(--navy);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.prose-card p {
  margin: 0 0 12px;
  color: #1e293b;
}

.prose-card ul,
.prose-card ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.prose-card li {
  margin-bottom: 6px;
  color: #1e293b;
}

.gallery-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.gallery-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item.contain img {
  object-fit: contain;
  padding: 8px;
}

.gallery-item figcaption {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

/* Sidebar + RFQ Card */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 88px;
}

.rfq-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--cobalt);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.rfq-box h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--navy);
}

.rfq-box p.rfq-sub {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 11px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0, 109, 194, 0.12);
}

.rfq-status {
  margin-top: 14px;
  display: none;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.86rem;
}

.rfq-status.ok {
  display: block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #14532d;
}

.rfq-status.err {
  display: block;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 12px 15px;
}

.faq-list summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.94rem;
}

.faq-list details p {
  margin: 10px 0 0;
  font-size: 0.89rem;
  color: var(--muted);
}

/* Callout Banner */
.callout-band {
  background: linear-gradient(120deg, var(--navy) 0%, #0f3663 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.callout-band h2,
.callout-band h3 {
  margin: 0 0 6px;
  color: #ffffff;
}

.callout-band p {
  margin: 0;
  color: #cbd5e1;
  max-width: 62ch;
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 44px 0 24px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.85fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

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

.footer-col li {
  margin-bottom: 7px;
  font-size: 0.86rem;
}

.footer-col a {
  color: #cbd5e1;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-qr {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 8px;
  width: 124px;
  text-align: center;
}

.footer-qr img {
  width: 108px;
  height: 108px;
  margin: 0 auto;
}

.footer-qr span {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #93c5fd;
}

/* Floating Quick Action Bar */
.floating-bar {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-bar a,
.floating-bar button {
  box-shadow: 0 6px 18px rgba(7, 23, 43, 0.22);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fb-wa {
  background: #16a34a;
  color: #ffffff;
}

.fb-rfq {
  background: var(--cobalt);
  color: #ffffff;
}

.fb-top {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--border-strong) !important;
}

/* Arrival Search Banner */
.search-arrival {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--cobalt);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0 0;
  font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .sidebar-stack {
    position: static;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-inline input {
    width: 150px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    z-index: 70;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px 12px;
  }
  .search-inline {
    display: none;
  }
  .spec-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar-tagline,
  .wa-ext {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
    font-size: 0.76rem;
    padding: 6px 0;
  }
  .container {
    padding: 0 15px;
  }
  .hero {
    padding: 32px 0 28px;
  }
  .section {
    padding: 32px 0;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-pair,
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .prose-card {
    padding: 18px;
  }
  .floating-bar {
    left: 12px;
    right: 12px;
    bottom: 10px;
    flex-direction: row;
    justify-content: center;
  }
  .floating-bar a,
  .floating-bar button {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  body {
    padding-bottom: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card, .btn {
    transition: none;
  }
}
