/* PeakLoom — Savile Row Heritage Factory Bespoke Stylesheet */
@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: #FFFFFF;
  --surface-alt: #F1ECE1;
  --ink: #13271F;
  --ink-soft: #2D4037;
  --muted: #616D66;
  --line: #DCD4C4;
  --line-strong: #BFB39C;
  --accent: #7C4A2D;
  --accent-hover: #623920;
  --accent-soft: #EFE4DA;
  --forest: #13271F;
  --forest-deep: #0C1A14;
  --parchment-ink: #F8F5EE;
  --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, monospace;
  --radius: 3px;
  --container: 1200px;
  --space-section: clamp(4rem, 7vw, 6.25rem);
  --transition: 180ms ease;
}

*, *::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.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
  border-bottom: 1px solid var(--line);
}
.section--alt { background: var(--surface-alt); }
.section--dark {
  background: var(--forest);
  color: var(--parchment-ink);
  border-bottom-color: rgba(248, 245, 238, 0.14);
}
.section--dark h2, .section--dark h3 { color: var(--parchment-ink); }
.section--dark p { color: rgba(248, 245, 238, 0.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
}
.section--dark .eyebrow { color: #D7B49A; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.section-head__copy { max-width: 660px; }
.section-head__copy p:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--forest);
  color: var(--parchment-ink);
  border-color: var(--forest);
}
.btn--primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--accent {
  background: var(--accent);
  color: var(--parchment-ink);
  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 { border-color: var(--ink); background: var(--surface); }
.btn--ghost-light {
  background: transparent;
  color: var(--parchment-ink);
  border-color: rgba(248, 245, 238, 0.32);
}
.btn--ghost-light:hover { border-color: var(--parchment-ink); background: rgba(248, 245, 238, 0.08); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.86rem; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 245, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}
.site-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover, .site-nav a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

/* Mobile Drawer */
#mobileNav {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 55;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
#mobileNav.is-open { display: block; }
.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}
.mobile-nav__list a {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.mobile-nav__actions { display: flex; flex-direction: column; gap: 0.75rem; }

/* Image Framing Hygiene */
.photo-frame, .hero-media, .card-media, .spread-media {
  align-self: start;
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.photo-frame, .hero-media, .spread-media { aspect-ratio: 3 / 2; }
.card-media { aspect-ratio: 4 / 3; }
.photo-frame picture, .hero-media picture, .card-media picture, .spread-media picture {
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
}
.photo-frame img, .hero-media img, .card-media img, .spread-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-caption {
  margin-top: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Editorial Hero Spread */
.hero {
  padding-block: clamp(3rem, 6vw, 5.25rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.hero-accent { font-style: italic; color: var(--accent); }
.hero-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Trust & Fact Strip */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.fact-cell {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--line);
}
.fact-cell:last-child { border-right: none; }
.fact-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.fact-lbl {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Lookbook Collection Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--transition);
}
.product-card:hover { border-color: var(--accent); }
.product-card .card-media { margin-bottom: 1.25rem; }
.product-card__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.product-card__specs {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.product-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Interactive Spec Configurator (Zero-Price) */
.cfg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}
.cfg-controls {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.cfg-group__label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.cfg-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.cfg-btn {
  padding: 0.55rem 0.95rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--transition);
}
.cfg-btn:hover { border-color: var(--ink); color: var(--ink); }
.cfg-btn.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--parchment-ink);
}
.cfg-panel {
  position: sticky;
  top: 96px;
  background: var(--forest);
  color: var(--parchment-ink);
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.cfg-panel h3 { color: var(--parchment-ink); margin-bottom: 0.35rem; }
.cfg-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(248, 245, 238, 0.16);
  border-bottom: 1px solid rgba(248, 245, 238, 0.16);
}
.cfg-metric__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D7B49A;
  margin-bottom: 0.25rem;
}
.cfg-metric__val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--parchment-ink);
}
.cfg-notes { display: grid; gap: 0.65rem; font-size: 0.9rem; color: rgba(248, 245, 238, 0.82); margin-bottom: 1.25rem; }
.cfg-summary {
  padding: 0.85rem 1rem;
  background: rgba(248, 245, 238, 0.07);
  border-left: 2px solid #D7B49A;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--parchment-ink);
  margin-bottom: 1.25rem;
}

/* Editorial Spreads & Factory Transparency */
.editorial-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.editorial-spread--reverse .spread-media { order: 2; }
.cert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.cert-chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--ink);
}

/* Heritage Craft Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}
.timeline-step {
  padding: 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline-step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Ruled Specification Tables & Article Prose */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table, .b2b-article-body table, article table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.94rem;
}
.spec-table th, .spec-table td,
.b2b-article-body table th, .b2b-article-body table td,
article table th, article table td {
  padding: 0.85rem 1.05rem;
  text-align: left;
  border: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th,
.b2b-article-body table thead th,
article table thead th {
  background: var(--surface-alt);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.b2b-article-body, article.prose {
  max-width: 74ch;
  font-size: 1.05rem;
  line-height: 1.78;
}
.b2b-article-body h2, article.prose h2 { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.b2b-article-body h3, article.prose h3 { margin-top: 1.75rem; }
.b2b-article-body ul, .b2b-article-body ol { padding-left: 1.35rem; margin-bottom: 1.25rem; color: var(--ink-soft); }
.b2b-article-body blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.35rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-alt);
  font-family: var(--font-display);
  font-style: italic;
}

/* FAQ Accordion */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item__body { padding: 0 0 1.35rem; color: var(--ink-soft); }

/* Sticky Inquiry / Trade Desk Section */
.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}
.rfq-aside { position: sticky; top: 96px; }
.rfq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.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: 1rem;
  padding: 0.75rem 1rem;
  background: #FBF1EE;
  border: 1px solid #C87B68;
  color: #7D2E1D;
  font-size: 0.9rem;
  border-radius: var(--radius);
}
.form-error.is-visible { display: block; }
.form-success {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #EDF4F0;
  border: 1px solid #6E9B84;
  color: var(--forest);
  border-radius: var(--radius);
}
.form-success.is-visible { display: block; }

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

/* Executive Trade-Desk Footer */
.site-footer {
  background: var(--forest);
  color: var(--parchment-ink);
  padding-top: 4.25rem;
  padding-bottom: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.75fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248, 245, 238, 0.14);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #D7B49A;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { font-size: 0.93rem; color: rgba(248, 245, 238, 0.8); }
.footer-col a:hover { color: var(--parchment-ink); text-decoration: underline; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.84rem;
  color: rgba(248, 245, 238, 0.62);
}

/* WhatsApp Modal & Floating CTA */
#waModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(12, 26, 20, 0.66);
}
#waModal.is-open { display: flex; }
.modal-card {
  position: relative;
  width: min(480px, 100%);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2rem;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.2rem;
  background: var(--forest);
  color: var(--parchment-ink);
  border: 1px solid rgba(248, 245, 238, 0.24);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(19, 39, 31, 0.22);
}
.wa-float:hover { background: var(--accent); }

/* GDPR Cookie Notice */
#cookieBanner {
  display: none;
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 75;
  width: min(400px, calc(100% - 3rem));
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(19, 39, 31, 0.14);
}
#cookieBanner.is-visible { display: block; }
#cookieBanner p { font-size: 0.86rem; margin-bottom: 0.85rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .editorial-spread, .cfg-shell, .rfq-layout { grid-template-columns: 1fr; }
  .editorial-spread--reverse .spread-media { order: 0; }
  .cfg-panel, .rfq-aside { position: static; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .site-nav, .header-actions .btn--outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .catalog-grid, .timeline-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .b2b-article-body table, article table { display: block; overflow-x: auto; }
  .wa-float { right: 1rem; bottom: 1rem; padding: 0.68rem 1rem; }
}
