/* JINGCHEN Website v16 - Refined Navigation, Updated Brand Tagline, Expanded Core Capabilities & Streamlined Products Page */

:root {
  --jc-ivory: #F6F7F4;
  --jc-graphite: #303733;
  --jc-orange: #FC734D;
  --jc-sage-tint: color-mix(in srgb, #303733 10%, #F6F7F4);
  --jc-sage-subtle: color-mix(in srgb, #303733 4.5%, #F6F7F4);
  --jc-line: color-mix(in srgb, #303733 16%, #F6F7F4);
  --jc-line-strong: color-mix(in srgb, #303733 32%, #F6F7F4);
  --jc-text-muted: color-mix(in srgb, #303733 74%, #F6F7F4);

  --content-width: 1180px;
  --section-space: clamp(56px, 5.2vw, 76px);
  --radius: 3px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--jc-ivory);
  color: var(--jc-graphite);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(var(--content-width), 84%);
  margin-inline: auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--jc-ivory);
  border-bottom: 1px solid var(--jc-line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 40px;
  width: auto;
  max-width: none;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.86rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--jc-text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--jc-graphite);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--jc-orange);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--jc-line-strong);
  background: transparent;
  color: var(--jc-graphite);
  padding: 7px 13px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Typography */
h1, h2, h3, p {
  margin-top: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jc-graphite);
  padding-left: 10px;
  border-left: 2px solid var(--jc-orange);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.05rem, 3.1vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 16px;
  max-width: 680px;
}

.page-title {
  font-size: clamp(1.9rem, 2.8vw, 2.35rem);
}

h2 {
  font-size: clamp(1.42rem, 1.95vw, 1.78rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.38;
  font-weight: 600;
  margin-bottom: 6px;
}

p {
  margin-bottom: 0.9em;
  color: var(--jc-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--jc-graphite);
  max-width: 620px;
}

/* Buttons & Links */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.16s ease;
  cursor: pointer;
}

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

.btn-primary {
  background-color: var(--jc-orange);
  color: var(--jc-graphite);
  border: 1px solid var(--jc-orange);
}

.btn-outline {
  background-color: transparent;
  color: var(--jc-graphite);
  border: 1px solid var(--jc-line-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--jc-graphite);
  border-bottom: 1px solid var(--jc-line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.text-link .arrow {
  color: var(--jc-orange);
  transition: transform 0.2s ease;
}

.text-link:hover {
  border-color: var(--jc-orange);
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

/* Layout & Sections */
.section {
  padding-block: var(--section-space);
}

.section-tint {
  background-color: var(--jc-sage-tint);
}

.section-divider {
  border-top: 1px solid var(--jc-line);
}

.page-header {
  padding-top: clamp(44px, 4.5vw, 64px);
  padding-bottom: clamp(28px, 3vw, 42px);
  border-bottom: 1px solid var(--jc-line);
}

.section-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.split-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* Hero */
.hero {
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(52px, 5.5vw, 78px);
  border-bottom: 1px solid var(--jc-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background-color: var(--jc-orange);
}

/* Photo Frame */
.product-frame {
  background-color: #FFFFFF;
  border: 1px solid var(--jc-line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.hero .product-frame {
  background-color: transparent;
  border: none;
  padding: 0;
  aspect-ratio: 4 / 3;
}

.product-frame-lg {
  aspect-ratio: 4 / 3;
  padding: 16px;
}

.product-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.photo-placeholder {
  text-align: center;
  max-width: 240px;
}

.photo-placeholder-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jc-graphite);
  margin-bottom: 4px;
}

.photo-placeholder-note {
  display: block;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--jc-text-muted);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
}

.rule-item {
  border-top: 1px solid var(--jc-line-strong);
  padding-top: 16px;
}

.item-index {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--jc-text-muted);
  margin-bottom: 8px;
}

/* Compact 2-Column Sub-Block on Products Page */
.sub-block {
  padding-block: clamp(32px, 3.6vw, 48px);
  border-bottom: 1px solid var(--jc-line);
}

.sub-block:first-child {
  padding-top: 0;
}

.sub-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.two-col-block {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 3.8vw, 52px);
  align-items: center;
}

.product-model {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jc-text-muted);
  margin-bottom: 4px;
}

.sku-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--jc-line);
}

.sku-item {
  font-size: 0.88rem;
}

.sku-code {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jc-text-muted);
  margin-bottom: 2px;
}

.sku-desc {
  display: block;
  color: var(--jc-graphite);
  margin-bottom: 6px;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--jc-line);
  vertical-align: top;
  font-size: 0.9rem;
}

.spec-table th {
  width: 40%;
  font-weight: 600;
  color: var(--jc-graphite);
}

.spec-table td {
  color: var(--jc-text-muted);
}

.spec-note {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--jc-line-strong);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--jc-text-muted);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--jc-text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  border-bottom: 1px solid var(--jc-line-strong);
  padding-bottom: 2px;
}

/* Technology Articles */
.article-list {
  display: grid;
  gap: 28px;
}

.article-item {
  border-top: 1px solid var(--jc-line-strong);
  padding-top: 20px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jc-text-muted);
  margin-bottom: 8px;
}

.article-title {
  font-size: 1.24rem;
  line-height: 1.32;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin-bottom: 8px;
}

.article-excerpt {
  font-size: 0.95rem;
  max-width: 680px;
  margin-bottom: 14px;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 1.28rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

.article-body p {
  font-size: 1rem;
  line-height: 1.72;
}


.article-body ul,
.article-body ol {
  margin: 0.6em 0 1.1em 1.35em;
  padding: 0;
  color: var(--jc-text-muted);
}

.article-body li {
  margin-bottom: 0.45em;
  line-height: 1.68;
}

.article-body li strong {
  color: var(--jc-graphite);
}

.article-body h3 {
  font-size: 1.06rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: var(--jc-graphite);
}

/* Contact & Percentage Highlights */
.contact-list {
  display: grid;
  gap: 16px;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jc-text-muted);
  margin-bottom: 3px;
}

.contact-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--jc-graphite);
}

.stat-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--jc-line-strong);
}

.stat-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--jc-graphite);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.84rem;
  color: var(--jc-text-muted);
}

/* Footer */
.site-footer {
  background-color: var(--jc-graphite);
  color: var(--jc-ivory);
  padding-top: 48px;
  padding-bottom: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 0.55fr;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.footer-positioning {
  font-size: 0.84rem;
  color: color-mix(in srgb, #F6F7F4 76%, #303733);
  max-width: 340px;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #F6F7F4 60%, #303733);
  margin-bottom: 12px;
}

.footer-links {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-links a {
  color: color-mix(in srgb, #F6F7F4 85%, #303733);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--jc-orange);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, #F6F7F4 32%, #303733);
  background: transparent;
  color: var(--jc-ivory);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.back-to-top:hover {
  border-color: var(--jc-orange);
  color: var(--jc-orange);
  transform: translateY(-1px);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, #F6F7F4 15%, #303733);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: color-mix(in srgb, #F6F7F4 66%, #303733);
}

/* Responsive */
@media (max-width: 1024px) {
  .container { width: 88%; }
  .nav { gap: 20px; font-size: 0.84rem; }
  .hero-grid, .split-layout, .split-equal, .two-col-block, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sku-strip { grid-template-columns: 1fr; }
  .stat-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-inner { min-height: 68px; }
  .brand-logo { height: 34px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--jc-ivory);
    border-bottom: 1px solid var(--jc-line-strong);
    padding: 18px 6% 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.94rem;
  }
  .nav.open { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 540px) {
  .container { width: 90%; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
