@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --surface-alt: #EFECE6;
  --ink: #0E0E0E;
  --ink-soft: #2B2B28;
  --muted: #64635D;
  --line: #DFDDD6;
  --line-strong: #1C1C1A;
  --accent: #B5472A;
  --accent-hover: #963820;
  --accent-soft: rgba(181, 71, 42, 0.09);
  --sage-tint: #E6E8E1;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --container: 1320px;
  --header-h: 72px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Anti-spam honeypot off-screen trap */
.hp-trap {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

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

/* Typography & Studio Craft Labels */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}

h1 { font-size: clamp(2.85rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.08; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.eyebrow, .mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--accent { color: var(--accent); }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: currentColor; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  background: transparent;
  white-space: nowrap;
}

.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #FFF; }
.btn--accent { background: var(--accent); color: #FFF; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 10px 16px; font-size: 0.72rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Header & Mobile Drawer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(246, 246, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#mobileNav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px clamp(20px, 4vw, 36px);
  overflow-y: auto;
}

#mobileNav.is-open { display: flex; flex-direction: column; gap: 20px; }
#mobileNav a {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* Sections & Hairline Rhythm */
.section { padding: clamp(64px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--surface-alt); }
.section--surface { background: var(--surface); }
.section--ink { background: var(--ink); color: var(--bg); border-bottom-color: #262623; }
.section--ink p, .section--ink .eyebrow { color: #C9C7BE; }
.section--ink .eyebrow--accent { color: #E27D60; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.section-head p { max-width: 52ch; font-size: 0.98rem; }

/* Image Framing Hygiene */
.media-frame, .hero-media, .card-media, .story-media {
  position: relative;
  align-self: start;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}

.media-frame--wide, .hero-media { aspect-ratio: 3 / 2; }
.media-frame picture, .hero-media picture, .card-media picture, .story-media picture {
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

.media-frame img, .hero-media img, .card-media img, .story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Editorial Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-h1-accent { color: var(--accent); display: block; }
.hero-lead { font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 50ch; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-frame-wrap { display: flex; flex-direction: column; align-self: start; border: 1px solid var(--line-strong); background: var(--surface); }
.hero-frame-wrap .hero-media { border: 0; }

/* Fact & Certification Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.trust-cell {
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trust-cell:last-child { border-right: 0; }
.trust-val { font-family: var(--font-display); font-size: clamp(1.85rem, 3vw, 2.5rem); font-weight: 800; line-height: 1; }
.trust-lbl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.cert-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cert-chip {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Asymmetric Lookbook Mosaic & Product Cards */
.lookbook-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.product-card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.product-card:hover { border-color: var(--ink); }
.product-card--wide { grid-column: span 7; }
.product-card--tall { grid-column: span 5; }
.product-card .card-media { border: 0; border-bottom: 1px solid var(--line); }

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.card-spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* Interactive Spec & Lead-Time Configurator */
#specConfigurator {
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.cfg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  align-items: start;
}

.cfg-panel { padding: clamp(24px, 3.5vw, 40px); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; }
.cfg-group-title { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cfg-options { display: flex; flex-wrap: wrap; gap: 10px; }

.cfg-btn {
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cfg-btn:hover { border-color: var(--ink); }
.cfg-btn.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cfg-summary-card { padding: clamp(24px, 3.5vw, 40px); background: var(--surface-alt); display: flex; flex-direction: column; gap: 20px; height: 100%; }
.cfg-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cfg-metric { background: var(--surface); border: 1px solid var(--line); padding: 14px 16px; }
.cfg-metric-val { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--accent); margin-top: 4px; }
.cfg-note-box { background: var(--surface); border-left: 3px solid var(--accent); padding: 14px 16px; font-size: 0.88rem; }
.cfg-quote-tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink); padding: 10px 12px; border: 1px dashed var(--line-strong); background: var(--surface); }

/* Factory Transparency, Split Editorial & Process */
.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-step {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--accent); }

/* Spec & Comparison Tables + Article Prose Tables */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }

.spec-table, .b2b-article-body table, article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}

.spec-table th, .spec-table td,
.b2b-article-body table th, .b2b-article-body table td,
article table th, article table td {
  padding: 13px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table thead th,
.b2b-article-body table thead th,
article table thead th {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-table tbody tr:nth-child(even),
.b2b-article-body table tbody tr:nth-child(even),
article table tbody tr:nth-child(even) { background: var(--bg); }

/* FAQ Accordion */
.faq-list { max-width: 860px; border-top: 1px solid var(--line-strong); }

details.faq-item { border-bottom: 1px solid var(--line); background: var(--surface); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent); }
details.faq-item[open] summary::after { content: '—'; }
details.faq-item .faq-answer { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.96rem; }

/* Blog Cards & Article Prose */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.blog-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.blog-card .card-media { border: 0; border-bottom: 1px solid var(--line); }

.b2b-article-body { max-width: 78ch; font-size: 1.02rem; line-height: 1.75; }
.b2b-article-body h2 { margin: 2.4rem 0 0.9rem; font-size: clamp(1.65rem, 2.8vw, 2.3rem); }
.b2b-article-body h3 { margin: 1.8rem 0 0.7rem; font-size: 1.35rem; }
.b2b-article-body ul, .b2b-article-body ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.b2b-article-body li { margin-bottom: 0.45rem; }
.b2b-article-body blockquote {
  margin: 1.6rem 0;
  padding: 16px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  font-style: normal;
}

/* Sticky Inquiry / RFQ Section */
.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4.5vw, 56px);
  align-items: start;
}

.rfq-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rfq-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.form-error {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.88rem;
  display: none;
}

.form-error.is-visible { display: block; }

#rfqSuccess, #waSuccess {
  display: none;
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  background: var(--sage-tint);
  font-size: 0.94rem;
}

#rfqSuccess.is-visible, #waSuccess.is-visible { display: block; }

/* Footer */
.site-footer { background: var(--ink); color: var(--bg); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; padding-bottom: 40px; border-bottom: 1px solid #2A2A27; }
.footer-title { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9F9D95; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; color: #DFDDD6; }
.footer-links a:hover { color: #FFF; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-family: var(--font-mono); font-size: 0.72rem; color: #9F9D95; }

/* WhatsApp Modal, Floating CTA & GDPR Cookie Notice */
#waModal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 14, 14, 0.72);
}

#waModal.is-open { display: flex; }

.modal-dialog {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wa-float:hover { background: var(--accent); border-color: var(--accent); color: #FFF; }

#cookieBanner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 75;
  max-width: 420px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
}

#cookieBanner.is-hidden { display: none; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .cfg-grid, .editorial-split, .rfq-layout { grid-template-columns: 1fr; }
  .cfg-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-cell:nth-child(2) { border-right: 0; }
  .trust-cell:nth-child(1), .trust-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .product-card, .product-card--wide, .product-card--tall { grid-column: span 6; }
  .process-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rfq-aside { position: static; }
}

@media (max-width: 720px) {
  .nav-links, .header-actions .btn--outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .trust-strip, .process-grid, .blog-grid, .rfq-form, .footer-grid, .cfg-metric-grid { grid-template-columns: 1fr; }
  .trust-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-card, .product-card--wide, .product-card--tall { grid-column: span 12; }
  .b2b-article-body table, article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #cookieBanner { left: 16px; right: 16px; bottom: 76px; max-width: none; flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; }
}
