/* =========================================================================
   NOBLE ALBA — General Trading, Erbil
   Storefront design system.

   Gold #C9A227 against charcoal ink on white and warm off-white — the same
   gold the logo lockup is recoloured to (logo-gold.png), so the page and the
   mark agree. Gold is a highlight — eyebrows, CTAs, hover rules — never a wash.

   The whole page is light: there is no dark band anywhere, including the top
   bar and the footer.

   Product photography is supplier packshots on white, so every media pane
   is white and uses object-fit: contain with real padding. Nothing is ever
   cropped: a drill keeps its chuck, a trowel keeps its tip.

   Surfaces are flat and edged with hairlines rather than blurred, floated or
   glowing. Motion is limited to what a retailer actually uses: a slow image
   cross-fade, a slight zoom on hover, a short reveal on scroll.

   Written with logical properties throughout, so the entire page mirrors when
   Arabic or Kurdish sets dir="rtl".
   ========================================================================= */

:root {
  /* Paper and ink */
  --paper: #ffffff;
  --wash: #f6f4f1;        /* warm off-white bands */
  --wash-2: #efebe6;      /* image mats, skeletons */
  --ink: #1b1c20;
  --ink-2: #4a4e55;
  --muted: #7a7f87;

  /* Brand gold. Two values, because one cannot do both jobs: the bright gold
     fills (with ink on top, 7.2:1) and the deep gold is what gold TEXT on white
     has to be to stay readable (5.0:1). */
  --gold: #c9a227;
  --gold-dark: #b08d1e;   /* hover fill */
  --gold-ink: #8a6c14;    /* gold as text on white */
  --gold-tint: #fbf5e6;

  /* WhatsApp brand green — the one colour on the page that is not ours */
  --wa: #1fac54;
  --wa-dark: #179144;

  --line: #e6e1da;
  --line-2: #d5cec5;

  --display: 'IBM Plex Sans', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;

  --track: 0.14em;

  /* Content width with a gutter that never collapses onto the screen edge:
     20px on a phone, growing to 40px a side on a desktop. */
  --shell: min(1280px, calc(100% - clamp(2.5rem, 6vw, 5rem)));

  /* Every touchable control clears the 44px target on a phone. */
  --tap: 44px;

  /* Tight, product-catalogue radii — not pillows. */
  --r-xs: 3px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-sm: 0 1px 2px rgba(27, 28, 32, 0.06);
  --shadow: 0 4px 16px -8px rgba(27, 28, 32, 0.22);
  --shadow-lg: 0 24px 60px -28px rgba(27, 28, 32, 0.45);

  --topbar-h: 38px;
  --header-h: 88px;
}

/* Arabic and Kurdish get the matching Arabic cut of the same superfamily, so
   the two scripts share proportions instead of clashing. */
:root[dir='rtl'] {
  --display: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --track: 0.04em;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 78px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}

::selection { background: var(--gold); color: var(--ink); }

.shell { width: var(--shell); margin-inline: auto; }

/* Latin strings inside an RTL paragraph — phone numbers, e-mail — keep their
   own direction without dragging surrounding punctuation with them. */
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 1rem;
  z-index: 300;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}
.skip:focus { inset-block-start: 0.75rem; }

/* ------------------------------------------------------------------ type */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
:root[dir='rtl'] h1,
:root[dir='rtl'] h2,
:root[dir='rtl'] h3,
:root[dir='rtl'] h4 { line-height: 1.4; letter-spacing: 0; }

p { margin: 0; text-wrap: pretty; }

/* Section label: a short gold rule, then small caps. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: '';
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}
:root[dir='rtl'] .eyebrow { text-transform: none; font-size: 0.82rem; }

.sechead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 1.5rem 3rem;
  padding-block-end: 1.75rem;
  margin-block-end: 2.25rem;
  border-block-end: 1px solid var(--line);
}
.sechead h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.sechead__lead { color: var(--muted); font-size: 0.95rem; max-width: 46ch; }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-ink);
}
:root[dir='rtl'] .tag { text-transform: none; font-size: 0.78rem; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.9rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: var(--tap); padding: 0.62rem 1.15rem; font-size: 0.87rem; }
.btn--block { width: 100%; }

/* Primary actions carry the same gold the logo mark is recoloured to. */
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-dark); }

.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-ink); }

.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.ico-wa { width: 17px; height: 17px; flex: none; }

/* --------------------------------------------------------------- top bar */

.topbar {
  background: var(--wash);
  border-block-end: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.79rem;
}
.topbar__inner {
  width: var(--shell);
  margin-inline: auto;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}
.topbar__contact li { display: flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.topbar__contact svg { width: 13px; height: 13px; flex: none; color: var(--gold-ink); }
.topbar__contact a:hover { color: var(--ink); }

/* Language switcher */
.lang { position: relative; flex: none; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.45rem 0.1rem;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--ink-2);
}
.lang__btn:hover { color: var(--ink); }
.lang__btn svg { width: 13px; height: 13px; flex: none; }
.lang__caret { width: 9px; height: 9px; transition: transform 0.25s var(--ease); }
.lang.is-open .lang__caret { transform: rotate(180deg); }

.lang__menu {
  position: absolute;
  inset-block-start: calc(100% + 0.35rem);
  inset-inline-end: 0;
  z-index: 200;
  min-width: 10.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.3rem;
  display: grid;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  box-shadow: var(--shadow-lg);
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__opt {
  display: block;
  width: 100%;
  text-align: start;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-xs);
  font-size: 0.9rem;
  color: var(--ink-2);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang__opt:hover { background: var(--wash); color: var(--ink); }
.lang__opt.is-active { color: var(--gold-ink); font-weight: 600; }

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

.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 120;
  background: var(--paper);
  border-block-end: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 20px -18px rgba(27, 28, 32, 0.7); }

.header__inner {
  width: var(--shell);
  margin-inline: auto;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: height 0.25s var(--ease);
}
/* The lockup is shown at full size at rest and tightens once the reader is
   into the page, so the masthead never eats a phone screen while browsing.
   app.js republishes --header-h on the change, keeping the filter bar flush. */
.header.is-stuck .header__inner { height: 68px; }
.header.is-stuck .brand img { height: 44px; }
.brand { flex: none; }
/* The lockup is the identity — it carries the masthead rather than sitting in
   its corner, so it is sized off the header rather than tucked into it. */
.brand img { height: 54px; width: auto; transition: height 0.25s var(--ease); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  margin-inline-end: auto;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a {
  position: relative;
  color: var(--ink-2);
  padding-block: 0.4rem;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: var(--origin, left);
  transition: transform 0.25s var(--ease);
}
:root[dir='rtl'] .nav a::after { --origin: right; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }

.burger {
  display: none;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 11px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------------------------------------------------------------- ticker */
/* Two bands of the same four selling lines, running against each other: gold
   under the masthead, quiet under the hero. The track carries the set twice and
   then repeats itself, so a -50% translation is a seamless loop. */

.ticker { overflow: hidden; }
.ticker--solid { background: var(--gold); color: var(--ink); }
.ticker--quiet {
  background: var(--paper);
  border-block-end: 1px solid var(--line);
  color: var(--ink-2);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-run 46s linear infinite;
}
.ticker__track--rev { animation-direction: reverse; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__half { display: flex; }

/* An overflowing row spills left in LTR and right in RTL, so the travel has to
   flip with the document — otherwise the band scrolls itself empty in Arabic. */
@keyframes ticker-run {
  to { transform: translateX(-50%); }
}
@keyframes ticker-run-rtl {
  to { transform: translateX(50%); }
}
:root[dir='rtl'] .ticker__track { animation-name: ticker-run-rtl; }

.ticker__item {
  display: inline-flex;
  align-items: center;
  padding-block: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
/* A small rotated square as the separator — no emoji, no bullet glyph. */
.ticker__item::before {
  content: '';
  width: 4px;
  height: 4px;
  flex: none;
  transform: rotate(45deg);
  background: currentColor;
  opacity: 0.5;
  margin-inline: 1.6rem;
}

/* With motion turned down the strip stops and becomes hand-scrollable instead. */
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker__track { animation: none; }
}

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

.hero {
  background: var(--wash);
  border-block-end: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  margin-block-end: 1.1rem;
}
:root[dir='rtl'] .hero__title { letter-spacing: 0; }
.hero__lead {
  color: var(--ink-2);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  max-width: 46ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 2rem; }

.hero__lines {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  margin-block-start: 2.25rem;
  padding-block-start: 1.35rem;
  border-block-start: 1px solid var(--line-2);
}
.hero__lines-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}
:root[dir='rtl'] .hero__lines-label { text-transform: none; font-size: 0.78rem; }
.hero__lines-set { display: flex; flex-wrap: wrap; gap: 0.3rem 0.85rem; }
.hero__lines-set button {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 0.2rem;
  border-block-end: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.hero__lines-set button:hover { color: var(--gold-ink); border-block-end-color: var(--gold); }
.hero__lines-set button:not(:last-child)::after {
  content: '·';
  margin-inline-start: 0.85rem;
  color: var(--line-2);
}

/* The showcase plate: one white frame, photographs cross-fading inside it. */
.plate {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.plate__stack { position: absolute; inset: 0; }
.plate__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-block-end: clamp(4rem, 8vw, 5.5rem);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.9s var(--ease), transform 1.4s var(--ease);
}
.plate__img.is-active { opacity: 1; transform: none; }

.plate__cap {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 2.5vw, 1.5rem);
  background: var(--paper);
  border-block-start: 1px solid var(--line);
  text-align: start;
  transition: background 0.2s var(--ease);
}
.plate__cap:hover { background: var(--gold-tint); }
.plate__cap-text { display: grid; gap: 0.15rem; min-width: 0; }
.plate__cap-cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--gold-ink);
}
:root[dir='rtl'] .plate__cap-cat { text-transform: none; font-size: 0.78rem; }
.plate__cap-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plate__cap-go {
  width: 18px;
  height: 18px;
  flex: none;
  margin-inline-start: auto;
  color: var(--gold-ink);
  transition: transform 0.25s var(--ease);
}
:root[dir='rtl'] .plate__cap-go { transform: scaleX(-1); }
.plate__cap:hover .plate__cap-go { transform: translateX(4px); }
:root[dir='rtl'] .plate__cap:hover .plate__cap-go { transform: scaleX(-1) translateX(4px); }

.plate__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.plate__empty img { width: 64px; opacity: 0.4; }

/* The visible mark is a 3px bar, but the button itself is tall enough to be
   hit with a thumb. */
.plate__dots { display: flex; gap: 0.4rem; margin-block-start: 0.65rem; }
.plate__dots button {
  width: 30px;
  height: 22px;
  display: grid;
  align-items: center;
}
.plate__dots button::before {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line-2);
  transition: background 0.25s var(--ease);
}
.plate__dots button.is-active::before { background: var(--gold); }

/* ----------------------------------------------------------------- trust */

.trust { border-block-end: 1px solid var(--line); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust__item {
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.2rem;
  border-inline-start: 1px solid var(--line);
}
.trust__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.trust__item strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
}
.trust__item span { color: var(--muted); font-size: 0.85rem; }

/* ------------------------------------------------------------ categories */

.cats { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
/* Four across on a wide screen, so the eight trading categories land as two
   complete rows rather than a row of five and a stub. */
.cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
@media (min-width: 1000px) {
  .cats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Below that the tile stacks — photograph on top, name beneath — which stays
   readable at four across on a tablet and two on a phone. */
@media (max-width: 999px) {
  .cats__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
  .cat { flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 0.75rem; }
  .cat__thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}
.cat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  text-align: start;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.cat:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat.is-active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cat__thumb {
  width: 62px;
  height: 62px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--wash);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cat__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }

/* The drawn section icon. Gold as a line on the warm plate, not a gold fill —
   a filled block at this size would read as a badge and fight the packshots
   sitting next to it in the grid. */
.cat__thumb--icon { color: var(--gold); }
.cat__ico {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
  transition: transform 0.2s var(--ease);
}
.cat:hover .cat__ico { transform: scale(1.06); }
.cat.is-active .cat__thumb--icon { background: var(--gold-tint); }
/* Empty sections keep the icon but let it recede, so a stocked section still
   wins the eye. The name beneath already says "coming soon". */
.cat.is-empty .cat__thumb--icon { color: var(--gold); opacity: 0.55; }
.cat__thumb--mark img { width: 26px; height: auto; opacity: 0.32; padding: 0; }
.cat__text { display: grid; gap: 0.1rem; min-width: 0; }
.cat__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}
.cat__n { font-size: 0.8rem; color: var(--muted); }
.cat.is-empty .cat__name { color: var(--ink-2); }

/* ------------------------------------------------------------- catalogue */

.catalog { padding-block: 0 clamp(3.5rem, 6vw, 5.5rem); background: var(--wash); }
.catalog .sechead { padding-block-start: clamp(3.5rem, 6vw, 5.5rem); border-block-end: 0; margin-block-end: 0; }

.filters {
  position: sticky;
  inset-block-start: var(--header-h);
  z-index: 90;
  background: rgba(246, 244, 241, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-block: 1px solid var(--line);
  margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}
.filters__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.7rem;
}
.filters__right { display: flex; align-items: center; gap: 1rem; flex: none; }
.filters__count { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

.chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.15rem;
  min-width: 0;
}
.chips::-webkit-scrollbar { display: none; }
.chips.is-dragging { cursor: grabbing; }
.chips.is-dragging * { pointer-events: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold-ink); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip__n { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-active .chip__n { color: rgba(255, 255, 255, 0.6); }
.chip.is-empty { opacity: 0.55; }

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 15rem;
  max-width: 40vw;
  min-height: 42px;
  padding: 0.5rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  transition: border-color 0.2s var(--ease);
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  min-width: 0;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease) var(--d, 0ms), transform 0.5s var(--ease) var(--d, 0ms),
              border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.card.is-in { opacity: 1; transform: none; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  overflow: hidden;
  border-block-end: 1px solid var(--line);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.35rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.card__media img.is-loaded { opacity: 1; }
.card:hover .card__media img { transform: scale(1.045); }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.9rem 1rem 0.6rem;
  flex: 1 1 auto;
}
.card__cat {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}
:root[dir='rtl'] .card__cat { text-transform: none; font-size: 0.78rem; }
.card__name {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price-free footer: the ask replaces the price. */
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem 0.9rem;
  margin-block-start: auto;
}
.card__poa { font-size: 0.8rem; font-weight: 600; color: var(--gold-ink); }
.card__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: none;
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.card__wa svg { width: 14px; height: 14px; color: var(--wa); transition: color 0.18s var(--ease); }
.card__wa:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.card__wa:hover svg { color: #fff; }

/* Items with no photograph still hold their place in the lattice. */
.noimg {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--wash);
}
.noimg img { width: 46px; height: auto; opacity: 0.3; padding: 0; }

/* Loading and empty states */
.skeleton {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  overflow: hidden;
}
.skeleton__media { aspect-ratio: 1 / 1; background: var(--wash-2); }
.skeleton__line {
  height: 10px;
  border-radius: var(--r-xs);
  background: var(--wash-2);
  margin: 0.85rem 1rem 0;
}
.skeleton__line:last-child { margin-block-end: 1.4rem; }
.skeleton__media, .skeleton__line { animation: pulse 1.5s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: 0.5; } }
@media (prefers-reduced-motion: reduce) { .skeleton__media, .skeleton__line { animation: none; } }

.state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  text-align: center;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

/* --------------------------------------------------------------- process */

.process { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.step {
  background: var(--paper);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 0.5rem;
  align-content: start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.step.is-in { opacity: 1; transform: none; }
.step__n {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: var(--track);
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ----------------------------------------------------------------- about */

.about {
  background: var(--wash);
  border-block-start: 1px solid var(--line);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.about__copy, .contactcard {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.about__copy.is-in, .contactcard.is-in { opacity: 1; transform: none; }
.about__copy h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin-block-end: 1rem; }
.about__body { color: var(--ink-2); max-width: 60ch; }

.points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--line); }
.points li {
  background: var(--wash);
  display: grid;
  gap: 0.15rem;
  padding-block: 1rem;
}
.points strong { font-family: var(--display); font-size: 0.98rem; font-weight: 600; }
.points span { color: var(--muted); font-size: 0.9rem; }

.contactcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.contactcard h3 { font-size: 1.3rem; }
.contactcard__lead { color: var(--muted); font-size: 0.9rem; margin-block-start: 0.5rem; }

.facts { margin: 1.5rem 0; display: grid; gap: 1px; background: var(--line); }
.fact { background: var(--paper); padding-block: 0.9rem; display: grid; gap: 0.2rem; }
.fact dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}
:root[dir='rtl'] .fact dt { text-transform: none; font-size: 0.78rem; }
/* justify-items keeps an LTR phone number hugging the reading edge instead of
   stretching to a full-width box that then aligns itself left inside RTL. */
.fact dd { margin: 0; font-size: 0.92rem; display: grid; gap: 0.1rem; justify-items: start; }
/* max-width stops a max-content grid item (the long address) from overflowing. */
.fact dd a { max-width: 100%; transition: color 0.18s var(--ease); }
.fact dd a:hover { color: var(--gold-ink); }

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

/* Light like the rest of the page — a warm band closed by a hairline, not a
   dark slab. */
.footer {
  background: var(--wash);
  border-block-start: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
.footer__brand img { height: 48px; width: auto; margin-block-end: 1.1rem; }
.footer__brand p { max-width: 34ch; line-height: 1.7; }
.footer__col { display: grid; gap: 0.55rem; align-content: start; justify-items: start; }
.footer__col h4 {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  margin-block-end: 0.35rem;
}
:root[dir='rtl'] .footer__col h4 { text-transform: none; font-size: 0.82rem; }
.footer__col a, .footer__col span { max-width: 100%; }
.footer__col a { transition: color 0.18s var(--ease); }
.footer__col a:hover { color: var(--gold-ink); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.15rem;
  border-block-start: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ------------------------------------------------------- floating actions */

/* Both floats keep clear of the screen edge and of a phone's home indicator. */
.wafloat {
  position: fixed;
  inset-block-end: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  inset-inline-end: calc(1.5rem + env(safe-area-inset-right, 0px));
  z-index: 110;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(31, 172, 84, 0.75);
  transition: transform 0.25s var(--ease), background 0.2s var(--ease),
              opacity 0.25s var(--ease), visibility 0.25s;
}
.wafloat svg { width: 27px; height: 27px; }
.wafloat:hover { background: var(--wa-dark); transform: translateY(-2px); }
/* Held back until the hero's own WhatsApp button has scrolled away, so the
   same action is never offered twice in one screen. */
.wafloat { opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.94); }
.wafloat.is-shown { opacity: 1; visibility: visible; transform: none; }

.totop {
  position: fixed;
  inset-block-end: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  inset-inline-start: calc(1.5rem + env(safe-area-inset-left, 0px));
  z-index: 110;
  width: var(--tap);
  height: var(--tap);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line-2);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  box-shadow: var(--shadow);
}
.totop svg { width: 15px; height: 15px; }
.totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.totop:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ----------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(27, 28, 32, 0.55); }

.modal__box {
  position: relative;
  width: min(1000px, 100%);
  max-height: min(88vh, 780px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  /* An auto row would size to its content and blow past max-height, clipping
     the tail of a long description; a shrinkable row lets the body scroll. */
  grid-template-rows: minmax(0, 1fr);
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.3s var(--ease);
}
.modal.is-open .modal__box { transform: none; }

.modal__close {
  position: absolute;
  inset-block-start: 0.85rem;
  inset-inline-end: 0.85rem;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.modal__close:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.modal__gallery {
  background: var(--paper);
  border-inline-end: 1px solid var(--line);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}
.modal__media { position: relative; background: var(--paper); min-height: 0; }
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.modal__media .noimg { background: var(--wash); }

.thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem;
  border-block-start: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  width: 62px;
  height: 62px;
  flex: none;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  transition: border-color 0.18s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--line-2); }
.thumb.is-active { border-color: var(--gold); }

.modal__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  padding-block-start: clamp(2.25rem, 4vw, 2.75rem);
  overflow-y: auto;
  /* Without this a grid item refuses to shrink below its content, so a long
     description would be clipped by the box instead of scrolling inside it. */
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal__name { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-block-start: 0.35rem; }
.modal__price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-ink);
  padding-block: 0.5rem;
  margin-block-end: 0.35rem;
  border-block-end: 1px solid var(--line);
}
.modal__desc { color: var(--ink-2); font-size: 0.94rem; line-height: 1.75; }
.modal__actions { display: grid; gap: 0.6rem; margin-block-start: auto; padding-block-start: 1.5rem; }
.modal__note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-block-start: 0.35rem; }

/* --------------------------------------------------------------- reveals */

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .card, .step, .about__copy, .contactcard { opacity: 1; transform: none; }
}

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

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .hero__showcase { order: -1; }
  /* Stacked, the plate is capped so the photograph does not take a whole
     screen before the headline is reached. */
  .plate { aspect-ratio: 4 / 3; max-width: 520px; margin-inline: auto; }
  .plate__dots { justify-content: center; }
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    inset-block-start: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 1rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 0.85rem; border-block-end: 1px solid var(--line); }
  .nav a:last-child { border-block-end: 0; }
  .nav a::after { display: none; }
  .header { position: sticky; }
  .header__inner { gap: 1rem; justify-content: space-between; }
  .burger { display: flex; }
  /* Three across keeps the cards near their desktop size instead of ballooning
     to half a tablet each. */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item { padding-inline: 1.25rem; }
  .trust__item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .trust__item:nth-child(n + 3) { border-block-start: 1px solid var(--line); }
  .modal__box {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 92vh;
  }
  .modal__gallery { border-inline-end: 0; border-block-end: 1px solid var(--line); }
  .modal__media { aspect-ratio: 4 / 3; }
  .modal__body { padding-block-start: 1.25rem; padding-block-end: 0; }
  /* A long description must never push the quote button out of reach: the
     actions ride the bottom of the sheet while the copy scrolls behind them. */
  .modal__note { order: 1; padding-block-start: 0.75rem; }
  .modal__actions {
    order: 2;
    position: sticky;
    inset-block-end: 0;
    background: var(--paper);
    padding-block: 0.9rem 1.1rem;
    margin-block-start: 0.5rem;
    box-shadow: 0 -14px 18px -14px rgba(27, 28, 32, 0.3);
  }
}

@media (max-width: 720px) {
  /* Beats `.topbar__contact li { display: flex }`, which would otherwise win. */
  .topbar__contact .topbar__hide-sm { display: none; }
  /* Icon-only, but still a full 44px target. */
  .header__wa span { display: none; }
  .header__wa { width: var(--tap); min-width: var(--tap); padding: 0; }
  .brand img { height: 44px; }
  .header__inner { height: 80px; }
  .header.is-stuck .header__inner { height: 62px; }
  .header.is-stuck .brand img { height: 36px; }
  .sechead { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0.75rem; }

  /* The filter bar is sticky under the header, so it stays as short as it can:
     one scrolling row of chips, one row of search and result count. */
  .filters__inner { flex-direction: column; align-items: stretch; gap: 0.5rem; padding-block: 0.55rem; }
  .filters__right { justify-content: space-between; gap: 0.75rem; }
  .search { width: auto; max-width: none; flex: 1 1 auto; }
  .chip { min-height: 38px; padding-inline: 0.9rem; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 0.75rem; }
  .card__media img { padding: 0.9rem; }
  .card__body { padding: 0.8rem 0.85rem 0.5rem; }
  .card__desc { display: none; }
  .card__foot { padding: 0.5rem 0.85rem 0.85rem; }
  .card__poa { font-size: 0.76rem; }
  .card__wa span { display: none; }
  .card__wa { width: 40px; min-height: 40px; padding: 0; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  /* Leave room under the last line for the floating WhatsApp button. */
  .footer__bar { padding-block-end: 5rem; }

  .wafloat { width: 54px; height: 54px; }
}

@media (max-width: 420px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .modal__actions { padding-block-start: 1.15rem; }
}
