@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=Noto+Sans+Arabic:wght@400;500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg: #F8F5EE;
  --surface: #FFFFFF;
  --surface-alt: #EFECE3;
  --surface-tint: #F3EFE6;
  --ink: #13271F;
  --ink-soft: #2C4138;
  --muted: #5F6861;
  --line: #D8D0C0;
  --line-strong: #B6AB95;
  --accent: #7C4A2D;
  --accent-hover: #62381F;
  --accent-soft: #F3E9E0;
  --forest-deep: #0D1C16;
  --brass: #9C7838;
  --danger: #8F2D24;
  --success: #1E5A3E;
  --font-display: 'Libre Baskerville', 'Noto Sans Arabic', Georgia, serif;
  --font-body: 'Source Sans 3', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Noto Sans Arabic', ui-monospace, SFMono-Regular, monospace;
  --radius: 2px;
  --container: 1220px;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --section-pad: clamp(3.5rem, 6.5vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::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.7; text-rendering: optimizeLegibility; }
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-pad); border-bottom: 1px solid var(--line); }
.section--alt { background: var(--surface-alt); }
.section--forest { background: var(--ink); color: var(--bg); border-bottom-color: rgba(248, 245, 238, 0.14); }

/* Typography */
h1, h2, h3, h4 { margin: 0 0 0.75rem; font-family: var(--font-display); font-weight: 700; line-height: 1.24; letter-spacing: -0.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.38; }
h1 { font-size: clamp(2rem, 4.1vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.section--forest p { color: rgba(248, 245, 238, 0.82); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--ink-soft); line-height: 1.75; }
.mono { font-family: var(--font-mono); font-size: 0.84rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--font-body); font-weight: 600; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); flex-shrink: 0; }
.section-head { max-width: 700px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.55rem; border: 1px solid var(--ink); border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn-accent { background: var(--accent); color: var(--bg); 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-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* Header & Mobile Drawer */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(248, 245, 238, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.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-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand-mark img { width: 38px; height: 38px; object-fit: cover; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.nav-links { display: flex; align-items: center; gap: 1.65rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.94rem; font-weight: 600; color: var(--ink-soft); padding-block: 0.3rem; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.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: 0.75rem; }
.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }

#mobileNav { display: none; position: fixed; inset: 76px 0 0 0; z-index: 55; background: var(--bg); border-top: 1px solid var(--line); padding: 2rem var(--gutter); overflow-y: auto; }
#mobileNav.is-open { display: block; }
#mobileNav ul { list-style: none; margin: 0 0 1.75rem; padding: 0; border-top: 1px solid var(--line); }
#mobileNav li { border-bottom: 1px solid var(--line); }
#mobileNav li a { display: block; padding: 1rem 0; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }

/* Archival Image Framing Hygiene */
.photo-frame { align-self: start; display: flex; flex-direction: column; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.photo-frame picture { flex: 1; display: flex; width: 100%; }
.photo-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo-frame--43 img { aspect-ratio: 4 / 3; }
.photo-caption { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 0.7rem; margin-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }

/* Editorial Hero Spread & Ledger */
.hero-section { padding-block: clamp(2.75rem, 5.5vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.hero-copy { padding-top: 0.35rem; }
.hero-accent { color: var(--accent); font-style: italic; }
[dir="rtl"] .hero-accent { font-style: normal; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.65rem 1.4rem; margin: 1.5rem 0 2rem; padding-block: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-soft); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }

.ledger-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-inline: 1px solid var(--line); background: var(--surface); }
.ledger-cell { padding: 1.35rem 1.5rem; border-inline-end: 1px solid var(--line); }
.ledger-cell:last-child { border-inline-end: none; }
.ledger-val { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; color: var(--ink); line-height: 1.2; }
.ledger-lbl { margin-top: 0.35rem; font-size: 0.86rem; color: var(--muted); }

/* Lookbook Collection Cards */
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.collection-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.collection-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.collection-media { align-self: start; width: 100%; border-bottom: 1px solid var(--line); background: var(--surface-tint); }
.collection-media picture { flex: 1; display: flex; width: 100%; }
.collection-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.collection-body { padding: 1.5rem 1.65rem 1.65rem; display: flex; flex-direction: column; flex: 1; }
.collection-tag { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); text-transform: uppercase; margin-bottom: 0.5rem; }
.collection-specs { margin: auto 0 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.86rem; color: var(--muted); }

/* Interactive Spec Configurator (Zero-Price) */
.cfg-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.cfg-group { padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.cfg-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cfg-label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 0.7rem; }
.cfg-options { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.cfg-btn { padding: 0.55rem 1rem; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: background-color 0.18s, color 0.18s, border-color 0.18s; }
.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 { align-self: start; background: var(--surface-alt); border: 1px solid var(--line); padding: 1.65rem; }
.cfg-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.cfg-metric-lbl { font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.cfg-metric-val { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.cfg-note-row { font-size: 0.9rem; color: var(--ink-soft); padding-block: 0.6rem; border-bottom: 1px solid var(--line); }
.cfg-summary { margin: 1rem 0 1.25rem; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 0.9rem 1rem; line-height: 1.6; }
.cfg-quote-note { font-size: 0.82rem; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }

/* Ruled Spec Tables, Factory Split & Timeline */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--surface); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; text-align: start; }
.spec-table th, .spec-table td { padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { background: var(--surface-alt); font-family: var(--font-display); font-size: 0.9rem; color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover { background: var(--surface-tint); }
.spec-table td:first-child { font-weight: 600; color: var(--ink); width: 32%; }

.split-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.check-list { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; border-top: 1px solid var(--line); }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
.check-list li::before { content: ""; width: 8px; height: 8px; margin-top: 0.55rem; background: var(--accent); flex-shrink: 0; }

.timeline-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-inline-start: 1px solid var(--line); }
.timeline-step { padding: 1.6rem 1.35rem; background: var(--surface); border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline-num { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); margin-bottom: 0.8rem; display: block; }

/* FAQ Accordion */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; padding: 1.25rem 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.25rem; font-weight: 400; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 0 1.35rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.75; }

/* Blog Cards & Article Prose Typography */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.blog-card .collection-media img { aspect-ratio: 3 / 2; }
.blog-card-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 0.55rem; }

.b2b-article-body, article.prose { max-width: 78ch; font-size: 1.04rem; line-height: 1.85; color: var(--ink-soft); }
.b2b-article-body h2, article h2 { margin-top: 2.4rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.b2b-article-body h3, article h3 { margin-top: 1.8rem; color: var(--ink); }
.b2b-article-body ul, .b2b-article-body ol, article ul, article ol { margin: 0 0 1.25rem; padding-inline-start: 1.4rem; }
.b2b-article-body li, article li { margin-bottom: 0.45rem; }
.b2b-article-body blockquote, article blockquote { margin: 1.75rem 0; padding: 1rem 1.35rem; border-inline-start: 3px solid var(--accent); background: var(--surface-alt); color: var(--ink); font-family: var(--font-display); }
.b2b-article-body table, article table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 1.75rem 0; background: var(--surface); border: 1px solid var(--line); font-size: 0.92rem; }
.b2b-article-body table thead, article table thead { background: var(--surface-alt); }
.b2b-article-body table th, .b2b-article-body table td, article table th, article table td { padding: 0.85rem 1.05rem; border: 1px solid var(--line); text-align: start; vertical-align: top; min-width: 120px; }
.b2b-article-body table th, article table th { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.b2b-article-body table tbody tr:nth-child(even), article table tbody tr:nth-child(even) { background: var(--surface-tint); }

/* Sticky Executive Trade-Desk Inquiry 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-strong); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 0.78rem 0.95rem; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.95rem; transition: border-color 0.2s, background-color 0.2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-feedback { display: none; margin: 0.5rem 0 1rem; padding: 0.75rem 1rem; font-size: 0.9rem; border: 1px solid var(--danger); background: #FDF3F2; color: var(--danger); }
.form-feedback.is-visible { display: block; }
#rfqSuccess, #waSuccess { display: none; padding: 1.25rem; border: 1px solid var(--success); background: #F1F7F4; color: var(--ink); margin-top: 1rem; }
#rfqSuccess.is-visible, #waSuccess.is-visible { display: block; }
#rfqCode { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }

/* Executive Footer */
.site-footer { background: var(--ink); color: var(--bg); padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.75rem; border-bottom: 1px solid rgba(248, 245, 238, 0.16); }
.footer-title { font-family: var(--font-display); font-size: 1rem; color: var(--bg); margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-links a { font-size: 0.9rem; color: rgba(248, 245, 238, 0.78); }
.footer-links a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { 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.65); }

/* WhatsApp Modal, Floating CTA, Cookie Banner & Honeypot */
#waModal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(13, 28, 22, 0.68); align-items: center; justify-content: center; padding: 1.25rem; }
#waModal.is-open { display: flex; }
.wa-dialog { position: relative; width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line-strong); padding: 2rem; }
.wa-close { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 34px; height: 34px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; }
.wa-float { position: fixed; bottom: 1.35rem; inset-inline-end: 1.35rem; z-index: 70; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.8rem 1.25rem; background: var(--ink); color: var(--bg); border: 1px solid rgba(248, 245, 238, 0.28); border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.wa-float:hover { background: var(--accent); border-color: var(--accent); }

#cookieBanner { position: fixed; bottom: 1.25rem; inset-inline-start: 1.25rem; z-index: 65; max-width: 420px; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.85rem; font-size: 0.85rem; color: var(--ink-soft); }
#cookieBanner.is-hidden { display: none; }
.hp-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

@media (max-width: 1024px) {
  .hero-grid, .split-feature, .cfg-wrap, .rfq-layout { grid-template-columns: 1fr; }
  .rfq-aside { position: static; }
  .ledger-strip, .timeline-grid, .blog-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-cell { border-bottom: 1px solid var(--line); }
}

@media (max-width: 768px) {
  .nav-links, .header-actions .btn-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .collection-grid, .blog-grid, .form-grid, .ledger-strip, .timeline-grid, .footer-grid { grid-template-columns: 1fr; }
  .ledger-cell { border-inline-end: none; }
  #cookieBanner { inset-inline: 1rem; max-width: none; bottom: 4.75rem; }
}
