:root {
  --surface: #ffffff;
  --surface-paper: #f6f5f2;
  --surface-ink: #161616;
  --ink: #161616;
  --ink-muted: #5c5b57;
  --ink-on-dark: #f2f1ed;
  --ink-on-dark-muted: #b3b0a8;
  --accent: #183446;
  --accent-hover: #102431;
  --rule: #e4e2dc;
  --rule-dark: #2c2c2a;
  --max-width: 1200px;
}

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

::selection {
  background: var(--accent);
  color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.brand span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

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

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav .nav-cta {
  color: #ffffff;
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 2px;
  font-weight: 500;
}

.main-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

/* Hero */
.hero {
  padding: 48px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.hero-sub {
  padding: 56px 0 64px;
}

.hero-editorial {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.1vw, 3.55rem);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.04rem;
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

.hero-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.83rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.hero-meta-line strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-figure {
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--surface-paper);
}

.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
  margin-top: 12px;
}

/* Sections */
.section {
  padding: 96px 0;
}

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

.section-ink {
  background: var(--surface-ink);
  color: var(--ink-on-dark);
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.section-ink .section-intro {
  border-bottom-color: var(--rule-dark);
}

.section-intro h2 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
}

.section-intro p {
  color: var(--ink-muted);
  max-width: 52ch;
}

.section-ink .section-intro p {
  color: var(--ink-on-dark-muted);
}

/* Catalog Editorial Rows */
.catalog-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 52px 0;
  border-bottom: 1px solid var(--rule);
}

.catalog-row:first-of-type {
  padding-top: 0;
}

.catalog-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.catalog-row-reverse .catalog-media {
  order: 2;
}

.catalog-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--surface-paper);
}

.catalog-body h3 {
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  margin-bottom: 14px;
}

.catalog-body > p {
  color: var(--ink-muted);
  max-width: 54ch;
  margin-bottom: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

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

.spec-table th {
  width: 36%;
  color: var(--ink-muted);
  font-weight: 400;
}

.spec-table td {
  color: var(--ink);
  font-weight: 500;
}

.editorial-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.editorial-link:hover {
  color: var(--ink);
}

/* Trade Line Sheet (for Bling Car Accessories without fake artwork) */
.line-sheet {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 32px;
}

.line-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--ink);
}

.line-sheet-head strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.line-sheet-head span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Process Columns (Dark Atelier Band) */
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.process-grid li {
  border-top: 1px solid var(--rule-dark);
  padding-top: 20px;
}

.process-step-index {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-on-dark-muted);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.process-grid h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: var(--ink-on-dark);
}

.process-grid p {
  font-size: 0.9rem;
  color: var(--ink-on-dark-muted);
}

/* RFQ & Quick Spec Selector */
.rfq-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 64px;
  align-items: start;
}

.rfq-sidebar h2 {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  margin-bottom: 14px;
}

.rfq-sidebar > p {
  color: var(--ink-muted);
  margin-bottom: 28px;
  max-width: 46ch;
}

.selector-panel {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  margin-bottom: 24px;
}

.selector-label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  border-radius: 2px;
  cursor: pointer;
}

.chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.swatch-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(22, 22, 22, 0.22);
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
}

.swatch.active {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.spec-summary {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.spec-summary strong {
  color: var(--ink);
  font-weight: 500;
}

.direct-desk {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.direct-desk a {
  color: var(--ink);
  font-weight: 500;
}

.rfq-form {
  background: var(--surface-paper);
  padding: 36px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rfq-form label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
}

.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d5d2c9;
  border-radius: 2px;
  font: inherit;
  font-size: 0.94rem;
  background: var(--surface);
  color: var(--ink);
}

.rfq-form input::placeholder,
.rfq-form textarea::placeholder {
  color: #66645f;
}

.form-status {
  font-size: 0.88rem;
  color: #166534;
  min-height: 1.3em;
}

.form-status.error {
  color: #b91c1c;
}

/* Subpage Spec Columns */
.sub-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.sub-col {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.sub-col h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.sub-col p {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-muted);
}

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

@media (max-width: 960px) {
  .container {
    padding: 0 20px;
  }

  .hero-editorial,
  .section-intro,
  .catalog-row,
  .rfq-layout,
  .process-grid,
  .sub-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .catalog-row-reverse .catalog-media {
    order: 0;
  }

  .main-nav {
    display: none;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .rfq-form {
    padding: 24px;
  }
}
