@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;500;600&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #F7F4EE;
  --surface: #EFEAE0;
  --surface-alt: #FBF9F5;
  --ink: #171311;
  --ink-soft: #3D3631;
  --muted: #6E655D;
  --line: #DCD4C7;
  --line-strong: #BFB5A6;
  --accent: #8B6B4A;
  --accent-dark: #6E5337;
  --accent-tint: rgba(139, 107, 74, 0.08);
  --danger: #8E3228;
  --ok: #2E5A44;
  --font-display: 'Cormorant Garamond', 'Noto Sans Arabic', Georgia, serif;
  --font-body: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans Arabic', monospace;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-py: clamp(72px, 8.5vw, 120px);
  --radius: 0px;
}

*, *::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: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  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; }

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

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section-py); border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }
.section--surface { background: var(--surface); }
.section--alt { background: var(--surface-alt); }

/* Typography */
.eyebrow, .mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
[dir="rtl"] .eyebrow, [dir="rtl"] .mono-label { letter-spacing: 0.04em; }

h1, h2, h3, .display-title {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(2.15rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); }
p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--split {
  max-width: none;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

/* Buttons — crisp Milanese rectilinear buttons, zero pill clutter */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--surface-alt); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--surface-alt); }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--sm { padding: 9px 16px; font-size: 12.5px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 238, 0.94);
  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: 76px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-mark img { width: 34px; height: 34px; object-fit: cover; border: 1px solid var(--line-strong); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 55;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; flex-direction: column; gap: 18px; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* Hero — Architectural Asymmetrical Split */
.hero {
  padding-block: clamp(44px, 6vw, 88px);
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: grid; gap: 22px; align-content: start; }
.hero-copy h1 em, .hero-copy h1 .accent { font-style: italic; color: var(--accent); }
.hero-lead { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--ink-soft); max-width: 56ch; }
.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: 12px;
  color: var(--muted);
}

/* Strict Image Framing Hygiene — zero blank filler boxes */
.media-frame {
  align-self: start;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame picture { width: 100%; height: 100%; display: flex; flex: 1; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* Trust & Fact Strip */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.fact-cell {
  padding: 24px 20px;
  border-inline-end: 1px solid var(--line);
  display: grid;
  gap: 6px;
}
.fact-cell:last-child { border-inline-end: 0; }
.fact-val { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.95rem); color: var(--ink); line-height: 1.1; }
.fact-lbl { font-size: 12.5px; color: var(--muted); }

/* Editorial Lookbook & Product Catalog Grid */
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.lookbook-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.lookbook-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.lookbook-card__specs {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* Alternating Editorial Spreads (Factory / QC / Craft) */
.editorial-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.editorial-spread--reverse .editorial-spread__media { order: -1; }
.editorial-spread__body { display: grid; gap: 20px; align-content: start; }

/* Material & Craft Specification Index */
.spec-index { border-top: 1px solid var(--ink); }
.spec-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-row__key { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.spec-row__val { font-size: 14.5px; color: var(--ink); }

/* Zero-Price Interactive Spec Configurator */
.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.cfg-groups { display: grid; gap: 28px; }
.cfg-group { display: grid; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.cfg-group:last-child { border-bottom: 0; padding-bottom: 0; }
.cfg-options { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg-btn {
  padding: 10px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.cfg-btn:hover { border-color: var(--ink); color: var(--ink); }
.cfg-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.cfg-panel {
  position: sticky;
  top: 96px;
  background: var(--surface-alt);
  border: 1px solid var(--ink);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 18px;
}
.cfg-readout { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.cfg-readout-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.cfg-readout-row strong { color: var(--ink); font-weight: 600; }
.cfg-quote-note {
  padding: 12px 14px;
  background: var(--accent-tint);
  border-inline-start: 2px solid var(--accent);
  font-size: 13px;
  color: var(--ink);
}

/* Process Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.timeline-sticky { position: sticky; top: 96px; display: grid; gap: 18px; }
.timeline-steps { display: grid; border-top: 1px solid var(--line); }
.timeline-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* FAQ Accordion */
.faq-list { max-width: 820px; border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); font-size: 18px; color: var(--accent); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 0 22px; color: var(--ink-soft); font-size: 14.5px; }

/* Blog & Article Prose + Responsive Tables */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.blog-card { display: grid; align-content: start; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.b2b-article-body, article.prose { max-width: 78ch; font-size: 15.5px; line-height: 1.82; }
.b2b-article-body h2, article h2 { margin-top: 2.1em; margin-bottom: 0.7em; padding-top: 0.9em; border-top: 1px solid var(--line); }
.b2b-article-body h3, article h3 { margin-top: 1.6em; margin-bottom: 0.55em; }
.b2b-article-body ul, .b2b-article-body ol, article ul, article ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; color: var(--ink-soft); }
.b2b-article-body blockquote, article blockquote {
  margin: 1.5em 0;
  padding: 14px 20px;
  border-inline-start: 2px solid var(--accent);
  background: var(--surface-alt);
  font-style: italic;
}
.table-scroll { width: 100%; overflow-x: auto; margin: 1.6em 0; }
.b2b-article-body table, article table, .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14px;
  background: var(--surface-alt);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.b2b-article-body table thead, article table thead, .data-table thead,
.b2b-article-body table tbody, article table tbody, .data-table tbody { width: 100%; }
.b2b-article-body th, article th, .data-table th,
.b2b-article-body td, article td, .data-table td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.b2b-article-body th, article th, .data-table th {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

/* Sticky Inquiry / RFQ Section */
.rfq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.rfq-sticky { position: sticky; top: 96px; display: grid; gap: 20px; }
.rfq-card {
  background: var(--surface-alt);
  border: 1px solid var(--line-strong);
  padding: clamp(24px, 4vw, 44px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { min-height: 118px; resize: vertical; }
.form-feedback { font-size: 13px; color: var(--danger); min-height: 1.2em; }
.form-success {
  display: none;
  padding: 18px 20px;
  border: 1px solid var(--ok);
  background: rgba(46, 90, 68, 0.06);
  color: var(--ok);
  margin-top: 16px;
}
.form-success.is-visible { display: block; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(56px, 7vw, 88px) 36px;
}
.site-footer p, .site-footer a { color: rgba(247, 244, 238, 0.76); }
.site-footer a:hover { color: var(--bg); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(247, 244, 238, 0.16);
}
.footer-col h3 { color: var(--bg); font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247, 244, 238, 0.56);
}

/* WhatsApp Modal (#waModal.is-open) */
#waModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(23, 19, 17, 0.62);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#waModal.is-open { display: flex; }
.wa-modal-panel {
  width: min(100%, 460px);
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 30px;
  position: relative;
  display: grid;
  gap: 16px;
}
.wa-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 34px;
  height: 34px;
  cursor: pointer;
}

/* Floating WhatsApp CTA */
.wa-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-size: 13px;
  cursor: pointer;
}
.wa-float:hover { background: var(--accent); color: var(--surface-alt); }

/* Subtle GDPR Cookie Notice */
#cookieBanner {
  position: fixed;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 75;
  max-width: 420px;
  background: var(--surface-alt);
  border: 1px solid var(--line-strong);
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
#cookieBanner.is-hidden { display: none; }

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .nav-links, .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .hero-grid, .editorial-spread, .configurator, .timeline-grid, .rfq-layout { grid-template-columns: 1fr; }
  .editorial-spread--reverse .editorial-spread__media { order: 0; }
  .cfg-panel, .timeline-sticky, .rfq-sticky { position: static; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-cell { border-bottom: 1px solid var(--line); }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .lookbook-grid, .blog-grid, .form-grid, .footer-grid, .spec-row { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-cell { border-inline-end: 0; }
  #cookieBanner { inset-inline: 16px; bottom: 78px; max-width: none; }
}
