@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #F8F5EE;
  --surface: #FFFDF9;
  --surface-alt: #F0EAE0;
  --ink: #13271F;
  --ink-soft: #2C3E35;
  --muted: #5C6861;
  --line: #D8D1C4;
  --line-strong: #B8AE9D;
  --accent: #7C4A2D;
  --accent-hover: #633820;
  --forest: #13271F;
  --forest-deep: #0C1A14;
  --slate-frame: #232625;
  --danger: #8E2B22;
  --success: #1E563B;
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 3px;
  --container: 1220px;
  --shadow-soft: 0 10px 30px rgba(19, 39, 31, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* Containers & Sections */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--surface); }
.section--forest { background: var(--forest); color: #F8F5EE; border-bottom-color: rgba(248, 245, 238, 0.14); }
.section--compact { padding: 48px 0; }

/* Editorial Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.section--forest .eyebrow { color: #D9B99F; }
.section--forest .eyebrow::before { background: #D9B99F; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.22; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 1.4vw, 1.32rem); }
p { margin: 0 0 16px; color: var(--ink-soft); }
.section--forest p { color: rgba(248, 245, 238, 0.82); }
.lead { font-size: 1.08rem; line-height: 1.7; max-width: 64ch; }
.mono { font-family: var(--font-mono); font-size: 0.85em; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 42px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.section-head__copy { max-width: 660px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius); border: 1px solid var(--forest);
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--forest); color: #F8F5EE; }
.btn--primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #FFFDF9; }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--outline { background: transparent; color: var(--forest); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--forest); background: var(--surface); }
.section--forest .btn--outline { color: #F8F5EE; border-color: rgba(248, 245, 238, 0.35); }
.section--forest .btn--outline:hover { background: rgba(248, 245, 238, 0.08); border-color: #F8F5EE; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Top Utility Bar & Sticky Header */
.topbar {
  background: var(--forest); color: rgba(248, 245, 238, 0.85);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 8px 0; border-bottom: 1px solid rgba(248, 245, 238, 0.12);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248, 245, 238, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; border: 1px solid var(--line-strong); object-fit: cover; border-radius: var(--radius); }
.brand__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--forest); letter-spacing: 0.02em; }
.brand__sub { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-size: 14px; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile Drawer */
#mobileNav { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(12, 26, 20, 0.62); }
#mobileNav.is-open { display: flex; justify-content: flex-end; }
.mobile-drawer {
  width: min(340px, 88vw); height: 100%; background: var(--bg);
  border-left: 1px solid var(--line); padding: 24px;
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mobile-drawer__links { display: flex; flex-direction: column; }
.mobile-drawer__links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.05rem; }

/* Archival Media Frames — Strict Image Framing Hygiene */
.photo-frame { align-self: start; border: 1px solid var(--line-strong); background: var(--surface); padding: 8px; border-radius: var(--radius); }
.photo-frame picture { display: flex; flex: 1; width: 100%; }
.photo-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-frame--43 img { aspect-ratio: 4 / 3; }
.photo-frame__caption {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 4px 2px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em;
}

/* Editorial Asymmetric Hero */
.hero { padding: 60px 0 70px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.hero__pillars {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero__pillar { padding: 0 24px; border-right: 1px solid var(--line); }
.hero__pillar:first-child { padding-left: 0; }
.hero__pillar:last-child { padding-right: 0; border-right: 0; }
.hero__pillar-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 0.98rem; color: var(--forest); margin-bottom: 6px; }
.hero__pillar-title svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }
.hero__pillar p { font-size: 14px; margin: 0; color: var(--muted); }

/* Fact Strip */
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.fact-cell { padding: 22px 24px; border-right: 1px solid var(--line); }
.fact-cell:last-child { border-right: 0; }
.fact-cell__val { font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); margin-bottom: 4px; }
.fact-cell__lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* Lookbook Collection Cards */
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.collection-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; align-self: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.collection-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-soft); }
.collection-card__media { border-bottom: 1px solid var(--line); background: var(--surface-alt); }
.collection-card__media picture { display: flex; flex: 1; width: 100%; }
.collection-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collection-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.collection-card__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.collection-card__specs { list-style: none; margin: 6px 0 12px; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.collection-card__link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--forest); }
.collection-card__link:hover { color: var(--accent); }

/* Factory Transparency Spreads & Heritage Craft Timeline */
.split-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.split-spread--reverse .split-spread__media { order: 2; }
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.check-list svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; flex-shrink: 0; }

.timeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.timeline-step { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.timeline-step__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 10px; }

/* Finely Ruled Specification Tables & Article 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: 15px; background: var(--surface); }
.spec-table th, .spec-table td, .b2b-article-body th, .b2b-article-body td, article th, article td {
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); vertical-align: top;
}
.spec-table th:last-child, .spec-table td:last-child, .b2b-article-body th:last-child, .b2b-article-body td:last-child, article th:last-child, article td:last-child { border-right: 0; }
.spec-table thead th, .b2b-article-body thead th, article thead th {
  background: var(--forest); color: #F8F5EE; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
}
.spec-table tbody tr:nth-child(even), .b2b-article-body tbody tr:nth-child(even), article tbody tr:nth-child(even) { background: #FAF7F1; }

/* Interactive Zero-Price Spec Configurator */
#specConfigurator { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr); gap: 32px; align-items: start; }
.cfg-controls { background: var(--surface); border: 1px solid var(--line); padding: 28px; display: grid; gap: 22px; }
.cfg-group__label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chip {
  padding: 9px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.spec-chip:hover { border-color: var(--forest); }
.spec-chip.is-active { background: var(--forest); border-color: var(--forest); color: #F8F5EE; }

.cfg-summary { background: var(--forest); color: #F8F5EE; border: 1px solid var(--forest); padding: 28px; position: sticky; top: 96px; }
.cfg-summary h3 { color: #F8F5EE; margin-bottom: 18px; }
.cfg-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.cfg-metric { padding: 14px; border: 1px solid rgba(248, 245, 238, 0.18); background: rgba(255, 255, 255, 0.03); }
.cfg-metric__lbl { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #D9B99F; margin-bottom: 4px; }
.cfg-metric__val { font-family: var(--font-display); font-size: 1.05rem; color: #FFFDF9; }
.cfg-notes { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid rgba(248, 245, 238, 0.16); border-bottom: 1px solid rgba(248, 245, 238, 0.16); margin-bottom: 20px; font-size: 14px; color: rgba(248, 245, 238, 0.86); }
.cfg-quote-note { font-family: var(--font-mono); font-size: 11px; color: #D9B99F; margin-bottom: 16px; }

/* FAQ Accordion */
.faq-list { max-width: 840px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 0 22px; color: var(--ink-soft); font-size: 15px; max-width: 72ch; }

/* Blog & Article Prose */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.b2b-article-body, article.prose { max-width: 76ch; font-size: 16.5px; line-height: 1.78; }
.b2b-article-body h2, article.prose h2 { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.b2b-article-body h3, article.prose h3 { margin-top: 28px; }
.b2b-article-body ul, .b2b-article-body ol { padding-left: 22px; margin: 0 0 20px; }
.b2b-article-body li { margin-bottom: 8px; }
.b2b-article-body blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--surface); font-family: var(--font-display); font-style: italic; }
.b2b-article-body table, article table { display: block; overflow-x: auto; border: 1px solid var(--line); margin: 24px 0; }
.b2b-article-body table thead, .b2b-article-body table tbody, article table thead, article table tbody { width: 100%; display: table; }

/* Sticky Inquiry / Trade Desk Section */
.rfq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.rfq-aside { position: sticky; top: 96px; }
.rfq-card { background: var(--surface); border: 1px solid var(--line-strong); padding: 32px; border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius); font-size: 15px; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--forest); background: var(--surface); }
.form-error { display: none; margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--danger); background: #FDF2F1; color: var(--danger); font-size: 14px; }
.form-error.is-visible { display: block; }
.form-success { display: none; padding: 20px; border: 1px solid var(--success); background: #EFF7F2; color: var(--success); font-size: 15px; }
.form-success.is-visible { display: block; }

/* Executive Trade-Desk Footer */
.site-footer { background: var(--forest); color: rgba(248, 245, 238, 0.84); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(248, 245, 238, 0.14); }
.footer-col h4 { color: #FFFDF9; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; }
.footer-col a:hover { color: #D9B99F; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; font-family: var(--font-mono); font-size: 11px; color: rgba(248, 245, 238, 0.62); }

/* WhatsApp Modal & Floating CTA */
#waModal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(12, 26, 20, 0.66); align-items: center; justify-content: center; padding: 20px; }
#waModal.is-open { display: flex; }
.wa-modal__dialog { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 28px; position: relative; }
.wa-modal__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px;
  background: var(--forest); color: #F8F5EE; border: 1px solid rgba(248, 245, 238, 0.28);
  border-radius: var(--radius); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 24px rgba(12, 26, 20, 0.24);
}
.wa-float:hover { background: var(--accent); border-color: var(--accent); }
.wa-float svg { width: 17px; height: 17px; }

/* Subtle GDPR Cookie Notice */
#cookieBanner {
  position: fixed; left: 22px; bottom: 22px; z-index: 65; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line-strong); padding: 16px 18px;
  box-shadow: var(--shadow-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px;
}
#cookieBanner.is-hidden { display: none; }
#cookieBanner p { margin: 0; font-size: 13px; line-height: 1.45; }

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero__grid, .split-spread, #specConfigurator, .rfq-grid { grid-template-columns: 1fr; gap: 32px; }
  .split-spread--reverse .split-spread__media { order: 0; }
  .cfg-summary, .rfq-aside { position: static; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-cell:nth-child(2) { border-right: 0; }
  .fact-cell:nth-child(1), .fact-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .timeline-grid, .blog-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .nav-desktop, .header__actions .btn--outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero__pillars, .collection-grid, .timeline-grid, .blog-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero__pillar { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__pillar:last-child { border-bottom: 0; }
  .rfq-card { padding: 22px; }
  #cookieBanner { left: 14px; right: 14px; bottom: 76px; max-width: none; }
  .wa-float { right: 14px; bottom: 14px; padding: 11px 14px; }
}
