/* Sarayan — KHOOS Collection website.
   Tokens are taken from the catalog in Figma: white page, Prata + Amiri, khoos maroon. */

/* Guesswhat: the catalog's Arabic display face. Arabic only, so Latin falls through to Prata. */
@font-face {
  font-family: 'Guesswhat';
  src: url('fonts/Guesswhat-Exceptional.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --ink: #000000;
  --paper: #ffffff;
  --muted: #5f5f5f;          /* secondary text, 6.4:1 on white */
  --stone: #7a7a7a;          /* large decorative numerals only */
  --hairline: #d1d1d1;
  --maroon: #460f1d;
  --maroon-hover: #5e1a2e;
  --wine: #290d14;
  --mud: #1f120d;
  --sand: #e8dfd2;
  --sand-soft: #f6f1ea;
  --error: #a3172f;

  --serif: 'Prata', 'Amiri', Georgia, 'Times New Roman', serif;
  --display: 'Prata', 'Guesswhat', 'Amiri', Georgia, serif;   /* headings: Prata for Latin, Guesswhat for Arabic */
  --display-ar: 'Guesswhat', 'Amiri', serif;
  --gutter: clamp(16px, 6.6vw, 128px);
  --max: 1440px;
  --section: clamp(64px, 8vw, 112px);
  --header-h: 76px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden]:not(.toast) { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html[lang='en'] { font-size: 112.5%; }   /* 18px */
html[lang='ar'] { font-size: 125%; }     /* 20px: Amiri reads small at the same size */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
html[lang='ar'] body { line-height: 1.8; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; font-synthesis: none; margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: 28px 0; }

h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.brand { display: inline-flex; color: var(--ink); flex: none; }
.brand svg { height: 38px; width: auto; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.main-nav a { text-decoration: none; font-size: 0.9rem; padding-block: 8px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current='page'] { text-decoration: underline; text-decoration-color: var(--maroon); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { font-size: 0.9rem; text-decoration: none; }
.lang-switch:hover { text-decoration: underline; }
.lang-switch[lang='ar'] { font-family: 'Amiri', serif; font-size: 1rem; }
.lang-switch[lang='en'] { font-family: 'Prata', serif; font-size: 0.8rem; }
.quote-link {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  text-decoration: none; font-size: 0.85rem; white-space: nowrap;
}
.quote-link:hover, .quote-link[aria-current='page'] { border-color: var(--maroon); }
.count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px; background: var(--maroon); color: #fff;
  font-family: 'Prata', serif; font-size: 0.7rem; line-height: 1;
}
.count[data-empty] { background: var(--sand); color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-inline-end: -10px; cursor: pointer; }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 0.9rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-hover); }
.btn-ghost { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-ghost:hover { background: var(--sand-soft); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; }
.text-btn {
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  color: var(--maroon); font-size: 0.85rem;
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px;
}
.text-btn:hover { text-decoration-thickness: 2px; }
.link-arrow { display: inline-block; margin-top: 32px; color: var(--maroon); font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- the catalog name pair: English left, Arabic right ---------- */

.name-pair { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px; }
.name-pair > span { white-space: nowrap; }
.np-en { font-family: 'Prata', serif; letter-spacing: 0.02em; }
.np-ar { font-family: var(--display-ar); font-synthesis: none; font-size: 1.12em; margin-left: auto; } /* physical: the pair is always laid out left to right */

/* ---------- section heads ---------- */

section { padding-block: var(--section); }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding-bottom: 24px; margin-bottom: 48px; border-bottom: 1px solid var(--hairline);
}
.section-other { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.7rem); color: var(--muted); }
.section-other[lang='en'] { font-family: 'Prata', serif; letter-spacing: 0.02em; }
.section-other[lang='ar'] { font-family: var(--display-ar); }

.page-head { padding-block: clamp(48px, 7vw, 96px) 0; }
.page-head + section { padding-top: clamp(40px, 5vw, 64px); }
.page-other { margin-top: 8px; font-family: var(--display); font-size: 1.2rem; color: var(--muted); }
.page-head .lead { margin-top: 24px; }
.lead { max-width: 60ch; font-size: 1.15rem; color: var(--muted); }

/* ---------- hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 900px); padding-block: 96px;
  display: grid; align-items: center;
  color: #fff; text-align: center;
}
.hero::before {
  /* Taller than the hero so the parallax shift (set by app.js as --hero-shift) never shows an edge. */
  content: ''; position: absolute; inset: -30% 0 0; z-index: -2;
  background: var(--bg) center 32% / cover no-repeat;
  translate: 0 var(--hero-shift, 0px);
  will-change: translate;
  animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.5); }
.hero-inner { display: grid; justify-items: center; gap: 28px; animation: rise 1s 0.35s ease-out both; }
.hero-logo { color: #fff; }
.hero-logo svg { width: clamp(200px, 24vw, 300px); height: auto; }
.hero h1 { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.hero-other { color: var(--sand); font-size: 1.05rem; }
.hero-other[lang='ar'] { font-family: var(--display-ar); font-size: 1.35rem; }
.hero .actions { justify-content: center; margin-top: 8px; }
.hero :focus-visible { outline-color: var(--sand); }

@keyframes settle { from { scale: 1.06; } to { scale: 1; } }   /* `scale`, not `transform`, so it doesn't fight the parallax `translate` */
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

/* ---------- spaces ---------- */

.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.space a { display: grid; gap: 10px; text-decoration: none; }
.space-media { display: block; aspect-ratio: 4 / 5; background: var(--sand-soft); overflow: hidden; }
.space-media img { width: 100%; height: 100%; object-fit: contain; padding: 14%; mix-blend-mode: multiply; }
.space-rooms .space-media img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.space-title { font-family: var(--display); font-size: 1.3rem; margin-top: 10px; }
.space-text { color: var(--muted); font-size: 0.95rem; }
.space a:hover .space-title { text-decoration: underline; text-decoration-color: var(--maroon); }

/* ---------- cards ---------- */

.card { position: relative; display: grid; gap: 14px; align-content: start; }
.card-media { display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--hairline); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.card-body { display: grid; gap: 4px; }
.card-title { font-size: 1.05rem; }
.card-title a { display: block; text-decoration: none; }
.card-title a:hover .np-en { text-decoration: underline; text-decoration-color: var(--maroon); }
.card-kind { color: var(--muted); font-size: 0.85rem; }
.card .text-btn { justify-self: start; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 56px 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
.grid .card[hidden] { display: none; }

/* home collection strip */
.strip-head { display: grid; gap: 0; }
.strip-head .section-head { margin-bottom: 24px; }
.strip-head p { max-width: 60ch; color: var(--muted); margin-bottom: 40px; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 21%);
  position: relative; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: max(var(--gutter), (100% - var(--max)) / 2); padding-bottom: 16px;
  scroll-padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--hairline) transparent;
}
.strip .card { scroll-snap-align: start; }

/* ---------- steps ---------- */

.steps-section { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { padding-inline: 32px; border-inline-start: 1px solid var(--hairline); display: grid; align-content: start; gap: 16px; }
.steps li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.step-num { font-family: 'Prata', serif; font-size: clamp(3rem, 2rem + 2.5vw, 4.4rem); line-height: 1; color: var(--stone); }
.steps h3 { font-size: 1.2rem; line-height: 1.4; }
.steps p { color: var(--muted); font-size: 0.95rem; }
.steps-note { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.9rem; }

/* ---------- craft ---------- */

.craft { padding-block: 0; }
.craft-grid { display: grid; grid-template-columns: minmax(0, 880fr) minmax(0, 1040fr); min-height: 640px; }
.craft-media { background: var(--mud); }
.craft-media img { width: 100%; height: 100%; object-fit: cover; }
.craft-text { align-self: center; padding: var(--section) var(--gutter); max-width: 900px; display: grid; gap: 24px; align-content: center; }
.craft-text p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.craft-text .link-arrow { margin-top: 0; }
.craft-text hr { margin: 0; }
.craft-text .desc-other { font-size: 0.95rem; }
.craft-about .craft-text h1 { margin-bottom: 8px; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; isolation: isolate; color: #fff; text-align: center; padding-block: clamp(96px, 12vw, 160px); }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(31, 18, 13, 0.62), rgba(41, 13, 20, 0.9)); }
.cta-inner { display: grid; justify-items: center; gap: 24px; }
.cta-band h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); max-width: 22ch; }
.cta-band p { color: var(--sand); max-width: 52ch; }
.cta-band .actions { justify-content: center; margin-top: 8px; }
.cta-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 24px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.35); min-width: min(400px, 100%); font-family: 'Prata', serif; font-size: 1rem; }
.cta-contact a { text-decoration: none; color: #fff; }
.cta-contact a:hover { text-decoration: underline; }
.cta-band :focus-visible { outline-color: var(--sand); }

/* ---------- footer ---------- */

.site-footer { background: var(--wine); color: var(--sand); padding: 72px 0 32px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand { display: grid; gap: 20px; align-content: start; max-width: 40ch; }
.brand-footer { color: var(--sand); }
.brand-footer svg { height: 44px; }
.site-footer h2 { font-size: 0.95rem; margin-bottom: 16px; color: #fff; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer :focus-visible { outline-color: var(--sand); }
.footer-sign { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(232, 223, 210, 0.22); font-size: 0.8rem; }
.footer-sign [lang='ar'] { font-family: var(--display-ar); font-size: 0.95rem; }

/* ---------- collection page ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--hairline); border-radius: 22px; background: #fff; cursor: pointer; font-size: 0.85rem; }
.chip:hover { border-color: var(--maroon); }
.chip[aria-pressed='true'] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.empty { color: var(--muted); }

/* ---------- product page ---------- */

.product { padding-top: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; color: var(--muted); margin-bottom: 32px; }
.crumbs a { color: var(--muted); }
.product-title { font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem); padding-bottom: 28px; margin-bottom: 48px; border-bottom: 1px solid var(--hairline); }
.product-grid { display: grid; grid-template-columns: minmax(0, 720fr) minmax(0, 823fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
.product-media { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); background: #fff; aspect-ratio: 1; }
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-info .kind { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.product-info .desc { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.75; }
.desc-other { color: var(--muted); font-size: 0.95rem; }
.desc-other[lang='en'] { font-family: 'Prata', serif; font-size: 0.85rem; line-height: 1.8; }
.desc-other[lang='ar'] { font-family: 'Amiri', serif; font-size: 1.05rem; }
.product-info h2 { font-size: 1.15rem; margin: 48px 0 16px; }
.uses { display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { padding: 6px 14px; background: var(--sand-soft); border-radius: 18px; font-size: 0.85rem; }
.specs { margin: 0; border-top: 1px solid var(--hairline); }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.config { margin-top: 56px; padding: clamp(20px, 3vw, 36px); background: var(--sand-soft); border-radius: var(--radius); display: grid; gap: 24px; }
.config h2 { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font-size: 0.9rem; }
.options { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 0.9rem; }
.opt input { width: 18px; height: 18px; accent-color: var(--maroon); margin: 0; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 16px 8px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; text-align: center; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dot { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, 0.15); }
.dot-brand { background: conic-gradient(#6b1a2e, #b5326e, #6a3e8e, #2f6b4f, #d9b422, #d0652c, #6b1a2e); }
.dot-lg { width: 56px; height: 56px; }
.swatch-name { font-size: 0.7rem; line-height: 1.3; color: var(--muted); }
.swatch input:checked + .dot { box-shadow: 0 0 0 3px var(--sand-soft), 0 0 0 5px var(--maroon); }
.swatch input:checked ~ .swatch-name { color: var(--ink); }
.swatch input:focus-visible + .dot { outline: 2px solid var(--maroon); outline-offset: 6px; }

.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; }
.req { color: var(--muted); font-size: 0.75rem; }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; font-size: 0.9rem;
}
textarea { resize: vertical; min-height: 80px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--maroon); outline-offset: 0; border-color: var(--maroon); }
[aria-invalid='true'] { border-color: var(--error) !important; }
.error { color: var(--error); font-size: 0.8rem; min-height: 0; }
.error:empty { display: none; }
.field[data-when-size] { margin-top: 12px; max-width: 320px; }
.add-row { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.add-row .qty { width: 120px; }

.pairs { padding-top: 0; }

/* ---------- solutions ---------- */

.sector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; }
.sector-tile a { display: grid; gap: 10px; text-decoration: none; }
.sector-media { display: block; aspect-ratio: 3 / 2; background: var(--sand-soft); overflow: hidden; }
.sector-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.sector-tile:first-child .sector-media img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.sector-name { font-family: var(--display); font-size: 1.4rem; margin-top: 12px; }
.sector-lead { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.sector-tile a:hover .sector-name { text-decoration: underline; text-decoration-color: var(--maroon); }

.sector-hero { padding-block: clamp(40px, 6vw, 88px) 0; }
.sector-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sector-hero h1 { margin-bottom: 24px; }
.sector-hero-media { aspect-ratio: 4 / 3; background: var(--sand-soft); overflow: hidden; }
.sector-hero-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; }
.sector-hero-media.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }

.pick-list { border-top: 1px solid var(--hairline); }
.pick { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.pick-media { display: block; aspect-ratio: 1; border: 1px solid var(--hairline); background: #fff; }
.pick-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pick-body { display: grid; gap: 6px; }
.pick h3 { font-size: 1.1rem; max-width: 440px; }
.pick h3 a { text-decoration: none; display: block; }
.pick h3 a:hover .np-en { text-decoration: underline; text-decoration-color: var(--maroon); }
.pick p { color: var(--muted); font-size: 0.95rem; }

.expect { padding-top: 0; }
.expect-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; }
.expect-grid dt { font-size: 1.15rem; margin-bottom: 8px; }
html[lang='ar'] .expect-grid dt { font-family: var(--display); }
.expect-grid dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- made to order ---------- */

.colors { background: var(--sand-soft); }
.colors-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.colors-grid h2 { margin-bottom: 20px; }
.colors-grid p { color: var(--muted); max-width: 46ch; }
.color-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 28px 16px; }
.color-list li { display: grid; justify-items: start; gap: 10px; font-size: 0.9rem; }

.faq-list { max-width: 820px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: 'Prata', serif; color: var(--maroon); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 64ch; }

/* ---------- projects, contact ---------- */

.wide-photo { margin: 0 0 40px; aspect-ratio: 21 / 9; overflow: hidden; background: var(--sand-soft); }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.contact-card { display: grid; gap: 8px; padding: 32px; border: 1px solid var(--hairline); border-radius: var(--radius); text-decoration: none; }
a.contact-card:hover { border-color: var(--maroon); }
.contact-label { color: var(--muted); font-size: 0.85rem; }
.contact-value { font-size: 1.25rem; }
.contact-value[dir='ltr'] { font-family: 'Prata', serif; font-size: 1.1rem; }

/* ---------- quote list ---------- */

.quote-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.quote-items h2, .quote-form h2 { font-size: 1.4rem; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.count-inline { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--sand); font-family: 'Prata', serif; font-size: 0.75rem; }
.quote-empty { display: grid; gap: 20px; justify-items: start; padding: 40px 0; border-top: 1px solid var(--hairline); color: var(--muted); }
.lines { border-top: 1px solid var(--hairline); }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px 24px; padding: 24px 0; border-bottom: 1px solid var(--hairline); }
.line-media { aspect-ratio: 1; border: 1px solid var(--hairline); background: #fff; }
.line-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.line-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.line-head a { text-decoration: none; }
.line-name { font-size: 1.15rem; }
.line-kind { color: var(--muted); font-size: 0.8rem; }
.line-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 112px; gap: 12px; margin-top: 16px; }
.line-fields .field-wide { grid-column: 1 / -1; }
.line-fields .field-dims { grid-column: span 2; }
.line-fields label { font-size: 0.75rem; color: var(--muted); }
.line-fields input, .line-fields select, .line-fields textarea { min-height: 42px; padding: 8px 10px; font-size: 0.8rem; }
.line-fields textarea { min-height: 42px; }
.quote-form { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; padding: clamp(20px, 3vw, 36px); background: var(--sand-soft); border-radius: var(--radius); }
.quote-form h2 { margin-bottom: 4px; }
.quote-done { margin-top: 48px; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--maroon); border-radius: var(--radius); background: var(--sand-soft); display: grid; gap: 16px; justify-items: center; text-align: center; }
.quote-done p { color: var(--muted); max-width: 52ch; }
.quote-done .actions { justify-content: center; align-items: center; }
.quote.is-done .quote-grid { display: none; }

/* ---------- khoos guide ---------- */

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.guide-tile a { display: grid; gap: 10px; text-decoration: none; }
.guide-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand-soft); }
.guide-media img { width: 100%; height: 100%; object-fit: cover; }
.guide-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.35; margin-top: 10px; }
.guide-desc { color: var(--muted); font-size: 0.9rem; }
.guide-tile a:hover .guide-name { text-decoration: underline; text-decoration-color: var(--maroon); }
.guides-next { padding-top: 0; }

.guide .page-head h1 { max-width: 24ch; }
.guide-photo { margin: 40px 0 0; aspect-ratio: 21 / 9; overflow: hidden; background: var(--sand-soft); }
.guide-photo img { width: 100%; height: 100%; object-fit: cover; }
.guide-body { max-width: 760px; padding-block: 56px var(--section); }
.guide-body > section + section { margin-top: 48px; }
.guide-body h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); margin-bottom: 16px; }
.guide-body p { font-size: 1.05rem; line-height: 1.85; }
html[lang='ar'] .guide-body p, html[lang='ar'] .guide-body li { line-height: 1.95; }
.guide-body p + p { margin-top: 16px; }
.guide-body ol, .guide-body ul { display: grid; gap: 10px; padding-inline-start: 1.4em; margin-top: 8px; }
.guide-body ol { list-style: decimal; }
.guide-body ul { list-style: disc; }
.guide-body li::marker { color: var(--maroon); }
.guide-body .guide-product { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; margin-top: 0; padding-block: 32px; border-top: 1px solid var(--hairline); }
.guide-product-media { display: block; aspect-ratio: 1; border: 1px solid var(--hairline); background: #fff; }
.guide-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.guide-product h2 { font-size: 1.4rem; margin-bottom: 4px; }
.guide-product .kind { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.guide-product .uses-line { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.guide-product .uses-line span { color: var(--ink); }
.guide-product .link-arrow { margin-top: 12px; }
.guide-outro { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.guide-outro a { color: var(--maroon); }
.craft-links { display: flex; flex-wrap: wrap; gap: 8px 32px; }

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed; z-index: 55; bottom: 24px; inset-inline-end: 24px;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28); }
.wa-float:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }

/* ---------- toast ---------- */

.toast {
  position: fixed; z-index: 60; inset-inline: 16px; bottom: 24px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 16px; padding: 14px 20px;
  background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast[hidden] { display: flex; opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
.toast a { color: var(--sand); white-space: nowrap; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 24px; display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--hairline); }
  .header-actions { margin-inline-start: auto; }
}

@media (max-width: 900px) {
  .space-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .space-media { aspect-ratio: 3 / 2; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li, .steps li:first-child { padding: 28px 0; border-inline-start: 0; border-top: 1px solid var(--hairline); grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; }
  .steps li .step-num { grid-row: span 2; font-size: 2.6rem; }
  .steps-note { margin-top: 0; }
  .craft-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .craft-media { aspect-ratio: 4 / 3; }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-media { position: static; }
  .sector-hero-grid, .colors-grid { grid-template-columns: minmax(0, 1fr); }
  .expect-grid, .contact-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-form { position: static; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 12px; }
  .brand svg { height: 30px; }
  .header-actions { gap: 12px; }
  .quote-link { padding: 0 10px; }
  .quote-link span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .quote-link::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--bag) center / contain no-repeat; mask: var(--bag) center / contain no-repeat; }
  .strip { grid-auto-columns: 68%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title { font-size: 0.9rem; }
  .name-pair { gap: 8px; }
  .sector-grid { grid-template-columns: minmax(0, 1fr); }
  .pick { grid-template-columns: 80px minmax(0, 1fr); gap: 16px; }
  .guide-body .guide-product { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .guide-photo { aspect-ratio: 4 / 3; }
  .pick .text-btn { grid-column: 2; justify-self: start; padding-top: 0; }
  .line { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  .line-fields { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .btn, .cta-band .btn { width: 100%; }
  .hero .actions, .cta-band .actions { width: 100%; max-width: 360px; }
  .footer-sign { flex-direction: column; align-items: center; }
  .wa-float { bottom: 16px; inset-inline-end: 16px; width: 54px; height: 54px; }
  .toast { bottom: 84px; }
}

:root { --bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 8h14l-1 12H6L5 8Zm3 0V6a4 4 0 0 1 8 0v2' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.collection-strip { padding-bottom: 0; }
